repo_name
stringclasses
6 values
pr_number
int64
512
78.9k
pr_title
stringlengths
3
144
pr_description
stringlengths
0
30.3k
author
stringlengths
2
21
date_created
timestamp[ns, tz=UTC]
date_merged
timestamp[ns, tz=UTC]
previous_commit
stringlengths
40
40
pr_commit
stringlengths
40
40
query
stringlengths
17
30.4k
filepath
stringlengths
9
210
before_content
stringlengths
0
112M
after_content
stringlengths
0
112M
label
int64
-1
1
dotnet/roslyn
55,408
Update package references
CyrusNajmabadi
2021-08-04T19:12:45Z
2021-08-04T22:34:08Z
967cf7cf7be8478cce7cda728217eab8504f2863
d41ae79bb1a3f0deb2de2f3d67c976f795da9563
Update package references.
./src/VisualStudio/CSharp/Impl/ProjectSystemShim/CSharpProjectShim.IVsEditorFactoryNotify.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using Microsoft.VisualStudio.Shell.Interop; namespace Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim { // The native project system requires that project sites implement IVsEditorFactoryNotify, and // the project system stores an internal list of the interface pointers to them. The old editor // factory would then call each implementation from it's own IVsEditorFactoryNotify methods. // Since we now supply our own editor factory that doesn't do this, these methods will never be // called. Still, we must implement the interface or we'll never load at all. internal partial class CSharpProjectShim : IVsEditorFactoryNotify { public int NotifyDependentItemSaved(IVsHierarchy hier, uint itemidParent, string documentParentMoniker, uint itemidDpendent, string documentDependentMoniker) => throw new NotSupportedException(); public int NotifyItemAdded(uint grfEFN, IVsHierarchy hier, uint itemid, string documentId) => throw new NotSupportedException(); public int NotifyItemRenamed(IVsHierarchy hier, uint itemid, string documentOldMoniker, string documentNewMoniker) => throw new NotSupportedException(); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using Microsoft.VisualStudio.Shell.Interop; namespace Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim { // The native project system requires that project sites implement IVsEditorFactoryNotify, and // the project system stores an internal list of the interface pointers to them. The old editor // factory would then call each implementation from it's own IVsEditorFactoryNotify methods. // Since we now supply our own editor factory that doesn't do this, these methods will never be // called. Still, we must implement the interface or we'll never load at all. internal partial class CSharpProjectShim : IVsEditorFactoryNotify { public int NotifyDependentItemSaved(IVsHierarchy hier, uint itemidParent, string documentParentMoniker, uint itemidDpendent, string documentDependentMoniker) => throw new NotSupportedException(); public int NotifyItemAdded(uint grfEFN, IVsHierarchy hier, uint itemid, string documentId) => throw new NotSupportedException(); public int NotifyItemRenamed(IVsHierarchy hier, uint itemid, string documentOldMoniker, string documentNewMoniker) => throw new NotSupportedException(); } }
-1
dotnet/roslyn
55,408
Update package references
CyrusNajmabadi
2021-08-04T19:12:45Z
2021-08-04T22:34:08Z
967cf7cf7be8478cce7cda728217eab8504f2863
d41ae79bb1a3f0deb2de2f3d67c976f795da9563
Update package references.
./src/EditorFeatures/Test2/FindReferences/FindReferencesTests.TypeParameterTypeSymbol.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.Remote.Testing Namespace Microsoft.CodeAnalysis.Editor.UnitTests.FindReferences Partial Public Class FindReferencesTests <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestTypeParameter1(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ class C<{|Definition:$$T|}> { void Goo([|T|] t) { } void Goo2(t t1) { } }]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(23699, "https://github.com/dotnet/roslyn/issues/23699")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestCSharp_LocalFunctionTypeParameter(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ class C { void M() { void local<{|Definition:TPar$$am|}>([|TParam|] parameter) { } } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(23699, "https://github.com/dotnet/roslyn/issues/23699")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestCSharp_LocalFunctionTypeParameter2(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ class C { void M() { void local<{|Definition:TParam|}>([|TPa$$ram|] parameter) { } } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(23699, "https://github.com/dotnet/roslyn/issues/23699")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestCSharp_LocalFunctionTypeParameter3(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ class C { void M<{|Definition:TParam|}>() { void local([|TPa$$ram|] parameter) { } } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(23699, "https://github.com/dotnet/roslyn/issues/23699")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestCSharp_LocalFunctionTypeParameter4(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ class C { void M<{|Definition:TPa$$ram|}>() { void local([|TParam|] parameter) { } } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestTypeParameter2(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ partial class C<{|Definition:$$T|}> { void Goo([|T|] t) { } void Goo2(t t1) { } }]]></Document> <Document><![CDATA[ partial class C<{|Definition:T|}> { void Goo2([|T|] t) { } }]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestTypeParameter3(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ partial class C<{|Definition:$$T|}> { void Goo(X<[|T|]> t) { } } class D<T> { C<T> c; }]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestGenericTypeArgsWithStaticCalls(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ class {|Definition:G$$oo|} { void M() { Bar<[|Goo|]>.StaticDoSomething(); } } class Bar<T> { public static void StaticDoSomething() { } }]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestTypeParameterCaseSensitivity(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="Visual Basic" CommonReferences="true"> <Document> partial class C(of {|Definition:$$T|}) sub Goo(x as [|T|]) end sub sub Goo1(x as [|t|]) end sub end class</Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(542598, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542598")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestMethodTypeParameterExplicitImplementation1(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ interface I { T Goo<T>(); } class A : I { [|$$T|] I.Goo<{|Definition:T|}>() { return default([|T|]); } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(542598, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542598")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestMethodTypeParameterExplicitImplementation2(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ interface I { T Goo<T>(); } class A : I { [|T|] I.Goo<{|Definition:$$T|}>() { return default([|T|]); } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(542598, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542598")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestMethodTypeParameterExplicitImplementation3(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ interface I { T Goo<T>(); } class A : I { [|T|] I.Goo<{|Definition:T|}>() { return default([|$$T|]); } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.Remote.Testing Namespace Microsoft.CodeAnalysis.Editor.UnitTests.FindReferences Partial Public Class FindReferencesTests <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestTypeParameter1(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ class C<{|Definition:$$T|}> { void Goo([|T|] t) { } void Goo2(t t1) { } }]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(23699, "https://github.com/dotnet/roslyn/issues/23699")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestCSharp_LocalFunctionTypeParameter(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ class C { void M() { void local<{|Definition:TPar$$am|}>([|TParam|] parameter) { } } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(23699, "https://github.com/dotnet/roslyn/issues/23699")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestCSharp_LocalFunctionTypeParameter2(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ class C { void M() { void local<{|Definition:TParam|}>([|TPa$$ram|] parameter) { } } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(23699, "https://github.com/dotnet/roslyn/issues/23699")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestCSharp_LocalFunctionTypeParameter3(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ class C { void M<{|Definition:TParam|}>() { void local([|TPa$$ram|] parameter) { } } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(23699, "https://github.com/dotnet/roslyn/issues/23699")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestCSharp_LocalFunctionTypeParameter4(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ class C { void M<{|Definition:TPa$$ram|}>() { void local([|TParam|] parameter) { } } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestTypeParameter2(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ partial class C<{|Definition:$$T|}> { void Goo([|T|] t) { } void Goo2(t t1) { } }]]></Document> <Document><![CDATA[ partial class C<{|Definition:T|}> { void Goo2([|T|] t) { } }]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestTypeParameter3(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ partial class C<{|Definition:$$T|}> { void Goo(X<[|T|]> t) { } } class D<T> { C<T> c; }]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestGenericTypeArgsWithStaticCalls(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ class {|Definition:G$$oo|} { void M() { Bar<[|Goo|]>.StaticDoSomething(); } } class Bar<T> { public static void StaticDoSomething() { } }]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestTypeParameterCaseSensitivity(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="Visual Basic" CommonReferences="true"> <Document> partial class C(of {|Definition:$$T|}) sub Goo(x as [|T|]) end sub sub Goo1(x as [|t|]) end sub end class</Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(542598, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542598")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestMethodTypeParameterExplicitImplementation1(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ interface I { T Goo<T>(); } class A : I { [|$$T|] I.Goo<{|Definition:T|}>() { return default([|T|]); } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(542598, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542598")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestMethodTypeParameterExplicitImplementation2(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ interface I { T Goo<T>(); } class A : I { [|T|] I.Goo<{|Definition:$$T|}>() { return default([|T|]); } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function <WorkItem(542598, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542598")> <WpfTheory, CombinatorialData, Trait(Traits.Feature, Traits.Features.FindReferences)> Public Async Function TestMethodTypeParameterExplicitImplementation3(kind As TestKind, host As TestHost) As Task Dim input = <Workspace> <Project Language="C#" CommonReferences="true"> <Document><![CDATA[ interface I { T Goo<T>(); } class A : I { [|T|] I.Goo<{|Definition:T|}>() { return default([|$$T|]); } } ]]></Document> </Project> </Workspace> Await TestAPIAndFeature(input, kind, host) End Function End Class End Namespace
-1
dotnet/roslyn
55,408
Update package references
CyrusNajmabadi
2021-08-04T19:12:45Z
2021-08-04T22:34:08Z
967cf7cf7be8478cce7cda728217eab8504f2863
d41ae79bb1a3f0deb2de2f3d67c976f795da9563
Update package references.
./src/Compilers/CSharp/Test/Symbol/Symbols/Retargeting/RetargetExplicitInterfaceImplementation.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Symbols.Retargeting; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; using static Roslyn.Test.Utilities.TestMetadata; namespace Microsoft.CodeAnalysis.CSharp.UnitTests { public class RetargetExplicitInterfaceImplementation : CSharpTestBase { [Fact] public void ExplicitInterfaceImplementationRetargeting() { var comp1 = CreateCompilation( new AssemblyIdentity("Assembly1"), new string[] { @" public class C : Interface1 { void Interface1.Method1() { } void Interface1.Method2() { } void Interface1.Method3(bool b) { } void Interface1.Method4(Class1 c) { } string Interface1.Property1 { get; set; } string Interface1.Property2 { get; set; } string Interface1.Property3 { get; set; } Class1 Interface1.Property4 { get; set; } string Interface1.this[string x] { get { return null; } set { } } string Interface1.this[string x, string y] { get { return null; } set { } } string Interface1.this[string x, string y, string z] { get { return null; } set { } } Class1 Interface1.this[Class1 x, Class1 y, Class1 z, Class1 w] { get { return null; } set { } } event System.Action Interface1.Event1 { add { } remove { } } event System.Action Interface1.Event2 { add { } remove { } } event System.Action Interface1.Event3 { add { } remove { } } event Delegate1 Interface1.Event4 { add { } remove { } } } " }, new[] { Net451.mscorlib, TestReferences.SymbolsTests.V1.MTTestLib1.dll, }); comp1.VerifyDiagnostics(); var globalNamespace1 = comp1.GlobalNamespace; var classC = globalNamespace1.GetTypeMembers("C").Single(); var interfaceV1 = globalNamespace1.GetTypeMembers("Interface1").Single(); var interfaceV1Method1 = (MethodSymbol)interfaceV1.GetMembers("Method1").Single(); var interfaceV1Method2 = (MethodSymbol)interfaceV1.GetMembers("Method2").Single(); var interfaceV1Method3 = (MethodSymbol)interfaceV1.GetMembers("Method3").Single(); var interfaceV1Method4 = (MethodSymbol)interfaceV1.GetMembers("Method4").Single(); var interfaceV1Property1 = (PropertySymbol)interfaceV1.GetMembers("Property1").Single(); var interfaceV1Property2 = (PropertySymbol)interfaceV1.GetMembers("Property2").Single(); var interfaceV1Property3 = (PropertySymbol)interfaceV1.GetMembers("Property3").Single(); var interfaceV1Property4 = (PropertySymbol)interfaceV1.GetMembers("Property4").Single(); var interfaceV1Indexer1 = FindIndexerWithParameterCount(interfaceV1, 1); var interfaceV1Indexer2 = FindIndexerWithParameterCount(interfaceV1, 2); var interfaceV1Indexer3 = FindIndexerWithParameterCount(interfaceV1, 3); var interfaceV1Indexer4 = FindIndexerWithParameterCount(interfaceV1, 4); var interfaceV1Event1 = (EventSymbol)interfaceV1.GetMembers("Event1").Single(); var interfaceV1Event2 = (EventSymbol)interfaceV1.GetMembers("Event2").Single(); var interfaceV1Event3 = (EventSymbol)interfaceV1.GetMembers("Event3").Single(); var interfaceV1Event4 = (EventSymbol)interfaceV1.GetMembers("Event4").Single(); foreach (var member in classC.GetMembers()) { switch (member.Kind) { case SymbolKind.Method: var method = (MethodSymbol)member; if (method.MethodKind == MethodKind.ExplicitInterfaceImplementation) { Assert.Equal(interfaceV1, method.ExplicitInterfaceImplementations.Single().ContainingType); } break; case SymbolKind.Property: Assert.Equal(interfaceV1, ((PropertySymbol)member).ExplicitInterfaceImplementations.Single().ContainingType); break; case SymbolKind.Event: Assert.Equal(interfaceV1, ((EventSymbol)member).ExplicitInterfaceImplementations.Single().ContainingType); break; case SymbolKind.ErrorType: Assert.True(false); break; } } var comp2 = CreateCompilation( new AssemblyIdentity("Assembly2"), new string[] {@" public class D : C { } " }, new MetadataReference[] { Net451.mscorlib, TestReferences.SymbolsTests.V2.MTTestLib1.dll, new CSharpCompilationReference(comp1) }); Assert.False(comp2.GetDiagnostics().Any()); var globalNamespace2 = comp2.GlobalNamespace; var interfaceV2 = globalNamespace2.GetTypeMembers("Interface1").Single(); Assert.NotSame(interfaceV1, interfaceV2); var interfaceV2Method1 = (MethodSymbol)interfaceV2.GetMembers("Method1").Single(); //Method2 deleted var interfaceV2Method3 = (MethodSymbol)interfaceV2.GetMembers("Method3").Single(); var interfaceV2Method4 = (MethodSymbol)interfaceV2.GetMembers("Method4").Single(); var interfaceV2Property1 = (PropertySymbol)interfaceV2.GetMembers("Property1").Single(); //Property2 deleted var interfaceV2Property3 = (PropertySymbol)interfaceV2.GetMembers("Property3").Single(); var interfaceV2Property4 = (PropertySymbol)interfaceV2.GetMembers("Property4").Single(); var interfaceV2Indexer1 = FindIndexerWithParameterCount(interfaceV2, 1); //Two-parameter indexer deleted var interfaceV2Indexer3 = FindIndexerWithParameterCount(interfaceV2, 3); var interfaceV2Indexer4 = FindIndexerWithParameterCount(interfaceV2, 4); var interfaceV2Event1 = (EventSymbol)interfaceV2.GetMembers("Event1").Single(); //Event2 deleted var interfaceV2Event3 = (EventSymbol)interfaceV2.GetMembers("Event3").Single(); var interfaceV2Event4 = (EventSymbol)interfaceV2.GetMembers("Event4").Single(); var classD = globalNamespace2.GetTypeMembers("D").Single(); var retargetedClassC = classD.BaseType(); Assert.IsType<RetargetingNamedTypeSymbol>(retargetedClassC); Assert.Equal(interfaceV2, retargetedClassC.Interfaces().Single()); var retargetedClassCMethod1 = (MethodSymbol)retargetedClassC.GetMembers("Interface1.Method1").Single(); { Assert.IsType<RetargetingMethodSymbol>(retargetedClassCMethod1); Assert.Equal(MethodKind.ExplicitInterfaceImplementation, retargetedClassCMethod1.MethodKind); var retargetedClassCMethod1Impl = retargetedClassCMethod1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Method1, retargetedClassCMethod1Impl); Assert.NotSame(interfaceV1Method1, retargetedClassCMethod1Impl); Assert.Equal(retargetedClassCMethod1Impl.ToTestDisplayString(), interfaceV1Method1.ToTestDisplayString()); } var retargetedClassCMethod2 = (MethodSymbol)retargetedClassC.GetMembers("Interface1.Method2").Single(); { Assert.IsType<RetargetingMethodSymbol>(retargetedClassCMethod2); Assert.Equal(MethodKind.ExplicitInterfaceImplementation, retargetedClassCMethod2.MethodKind); //since the method is missing from V2 of the interface Assert.False(retargetedClassCMethod2.ExplicitInterfaceImplementations.Any()); } var retargetedClassCMethod3 = (MethodSymbol)retargetedClassC.GetMembers("Interface1.Method3").Single(); { Assert.IsType<RetargetingMethodSymbol>(retargetedClassCMethod3); Assert.Equal(MethodKind.ExplicitInterfaceImplementation, retargetedClassCMethod3.MethodKind); //since the method has a different signature in V2 of the interface Assert.False(retargetedClassCMethod3.ExplicitInterfaceImplementations.Any()); } var retargetedClassCMethod4 = (MethodSymbol)retargetedClassC.GetMembers("Interface1.Method4").Single(); { Assert.IsType<RetargetingMethodSymbol>(retargetedClassCMethod4); Assert.Equal(MethodKind.ExplicitInterfaceImplementation, retargetedClassCMethod4.MethodKind); var retargetedClassCMethod4Impl = retargetedClassCMethod4.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Method4, retargetedClassCMethod4Impl); Assert.NotSame(interfaceV1Method4, retargetedClassCMethod4Impl); Assert.Equal(retargetedClassCMethod4Impl.ToTestDisplayString(), interfaceV1Method4.ToTestDisplayString()); } var retargetedClassCProperty1 = (PropertySymbol)retargetedClassC.GetMembers("Interface1.Property1").Single(); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCProperty1); var retargetedClassCProperty1Impl = retargetedClassCProperty1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Property1, retargetedClassCProperty1Impl); Assert.NotSame(interfaceV1Property1, retargetedClassCProperty1Impl); Assert.Equal(retargetedClassCProperty1Impl.Name, interfaceV1Property1.Name); Assert.Equal(retargetedClassCProperty1Impl.Type.ToTestDisplayString(), interfaceV1Property1.Type.ToTestDisplayString()); } var retargetedClassCProperty2 = (PropertySymbol)retargetedClassC.GetMembers("Interface1.Property2").Single(); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCProperty2); //since the property is missing from V2 of the interface Assert.False(retargetedClassCProperty2.ExplicitInterfaceImplementations.Any()); } var retargetedClassCProperty3 = (PropertySymbol)retargetedClassC.GetMembers("Interface1.Property3").Single(); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCProperty3); //since the property has a different type in V2 of the interface Assert.False(retargetedClassCProperty3.ExplicitInterfaceImplementations.Any()); } var retargetedClassCProperty4 = (PropertySymbol)retargetedClassC.GetMembers("Interface1.Property4").Single(); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCProperty4); var retargetedClassCProperty4Impl = retargetedClassCProperty4.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Property4, retargetedClassCProperty4Impl); Assert.NotSame(interfaceV1Property4, retargetedClassCProperty4Impl); Assert.Equal(retargetedClassCProperty4Impl.Name, interfaceV1Property4.Name); Assert.Equal(retargetedClassCProperty4Impl.Type.ToTestDisplayString(), interfaceV1Property4.Type.ToTestDisplayString()); } var retargetedClassCIndexer1 = FindIndexerWithParameterCount(retargetedClassC, 1); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCIndexer1); var retargetedClassCIndexer1Impl = retargetedClassCIndexer1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Indexer1, retargetedClassCIndexer1Impl); Assert.NotSame(interfaceV1Indexer1, retargetedClassCIndexer1Impl); Assert.Equal(retargetedClassCIndexer1Impl.Name, interfaceV1Indexer1.Name); Assert.Equal(retargetedClassCIndexer1Impl.Type.ToTestDisplayString(), interfaceV1Indexer1.Type.ToTestDisplayString()); } var retargetedClassCIndexer2 = FindIndexerWithParameterCount(retargetedClassC, 2); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCIndexer2); //since the property is missing from V2 of the interface Assert.False(retargetedClassCIndexer2.ExplicitInterfaceImplementations.Any()); } var retargetedClassCIndexer3 = FindIndexerWithParameterCount(retargetedClassC, 3); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCIndexer3); //since the property has a different type in V2 of the interface Assert.False(retargetedClassCIndexer3.ExplicitInterfaceImplementations.Any()); } var retargetedClassCIndexer4 = FindIndexerWithParameterCount(retargetedClassC, 4); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCIndexer4); var retargetedClassCIndexer4Impl = retargetedClassCIndexer4.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Indexer4, retargetedClassCIndexer4Impl); Assert.NotSame(interfaceV1Indexer4, retargetedClassCIndexer4Impl); Assert.Equal(retargetedClassCIndexer4Impl.Name, interfaceV1Indexer4.Name); Assert.Equal(retargetedClassCIndexer4Impl.Type.ToTestDisplayString(), interfaceV1Indexer4.Type.ToTestDisplayString()); } var retargetedClassCEvent1 = (EventSymbol)retargetedClassC.GetMembers("Interface1.Event1").Single(); { Assert.IsType<RetargetingEventSymbol>(retargetedClassCEvent1); var retargetedClassCEvent1Impl = retargetedClassCEvent1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Event1, retargetedClassCEvent1Impl); Assert.NotSame(interfaceV1Event1, retargetedClassCEvent1Impl); Assert.Equal(retargetedClassCEvent1Impl.Name, interfaceV1Event1.Name); Assert.Equal(retargetedClassCEvent1Impl.Type.ToTestDisplayString(), interfaceV1Event1.Type.ToTestDisplayString()); } var retargetedClassCEvent2 = (EventSymbol)retargetedClassC.GetMembers("Interface1.Event2").Single(); { Assert.IsType<RetargetingEventSymbol>(retargetedClassCEvent2); //since the event is missing from V2 of the interface Assert.False(retargetedClassCEvent2.ExplicitInterfaceImplementations.Any()); } var retargetedClassCEvent3 = (EventSymbol)retargetedClassC.GetMembers("Interface1.Event3").Single(); { Assert.IsType<RetargetingEventSymbol>(retargetedClassCEvent3); //since the event has a different type in V2 of the interface Assert.False(retargetedClassCEvent3.ExplicitInterfaceImplementations.Any()); } var retargetedClassCEvent4 = (EventSymbol)retargetedClassC.GetMembers("Interface1.Event4").Single(); { Assert.IsType<RetargetingEventSymbol>(retargetedClassCEvent4); var retargetedClassCEvent4Impl = retargetedClassCEvent4.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Event4, retargetedClassCEvent4Impl); Assert.NotSame(interfaceV1Event4, retargetedClassCEvent4Impl); Assert.Equal(retargetedClassCEvent4Impl.Name, interfaceV1Event4.Name); Assert.Equal(retargetedClassCEvent4Impl.Type.ToTestDisplayString(), interfaceV1Event4.Type.ToTestDisplayString()); } } private static PropertySymbol FindIndexerWithParameterCount(NamedTypeSymbol type, int parameterCount) { return type.GetMembers().Where(s => s.Kind == SymbolKind.Property).Cast<PropertySymbol>().Single(p => p.Parameters.Length == parameterCount); } [Fact] public void ExplicitInterfaceImplementationRetargetingGeneric() { var comp1 = CreateCompilation( new AssemblyIdentity("Assembly1"), new string[] { @" public class C1<S> : Interface2<S> { void Interface2<S>.Method1(S s) { } S Interface2<S>.Property1 { get; set; } event System.Action<S> Interface2<S>.Event1 { add { } remove { } } } public class C2 : Interface2<int> { void Interface2<int>.Method1(int i) { } int Interface2<int>.Property1 { get; set; } event System.Action<int> Interface2<int>.Event1 { add { } remove { } } } public class C3 : Interface2<Class1> { void Interface2<Class1>.Method1(Class1 c) { } Class1 Interface2<Class1>.Property1 { get; set; } event System.Action<Class1> Interface2<Class1>.Event1 { add { } remove { } } } " }, new[] { Net451.mscorlib, TestReferences.SymbolsTests.V1.MTTestLib1.dll, }); var d = comp1.GetDiagnostics(); Assert.False(comp1.GetDiagnostics().Any()); var globalNamespace1 = comp1.GlobalNamespace; var classC1 = globalNamespace1.GetTypeMembers("C1").Single(); var classC2 = globalNamespace1.GetTypeMembers("C2").Single(); var classC3 = globalNamespace1.GetTypeMembers("C3").Single(); foreach (var diag in comp1.GetDiagnostics()) { Console.WriteLine(diag); } var comp2 = CreateCompilation( new AssemblyIdentity("Assembly2"), new string[] {@" public class D1<R> : C1<R> { } public class D2 : C2 { } public class D3 : C3 { } " }, new MetadataReference[] { Net451.mscorlib, TestReferences.SymbolsTests.V2.MTTestLib1.dll, new CSharpCompilationReference(comp1) }); Assert.False(comp2.GetDiagnostics().Any()); var globalNamespace2 = comp2.GlobalNamespace; var interfaceV2 = globalNamespace2.GetTypeMembers("Interface2").Single(); var interfaceV2Method1 = interfaceV2.GetMembers("Method1").Single(); var interfaceV2Property1 = interfaceV2.GetMembers("Property1").Single(); var interfaceV2Event1 = interfaceV2.GetMembers("Event1").Single(); var classD1 = globalNamespace2.GetTypeMembers("D1").Single(); var classD2 = globalNamespace2.GetTypeMembers("D2").Single(); var classD3 = globalNamespace2.GetTypeMembers("D3").Single(); var retargetedClassC1 = classD1.BaseType(); var retargetedClassC2 = classD2.BaseType(); var retargetedClassC3 = classD3.BaseType(); var retargetedClassC1Method1 = (MethodSymbol)retargetedClassC1.GetMembers("Interface2<S>.Method1").Single(); var retargetedClassC1Method1Impl = retargetedClassC1Method1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Method1, retargetedClassC1Method1Impl.OriginalDefinition); var retargetedClassC2Method1 = (MethodSymbol)retargetedClassC2.GetMembers("Interface2<System.Int32>.Method1").Single(); var retargetedClassC2Method1Impl = retargetedClassC2Method1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Method1, retargetedClassC2Method1Impl.OriginalDefinition); var retargetedClassC3Method1 = (MethodSymbol)retargetedClassC3.GetMembers("Interface2<Class1>.Method1").Single(); var retargetedClassC3Method1Impl = retargetedClassC3Method1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Method1, retargetedClassC3Method1Impl.OriginalDefinition); var retargetedClassC1Property1 = (PropertySymbol)retargetedClassC1.GetMembers("Interface2<S>.Property1").Single(); var retargetedClassC1Property1Impl = retargetedClassC1Property1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Property1, retargetedClassC1Property1Impl.OriginalDefinition); var retargetedClassC2Property1 = (PropertySymbol)retargetedClassC2.GetMembers("Interface2<System.Int32>.Property1").Single(); var retargetedClassC2Property1Impl = retargetedClassC2Property1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Property1, retargetedClassC2Property1Impl.OriginalDefinition); var retargetedClassC3Property1 = (PropertySymbol)retargetedClassC3.GetMembers("Interface2<Class1>.Property1").Single(); var retargetedClassC3Property1Impl = retargetedClassC3Property1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Property1, retargetedClassC3Property1Impl.OriginalDefinition); var retargetedClassC1Event1 = (EventSymbol)retargetedClassC1.GetMembers("Interface2<S>.Event1").Single(); var retargetedClassC1Event1Impl = retargetedClassC1Event1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Event1, retargetedClassC1Event1Impl.OriginalDefinition); var retargetedClassC2Event1 = (EventSymbol)retargetedClassC2.GetMembers("Interface2<System.Int32>.Event1").Single(); var retargetedClassC2Event1Impl = retargetedClassC2Event1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Event1, retargetedClassC2Event1Impl.OriginalDefinition); var retargetedClassC3Event1 = (EventSymbol)retargetedClassC3.GetMembers("Interface2<Class1>.Event1").Single(); var retargetedClassC3Event1Impl = retargetedClassC3Event1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Event1, retargetedClassC3Event1Impl.OriginalDefinition); } [Fact] public void ExplicitInterfaceImplementationRetargetingGenericType() { var source1 = @" public class C1<T> { public interface I1 { void M(T x); } } "; var ref1 = CreateEmptyCompilation("").ToMetadataReference(); var compilation1 = CreateCompilation(source1, references: new[] { ref1 }); var source2 = @" public class C2<U> : C1<U>.I1 { void C1<U>.I1.M(U x) {} } "; var compilation2 = CreateCompilation(source2, references: new[] { compilation1.ToMetadataReference(), ref1, CreateEmptyCompilation("").ToMetadataReference() }); var compilation3 = CreateCompilation("", references: new[] { compilation1.ToMetadataReference(), compilation2.ToMetadataReference() }); Assert.NotSame(compilation2.GetTypeByMetadataName("C1`1"), compilation3.GetTypeByMetadataName("C1`1")); var c2 = compilation3.GetTypeByMetadataName("C2`1"); Assert.IsType<RetargetingNamedTypeSymbol>(c2); var m = c2.GetMethod("C1<U>.I1.M"); Assert.Equal(c2.Interfaces().Single().GetMethod("M"), m.ExplicitInterfaceImplementations.Single()); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Symbols.Retargeting; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; using static Roslyn.Test.Utilities.TestMetadata; namespace Microsoft.CodeAnalysis.CSharp.UnitTests { public class RetargetExplicitInterfaceImplementation : CSharpTestBase { [Fact] public void ExplicitInterfaceImplementationRetargeting() { var comp1 = CreateCompilation( new AssemblyIdentity("Assembly1"), new string[] { @" public class C : Interface1 { void Interface1.Method1() { } void Interface1.Method2() { } void Interface1.Method3(bool b) { } void Interface1.Method4(Class1 c) { } string Interface1.Property1 { get; set; } string Interface1.Property2 { get; set; } string Interface1.Property3 { get; set; } Class1 Interface1.Property4 { get; set; } string Interface1.this[string x] { get { return null; } set { } } string Interface1.this[string x, string y] { get { return null; } set { } } string Interface1.this[string x, string y, string z] { get { return null; } set { } } Class1 Interface1.this[Class1 x, Class1 y, Class1 z, Class1 w] { get { return null; } set { } } event System.Action Interface1.Event1 { add { } remove { } } event System.Action Interface1.Event2 { add { } remove { } } event System.Action Interface1.Event3 { add { } remove { } } event Delegate1 Interface1.Event4 { add { } remove { } } } " }, new[] { Net451.mscorlib, TestReferences.SymbolsTests.V1.MTTestLib1.dll, }); comp1.VerifyDiagnostics(); var globalNamespace1 = comp1.GlobalNamespace; var classC = globalNamespace1.GetTypeMembers("C").Single(); var interfaceV1 = globalNamespace1.GetTypeMembers("Interface1").Single(); var interfaceV1Method1 = (MethodSymbol)interfaceV1.GetMembers("Method1").Single(); var interfaceV1Method2 = (MethodSymbol)interfaceV1.GetMembers("Method2").Single(); var interfaceV1Method3 = (MethodSymbol)interfaceV1.GetMembers("Method3").Single(); var interfaceV1Method4 = (MethodSymbol)interfaceV1.GetMembers("Method4").Single(); var interfaceV1Property1 = (PropertySymbol)interfaceV1.GetMembers("Property1").Single(); var interfaceV1Property2 = (PropertySymbol)interfaceV1.GetMembers("Property2").Single(); var interfaceV1Property3 = (PropertySymbol)interfaceV1.GetMembers("Property3").Single(); var interfaceV1Property4 = (PropertySymbol)interfaceV1.GetMembers("Property4").Single(); var interfaceV1Indexer1 = FindIndexerWithParameterCount(interfaceV1, 1); var interfaceV1Indexer2 = FindIndexerWithParameterCount(interfaceV1, 2); var interfaceV1Indexer3 = FindIndexerWithParameterCount(interfaceV1, 3); var interfaceV1Indexer4 = FindIndexerWithParameterCount(interfaceV1, 4); var interfaceV1Event1 = (EventSymbol)interfaceV1.GetMembers("Event1").Single(); var interfaceV1Event2 = (EventSymbol)interfaceV1.GetMembers("Event2").Single(); var interfaceV1Event3 = (EventSymbol)interfaceV1.GetMembers("Event3").Single(); var interfaceV1Event4 = (EventSymbol)interfaceV1.GetMembers("Event4").Single(); foreach (var member in classC.GetMembers()) { switch (member.Kind) { case SymbolKind.Method: var method = (MethodSymbol)member; if (method.MethodKind == MethodKind.ExplicitInterfaceImplementation) { Assert.Equal(interfaceV1, method.ExplicitInterfaceImplementations.Single().ContainingType); } break; case SymbolKind.Property: Assert.Equal(interfaceV1, ((PropertySymbol)member).ExplicitInterfaceImplementations.Single().ContainingType); break; case SymbolKind.Event: Assert.Equal(interfaceV1, ((EventSymbol)member).ExplicitInterfaceImplementations.Single().ContainingType); break; case SymbolKind.ErrorType: Assert.True(false); break; } } var comp2 = CreateCompilation( new AssemblyIdentity("Assembly2"), new string[] {@" public class D : C { } " }, new MetadataReference[] { Net451.mscorlib, TestReferences.SymbolsTests.V2.MTTestLib1.dll, new CSharpCompilationReference(comp1) }); Assert.False(comp2.GetDiagnostics().Any()); var globalNamespace2 = comp2.GlobalNamespace; var interfaceV2 = globalNamespace2.GetTypeMembers("Interface1").Single(); Assert.NotSame(interfaceV1, interfaceV2); var interfaceV2Method1 = (MethodSymbol)interfaceV2.GetMembers("Method1").Single(); //Method2 deleted var interfaceV2Method3 = (MethodSymbol)interfaceV2.GetMembers("Method3").Single(); var interfaceV2Method4 = (MethodSymbol)interfaceV2.GetMembers("Method4").Single(); var interfaceV2Property1 = (PropertySymbol)interfaceV2.GetMembers("Property1").Single(); //Property2 deleted var interfaceV2Property3 = (PropertySymbol)interfaceV2.GetMembers("Property3").Single(); var interfaceV2Property4 = (PropertySymbol)interfaceV2.GetMembers("Property4").Single(); var interfaceV2Indexer1 = FindIndexerWithParameterCount(interfaceV2, 1); //Two-parameter indexer deleted var interfaceV2Indexer3 = FindIndexerWithParameterCount(interfaceV2, 3); var interfaceV2Indexer4 = FindIndexerWithParameterCount(interfaceV2, 4); var interfaceV2Event1 = (EventSymbol)interfaceV2.GetMembers("Event1").Single(); //Event2 deleted var interfaceV2Event3 = (EventSymbol)interfaceV2.GetMembers("Event3").Single(); var interfaceV2Event4 = (EventSymbol)interfaceV2.GetMembers("Event4").Single(); var classD = globalNamespace2.GetTypeMembers("D").Single(); var retargetedClassC = classD.BaseType(); Assert.IsType<RetargetingNamedTypeSymbol>(retargetedClassC); Assert.Equal(interfaceV2, retargetedClassC.Interfaces().Single()); var retargetedClassCMethod1 = (MethodSymbol)retargetedClassC.GetMembers("Interface1.Method1").Single(); { Assert.IsType<RetargetingMethodSymbol>(retargetedClassCMethod1); Assert.Equal(MethodKind.ExplicitInterfaceImplementation, retargetedClassCMethod1.MethodKind); var retargetedClassCMethod1Impl = retargetedClassCMethod1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Method1, retargetedClassCMethod1Impl); Assert.NotSame(interfaceV1Method1, retargetedClassCMethod1Impl); Assert.Equal(retargetedClassCMethod1Impl.ToTestDisplayString(), interfaceV1Method1.ToTestDisplayString()); } var retargetedClassCMethod2 = (MethodSymbol)retargetedClassC.GetMembers("Interface1.Method2").Single(); { Assert.IsType<RetargetingMethodSymbol>(retargetedClassCMethod2); Assert.Equal(MethodKind.ExplicitInterfaceImplementation, retargetedClassCMethod2.MethodKind); //since the method is missing from V2 of the interface Assert.False(retargetedClassCMethod2.ExplicitInterfaceImplementations.Any()); } var retargetedClassCMethod3 = (MethodSymbol)retargetedClassC.GetMembers("Interface1.Method3").Single(); { Assert.IsType<RetargetingMethodSymbol>(retargetedClassCMethod3); Assert.Equal(MethodKind.ExplicitInterfaceImplementation, retargetedClassCMethod3.MethodKind); //since the method has a different signature in V2 of the interface Assert.False(retargetedClassCMethod3.ExplicitInterfaceImplementations.Any()); } var retargetedClassCMethod4 = (MethodSymbol)retargetedClassC.GetMembers("Interface1.Method4").Single(); { Assert.IsType<RetargetingMethodSymbol>(retargetedClassCMethod4); Assert.Equal(MethodKind.ExplicitInterfaceImplementation, retargetedClassCMethod4.MethodKind); var retargetedClassCMethod4Impl = retargetedClassCMethod4.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Method4, retargetedClassCMethod4Impl); Assert.NotSame(interfaceV1Method4, retargetedClassCMethod4Impl); Assert.Equal(retargetedClassCMethod4Impl.ToTestDisplayString(), interfaceV1Method4.ToTestDisplayString()); } var retargetedClassCProperty1 = (PropertySymbol)retargetedClassC.GetMembers("Interface1.Property1").Single(); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCProperty1); var retargetedClassCProperty1Impl = retargetedClassCProperty1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Property1, retargetedClassCProperty1Impl); Assert.NotSame(interfaceV1Property1, retargetedClassCProperty1Impl); Assert.Equal(retargetedClassCProperty1Impl.Name, interfaceV1Property1.Name); Assert.Equal(retargetedClassCProperty1Impl.Type.ToTestDisplayString(), interfaceV1Property1.Type.ToTestDisplayString()); } var retargetedClassCProperty2 = (PropertySymbol)retargetedClassC.GetMembers("Interface1.Property2").Single(); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCProperty2); //since the property is missing from V2 of the interface Assert.False(retargetedClassCProperty2.ExplicitInterfaceImplementations.Any()); } var retargetedClassCProperty3 = (PropertySymbol)retargetedClassC.GetMembers("Interface1.Property3").Single(); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCProperty3); //since the property has a different type in V2 of the interface Assert.False(retargetedClassCProperty3.ExplicitInterfaceImplementations.Any()); } var retargetedClassCProperty4 = (PropertySymbol)retargetedClassC.GetMembers("Interface1.Property4").Single(); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCProperty4); var retargetedClassCProperty4Impl = retargetedClassCProperty4.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Property4, retargetedClassCProperty4Impl); Assert.NotSame(interfaceV1Property4, retargetedClassCProperty4Impl); Assert.Equal(retargetedClassCProperty4Impl.Name, interfaceV1Property4.Name); Assert.Equal(retargetedClassCProperty4Impl.Type.ToTestDisplayString(), interfaceV1Property4.Type.ToTestDisplayString()); } var retargetedClassCIndexer1 = FindIndexerWithParameterCount(retargetedClassC, 1); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCIndexer1); var retargetedClassCIndexer1Impl = retargetedClassCIndexer1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Indexer1, retargetedClassCIndexer1Impl); Assert.NotSame(interfaceV1Indexer1, retargetedClassCIndexer1Impl); Assert.Equal(retargetedClassCIndexer1Impl.Name, interfaceV1Indexer1.Name); Assert.Equal(retargetedClassCIndexer1Impl.Type.ToTestDisplayString(), interfaceV1Indexer1.Type.ToTestDisplayString()); } var retargetedClassCIndexer2 = FindIndexerWithParameterCount(retargetedClassC, 2); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCIndexer2); //since the property is missing from V2 of the interface Assert.False(retargetedClassCIndexer2.ExplicitInterfaceImplementations.Any()); } var retargetedClassCIndexer3 = FindIndexerWithParameterCount(retargetedClassC, 3); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCIndexer3); //since the property has a different type in V2 of the interface Assert.False(retargetedClassCIndexer3.ExplicitInterfaceImplementations.Any()); } var retargetedClassCIndexer4 = FindIndexerWithParameterCount(retargetedClassC, 4); { Assert.IsType<RetargetingPropertySymbol>(retargetedClassCIndexer4); var retargetedClassCIndexer4Impl = retargetedClassCIndexer4.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Indexer4, retargetedClassCIndexer4Impl); Assert.NotSame(interfaceV1Indexer4, retargetedClassCIndexer4Impl); Assert.Equal(retargetedClassCIndexer4Impl.Name, interfaceV1Indexer4.Name); Assert.Equal(retargetedClassCIndexer4Impl.Type.ToTestDisplayString(), interfaceV1Indexer4.Type.ToTestDisplayString()); } var retargetedClassCEvent1 = (EventSymbol)retargetedClassC.GetMembers("Interface1.Event1").Single(); { Assert.IsType<RetargetingEventSymbol>(retargetedClassCEvent1); var retargetedClassCEvent1Impl = retargetedClassCEvent1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Event1, retargetedClassCEvent1Impl); Assert.NotSame(interfaceV1Event1, retargetedClassCEvent1Impl); Assert.Equal(retargetedClassCEvent1Impl.Name, interfaceV1Event1.Name); Assert.Equal(retargetedClassCEvent1Impl.Type.ToTestDisplayString(), interfaceV1Event1.Type.ToTestDisplayString()); } var retargetedClassCEvent2 = (EventSymbol)retargetedClassC.GetMembers("Interface1.Event2").Single(); { Assert.IsType<RetargetingEventSymbol>(retargetedClassCEvent2); //since the event is missing from V2 of the interface Assert.False(retargetedClassCEvent2.ExplicitInterfaceImplementations.Any()); } var retargetedClassCEvent3 = (EventSymbol)retargetedClassC.GetMembers("Interface1.Event3").Single(); { Assert.IsType<RetargetingEventSymbol>(retargetedClassCEvent3); //since the event has a different type in V2 of the interface Assert.False(retargetedClassCEvent3.ExplicitInterfaceImplementations.Any()); } var retargetedClassCEvent4 = (EventSymbol)retargetedClassC.GetMembers("Interface1.Event4").Single(); { Assert.IsType<RetargetingEventSymbol>(retargetedClassCEvent4); var retargetedClassCEvent4Impl = retargetedClassCEvent4.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Event4, retargetedClassCEvent4Impl); Assert.NotSame(interfaceV1Event4, retargetedClassCEvent4Impl); Assert.Equal(retargetedClassCEvent4Impl.Name, interfaceV1Event4.Name); Assert.Equal(retargetedClassCEvent4Impl.Type.ToTestDisplayString(), interfaceV1Event4.Type.ToTestDisplayString()); } } private static PropertySymbol FindIndexerWithParameterCount(NamedTypeSymbol type, int parameterCount) { return type.GetMembers().Where(s => s.Kind == SymbolKind.Property).Cast<PropertySymbol>().Single(p => p.Parameters.Length == parameterCount); } [Fact] public void ExplicitInterfaceImplementationRetargetingGeneric() { var comp1 = CreateCompilation( new AssemblyIdentity("Assembly1"), new string[] { @" public class C1<S> : Interface2<S> { void Interface2<S>.Method1(S s) { } S Interface2<S>.Property1 { get; set; } event System.Action<S> Interface2<S>.Event1 { add { } remove { } } } public class C2 : Interface2<int> { void Interface2<int>.Method1(int i) { } int Interface2<int>.Property1 { get; set; } event System.Action<int> Interface2<int>.Event1 { add { } remove { } } } public class C3 : Interface2<Class1> { void Interface2<Class1>.Method1(Class1 c) { } Class1 Interface2<Class1>.Property1 { get; set; } event System.Action<Class1> Interface2<Class1>.Event1 { add { } remove { } } } " }, new[] { Net451.mscorlib, TestReferences.SymbolsTests.V1.MTTestLib1.dll, }); var d = comp1.GetDiagnostics(); Assert.False(comp1.GetDiagnostics().Any()); var globalNamespace1 = comp1.GlobalNamespace; var classC1 = globalNamespace1.GetTypeMembers("C1").Single(); var classC2 = globalNamespace1.GetTypeMembers("C2").Single(); var classC3 = globalNamespace1.GetTypeMembers("C3").Single(); foreach (var diag in comp1.GetDiagnostics()) { Console.WriteLine(diag); } var comp2 = CreateCompilation( new AssemblyIdentity("Assembly2"), new string[] {@" public class D1<R> : C1<R> { } public class D2 : C2 { } public class D3 : C3 { } " }, new MetadataReference[] { Net451.mscorlib, TestReferences.SymbolsTests.V2.MTTestLib1.dll, new CSharpCompilationReference(comp1) }); Assert.False(comp2.GetDiagnostics().Any()); var globalNamespace2 = comp2.GlobalNamespace; var interfaceV2 = globalNamespace2.GetTypeMembers("Interface2").Single(); var interfaceV2Method1 = interfaceV2.GetMembers("Method1").Single(); var interfaceV2Property1 = interfaceV2.GetMembers("Property1").Single(); var interfaceV2Event1 = interfaceV2.GetMembers("Event1").Single(); var classD1 = globalNamespace2.GetTypeMembers("D1").Single(); var classD2 = globalNamespace2.GetTypeMembers("D2").Single(); var classD3 = globalNamespace2.GetTypeMembers("D3").Single(); var retargetedClassC1 = classD1.BaseType(); var retargetedClassC2 = classD2.BaseType(); var retargetedClassC3 = classD3.BaseType(); var retargetedClassC1Method1 = (MethodSymbol)retargetedClassC1.GetMembers("Interface2<S>.Method1").Single(); var retargetedClassC1Method1Impl = retargetedClassC1Method1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Method1, retargetedClassC1Method1Impl.OriginalDefinition); var retargetedClassC2Method1 = (MethodSymbol)retargetedClassC2.GetMembers("Interface2<System.Int32>.Method1").Single(); var retargetedClassC2Method1Impl = retargetedClassC2Method1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Method1, retargetedClassC2Method1Impl.OriginalDefinition); var retargetedClassC3Method1 = (MethodSymbol)retargetedClassC3.GetMembers("Interface2<Class1>.Method1").Single(); var retargetedClassC3Method1Impl = retargetedClassC3Method1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Method1, retargetedClassC3Method1Impl.OriginalDefinition); var retargetedClassC1Property1 = (PropertySymbol)retargetedClassC1.GetMembers("Interface2<S>.Property1").Single(); var retargetedClassC1Property1Impl = retargetedClassC1Property1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Property1, retargetedClassC1Property1Impl.OriginalDefinition); var retargetedClassC2Property1 = (PropertySymbol)retargetedClassC2.GetMembers("Interface2<System.Int32>.Property1").Single(); var retargetedClassC2Property1Impl = retargetedClassC2Property1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Property1, retargetedClassC2Property1Impl.OriginalDefinition); var retargetedClassC3Property1 = (PropertySymbol)retargetedClassC3.GetMembers("Interface2<Class1>.Property1").Single(); var retargetedClassC3Property1Impl = retargetedClassC3Property1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Property1, retargetedClassC3Property1Impl.OriginalDefinition); var retargetedClassC1Event1 = (EventSymbol)retargetedClassC1.GetMembers("Interface2<S>.Event1").Single(); var retargetedClassC1Event1Impl = retargetedClassC1Event1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Event1, retargetedClassC1Event1Impl.OriginalDefinition); var retargetedClassC2Event1 = (EventSymbol)retargetedClassC2.GetMembers("Interface2<System.Int32>.Event1").Single(); var retargetedClassC2Event1Impl = retargetedClassC2Event1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Event1, retargetedClassC2Event1Impl.OriginalDefinition); var retargetedClassC3Event1 = (EventSymbol)retargetedClassC3.GetMembers("Interface2<Class1>.Event1").Single(); var retargetedClassC3Event1Impl = retargetedClassC3Event1.ExplicitInterfaceImplementations.Single(); Assert.Same(interfaceV2Event1, retargetedClassC3Event1Impl.OriginalDefinition); } [Fact] public void ExplicitInterfaceImplementationRetargetingGenericType() { var source1 = @" public class C1<T> { public interface I1 { void M(T x); } } "; var ref1 = CreateEmptyCompilation("").ToMetadataReference(); var compilation1 = CreateCompilation(source1, references: new[] { ref1 }); var source2 = @" public class C2<U> : C1<U>.I1 { void C1<U>.I1.M(U x) {} } "; var compilation2 = CreateCompilation(source2, references: new[] { compilation1.ToMetadataReference(), ref1, CreateEmptyCompilation("").ToMetadataReference() }); var compilation3 = CreateCompilation("", references: new[] { compilation1.ToMetadataReference(), compilation2.ToMetadataReference() }); Assert.NotSame(compilation2.GetTypeByMetadataName("C1`1"), compilation3.GetTypeByMetadataName("C1`1")); var c2 = compilation3.GetTypeByMetadataName("C2`1"); Assert.IsType<RetargetingNamedTypeSymbol>(c2); var m = c2.GetMethod("C1<U>.I1.M"); Assert.Equal(c2.Interfaces().Single().GetMethod("M"), m.ExplicitInterfaceImplementations.Single()); } } }
-1
dotnet/roslyn
55,408
Update package references
CyrusNajmabadi
2021-08-04T19:12:45Z
2021-08-04T22:34:08Z
967cf7cf7be8478cce7cda728217eab8504f2863
d41ae79bb1a3f0deb2de2f3d67c976f795da9563
Update package references.
./src/Compilers/VisualBasic/Test/Semantic/Compilation/MyTemplateTests.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.CodeAnalysis.VisualBasic Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports Roslyn.Test.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests Public Class MyTemplateTests Inherits BasicTestBase Friend Shared Function GetMyTemplateTree(compilation As VisualBasicCompilation) As SyntaxTree Dim MyTemplate As SyntaxTree = Nothing For Each tree In compilation.AllSyntaxTrees If tree.IsMyTemplate Then ' should be only one My template Assert.Null(MyTemplate) MyTemplate = tree End If Next Return MyTemplate End Function <Fact()> Public Sub LoadMyTemplate() Dim sources = <compilation> <file name="c.vb"><![CDATA[ Module M1 Sub Main End Sub End Class ]]></file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndReferences(sources, references:={MsvbRef}, options:=TestOptions.ReleaseDll) Dim MyTemplate = GetMyTemplateTree(compilation) Assert.NotNull(MyTemplate) Dim text = MyTemplate.GetText.ToString Assert.Contains("Private ReadOnly m_Context As New Global.Microsoft.VisualBasic.MyServices.Internal.ContextValue(Of T)", text, StringComparison.Ordinal) End Sub <Fact()> Public Sub LoadMyTemplateNoRuntime() Dim sources = <compilation> <file name="c.vb"><![CDATA[ Module M1 Sub Main End Sub End Class ]]></file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndReferences(sources, references:={SystemCoreRef}, options:=TestOptions.ReleaseDll) Dim MyTemplate = GetMyTemplateTree(compilation) Dim text = MyTemplate.GetText.ToString Assert.Contains("Private ReadOnly m_Context As New Global.Microsoft.VisualBasic.MyServices.Internal.ContextValue(Of T)", text, StringComparison.Ordinal) End Sub <Fact()> Public Sub LoadMyTemplateRuntimeNotFile() Dim sources = <compilation> <file name="c.vb"><![CDATA[ Module M1 Sub Main End Sub End Class ]]></file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndReferences(sources, references:={SystemCoreRef, MsvbRef}, options:=TestOptions.ReleaseDll) Dim MyTemplate = GetMyTemplateTree(compilation) Dim text = MyTemplate.GetText.ToString Assert.Contains("Private ReadOnly m_Context As New Global.Microsoft.VisualBasic.MyServices.Internal.ContextValue(Of T)", text, StringComparison.Ordinal) End Sub <ConditionalFact(GetType(WindowsDesktopOnly), Reason:="https://github.com/dotnet/roslyn/issues/28044")> Public Sub MyConsoleApp() Dim sources = <compilation> <file name="c.vb"><![CDATA[ Imports System Module Module1 Sub Main() Console.WriteLine(My.Application.IsNetworkDeployed) End Sub End Module ]]></file> </compilation> Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) defines = defines.Add(KeyValuePairUtil.Create("_MyType", CObj("Console"))) Dim parseOptions = New VisualBasicParseOptions(preprocessorSymbols:=defines) Dim compilationOptions = TestOptions.ReleaseExe.WithParseOptions(parseOptions) Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(sources, options:=compilationOptions) CompileAndVerify(compilation, expectedOutput:="False") End Sub <ConditionalFact(GetType(WindowsDesktopOnly), GetType(HasValidFonts), Reason:="https://github.com/dotnet/roslyn/issues/28044")> Public Sub MyWinformApp() Dim sources = <compilation> <file name="c.vb"><![CDATA[ Imports System Module m1 Function Test As String Return My.Forms.Form1.Text End Function End Module Public Class Form1 Private Sub Form1_Load( sender As Object, e As EventArgs) Handles MyBase.Load Console.WriteLine(Test) Me.Close End Sub End Class <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class Form1 Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) Try If disposing AndAlso components IsNot Nothing Then components.Dispose() End If Finally MyBase.Dispose(disposing) End Try End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. <System.Diagnostics.DebuggerStepThrough()> _ Private Sub InitializeComponent() Me.SuspendLayout ' 'Form1 ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6!, 13!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.ClientSize = New System.Drawing.Size(292, 273) Me.Name = "Form1" Me.Text = "HelloWinform" Me.WindowState = System.Windows.Forms.FormWindowState.Minimized Me.ResumeLayout(false) End Sub End Class ]]></file> </compilation> Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.WindowsApplication) defines = defines.Add(KeyValuePairUtil.Create("_MyType", CObj("WindowsForms"))) Dim parseOptions = New VisualBasicParseOptions(preprocessorSymbols:=defines) Dim compilationOptions = TestOptions.ReleaseExe.WithOutputKind(OutputKind.WindowsApplication).WithParseOptions(parseOptions).WithMainTypeName("Form1") Dim compilation = CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(sources, {SystemWindowsFormsRef, SystemDrawingRef}, compilationOptions) compilation.VerifyDiagnostics() CompileAndVerify(compilation, expectedOutput:="HelloWinform") End Sub <Fact()> Public Sub MyApplicationSemanticInfo() Dim sources = <compilation> <file name="a.vb"><![CDATA[ Imports System Module Module1 Sub Main() Console.WriteLine(My.Application.IsNetworkDeployed)'BIND:"Application" End Sub End Module ]]></file> </compilation> Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) defines = defines.Add(KeyValuePairUtil.Create("_MyType", CObj("Console"))) Dim parseOptions = New VisualBasicParseOptions(preprocessorSymbols:=defines) Dim compilationOptions = TestOptions.ReleaseExe.WithParseOptions(parseOptions) Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(sources, options:=compilationOptions) Dim semanticSummary = CompilationUtils.GetSemanticInfoSummary(Of IdentifierNameSyntax)(compilation, "a.vb") Assert.Equal("My.MyApplication", semanticSummary.Type.ToTestDisplayString()) Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) Assert.Equal("My.MyApplication", semanticSummary.ConvertedType.ToTestDisplayString()) Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) Assert.Equal(ConversionKind.Identity, semanticSummary.ImplicitConversion.Kind) Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) Assert.Equal(0, semanticSummary.CandidateSymbols.Length) Assert.Null(semanticSummary.Alias) Assert.Equal(0, semanticSummary.MemberGroup.Length) Assert.False(semanticSummary.ConstantValue.HasValue) Dim sym = semanticSummary.Symbol Assert.IsType(Of MyTemplateLocation)(sym.Locations(0)) Assert.True(sym.DeclaringSyntaxReferences.IsEmpty) End Sub <Fact()> Public Sub MySettingExtraMember() Dim sources = <compilation> <file name="a.vb"><![CDATA[ Imports System Imports System.Collections.Generic Module Module1 Sub Main() My.Application.Goo()'BIND:"Goo" End Sub End Module Namespace My Partial Class MyApplication Public Function Goo() As Integer Return 1 End Function End Class End Namespace ]]></file> </compilation> Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) defines = defines.Add(KeyValuePairUtil.Create("_MyType", CObj("Console"))) Dim parseOptions = New VisualBasicParseOptions(preprocessorSymbols:=defines) Dim compilationOptions = TestOptions.ReleaseExe.WithParseOptions(parseOptions) Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(sources, options:=compilationOptions) Dim semanticSummary = CompilationUtils.GetSemanticInfoSummary(Of IdentifierNameSyntax)(compilation, "a.vb") Assert.Null(semanticSummary.Type) Assert.Null(semanticSummary.ConvertedType) Assert.Equal(ConversionKind.Identity, semanticSummary.ImplicitConversion.Kind) Assert.Equal("Function My.MyApplication.Goo() As System.Int32", semanticSummary.Symbol.ToTestDisplayString()) Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) Assert.Equal(0, semanticSummary.CandidateSymbols.Length) Assert.Null(semanticSummary.Alias) Assert.Equal(1, semanticSummary.MemberGroup.Length) Dim sortedMethodGroup = semanticSummary.MemberGroup.AsEnumerable().OrderBy(Function(s) s.ToTestDisplayString()).ToArray() Assert.Equal("Function My.MyApplication.Goo() As System.Int32", sortedMethodGroup(0).ToTestDisplayString()) Assert.False(semanticSummary.ConstantValue.HasValue) Dim sym = semanticSummary.Symbol Assert.IsType(Of SourceLocation)(sym.Locations(0)) Assert.Equal("Public Function Goo() As Integer", sym.DeclaringSyntaxReferences(0).GetSyntax().ToString()) Dim parent = sym.ContainingType Assert.Equal(1, parent.Locations.OfType(Of SourceLocation).Count) Assert.Equal(1, parent.Locations.OfType(Of MyTemplateLocation).Count) Assert.Equal("Partial Class MyApplication", parent.DeclaringSyntaxReferences.Single.GetSyntax.ToString) End Sub End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.CodeAnalysis.VisualBasic Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports Roslyn.Test.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests Public Class MyTemplateTests Inherits BasicTestBase Friend Shared Function GetMyTemplateTree(compilation As VisualBasicCompilation) As SyntaxTree Dim MyTemplate As SyntaxTree = Nothing For Each tree In compilation.AllSyntaxTrees If tree.IsMyTemplate Then ' should be only one My template Assert.Null(MyTemplate) MyTemplate = tree End If Next Return MyTemplate End Function <Fact()> Public Sub LoadMyTemplate() Dim sources = <compilation> <file name="c.vb"><![CDATA[ Module M1 Sub Main End Sub End Class ]]></file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndReferences(sources, references:={MsvbRef}, options:=TestOptions.ReleaseDll) Dim MyTemplate = GetMyTemplateTree(compilation) Assert.NotNull(MyTemplate) Dim text = MyTemplate.GetText.ToString Assert.Contains("Private ReadOnly m_Context As New Global.Microsoft.VisualBasic.MyServices.Internal.ContextValue(Of T)", text, StringComparison.Ordinal) End Sub <Fact()> Public Sub LoadMyTemplateNoRuntime() Dim sources = <compilation> <file name="c.vb"><![CDATA[ Module M1 Sub Main End Sub End Class ]]></file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndReferences(sources, references:={SystemCoreRef}, options:=TestOptions.ReleaseDll) Dim MyTemplate = GetMyTemplateTree(compilation) Dim text = MyTemplate.GetText.ToString Assert.Contains("Private ReadOnly m_Context As New Global.Microsoft.VisualBasic.MyServices.Internal.ContextValue(Of T)", text, StringComparison.Ordinal) End Sub <Fact()> Public Sub LoadMyTemplateRuntimeNotFile() Dim sources = <compilation> <file name="c.vb"><![CDATA[ Module M1 Sub Main End Sub End Class ]]></file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndReferences(sources, references:={SystemCoreRef, MsvbRef}, options:=TestOptions.ReleaseDll) Dim MyTemplate = GetMyTemplateTree(compilation) Dim text = MyTemplate.GetText.ToString Assert.Contains("Private ReadOnly m_Context As New Global.Microsoft.VisualBasic.MyServices.Internal.ContextValue(Of T)", text, StringComparison.Ordinal) End Sub <ConditionalFact(GetType(WindowsDesktopOnly), Reason:="https://github.com/dotnet/roslyn/issues/28044")> Public Sub MyConsoleApp() Dim sources = <compilation> <file name="c.vb"><![CDATA[ Imports System Module Module1 Sub Main() Console.WriteLine(My.Application.IsNetworkDeployed) End Sub End Module ]]></file> </compilation> Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) defines = defines.Add(KeyValuePairUtil.Create("_MyType", CObj("Console"))) Dim parseOptions = New VisualBasicParseOptions(preprocessorSymbols:=defines) Dim compilationOptions = TestOptions.ReleaseExe.WithParseOptions(parseOptions) Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(sources, options:=compilationOptions) CompileAndVerify(compilation, expectedOutput:="False") End Sub <ConditionalFact(GetType(WindowsDesktopOnly), GetType(HasValidFonts), Reason:="https://github.com/dotnet/roslyn/issues/28044")> Public Sub MyWinformApp() Dim sources = <compilation> <file name="c.vb"><![CDATA[ Imports System Module m1 Function Test As String Return My.Forms.Form1.Text End Function End Module Public Class Form1 Private Sub Form1_Load( sender As Object, e As EventArgs) Handles MyBase.Load Console.WriteLine(Test) Me.Close End Sub End Class <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class Form1 Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(ByVal disposing As Boolean) Try If disposing AndAlso components IsNot Nothing Then components.Dispose() End If Finally MyBase.Dispose(disposing) End Try End Sub 'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. 'Do not modify it using the code editor. <System.Diagnostics.DebuggerStepThrough()> _ Private Sub InitializeComponent() Me.SuspendLayout ' 'Form1 ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6!, 13!) Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font Me.ClientSize = New System.Drawing.Size(292, 273) Me.Name = "Form1" Me.Text = "HelloWinform" Me.WindowState = System.Windows.Forms.FormWindowState.Minimized Me.ResumeLayout(false) End Sub End Class ]]></file> </compilation> Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.WindowsApplication) defines = defines.Add(KeyValuePairUtil.Create("_MyType", CObj("WindowsForms"))) Dim parseOptions = New VisualBasicParseOptions(preprocessorSymbols:=defines) Dim compilationOptions = TestOptions.ReleaseExe.WithOutputKind(OutputKind.WindowsApplication).WithParseOptions(parseOptions).WithMainTypeName("Form1") Dim compilation = CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(sources, {SystemWindowsFormsRef, SystemDrawingRef}, compilationOptions) compilation.VerifyDiagnostics() CompileAndVerify(compilation, expectedOutput:="HelloWinform") End Sub <Fact()> Public Sub MyApplicationSemanticInfo() Dim sources = <compilation> <file name="a.vb"><![CDATA[ Imports System Module Module1 Sub Main() Console.WriteLine(My.Application.IsNetworkDeployed)'BIND:"Application" End Sub End Module ]]></file> </compilation> Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) defines = defines.Add(KeyValuePairUtil.Create("_MyType", CObj("Console"))) Dim parseOptions = New VisualBasicParseOptions(preprocessorSymbols:=defines) Dim compilationOptions = TestOptions.ReleaseExe.WithParseOptions(parseOptions) Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(sources, options:=compilationOptions) Dim semanticSummary = CompilationUtils.GetSemanticInfoSummary(Of IdentifierNameSyntax)(compilation, "a.vb") Assert.Equal("My.MyApplication", semanticSummary.Type.ToTestDisplayString()) Assert.Equal(TypeKind.Class, semanticSummary.Type.TypeKind) Assert.Equal("My.MyApplication", semanticSummary.ConvertedType.ToTestDisplayString()) Assert.Equal(TypeKind.Class, semanticSummary.ConvertedType.TypeKind) Assert.Equal(ConversionKind.Identity, semanticSummary.ImplicitConversion.Kind) Assert.Equal(CandidateReason.None, semanticSummary.CandidateReason) Assert.Equal(0, semanticSummary.CandidateSymbols.Length) Assert.Null(semanticSummary.Alias) Assert.Equal(0, semanticSummary.MemberGroup.Length) Assert.False(semanticSummary.ConstantValue.HasValue) Dim sym = semanticSummary.Symbol Assert.IsType(Of MyTemplateLocation)(sym.Locations(0)) Assert.True(sym.DeclaringSyntaxReferences.IsEmpty) End Sub <Fact()> Public Sub MySettingExtraMember() Dim sources = <compilation> <file name="a.vb"><![CDATA[ Imports System Imports System.Collections.Generic Module Module1 Sub Main() My.Application.Goo()'BIND:"Goo" End Sub End Module Namespace My Partial Class MyApplication Public Function Goo() As Integer Return 1 End Function End Class End Namespace ]]></file> </compilation> Dim defines = PredefinedPreprocessorSymbols.AddPredefinedPreprocessorSymbols(OutputKind.ConsoleApplication) defines = defines.Add(KeyValuePairUtil.Create("_MyType", CObj("Console"))) Dim parseOptions = New VisualBasicParseOptions(preprocessorSymbols:=defines) Dim compilationOptions = TestOptions.ReleaseExe.WithParseOptions(parseOptions) Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(sources, options:=compilationOptions) Dim semanticSummary = CompilationUtils.GetSemanticInfoSummary(Of IdentifierNameSyntax)(compilation, "a.vb") Assert.Null(semanticSummary.Type) Assert.Null(semanticSummary.ConvertedType) Assert.Equal(ConversionKind.Identity, semanticSummary.ImplicitConversion.Kind) Assert.Equal("Function My.MyApplication.Goo() As System.Int32", semanticSummary.Symbol.ToTestDisplayString()) Assert.Equal(SymbolKind.Method, semanticSummary.Symbol.Kind) Assert.Equal(0, semanticSummary.CandidateSymbols.Length) Assert.Null(semanticSummary.Alias) Assert.Equal(1, semanticSummary.MemberGroup.Length) Dim sortedMethodGroup = semanticSummary.MemberGroup.AsEnumerable().OrderBy(Function(s) s.ToTestDisplayString()).ToArray() Assert.Equal("Function My.MyApplication.Goo() As System.Int32", sortedMethodGroup(0).ToTestDisplayString()) Assert.False(semanticSummary.ConstantValue.HasValue) Dim sym = semanticSummary.Symbol Assert.IsType(Of SourceLocation)(sym.Locations(0)) Assert.Equal("Public Function Goo() As Integer", sym.DeclaringSyntaxReferences(0).GetSyntax().ToString()) Dim parent = sym.ContainingType Assert.Equal(1, parent.Locations.OfType(Of SourceLocation).Count) Assert.Equal(1, parent.Locations.OfType(Of MyTemplateLocation).Count) Assert.Equal("Partial Class MyApplication", parent.DeclaringSyntaxReferences.Single.GetSyntax.ToString) End Sub End Class End Namespace
-1
dotnet/roslyn
55,408
Update package references
CyrusNajmabadi
2021-08-04T19:12:45Z
2021-08-04T22:34:08Z
967cf7cf7be8478cce7cda728217eab8504f2863
d41ae79bb1a3f0deb2de2f3d67c976f795da9563
Update package references.
./src/VisualStudio/CSharp/Impl/CodeModel/CSharpCodeModelServiceFactory.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Composition; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Editor; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel; using Microsoft.VisualStudio.Text.Editor; namespace Microsoft.VisualStudio.LanguageServices.CSharp.CodeModel { [ExportLanguageServiceFactory(typeof(ICodeModelService), LanguageNames.CSharp), Shared] internal partial class CSharpCodeModelServiceFactory : ILanguageServiceFactory { private readonly IEditorOptionsFactoryService _editorOptionsFactoryService; private readonly IEnumerable<IRefactorNotifyService> _refactorNotifyServices; private readonly IThreadingContext _threadingContext; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public CSharpCodeModelServiceFactory( IEditorOptionsFactoryService editorOptionsFactoryService, [ImportMany] IEnumerable<IRefactorNotifyService> refactorNotifyServices, IThreadingContext threadingContext) { _editorOptionsFactoryService = editorOptionsFactoryService; _refactorNotifyServices = refactorNotifyServices; _threadingContext = threadingContext; } public ILanguageService CreateLanguageService(HostLanguageServices provider) => new CSharpCodeModelService(provider, _editorOptionsFactoryService, _refactorNotifyServices, _threadingContext); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Composition; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Editor; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel; using Microsoft.VisualStudio.Text.Editor; namespace Microsoft.VisualStudio.LanguageServices.CSharp.CodeModel { [ExportLanguageServiceFactory(typeof(ICodeModelService), LanguageNames.CSharp), Shared] internal partial class CSharpCodeModelServiceFactory : ILanguageServiceFactory { private readonly IEditorOptionsFactoryService _editorOptionsFactoryService; private readonly IEnumerable<IRefactorNotifyService> _refactorNotifyServices; private readonly IThreadingContext _threadingContext; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public CSharpCodeModelServiceFactory( IEditorOptionsFactoryService editorOptionsFactoryService, [ImportMany] IEnumerable<IRefactorNotifyService> refactorNotifyServices, IThreadingContext threadingContext) { _editorOptionsFactoryService = editorOptionsFactoryService; _refactorNotifyServices = refactorNotifyServices; _threadingContext = threadingContext; } public ILanguageService CreateLanguageService(HostLanguageServices provider) => new CSharpCodeModelService(provider, _editorOptionsFactoryService, _refactorNotifyServices, _threadingContext); } }
-1
dotnet/roslyn
55,408
Update package references
CyrusNajmabadi
2021-08-04T19:12:45Z
2021-08-04T22:34:08Z
967cf7cf7be8478cce7cda728217eab8504f2863
d41ae79bb1a3f0deb2de2f3d67c976f795da9563
Update package references.
./src/Compilers/VisualBasic/Test/Semantic/Semantics/UnaryOperators.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.IO Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.SpecialType Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic Imports Microsoft.CodeAnalysis.VisualBasic.OverloadResolution Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports Roslyn.Test.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics Public Class UnaryOperators Inherits BasicTestBase <Fact> <WorkItem(33564, "https://github.com/dotnet/roslyn/issues/33564")> Public Sub Test1() Dim source = <compilation name="UnaryOperator1"> <file name="a.vb"> Option Strict Off Module Module1 Sub Main() Dim Bo As Boolean Dim SB As SByte Dim By As Byte Dim Sh As Short Dim US As UShort Dim [In] As Integer Dim UI As UInteger Dim Lo As Long Dim UL As ULong Dim De As Decimal Dim Si As Single Dim [Do] As Double Dim St As String Dim Ob As Object Dim Tc As System.TypeCode Bo = False SB = -1 By = 2 Sh = -3 US = 4 [In] = -5 UI = 6 Lo = -7 UL = 8 De = -9D Si = 10 [Do] = -11 St = "12" Ob = -13 System.Console.WriteLine("Unary Minus") PrintResult(-Nothing) PrintResult(-Bo) PrintResult(-SB) PrintResult(-By) PrintResult(-Sh) PrintResult(-US) PrintResult(-[In]) PrintResult(-UI) PrintResult(-Lo) PrintResult(-UL) PrintResult(-De) PrintResult(-Si) PrintResult(-[Do]) PrintResult(-St) PrintResult(-Ob) PrintResult(-Tc) PrintResult(-True) PrintResult(-False) PrintResult(-System.SByte.MaxValue) PrintResult(-System.Byte.MaxValue) PrintResult(-14S) PrintResult(-15US) PrintResult(-16I) PrintResult(-17UI) PrintResult(-19L) PrintResult(-20UL) PrintResult(-System.Single.MaxValue) PrintResult(-22.0) PrintResult(-23D) PrintResult(-"24") System.Console.WriteLine("") System.Console.WriteLine("Unary Plus") PrintResult(+Nothing) PrintResult(+Bo) PrintResult(+SB) PrintResult(+By) PrintResult(+Sh) PrintResult(+US) PrintResult(+[In]) PrintResult(+UI) PrintResult(+Lo) PrintResult(+UL) PrintResult(+De) PrintResult(+Si) PrintResult(+[Do]) PrintResult(+St) PrintResult(+Ob) PrintResult(+Tc) PrintResult(+True) PrintResult(+False) PrintResult(+System.SByte.MaxValue) PrintResult(+System.Byte.MaxValue) PrintResult(+14S) PrintResult(+15US) PrintResult(+16I) PrintResult(+17UI) PrintResult(+19L) PrintResult(+20UL) PrintResult(+System.Single.MaxValue) PrintResult(+22.0) PrintResult(+23D) PrintResult(+"24") System.Console.WriteLine("") System.Console.WriteLine("Logical Not") PrintResult(Not Nothing) PrintResult(Not Bo) PrintResult(Not SB) PrintResult(Not By) PrintResult(Not Sh) PrintResult(Not US) PrintResult(Not [In]) PrintResult(Not UI) PrintResult(Not Lo) PrintResult(Not UL) PrintResult(Not De) PrintResult(Not Si) PrintResult(Not [Do]) PrintResult(Not St) PrintResult(Not Ob) PrintResult(Not Tc) PrintResult(Not True) PrintResult(Not False) PrintResult(Not System.SByte.MaxValue) PrintResult(Not System.Byte.MaxValue) PrintResult(Not 14S) PrintResult(Not 15US) PrintResult(Not 16I) PrintResult(Not 17UI) PrintResult(Not 19L) PrintResult(Not 20UL) PrintResult(Not 21.0F) PrintResult(Not 22.0) PrintResult(Not 23D) PrintResult(Not "24") End Sub Sub PrintResult(val As Boolean) System.Console.WriteLine("Boolean: {0}", val) End Sub Sub PrintResult(val As SByte) System.Console.WriteLine("SByte: {0}", val) End Sub Sub PrintResult(val As Byte) System.Console.WriteLine("Byte: {0}", val) End Sub Sub PrintResult(val As Short) System.Console.WriteLine("Short: {0}", val) End Sub Sub PrintResult(val As UShort) System.Console.WriteLine("UShort: {0}", val) End Sub Sub PrintResult(val As Integer) System.Console.WriteLine("Integer: {0}", val) End Sub Sub PrintResult(val As UInteger) System.Console.WriteLine("UInteger: {0}", val) End Sub Sub PrintResult(val As Long) System.Console.WriteLine("Long: {0}", val) End Sub Sub PrintResult(val As ULong) System.Console.WriteLine("ULong: {0}", val) End Sub Sub PrintResult(val As Decimal) System.Console.WriteLine("Decimal: {0}", val) End Sub Sub PrintResult(val As Single) System.Console.WriteLine("Single: {0}", val.ToString("G7", System.Globalization.CultureInfo.InvariantCulture)) End Sub Sub PrintResult(val As Double) System.Console.WriteLine("Double: {0}", val) End Sub 'Sub PrintResult(val As Date) ' System.Console.WriteLine("Date: {0}", val) 'End Sub Sub PrintResult(val As Char) System.Console.WriteLine("Char: {0}", val) End Sub Sub PrintResult(val As String) System.Console.WriteLine("String: ") System.Console.WriteLine(val) End Sub Sub PrintResult(val As Object) System.Console.WriteLine("Object: {0}", val) End Sub Sub PrintResult(val As System.TypeCode) System.Console.WriteLine("TypeCode: {0}", val) End Sub End Module </file> </compilation> Dim expected = <![CDATA[ Unary Minus Integer: 0 Short: 0 SByte: 1 Short: -2 Short: 3 Integer: -4 Integer: 5 Long: -6 Long: 7 Decimal: -8 Decimal: 9 Single: -10 Double: 11 Double: -12 Object: 13 Integer: 0 Short: 1 Short: 0 SByte: -127 Short: -255 Short: -14 Integer: -15 Integer: -16 Long: -17 Long: -19 Decimal: -20 Single: -3.402823E+38 Double: -22 Decimal: -23 Double: -24 Unary Plus Integer: 0 Short: 0 SByte: -1 Byte: 2 Short: -3 UShort: 4 Integer: -5 UInteger: 6 Long: -7 ULong: 8 Decimal: -9 Single: 10 Double: -11 Double: 12 Object: -13 Integer: 0 Short: -1 Short: 0 SByte: 127 Byte: 255 Short: 14 UShort: 15 Integer: 16 UInteger: 17 Long: 19 ULong: 20 Single: 3.402823E+38 Double: 22 Decimal: 23 Double: 24 Logical Not Integer: -1 Boolean: True SByte: 0 Byte: 253 Short: 2 UShort: 65531 Integer: 4 UInteger: 4294967289 Long: 6 ULong: 18446744073709551607 Long: 8 Long: -11 Long: 10 Long: -13 Object: 12 TypeCode: -1 Boolean: False Boolean: True SByte: -128 Byte: 0 Short: -15 UShort: 65520 Integer: -17 UInteger: 4294967278 Long: -20 ULong: 18446744073709551595 Long: -22 Long: -23 Long: -24 Long: -25 ]]> Dim c1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe) Assert.True(c1.Options.CheckOverflow) CompileAndVerify(c1, expected) c1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOverflowChecks(False)) Assert.False(c1.Options.CheckOverflow) CompileAndVerify(c1, expected) End Sub <Fact> Public Sub Test2() Dim compilationDef = <compilation name="Test2"> <file name="a.vb"> Option Strict On Module Module1 Sub Main() Dim Da As Date Dim Ch As Char Dim Ob As Object Dim result As Object result = -Da result = -Ch result = -Ob result = +Da result = +Ch result = +Ob result = Not Da result = Not Ch result = Not Ob result = --Da End Sub End Module </file> </compilation> Dim c1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef) CompilationUtils.AssertTheseDiagnostics(c1, <expected> BC30487: Operator '-' is not defined for type 'Date'. result = -Da ~~~ BC30487: Operator '-' is not defined for type 'Char'. result = -Ch ~~~ BC30038: Option Strict On prohibits operands of type Object for operator '-'. result = -Ob ~~ BC42104: Variable 'Ob' is used before it has been assigned a value. A null reference exception could result at runtime. result = -Ob ~~ BC30487: Operator '+' is not defined for type 'Date'. result = +Da ~~~ BC30487: Operator '+' is not defined for type 'Char'. result = +Ch ~~~ BC30038: Option Strict On prohibits operands of type Object for operator '+'. result = +Ob ~~ BC30487: Operator 'Not' is not defined for type 'Date'. result = Not Da ~~~~~~ BC30487: Operator 'Not' is not defined for type 'Char'. result = Not Ch ~~~~~~ BC30038: Option Strict On prohibits operands of type Object for operator 'Not'. result = Not Ob ~~ BC30487: Operator '-' is not defined for type 'Date'. result = --Da ~~~ </expected>) End Sub <Fact> Public Sub Test3() Dim c1 = VisualBasicCompilation.Create("Test3", syntaxTrees:={VisualBasicSyntaxTree.ParseText( <text> Option Strict Off Module Module1 Interface I1 End Interface Function Main() As I1 Dim result As Object result = -Nothing End Function End Module</text>.Value )}, references:=Nothing, options:=TestOptions.ReleaseDll) CompilationUtils.AssertTheseDiagnostics(c1, <expected> BC31091: Import of type 'Object' from assembly or module 'Test3.dll' failed. Module Module1 ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute..ctor' is not defined. Module Module1 ~~~~~~~ BC30002: Type 'System.Object' is not defined. Dim result As Object ~~~~~~ BC30002: Type 'System.Int32' is not defined. result = -Nothing ~~~~~~~ BC42105: Function 'Main' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. End Function ~~~~~~~~~~~~ </expected>) End Sub <Fact> Public Sub Test4() Dim source = <compilation name="UnaryOperator4"> <file name="a.vb"> Option Strict Off Imports System Module Module1 Sub Main() Dim Ob As Object Ob = -System.Byte.MinValue Ob = -System.Byte.MaxValue Ob = -System.SByte.MinValue Ob = -System.SByte.MaxValue Ob = -Int16.MinValue Ob = -Int16.MaxValue Ob = -UInt16.MaxValue Ob = -UInt16.MinValue Ob = -Int32.MinValue Ob = -Int32.MaxValue Ob = -UInt32.MaxValue Ob = -UInt32.MinValue Ob = -Int64.MinValue Ob = -Int64.MaxValue Ob = -UInt64.MaxValue Ob = -UInt64.MinValue Ob = -System.Decimal.MaxValue Ob = -System.Decimal.MinValue Ob = -System.Single.MaxValue Ob = -System.Single.MinValue Ob = -System.Double.MaxValue Ob = -System.Double.MinValue End Sub End Module </file> </compilation> Dim expected = <expected> BC30439: Constant expression not representable in type 'SByte'. Ob = -System.SByte.MinValue ~~~~~~~~~~~~~~~~~~~~~~ BC30439: Constant expression not representable in type 'Short'. Ob = -Int16.MinValue ~~~~~~~~~~~~~~~ BC30439: Constant expression not representable in type 'Integer'. Ob = -Int32.MinValue ~~~~~~~~~~~~~~~ BC30439: Constant expression not representable in type 'Long'. Ob = -Int64.MinValue ~~~~~~~~~~~~~~~ </expected> Dim c1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source) Assert.True(c1.Options.CheckOverflow) CompilationUtils.AssertTheseDiagnostics(c1, expected) Dim c2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOverflowChecks(False)) Assert.False(c2.Options.CheckOverflow) CompilationUtils.AssertTheseDiagnostics(c2, expected) End Sub <Fact> Public Sub Test5() Dim compilationDef = <compilation name="UnaryOperator2"> <file name="a.vb"> Imports System Module Module1 Sub Main() Dim Ob As Object = Nothing Ob = -Ob Ob = +Ob Ob = Not Ob End Sub End Module </file> </compilation> Dim expected = <expected> BC42019: Operands of type Object used for operator '-'; runtime errors could occur. Ob = -Ob ~~ BC42019: Operands of type Object used for operator '+'; runtime errors could occur. Ob = +Ob ~~ BC42019: Operands of type Object used for operator 'Not'; runtime errors could occur. Ob = Not Ob ~~ </expected> Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) CompilationUtils.AssertTheseDiagnostics(compilation, expected) End Sub <WorkItem(544620, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544620")> <Fact()> Public Sub Bug13088() Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime( <compilation> <file name="a.vb"><![CDATA[ Module Program Public Const Z1 As Integer = +2147483648 'BIND:"Public Const Z1 As Integer = +2147483648" Public Const Z2 As Integer = (-(-2147483648)) 'BIND1:"Public Const Z2 As Integer = (-(-2147483648))" Sub Main() End Sub End Module ]]></file> </compilation>) VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_ExpressionOverflow1, "+2147483648").WithArguments("Integer"), Diagnostic(ERRID.ERR_ExpressionOverflow1, "(-(-2147483648))").WithArguments("Integer")) Dim symbol = compilation.GlobalNamespace.GetTypeMembers("Program").Single.GetMembers("Z1").Single Assert.False(DirectCast(symbol, FieldSymbol).HasConstantValue) symbol = compilation.GlobalNamespace.GetTypeMembers("Program").Single.GetMembers("Z2").Single Assert.False(DirectCast(symbol, FieldSymbol).HasConstantValue) End Sub <Fact()> Public Sub IntrinsicSymbols() Dim operators() As UnaryOperatorKind = { UnaryOperatorKind.Plus, UnaryOperatorKind.Minus, UnaryOperatorKind.Not } Dim opTokens = (From op In operators Select SyntaxFacts.GetText(OverloadResolution.GetOperatorTokenKind(op))).ToArray() Dim typeNames() As String = { "System.Object", "System.String", "System.Double", "System.SByte", "System.Int16", "System.Int32", "System.Int64", "System.Decimal", "System.Single", "System.Byte", "System.UInt16", "System.UInt32", "System.UInt64", "System.Boolean", "System.Char", "System.DateTime", "System.TypeCode", "System.StringComparison", "System.Guid" } Dim builder As New System.Text.StringBuilder Dim n As Integer = 0 For Each arg1 In typeNames n += 1 builder.AppendFormat( "Sub Test{1}(x1 as {0}, x2 as {0}?)" & vbCrLf, arg1, n) Dim k As Integer = 0 For Each opToken In opTokens builder.AppendFormat( " Dim z{0}_1 = {1} x1" & vbCrLf & " Dim z{0}_2 = {1} x2" & vbCrLf & " If {1} x1" & vbCrLf & " End If" & vbCrLf & " If {1} x2" & vbCrLf & " End If" & vbCrLf, k, opToken) k += 1 Next builder.Append( "End Sub" & vbCrLf) Next Dim source = <compilation> <file name="a.vb"> Class Module1 <%= New System.Xml.Linq.XCData(builder.ToString()) %> End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseDll.WithOverflowChecks(True)) Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() Dim semanticModel = compilation.GetSemanticModel(tree) Dim nodes = (From node In tree.GetRoot().DescendantNodes() Select node = TryCast(node, UnaryExpressionSyntax) Where node IsNot Nothing).ToArray() n = 0 For Each name In typeNames Dim type = compilation.GetTypeByMetadataName(name) For Each op In operators TestIntrinsicSymbol( op, type, compilation, semanticModel, nodes(n), nodes(n + 1), nodes(n + 2), nodes(n + 3)) n += 4 Next Next Assert.Equal(n, nodes.Length) End Sub Private Sub TestIntrinsicSymbol( op As UnaryOperatorKind, type As TypeSymbol, compilation As VisualBasicCompilation, semanticModel As SemanticModel, node1 As UnaryExpressionSyntax, node2 As UnaryExpressionSyntax, node3 As UnaryExpressionSyntax, node4 As UnaryExpressionSyntax ) Dim info1 As SymbolInfo = semanticModel.GetSymbolInfo(node1) Assert.Equal(CandidateReason.None, info1.CandidateReason) Assert.Equal(0, info1.CandidateSymbols.Length) Dim symbol1 = DirectCast(info1.Symbol, MethodSymbol) Dim symbol2 = semanticModel.GetSymbolInfo(node2).Symbol Dim symbol3 = DirectCast(semanticModel.GetSymbolInfo(node3).Symbol, MethodSymbol) Dim symbol4 = semanticModel.GetSymbolInfo(node4).Symbol Assert.Equal(symbol1, symbol3) If symbol1 IsNot Nothing Then Assert.NotSame(symbol1, symbol3) Assert.Equal(symbol1.GetHashCode(), symbol3.GetHashCode()) Assert.Equal(symbol1.Parameters(0), symbol3.Parameters(0)) Assert.Equal(symbol1.Parameters(0).GetHashCode(), symbol3.Parameters(0).GetHashCode()) End If Assert.Equal(symbol2, symbol4) Dim special As SpecialType = type.GetEnumUnderlyingTypeOrSelf().SpecialType Dim resultType As SpecialType = OverloadResolution.ResolveNotLiftedIntrinsicUnaryOperator(op, special) If resultType = SpecialType.None Then Assert.Null(symbol1) Assert.Null(symbol2) Assert.Null(symbol3) Assert.Null(symbol4) Return End If Assert.NotNull(symbol1) Dim containerName As String = compilation.GetSpecialType(resultType).ToTestDisplayString() Dim returnName As String = containerName If op = UnaryOperatorKind.Not AndAlso type.IsEnumType() Then containerName = type.ToTestDisplayString() returnName = containerName End If Assert.Equal(String.Format("Function {0}.{1}(value As {0}) As {2}", containerName, OverloadResolution.TryGetOperatorName(op), returnName), symbol1.ToTestDisplayString()) Assert.Equal(MethodKind.BuiltinOperator, symbol1.MethodKind) Assert.True(symbol1.IsImplicitlyDeclared) Assert.Equal(op = UnaryOperatorKind.Minus AndAlso symbol1.ContainingType.IsIntegralType(), symbol1.IsCheckedBuiltin) Assert.False(symbol1.IsGenericMethod) Assert.False(symbol1.IsExtensionMethod) Assert.False(symbol1.IsExternalMethod) Assert.False(symbol1.CanBeReferencedByName) Assert.Null(symbol1.DeclaringCompilation) Assert.Equal(symbol1.Name, symbol1.MetadataName) Assert.Same(symbol1.ContainingSymbol, symbol1.Parameters(0).Type) Assert.Equal(0, symbol1.Locations.Length) Assert.Null(symbol1.GetDocumentationCommentId) Assert.Equal("", symbol1.GetDocumentationCommentXml) Assert.True(symbol1.HasSpecialName) Assert.True(symbol1.IsShared) Assert.Equal(Accessibility.Public, symbol1.DeclaredAccessibility) Assert.False(symbol1.IsOverloads) Assert.False(symbol1.IsOverrides) Assert.False(symbol1.IsOverridable) Assert.False(symbol1.IsMustOverride) Assert.False(symbol1.IsNotOverridable) Assert.Equal(1, symbol1.ParameterCount) Assert.Equal(0, symbol1.Parameters(0).Ordinal) Dim otherSymbol = DirectCast(semanticModel.GetSymbolInfo(node1).Symbol, MethodSymbol) Assert.Equal(symbol1, otherSymbol) If type.IsValueType Then Assert.Equal(symbol1, symbol2) Return End If Assert.Null(symbol2) End Sub <Fact()> Public Sub CheckedIntrinsicSymbols() Dim source = <compilation> <file name="a.vb"> Class Module1 Sub Test(x as Integer) Dim z1 = -x End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseDll.WithOverflowChecks(False)) Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() Dim semanticModel = compilation.GetSemanticModel(tree) Dim node1 = (From node In tree.GetRoot().DescendantNodes() Select node = TryCast(node, UnaryExpressionSyntax) Where node IsNot Nothing).Single() Dim symbol1 = DirectCast(semanticModel.GetSymbolInfo(node1).Symbol, MethodSymbol) Assert.False(symbol1.IsCheckedBuiltin) compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOverflowChecks(True)) semanticModel = compilation.GetSemanticModel(tree) Dim symbol2 = DirectCast(semanticModel.GetSymbolInfo(node1).Symbol, MethodSymbol) Assert.True(symbol2.IsCheckedBuiltin) Assert.NotEqual(symbol1, symbol2) End Sub End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.IO Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.SpecialType Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic Imports Microsoft.CodeAnalysis.VisualBasic.OverloadResolution Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports Roslyn.Test.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics Public Class UnaryOperators Inherits BasicTestBase <Fact> <WorkItem(33564, "https://github.com/dotnet/roslyn/issues/33564")> Public Sub Test1() Dim source = <compilation name="UnaryOperator1"> <file name="a.vb"> Option Strict Off Module Module1 Sub Main() Dim Bo As Boolean Dim SB As SByte Dim By As Byte Dim Sh As Short Dim US As UShort Dim [In] As Integer Dim UI As UInteger Dim Lo As Long Dim UL As ULong Dim De As Decimal Dim Si As Single Dim [Do] As Double Dim St As String Dim Ob As Object Dim Tc As System.TypeCode Bo = False SB = -1 By = 2 Sh = -3 US = 4 [In] = -5 UI = 6 Lo = -7 UL = 8 De = -9D Si = 10 [Do] = -11 St = "12" Ob = -13 System.Console.WriteLine("Unary Minus") PrintResult(-Nothing) PrintResult(-Bo) PrintResult(-SB) PrintResult(-By) PrintResult(-Sh) PrintResult(-US) PrintResult(-[In]) PrintResult(-UI) PrintResult(-Lo) PrintResult(-UL) PrintResult(-De) PrintResult(-Si) PrintResult(-[Do]) PrintResult(-St) PrintResult(-Ob) PrintResult(-Tc) PrintResult(-True) PrintResult(-False) PrintResult(-System.SByte.MaxValue) PrintResult(-System.Byte.MaxValue) PrintResult(-14S) PrintResult(-15US) PrintResult(-16I) PrintResult(-17UI) PrintResult(-19L) PrintResult(-20UL) PrintResult(-System.Single.MaxValue) PrintResult(-22.0) PrintResult(-23D) PrintResult(-"24") System.Console.WriteLine("") System.Console.WriteLine("Unary Plus") PrintResult(+Nothing) PrintResult(+Bo) PrintResult(+SB) PrintResult(+By) PrintResult(+Sh) PrintResult(+US) PrintResult(+[In]) PrintResult(+UI) PrintResult(+Lo) PrintResult(+UL) PrintResult(+De) PrintResult(+Si) PrintResult(+[Do]) PrintResult(+St) PrintResult(+Ob) PrintResult(+Tc) PrintResult(+True) PrintResult(+False) PrintResult(+System.SByte.MaxValue) PrintResult(+System.Byte.MaxValue) PrintResult(+14S) PrintResult(+15US) PrintResult(+16I) PrintResult(+17UI) PrintResult(+19L) PrintResult(+20UL) PrintResult(+System.Single.MaxValue) PrintResult(+22.0) PrintResult(+23D) PrintResult(+"24") System.Console.WriteLine("") System.Console.WriteLine("Logical Not") PrintResult(Not Nothing) PrintResult(Not Bo) PrintResult(Not SB) PrintResult(Not By) PrintResult(Not Sh) PrintResult(Not US) PrintResult(Not [In]) PrintResult(Not UI) PrintResult(Not Lo) PrintResult(Not UL) PrintResult(Not De) PrintResult(Not Si) PrintResult(Not [Do]) PrintResult(Not St) PrintResult(Not Ob) PrintResult(Not Tc) PrintResult(Not True) PrintResult(Not False) PrintResult(Not System.SByte.MaxValue) PrintResult(Not System.Byte.MaxValue) PrintResult(Not 14S) PrintResult(Not 15US) PrintResult(Not 16I) PrintResult(Not 17UI) PrintResult(Not 19L) PrintResult(Not 20UL) PrintResult(Not 21.0F) PrintResult(Not 22.0) PrintResult(Not 23D) PrintResult(Not "24") End Sub Sub PrintResult(val As Boolean) System.Console.WriteLine("Boolean: {0}", val) End Sub Sub PrintResult(val As SByte) System.Console.WriteLine("SByte: {0}", val) End Sub Sub PrintResult(val As Byte) System.Console.WriteLine("Byte: {0}", val) End Sub Sub PrintResult(val As Short) System.Console.WriteLine("Short: {0}", val) End Sub Sub PrintResult(val As UShort) System.Console.WriteLine("UShort: {0}", val) End Sub Sub PrintResult(val As Integer) System.Console.WriteLine("Integer: {0}", val) End Sub Sub PrintResult(val As UInteger) System.Console.WriteLine("UInteger: {0}", val) End Sub Sub PrintResult(val As Long) System.Console.WriteLine("Long: {0}", val) End Sub Sub PrintResult(val As ULong) System.Console.WriteLine("ULong: {0}", val) End Sub Sub PrintResult(val As Decimal) System.Console.WriteLine("Decimal: {0}", val) End Sub Sub PrintResult(val As Single) System.Console.WriteLine("Single: {0}", val.ToString("G7", System.Globalization.CultureInfo.InvariantCulture)) End Sub Sub PrintResult(val As Double) System.Console.WriteLine("Double: {0}", val) End Sub 'Sub PrintResult(val As Date) ' System.Console.WriteLine("Date: {0}", val) 'End Sub Sub PrintResult(val As Char) System.Console.WriteLine("Char: {0}", val) End Sub Sub PrintResult(val As String) System.Console.WriteLine("String: ") System.Console.WriteLine(val) End Sub Sub PrintResult(val As Object) System.Console.WriteLine("Object: {0}", val) End Sub Sub PrintResult(val As System.TypeCode) System.Console.WriteLine("TypeCode: {0}", val) End Sub End Module </file> </compilation> Dim expected = <![CDATA[ Unary Minus Integer: 0 Short: 0 SByte: 1 Short: -2 Short: 3 Integer: -4 Integer: 5 Long: -6 Long: 7 Decimal: -8 Decimal: 9 Single: -10 Double: 11 Double: -12 Object: 13 Integer: 0 Short: 1 Short: 0 SByte: -127 Short: -255 Short: -14 Integer: -15 Integer: -16 Long: -17 Long: -19 Decimal: -20 Single: -3.402823E+38 Double: -22 Decimal: -23 Double: -24 Unary Plus Integer: 0 Short: 0 SByte: -1 Byte: 2 Short: -3 UShort: 4 Integer: -5 UInteger: 6 Long: -7 ULong: 8 Decimal: -9 Single: 10 Double: -11 Double: 12 Object: -13 Integer: 0 Short: -1 Short: 0 SByte: 127 Byte: 255 Short: 14 UShort: 15 Integer: 16 UInteger: 17 Long: 19 ULong: 20 Single: 3.402823E+38 Double: 22 Decimal: 23 Double: 24 Logical Not Integer: -1 Boolean: True SByte: 0 Byte: 253 Short: 2 UShort: 65531 Integer: 4 UInteger: 4294967289 Long: 6 ULong: 18446744073709551607 Long: 8 Long: -11 Long: 10 Long: -13 Object: 12 TypeCode: -1 Boolean: False Boolean: True SByte: -128 Byte: 0 Short: -15 UShort: 65520 Integer: -17 UInteger: 4294967278 Long: -20 ULong: 18446744073709551595 Long: -22 Long: -23 Long: -24 Long: -25 ]]> Dim c1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe) Assert.True(c1.Options.CheckOverflow) CompileAndVerify(c1, expected) c1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOverflowChecks(False)) Assert.False(c1.Options.CheckOverflow) CompileAndVerify(c1, expected) End Sub <Fact> Public Sub Test2() Dim compilationDef = <compilation name="Test2"> <file name="a.vb"> Option Strict On Module Module1 Sub Main() Dim Da As Date Dim Ch As Char Dim Ob As Object Dim result As Object result = -Da result = -Ch result = -Ob result = +Da result = +Ch result = +Ob result = Not Da result = Not Ch result = Not Ob result = --Da End Sub End Module </file> </compilation> Dim c1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef) CompilationUtils.AssertTheseDiagnostics(c1, <expected> BC30487: Operator '-' is not defined for type 'Date'. result = -Da ~~~ BC30487: Operator '-' is not defined for type 'Char'. result = -Ch ~~~ BC30038: Option Strict On prohibits operands of type Object for operator '-'. result = -Ob ~~ BC42104: Variable 'Ob' is used before it has been assigned a value. A null reference exception could result at runtime. result = -Ob ~~ BC30487: Operator '+' is not defined for type 'Date'. result = +Da ~~~ BC30487: Operator '+' is not defined for type 'Char'. result = +Ch ~~~ BC30038: Option Strict On prohibits operands of type Object for operator '+'. result = +Ob ~~ BC30487: Operator 'Not' is not defined for type 'Date'. result = Not Da ~~~~~~ BC30487: Operator 'Not' is not defined for type 'Char'. result = Not Ch ~~~~~~ BC30038: Option Strict On prohibits operands of type Object for operator 'Not'. result = Not Ob ~~ BC30487: Operator '-' is not defined for type 'Date'. result = --Da ~~~ </expected>) End Sub <Fact> Public Sub Test3() Dim c1 = VisualBasicCompilation.Create("Test3", syntaxTrees:={VisualBasicSyntaxTree.ParseText( <text> Option Strict Off Module Module1 Interface I1 End Interface Function Main() As I1 Dim result As Object result = -Nothing End Function End Module</text>.Value )}, references:=Nothing, options:=TestOptions.ReleaseDll) CompilationUtils.AssertTheseDiagnostics(c1, <expected> BC31091: Import of type 'Object' from assembly or module 'Test3.dll' failed. Module Module1 ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute..ctor' is not defined. Module Module1 ~~~~~~~ BC30002: Type 'System.Object' is not defined. Dim result As Object ~~~~~~ BC30002: Type 'System.Int32' is not defined. result = -Nothing ~~~~~~~ BC42105: Function 'Main' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used. End Function ~~~~~~~~~~~~ </expected>) End Sub <Fact> Public Sub Test4() Dim source = <compilation name="UnaryOperator4"> <file name="a.vb"> Option Strict Off Imports System Module Module1 Sub Main() Dim Ob As Object Ob = -System.Byte.MinValue Ob = -System.Byte.MaxValue Ob = -System.SByte.MinValue Ob = -System.SByte.MaxValue Ob = -Int16.MinValue Ob = -Int16.MaxValue Ob = -UInt16.MaxValue Ob = -UInt16.MinValue Ob = -Int32.MinValue Ob = -Int32.MaxValue Ob = -UInt32.MaxValue Ob = -UInt32.MinValue Ob = -Int64.MinValue Ob = -Int64.MaxValue Ob = -UInt64.MaxValue Ob = -UInt64.MinValue Ob = -System.Decimal.MaxValue Ob = -System.Decimal.MinValue Ob = -System.Single.MaxValue Ob = -System.Single.MinValue Ob = -System.Double.MaxValue Ob = -System.Double.MinValue End Sub End Module </file> </compilation> Dim expected = <expected> BC30439: Constant expression not representable in type 'SByte'. Ob = -System.SByte.MinValue ~~~~~~~~~~~~~~~~~~~~~~ BC30439: Constant expression not representable in type 'Short'. Ob = -Int16.MinValue ~~~~~~~~~~~~~~~ BC30439: Constant expression not representable in type 'Integer'. Ob = -Int32.MinValue ~~~~~~~~~~~~~~~ BC30439: Constant expression not representable in type 'Long'. Ob = -Int64.MinValue ~~~~~~~~~~~~~~~ </expected> Dim c1 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source) Assert.True(c1.Options.CheckOverflow) CompilationUtils.AssertTheseDiagnostics(c1, expected) Dim c2 = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe.WithOverflowChecks(False)) Assert.False(c2.Options.CheckOverflow) CompilationUtils.AssertTheseDiagnostics(c2, expected) End Sub <Fact> Public Sub Test5() Dim compilationDef = <compilation name="UnaryOperator2"> <file name="a.vb"> Imports System Module Module1 Sub Main() Dim Ob As Object = Nothing Ob = -Ob Ob = +Ob Ob = Not Ob End Sub End Module </file> </compilation> Dim expected = <expected> BC42019: Operands of type Object used for operator '-'; runtime errors could occur. Ob = -Ob ~~ BC42019: Operands of type Object used for operator '+'; runtime errors could occur. Ob = +Ob ~~ BC42019: Operands of type Object used for operator 'Not'; runtime errors could occur. Ob = Not Ob ~~ </expected> Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(compilationDef, TestOptions.ReleaseExe.WithOptionStrict(OptionStrict.Custom)) Assert.Equal(OptionStrict.Custom, compilation.Options.OptionStrict) CompilationUtils.AssertTheseDiagnostics(compilation, expected) End Sub <WorkItem(544620, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544620")> <Fact()> Public Sub Bug13088() Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime( <compilation> <file name="a.vb"><![CDATA[ Module Program Public Const Z1 As Integer = +2147483648 'BIND:"Public Const Z1 As Integer = +2147483648" Public Const Z2 As Integer = (-(-2147483648)) 'BIND1:"Public Const Z2 As Integer = (-(-2147483648))" Sub Main() End Sub End Module ]]></file> </compilation>) VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_ExpressionOverflow1, "+2147483648").WithArguments("Integer"), Diagnostic(ERRID.ERR_ExpressionOverflow1, "(-(-2147483648))").WithArguments("Integer")) Dim symbol = compilation.GlobalNamespace.GetTypeMembers("Program").Single.GetMembers("Z1").Single Assert.False(DirectCast(symbol, FieldSymbol).HasConstantValue) symbol = compilation.GlobalNamespace.GetTypeMembers("Program").Single.GetMembers("Z2").Single Assert.False(DirectCast(symbol, FieldSymbol).HasConstantValue) End Sub <Fact()> Public Sub IntrinsicSymbols() Dim operators() As UnaryOperatorKind = { UnaryOperatorKind.Plus, UnaryOperatorKind.Minus, UnaryOperatorKind.Not } Dim opTokens = (From op In operators Select SyntaxFacts.GetText(OverloadResolution.GetOperatorTokenKind(op))).ToArray() Dim typeNames() As String = { "System.Object", "System.String", "System.Double", "System.SByte", "System.Int16", "System.Int32", "System.Int64", "System.Decimal", "System.Single", "System.Byte", "System.UInt16", "System.UInt32", "System.UInt64", "System.Boolean", "System.Char", "System.DateTime", "System.TypeCode", "System.StringComparison", "System.Guid" } Dim builder As New System.Text.StringBuilder Dim n As Integer = 0 For Each arg1 In typeNames n += 1 builder.AppendFormat( "Sub Test{1}(x1 as {0}, x2 as {0}?)" & vbCrLf, arg1, n) Dim k As Integer = 0 For Each opToken In opTokens builder.AppendFormat( " Dim z{0}_1 = {1} x1" & vbCrLf & " Dim z{0}_2 = {1} x2" & vbCrLf & " If {1} x1" & vbCrLf & " End If" & vbCrLf & " If {1} x2" & vbCrLf & " End If" & vbCrLf, k, opToken) k += 1 Next builder.Append( "End Sub" & vbCrLf) Next Dim source = <compilation> <file name="a.vb"> Class Module1 <%= New System.Xml.Linq.XCData(builder.ToString()) %> End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseDll.WithOverflowChecks(True)) Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() Dim semanticModel = compilation.GetSemanticModel(tree) Dim nodes = (From node In tree.GetRoot().DescendantNodes() Select node = TryCast(node, UnaryExpressionSyntax) Where node IsNot Nothing).ToArray() n = 0 For Each name In typeNames Dim type = compilation.GetTypeByMetadataName(name) For Each op In operators TestIntrinsicSymbol( op, type, compilation, semanticModel, nodes(n), nodes(n + 1), nodes(n + 2), nodes(n + 3)) n += 4 Next Next Assert.Equal(n, nodes.Length) End Sub Private Sub TestIntrinsicSymbol( op As UnaryOperatorKind, type As TypeSymbol, compilation As VisualBasicCompilation, semanticModel As SemanticModel, node1 As UnaryExpressionSyntax, node2 As UnaryExpressionSyntax, node3 As UnaryExpressionSyntax, node4 As UnaryExpressionSyntax ) Dim info1 As SymbolInfo = semanticModel.GetSymbolInfo(node1) Assert.Equal(CandidateReason.None, info1.CandidateReason) Assert.Equal(0, info1.CandidateSymbols.Length) Dim symbol1 = DirectCast(info1.Symbol, MethodSymbol) Dim symbol2 = semanticModel.GetSymbolInfo(node2).Symbol Dim symbol3 = DirectCast(semanticModel.GetSymbolInfo(node3).Symbol, MethodSymbol) Dim symbol4 = semanticModel.GetSymbolInfo(node4).Symbol Assert.Equal(symbol1, symbol3) If symbol1 IsNot Nothing Then Assert.NotSame(symbol1, symbol3) Assert.Equal(symbol1.GetHashCode(), symbol3.GetHashCode()) Assert.Equal(symbol1.Parameters(0), symbol3.Parameters(0)) Assert.Equal(symbol1.Parameters(0).GetHashCode(), symbol3.Parameters(0).GetHashCode()) End If Assert.Equal(symbol2, symbol4) Dim special As SpecialType = type.GetEnumUnderlyingTypeOrSelf().SpecialType Dim resultType As SpecialType = OverloadResolution.ResolveNotLiftedIntrinsicUnaryOperator(op, special) If resultType = SpecialType.None Then Assert.Null(symbol1) Assert.Null(symbol2) Assert.Null(symbol3) Assert.Null(symbol4) Return End If Assert.NotNull(symbol1) Dim containerName As String = compilation.GetSpecialType(resultType).ToTestDisplayString() Dim returnName As String = containerName If op = UnaryOperatorKind.Not AndAlso type.IsEnumType() Then containerName = type.ToTestDisplayString() returnName = containerName End If Assert.Equal(String.Format("Function {0}.{1}(value As {0}) As {2}", containerName, OverloadResolution.TryGetOperatorName(op), returnName), symbol1.ToTestDisplayString()) Assert.Equal(MethodKind.BuiltinOperator, symbol1.MethodKind) Assert.True(symbol1.IsImplicitlyDeclared) Assert.Equal(op = UnaryOperatorKind.Minus AndAlso symbol1.ContainingType.IsIntegralType(), symbol1.IsCheckedBuiltin) Assert.False(symbol1.IsGenericMethod) Assert.False(symbol1.IsExtensionMethod) Assert.False(symbol1.IsExternalMethod) Assert.False(symbol1.CanBeReferencedByName) Assert.Null(symbol1.DeclaringCompilation) Assert.Equal(symbol1.Name, symbol1.MetadataName) Assert.Same(symbol1.ContainingSymbol, symbol1.Parameters(0).Type) Assert.Equal(0, symbol1.Locations.Length) Assert.Null(symbol1.GetDocumentationCommentId) Assert.Equal("", symbol1.GetDocumentationCommentXml) Assert.True(symbol1.HasSpecialName) Assert.True(symbol1.IsShared) Assert.Equal(Accessibility.Public, symbol1.DeclaredAccessibility) Assert.False(symbol1.IsOverloads) Assert.False(symbol1.IsOverrides) Assert.False(symbol1.IsOverridable) Assert.False(symbol1.IsMustOverride) Assert.False(symbol1.IsNotOverridable) Assert.Equal(1, symbol1.ParameterCount) Assert.Equal(0, symbol1.Parameters(0).Ordinal) Dim otherSymbol = DirectCast(semanticModel.GetSymbolInfo(node1).Symbol, MethodSymbol) Assert.Equal(symbol1, otherSymbol) If type.IsValueType Then Assert.Equal(symbol1, symbol2) Return End If Assert.Null(symbol2) End Sub <Fact()> Public Sub CheckedIntrinsicSymbols() Dim source = <compilation> <file name="a.vb"> Class Module1 Sub Test(x as Integer) Dim z1 = -x End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseDll.WithOverflowChecks(False)) Dim tree As SyntaxTree = (From t In compilation.SyntaxTrees Where t.FilePath = "a.vb").Single() Dim semanticModel = compilation.GetSemanticModel(tree) Dim node1 = (From node In tree.GetRoot().DescendantNodes() Select node = TryCast(node, UnaryExpressionSyntax) Where node IsNot Nothing).Single() Dim symbol1 = DirectCast(semanticModel.GetSymbolInfo(node1).Symbol, MethodSymbol) Assert.False(symbol1.IsCheckedBuiltin) compilation = compilation.WithOptions(TestOptions.ReleaseDll.WithOverflowChecks(True)) semanticModel = compilation.GetSemanticModel(tree) Dim symbol2 = DirectCast(semanticModel.GetSymbolInfo(node1).Symbol, MethodSymbol) Assert.True(symbol2.IsCheckedBuiltin) Assert.NotEqual(symbol1, symbol2) End Sub End Class End Namespace
-1
dotnet/roslyn
55,408
Update package references
CyrusNajmabadi
2021-08-04T19:12:45Z
2021-08-04T22:34:08Z
967cf7cf7be8478cce7cda728217eab8504f2863
d41ae79bb1a3f0deb2de2f3d67c976f795da9563
Update package references.
./src/VisualStudio/IntegrationTest/IntegrationTests/Workspace/WorkspaceBase.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.VisualStudio.IntegrationTest.Utilities; using Roslyn.Test.Utilities; using Xunit; using Xunit.Abstractions; using ProjectUtils = Microsoft.VisualStudio.IntegrationTest.Utilities.Common.ProjectUtils; #pragma warning disable xUnit1013 // currently there are public virtual methods that are overridden by derived types namespace Roslyn.VisualStudio.IntegrationTests.Workspace { public abstract class WorkspaceBase : AbstractEditorTest { protected WorkspaceBase(VisualStudioInstanceFactory instanceFactory, string projectTemplate) : base(instanceFactory, nameof(WorkspaceBase), projectTemplate) { DefaultProjectTemplate = projectTemplate; } protected override string LanguageName => LanguageNames.CSharp; protected string DefaultProjectTemplate { get; } public override async Task InitializeAsync() { await base.InitializeAsync().ConfigureAwait(true); VisualStudio.Workspace.SetFullSolutionAnalysis(true); } public virtual void OpenCSharpThenVBSolution() { VisualStudio.Editor.SetText(@"using System; class Program { Exception e; }"); VisualStudio.Editor.PlaceCaret("Exception"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "class name"); VisualStudio.SolutionExplorer.CloseSolution(); VisualStudio.SolutionExplorer.CreateSolution(nameof(WorkspacesDesktop)); var testProj = new ProjectUtils.Project("TestProj"); VisualStudio.SolutionExplorer.AddProject(testProj, WellKnownProjectTemplates.ClassLibrary, languageName: LanguageNames.VisualBasic); VisualStudio.SolutionExplorer.RestoreNuGetPackages(testProj); VisualStudio.Editor.SetText(@"Imports System Class Program Private e As Exception End Class"); VisualStudio.Editor.PlaceCaret("Exception"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "class name"); } public virtual void MetadataReference() { var windowsBase = new ProjectUtils.AssemblyReference("WindowsBase"); var project = new ProjectUtils.Project(ProjectName); VisualStudio.SolutionExplorer.AddMetadataReference(windowsBase, project); VisualStudio.Editor.SetText("class C { System.Windows.Point p; }"); VisualStudio.Editor.PlaceCaret("Point"); VisualStudio.Editor.Verify.CurrentTokenType("struct name"); VisualStudio.SolutionExplorer.RemoveMetadataReference(windowsBase, project); VisualStudio.Editor.Verify.CurrentTokenType("identifier"); } public virtual void ProjectReference() { var project = new ProjectUtils.Project(ProjectName); var csProj2 = new ProjectUtils.Project("CSProj2"); VisualStudio.SolutionExplorer.AddProject(csProj2, projectTemplate: DefaultProjectTemplate, languageName: LanguageName); var projectName = new ProjectUtils.ProjectReference(ProjectName); VisualStudio.SolutionExplorer.AddProjectReference(fromProjectName: csProj2, toProjectName: projectName); VisualStudio.SolutionExplorer.RestoreNuGetPackages(csProj2); VisualStudio.SolutionExplorer.AddFile(project, "Program.cs", open: true, contents: "public class Class1 { }"); VisualStudio.SolutionExplorer.AddFile(csProj2, "Program.cs", open: true, contents: "public class Class2 { Class1 c; }"); VisualStudio.SolutionExplorer.OpenFile(csProj2, "Program.cs"); VisualStudio.Editor.PlaceCaret("Class1"); VisualStudio.Editor.Verify.CurrentTokenType("class name"); VisualStudio.SolutionExplorer.RemoveProjectReference(projectReferenceName: projectName, projectName: csProj2); VisualStudio.Editor.Verify.CurrentTokenType("identifier"); } public virtual void ProjectProperties() { VisualStudio.Editor.SetText(@"Module Program Sub Main() Dim x = 42 M(x) End Sub Sub M(p As Integer) End Sub Sub M(p As Object) End Sub End Module"); VisualStudio.Editor.PlaceCaret("(x)", charsOffset: -1); VisualStudio.Workspace.SetQuickInfo(true); var project = new ProjectUtils.Project(ProjectName); VisualStudio.Workspace.SetOptionInfer(project.Name, true); VisualStudio.Editor.InvokeQuickInfo(); Assert.Equal("Sub Program.M(p As Integer) (+ 1 overload)", VisualStudio.Editor.GetQuickInfo()); VisualStudio.Workspace.SetOptionInfer(project.Name, false); VisualStudio.Editor.InvokeQuickInfo(); Assert.Equal("Sub Program.M(p As Object) (+ 1 overload)", VisualStudio.Editor.GetQuickInfo()); } [WpfFact] public void RenamingOpenFiles() { var project = new ProjectUtils.Project(ProjectName); VisualStudio.SolutionExplorer.AddFile(project, "BeforeRename.cs", open: true); // Verify we are connected to the project before... Assert.Contains(ProjectName, VisualStudio.Editor.GetProjectNavBarItems()); VisualStudio.SolutionExplorer.RenameFile(project, "BeforeRename.cs", "AfterRename.cs"); // ...and after. Assert.Contains(ProjectName, VisualStudio.Editor.GetProjectNavBarItems()); } [WpfFact] public virtual void RenamingOpenFilesViaDTE() { var project = new ProjectUtils.Project(ProjectName); VisualStudio.SolutionExplorer.AddFile(project, "BeforeRename.cs", open: true); // Verify we are connected to the project before... Assert.Contains(ProjectName, VisualStudio.Editor.GetProjectNavBarItems()); VisualStudio.SolutionExplorer.RenameFileViaDTE(project, "BeforeRename.cs", "AfterRename.cs"); // ...and after. Assert.Contains(ProjectName, VisualStudio.Editor.GetProjectNavBarItems()); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.VisualStudio.IntegrationTest.Utilities; using Roslyn.Test.Utilities; using Xunit; using Xunit.Abstractions; using ProjectUtils = Microsoft.VisualStudio.IntegrationTest.Utilities.Common.ProjectUtils; #pragma warning disable xUnit1013 // currently there are public virtual methods that are overridden by derived types namespace Roslyn.VisualStudio.IntegrationTests.Workspace { public abstract class WorkspaceBase : AbstractEditorTest { protected WorkspaceBase(VisualStudioInstanceFactory instanceFactory, string projectTemplate) : base(instanceFactory, nameof(WorkspaceBase), projectTemplate) { DefaultProjectTemplate = projectTemplate; } protected override string LanguageName => LanguageNames.CSharp; protected string DefaultProjectTemplate { get; } public override async Task InitializeAsync() { await base.InitializeAsync().ConfigureAwait(true); VisualStudio.Workspace.SetFullSolutionAnalysis(true); } public virtual void OpenCSharpThenVBSolution() { VisualStudio.Editor.SetText(@"using System; class Program { Exception e; }"); VisualStudio.Editor.PlaceCaret("Exception"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "class name"); VisualStudio.SolutionExplorer.CloseSolution(); VisualStudio.SolutionExplorer.CreateSolution(nameof(WorkspacesDesktop)); var testProj = new ProjectUtils.Project("TestProj"); VisualStudio.SolutionExplorer.AddProject(testProj, WellKnownProjectTemplates.ClassLibrary, languageName: LanguageNames.VisualBasic); VisualStudio.SolutionExplorer.RestoreNuGetPackages(testProj); VisualStudio.Editor.SetText(@"Imports System Class Program Private e As Exception End Class"); VisualStudio.Editor.PlaceCaret("Exception"); VisualStudio.Editor.Verify.CurrentTokenType(tokenType: "class name"); } public virtual void MetadataReference() { var windowsBase = new ProjectUtils.AssemblyReference("WindowsBase"); var project = new ProjectUtils.Project(ProjectName); VisualStudio.SolutionExplorer.AddMetadataReference(windowsBase, project); VisualStudio.Editor.SetText("class C { System.Windows.Point p; }"); VisualStudio.Editor.PlaceCaret("Point"); VisualStudio.Editor.Verify.CurrentTokenType("struct name"); VisualStudio.SolutionExplorer.RemoveMetadataReference(windowsBase, project); VisualStudio.Editor.Verify.CurrentTokenType("identifier"); } public virtual void ProjectReference() { var project = new ProjectUtils.Project(ProjectName); var csProj2 = new ProjectUtils.Project("CSProj2"); VisualStudio.SolutionExplorer.AddProject(csProj2, projectTemplate: DefaultProjectTemplate, languageName: LanguageName); var projectName = new ProjectUtils.ProjectReference(ProjectName); VisualStudio.SolutionExplorer.AddProjectReference(fromProjectName: csProj2, toProjectName: projectName); VisualStudio.SolutionExplorer.RestoreNuGetPackages(csProj2); VisualStudio.SolutionExplorer.AddFile(project, "Program.cs", open: true, contents: "public class Class1 { }"); VisualStudio.SolutionExplorer.AddFile(csProj2, "Program.cs", open: true, contents: "public class Class2 { Class1 c; }"); VisualStudio.SolutionExplorer.OpenFile(csProj2, "Program.cs"); VisualStudio.Editor.PlaceCaret("Class1"); VisualStudio.Editor.Verify.CurrentTokenType("class name"); VisualStudio.SolutionExplorer.RemoveProjectReference(projectReferenceName: projectName, projectName: csProj2); VisualStudio.Editor.Verify.CurrentTokenType("identifier"); } public virtual void ProjectProperties() { VisualStudio.Editor.SetText(@"Module Program Sub Main() Dim x = 42 M(x) End Sub Sub M(p As Integer) End Sub Sub M(p As Object) End Sub End Module"); VisualStudio.Editor.PlaceCaret("(x)", charsOffset: -1); VisualStudio.Workspace.SetQuickInfo(true); var project = new ProjectUtils.Project(ProjectName); VisualStudio.Workspace.SetOptionInfer(project.Name, true); VisualStudio.Editor.InvokeQuickInfo(); Assert.Equal("Sub Program.M(p As Integer) (+ 1 overload)", VisualStudio.Editor.GetQuickInfo()); VisualStudio.Workspace.SetOptionInfer(project.Name, false); VisualStudio.Editor.InvokeQuickInfo(); Assert.Equal("Sub Program.M(p As Object) (+ 1 overload)", VisualStudio.Editor.GetQuickInfo()); } [WpfFact] public void RenamingOpenFiles() { var project = new ProjectUtils.Project(ProjectName); VisualStudio.SolutionExplorer.AddFile(project, "BeforeRename.cs", open: true); // Verify we are connected to the project before... Assert.Contains(ProjectName, VisualStudio.Editor.GetProjectNavBarItems()); VisualStudio.SolutionExplorer.RenameFile(project, "BeforeRename.cs", "AfterRename.cs"); // ...and after. Assert.Contains(ProjectName, VisualStudio.Editor.GetProjectNavBarItems()); } [WpfFact] public virtual void RenamingOpenFilesViaDTE() { var project = new ProjectUtils.Project(ProjectName); VisualStudio.SolutionExplorer.AddFile(project, "BeforeRename.cs", open: true); // Verify we are connected to the project before... Assert.Contains(ProjectName, VisualStudio.Editor.GetProjectNavBarItems()); VisualStudio.SolutionExplorer.RenameFileViaDTE(project, "BeforeRename.cs", "AfterRename.cs"); // ...and after. Assert.Contains(ProjectName, VisualStudio.Editor.GetProjectNavBarItems()); } } }
-1
dotnet/roslyn
55,408
Update package references
CyrusNajmabadi
2021-08-04T19:12:45Z
2021-08-04T22:34:08Z
967cf7cf7be8478cce7cda728217eab8504f2863
d41ae79bb1a3f0deb2de2f3d67c976f795da9563
Update package references.
./src/Compilers/CSharp/Test/Emit/CodeGen/CodeGenTypeofTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.CodeGen { public class CodeGenTypeOfTests : CSharpTestBase { [Fact] public void TestTypeofSimple() { var source = @" class C { static void Main() { System.Console.WriteLine(typeof(C)); } }"; var comp = CompileAndVerify(source, expectedOutput: "C"); comp.VerifyDiagnostics(); comp.VerifyIL("C.Main", @"{ // Code size 16 (0x10) .maxstack 1 IL_0000: ldtoken ""C"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ret }"); } [Fact] public void TestTypeofNonGeneric() { var source = @" namespace Source { class Class { } struct Struct { } enum Enum { e } interface Interface { } class StaticClass { } } class Program { static void Main() { // From source System.Console.WriteLine(typeof(Source.Class)); System.Console.WriteLine(typeof(Source.Struct)); System.Console.WriteLine(typeof(Source.Enum)); System.Console.WriteLine(typeof(Source.Interface)); System.Console.WriteLine(typeof(Source.StaticClass)); // From metadata System.Console.WriteLine(typeof(string)); System.Console.WriteLine(typeof(int)); System.Console.WriteLine(typeof(System.IO.FileMode)); System.Console.WriteLine(typeof(System.IFormattable)); System.Console.WriteLine(typeof(System.Math)); // Special System.Console.WriteLine(typeof(void)); } }"; var comp = CompileAndVerify(source, expectedOutput: @" Source.Class Source.Struct Source.Enum Source.Interface Source.StaticClass System.String System.Int32 System.IO.FileMode System.IFormattable System.Math System.Void"); comp.VerifyDiagnostics(); comp.VerifyIL("Program.Main", @"{ // Code size 166 (0xa6) .maxstack 1 IL_0000: ldtoken ""Source.Class"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""Source.Struct"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ldtoken ""Source.Enum"" IL_0023: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0028: call ""void System.Console.WriteLine(object)"" IL_002d: ldtoken ""Source.Interface"" IL_0032: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0037: call ""void System.Console.WriteLine(object)"" IL_003c: ldtoken ""Source.StaticClass"" IL_0041: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0046: call ""void System.Console.WriteLine(object)"" IL_004b: ldtoken ""string"" IL_0050: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0055: call ""void System.Console.WriteLine(object)"" IL_005a: ldtoken ""int"" IL_005f: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0064: call ""void System.Console.WriteLine(object)"" IL_0069: ldtoken ""System.IO.FileMode"" IL_006e: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0073: call ""void System.Console.WriteLine(object)"" IL_0078: ldtoken ""System.IFormattable"" IL_007d: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0082: call ""void System.Console.WriteLine(object)"" IL_0087: ldtoken ""System.Math"" IL_008c: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0091: call ""void System.Console.WriteLine(object)"" IL_0096: ldtoken ""void"" IL_009b: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_00a0: call ""void System.Console.WriteLine(object)"" IL_00a5: ret }"); } [Fact] public void TestTypeofGeneric() { var source = @" class Class1<T> { } class Class2<T, U> { } class Program { static void Main() { System.Console.WriteLine(typeof(Class1<int>)); System.Console.WriteLine(typeof(Class1<Class1<int>>)); System.Console.WriteLine(typeof(Class2<int, long>)); System.Console.WriteLine(typeof(Class2<Class1<int>, Class1<long>>)); } }"; var comp = CompileAndVerify(source, expectedOutput: @" Class1`1[System.Int32] Class1`1[Class1`1[System.Int32]] Class2`2[System.Int32,System.Int64] Class2`2[Class1`1[System.Int32],Class1`1[System.Int64]]"); comp.VerifyDiagnostics(); comp.VerifyIL("Program.Main", @"{ // Code size 61 (0x3d) .maxstack 1 IL_0000: ldtoken ""Class1<int>"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""Class1<Class1<int>>"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ldtoken ""Class2<int, long>"" IL_0023: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0028: call ""void System.Console.WriteLine(object)"" IL_002d: ldtoken ""Class2<Class1<int>, Class1<long>>"" IL_0032: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0037: call ""void System.Console.WriteLine(object)"" IL_003c: ret }"); } [Fact] public void TestTypeofTypeParameter() { var source = @" class Class<T> { public static void Print() { System.Console.WriteLine(typeof(T)); System.Console.WriteLine(typeof(Class<T>)); } public static void Print<U>() { System.Console.WriteLine(typeof(U)); System.Console.WriteLine(typeof(Class<U>)); } } class Program { static void Main() { Class<int>.Print(); Class<Class<int>>.Print(); Class<int>.Print<long>(); Class<Class<int>>.Print<Class<long>>(); } }"; var comp = CompileAndVerify(source, expectedOutput: @" System.Int32 Class`1[System.Int32] Class`1[System.Int32] Class`1[Class`1[System.Int32]] System.Int64 Class`1[System.Int64] Class`1[System.Int64] Class`1[Class`1[System.Int64]]"); comp.VerifyDiagnostics(); comp.VerifyIL("Class<T>.Print", @"{ // Code size 31 (0x1f) .maxstack 1 IL_0000: ldtoken ""T"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""Class<T>"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ret }"); comp.VerifyIL("Class<T>.Print<U>", @"{ // Code size 31 (0x1f) .maxstack 1 IL_0000: ldtoken ""U"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""Class<U>"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ret }"); } [Fact] public void TestTypeofUnboundGeneric() { var source = @" class Class1<T> { } class Class2<T, U> { } class Program { static void Main() { System.Console.WriteLine(typeof(Class1<>)); System.Console.WriteLine(typeof(Class2<,>)); } }"; var comp = CompileAndVerify(source, expectedOutput: @" Class1`1[T] Class2`2[T,U]"); comp.VerifyDiagnostics(); comp.VerifyIL("Program.Main", @"{ // Code size 31 (0x1f) .maxstack 1 IL_0000: ldtoken ""Class1<T>"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""Class2<T, U>"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ret }"); } [WorkItem(542581, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542581")] [Fact] public void TestTypeofInheritedNestedTypeThroughUnboundGeneric_01() { var source = @" using System; class D<T> : C, I1, I2<T, int> { } interface I1 { } interface I2<T, U> { } class F<T> { public class E {} } class G<T> : F<T>, I1, I2<T, int> { } class H<T, U> { public class E {} } class K<T> : H<T, int>{ } class C { public class E { } static void Main() { Console.WriteLine(typeof(D<>.E)); Console.WriteLine(typeof(D<>).BaseType); var interfaces = typeof(D<>).GetInterfaces(); Console.WriteLine(interfaces[0]); Console.WriteLine(interfaces[1]); Console.WriteLine(typeof(G<>.E)); Console.WriteLine(typeof(G<>).BaseType); interfaces = typeof(G<>).GetInterfaces(); Console.WriteLine(interfaces[0]); Console.WriteLine(interfaces[1]); Console.WriteLine(typeof(K<>.E)); Console.WriteLine(typeof(K<>).BaseType); } }"; var expected = @"C+E C I1 I2`2[T,System.Int32] F`1+E[T] F`1[T] I1 I2`2[T,System.Int32] H`2+E[T,U] H`2[T,System.Int32]"; var comp = CompileAndVerify(source, expectedOutput: expected); comp.VerifyDiagnostics(); } [WorkItem(542581, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542581")] [WorkItem(9850, "https://github.com/dotnet/roslyn/issues/9850")] [Fact] public void TestTypeofInheritedNestedTypeThroughUnboundGeneric_02() { var source = @" using System; class C { public class E { } public class E<V> { } static void Main() { var t1 = typeof(D<>.E); Console.WriteLine(t1); var t2 = typeof(F<>.E); var t3 = typeof(G<>.E); Console.WriteLine(t2); Console.WriteLine(t3); Console.WriteLine(t2.Equals(t3)); var t4 = typeof(D<>.E<>); Console.WriteLine(t4); var t5 = typeof(F<>.E<>); var t6 = typeof(G<>.E<>); Console.WriteLine(t5); Console.WriteLine(t6); Console.WriteLine(t5.Equals(t6)); } } class C<U> { public class E { } public class E<V> { } } class D<T> : C { } class F<T> : C<T> { } class G<T> : C<int> { } "; var expected = @"C+E C`1+E[U] C`1+E[U] True C+E`1[V] C`1+E`1[U,V] C`1+E`1[U,V] True"; var comp = CompileAndVerify(source, expectedOutput: expected); comp.VerifyDiagnostics(); } [WorkItem(542581, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542581")] [Fact] public void TestTypeofInheritedNestedTypeThroughUnboundGeneric_Attribute() { var source = @" using System; [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class TestAttribute : Attribute { public TestAttribute(System.Type type){} } class D<T> : C, I1, I2<T, int> { } interface I1 { } interface I2<T, U> { } class F<T> { public class E {} } class G<T> : F<T>, I1, I2<T, int> { } class H<T, U> { public class E {} } class K<T> : H<T, int>{ } [TestAttribute(typeof(D<>))] [TestAttribute(typeof(D<>.E))] [TestAttribute(typeof(G<>))] [TestAttribute(typeof(G<>.E))] [TestAttribute(typeof(K<>))] [TestAttribute(typeof(K<>.E))] class C { public class E { } static void Main() { typeof(C).GetCustomAttributes(false); } }"; var comp = CompileAndVerify(source, expectedOutput: ""); } [Fact] public void TestTypeofArray() { var source = @" class Class1<T> { } class Program { static void Print<U>() { System.Console.WriteLine(typeof(int[])); System.Console.WriteLine(typeof(int[,])); System.Console.WriteLine(typeof(int[][])); System.Console.WriteLine(typeof(U[])); System.Console.WriteLine(typeof(Class1<U>[])); System.Console.WriteLine(typeof(Class1<int>[])); } static void Main() { Print<long>(); } }"; var comp = CompileAndVerify(source, expectedOutput: @" System.Int32[] System.Int32[,] System.Int32[][] System.Int64[] Class1`1[System.Int64][] Class1`1[System.Int32][]"); comp.VerifyDiagnostics(); comp.VerifyIL("Program.Print<U>", @"{ // Code size 91 (0x5b) .maxstack 1 IL_0000: ldtoken ""int[]"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""int[,]"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ldtoken ""int[][]"" IL_0023: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0028: call ""void System.Console.WriteLine(object)"" IL_002d: ldtoken ""U[]"" IL_0032: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0037: call ""void System.Console.WriteLine(object)"" IL_003c: ldtoken ""Class1<U>[]"" IL_0041: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0046: call ""void System.Console.WriteLine(object)"" IL_004b: ldtoken ""Class1<int>[]"" IL_0050: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0055: call ""void System.Console.WriteLine(object)"" IL_005a: ret }"); } [Fact] public void TestTypeofNested() { var source = @" class Outer<T> { public static void Print() { System.Console.WriteLine(typeof(Inner<>)); System.Console.WriteLine(typeof(Inner<T>)); System.Console.WriteLine(typeof(Inner<int>)); System.Console.WriteLine(typeof(Outer<>.Inner<>)); // System.Console.WriteLine(typeof(Outer<>.Inner<T>)); //CS7003 // System.Console.WriteLine(typeof(Outer<>.Inner<int>)); //CS7003 // System.Console.WriteLine(typeof(Outer<T>.Inner<>)); //CS7003 System.Console.WriteLine(typeof(Outer<T>.Inner<T>)); System.Console.WriteLine(typeof(Outer<T>.Inner<int>)); // System.Console.WriteLine(typeof(Outer<int>.Inner<>)); //CS7003 System.Console.WriteLine(typeof(Outer<int>.Inner<T>)); System.Console.WriteLine(typeof(Outer<int>.Inner<int>)); } class Inner<U> { } } class Program { static void Main() { Outer<long>.Print(); } }"; var comp = CompileAndVerify(source, expectedOutput: @" Outer`1+Inner`1[T,U] Outer`1+Inner`1[System.Int64,System.Int64] Outer`1+Inner`1[System.Int64,System.Int32] Outer`1+Inner`1[T,U] Outer`1+Inner`1[System.Int64,System.Int64] Outer`1+Inner`1[System.Int64,System.Int32] Outer`1+Inner`1[System.Int32,System.Int64] Outer`1+Inner`1[System.Int32,System.Int32]"); comp.VerifyDiagnostics(); comp.VerifyIL("Outer<T>.Print", @"{ // Code size 121 (0x79) .maxstack 1 IL_0000: ldtoken ""Outer<T>.Inner<U>"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""Outer<T>.Inner<T>"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ldtoken ""Outer<T>.Inner<int>"" IL_0023: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0028: call ""void System.Console.WriteLine(object)"" IL_002d: ldtoken ""Outer<T>.Inner<U>"" IL_0032: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0037: call ""void System.Console.WriteLine(object)"" IL_003c: ldtoken ""Outer<T>.Inner<T>"" IL_0041: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0046: call ""void System.Console.WriteLine(object)"" IL_004b: ldtoken ""Outer<T>.Inner<int>"" IL_0050: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0055: call ""void System.Console.WriteLine(object)"" IL_005a: ldtoken ""Outer<int>.Inner<T>"" IL_005f: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0064: call ""void System.Console.WriteLine(object)"" IL_0069: ldtoken ""Outer<int>.Inner<int>"" IL_006e: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0073: call ""void System.Console.WriteLine(object)"" IL_0078: ret }"); } [Fact] public void TestTypeofInLambda() { var source = @" using System; public class Outer<T> { public class Inner<U> { public Action Method<V>(V v) { return () => { Console.WriteLine(v); Console.WriteLine(typeof(T)); Console.WriteLine(typeof(U)); Console.WriteLine(typeof(V)); Console.WriteLine(typeof(Outer<>)); Console.WriteLine(typeof(Outer<T>)); Console.WriteLine(typeof(Outer<U>)); Console.WriteLine(typeof(Outer<V>)); Console.WriteLine(typeof(Inner<>)); Console.WriteLine(typeof(Inner<T>)); Console.WriteLine(typeof(Inner<U>)); Console.WriteLine(typeof(Inner<V>)); }; } } } class Program { static void Main() { Action a = new Outer<int>.Inner<char>().Method<byte>(1); a(); } }"; var comp = CompileAndVerify(source, expectedOutput: @" 1 System.Int32 System.Char System.Byte Outer`1[T] Outer`1[System.Int32] Outer`1[System.Char] Outer`1[System.Byte] Outer`1+Inner`1[T,U] Outer`1+Inner`1[System.Int32,System.Int32] Outer`1+Inner`1[System.Int32,System.Char] Outer`1+Inner`1[System.Int32,System.Byte]"); comp.VerifyDiagnostics(); } [WorkItem(541600, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541600")] [Fact] public void TestTypeOfAlias4TypeMemberOfGeneric() { var source = @" using System; using MyTestClass = TestClass<string>; public class TestClass<T> { public enum TestEnum { First = 0, } } public class mem178 { public static int Main() { Console.Write(typeof(MyTestClass.TestEnum)); return 0; } } "; CompileAndVerify(source, expectedOutput: @"TestClass`1+TestEnum[System.String]"); } [WorkItem(541618, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541618")] [Fact] public void TestTypeOfAlias5TypeMemberOfGeneric() { var source = @" using OuterOfString = Outer<string>; using OuterOfInt = Outer<int>; public class Outer<T> { public class Inner<U> { } } public class Program { public static void Main() { System.Console.WriteLine(typeof(OuterOfString.Inner<>) == typeof(OuterOfInt.Inner<>)); } } "; // NOTE: this is the Dev10 output. Change to false if we decide to take a breaking change. CompileAndVerify(source, expectedOutput: @"True"); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.CodeGen { public class CodeGenTypeOfTests : CSharpTestBase { [Fact] public void TestTypeofSimple() { var source = @" class C { static void Main() { System.Console.WriteLine(typeof(C)); } }"; var comp = CompileAndVerify(source, expectedOutput: "C"); comp.VerifyDiagnostics(); comp.VerifyIL("C.Main", @"{ // Code size 16 (0x10) .maxstack 1 IL_0000: ldtoken ""C"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ret }"); } [Fact] public void TestTypeofNonGeneric() { var source = @" namespace Source { class Class { } struct Struct { } enum Enum { e } interface Interface { } class StaticClass { } } class Program { static void Main() { // From source System.Console.WriteLine(typeof(Source.Class)); System.Console.WriteLine(typeof(Source.Struct)); System.Console.WriteLine(typeof(Source.Enum)); System.Console.WriteLine(typeof(Source.Interface)); System.Console.WriteLine(typeof(Source.StaticClass)); // From metadata System.Console.WriteLine(typeof(string)); System.Console.WriteLine(typeof(int)); System.Console.WriteLine(typeof(System.IO.FileMode)); System.Console.WriteLine(typeof(System.IFormattable)); System.Console.WriteLine(typeof(System.Math)); // Special System.Console.WriteLine(typeof(void)); } }"; var comp = CompileAndVerify(source, expectedOutput: @" Source.Class Source.Struct Source.Enum Source.Interface Source.StaticClass System.String System.Int32 System.IO.FileMode System.IFormattable System.Math System.Void"); comp.VerifyDiagnostics(); comp.VerifyIL("Program.Main", @"{ // Code size 166 (0xa6) .maxstack 1 IL_0000: ldtoken ""Source.Class"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""Source.Struct"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ldtoken ""Source.Enum"" IL_0023: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0028: call ""void System.Console.WriteLine(object)"" IL_002d: ldtoken ""Source.Interface"" IL_0032: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0037: call ""void System.Console.WriteLine(object)"" IL_003c: ldtoken ""Source.StaticClass"" IL_0041: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0046: call ""void System.Console.WriteLine(object)"" IL_004b: ldtoken ""string"" IL_0050: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0055: call ""void System.Console.WriteLine(object)"" IL_005a: ldtoken ""int"" IL_005f: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0064: call ""void System.Console.WriteLine(object)"" IL_0069: ldtoken ""System.IO.FileMode"" IL_006e: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0073: call ""void System.Console.WriteLine(object)"" IL_0078: ldtoken ""System.IFormattable"" IL_007d: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0082: call ""void System.Console.WriteLine(object)"" IL_0087: ldtoken ""System.Math"" IL_008c: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0091: call ""void System.Console.WriteLine(object)"" IL_0096: ldtoken ""void"" IL_009b: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_00a0: call ""void System.Console.WriteLine(object)"" IL_00a5: ret }"); } [Fact] public void TestTypeofGeneric() { var source = @" class Class1<T> { } class Class2<T, U> { } class Program { static void Main() { System.Console.WriteLine(typeof(Class1<int>)); System.Console.WriteLine(typeof(Class1<Class1<int>>)); System.Console.WriteLine(typeof(Class2<int, long>)); System.Console.WriteLine(typeof(Class2<Class1<int>, Class1<long>>)); } }"; var comp = CompileAndVerify(source, expectedOutput: @" Class1`1[System.Int32] Class1`1[Class1`1[System.Int32]] Class2`2[System.Int32,System.Int64] Class2`2[Class1`1[System.Int32],Class1`1[System.Int64]]"); comp.VerifyDiagnostics(); comp.VerifyIL("Program.Main", @"{ // Code size 61 (0x3d) .maxstack 1 IL_0000: ldtoken ""Class1<int>"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""Class1<Class1<int>>"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ldtoken ""Class2<int, long>"" IL_0023: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0028: call ""void System.Console.WriteLine(object)"" IL_002d: ldtoken ""Class2<Class1<int>, Class1<long>>"" IL_0032: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0037: call ""void System.Console.WriteLine(object)"" IL_003c: ret }"); } [Fact] public void TestTypeofTypeParameter() { var source = @" class Class<T> { public static void Print() { System.Console.WriteLine(typeof(T)); System.Console.WriteLine(typeof(Class<T>)); } public static void Print<U>() { System.Console.WriteLine(typeof(U)); System.Console.WriteLine(typeof(Class<U>)); } } class Program { static void Main() { Class<int>.Print(); Class<Class<int>>.Print(); Class<int>.Print<long>(); Class<Class<int>>.Print<Class<long>>(); } }"; var comp = CompileAndVerify(source, expectedOutput: @" System.Int32 Class`1[System.Int32] Class`1[System.Int32] Class`1[Class`1[System.Int32]] System.Int64 Class`1[System.Int64] Class`1[System.Int64] Class`1[Class`1[System.Int64]]"); comp.VerifyDiagnostics(); comp.VerifyIL("Class<T>.Print", @"{ // Code size 31 (0x1f) .maxstack 1 IL_0000: ldtoken ""T"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""Class<T>"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ret }"); comp.VerifyIL("Class<T>.Print<U>", @"{ // Code size 31 (0x1f) .maxstack 1 IL_0000: ldtoken ""U"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""Class<U>"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ret }"); } [Fact] public void TestTypeofUnboundGeneric() { var source = @" class Class1<T> { } class Class2<T, U> { } class Program { static void Main() { System.Console.WriteLine(typeof(Class1<>)); System.Console.WriteLine(typeof(Class2<,>)); } }"; var comp = CompileAndVerify(source, expectedOutput: @" Class1`1[T] Class2`2[T,U]"); comp.VerifyDiagnostics(); comp.VerifyIL("Program.Main", @"{ // Code size 31 (0x1f) .maxstack 1 IL_0000: ldtoken ""Class1<T>"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""Class2<T, U>"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ret }"); } [WorkItem(542581, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542581")] [Fact] public void TestTypeofInheritedNestedTypeThroughUnboundGeneric_01() { var source = @" using System; class D<T> : C, I1, I2<T, int> { } interface I1 { } interface I2<T, U> { } class F<T> { public class E {} } class G<T> : F<T>, I1, I2<T, int> { } class H<T, U> { public class E {} } class K<T> : H<T, int>{ } class C { public class E { } static void Main() { Console.WriteLine(typeof(D<>.E)); Console.WriteLine(typeof(D<>).BaseType); var interfaces = typeof(D<>).GetInterfaces(); Console.WriteLine(interfaces[0]); Console.WriteLine(interfaces[1]); Console.WriteLine(typeof(G<>.E)); Console.WriteLine(typeof(G<>).BaseType); interfaces = typeof(G<>).GetInterfaces(); Console.WriteLine(interfaces[0]); Console.WriteLine(interfaces[1]); Console.WriteLine(typeof(K<>.E)); Console.WriteLine(typeof(K<>).BaseType); } }"; var expected = @"C+E C I1 I2`2[T,System.Int32] F`1+E[T] F`1[T] I1 I2`2[T,System.Int32] H`2+E[T,U] H`2[T,System.Int32]"; var comp = CompileAndVerify(source, expectedOutput: expected); comp.VerifyDiagnostics(); } [WorkItem(542581, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542581")] [WorkItem(9850, "https://github.com/dotnet/roslyn/issues/9850")] [Fact] public void TestTypeofInheritedNestedTypeThroughUnboundGeneric_02() { var source = @" using System; class C { public class E { } public class E<V> { } static void Main() { var t1 = typeof(D<>.E); Console.WriteLine(t1); var t2 = typeof(F<>.E); var t3 = typeof(G<>.E); Console.WriteLine(t2); Console.WriteLine(t3); Console.WriteLine(t2.Equals(t3)); var t4 = typeof(D<>.E<>); Console.WriteLine(t4); var t5 = typeof(F<>.E<>); var t6 = typeof(G<>.E<>); Console.WriteLine(t5); Console.WriteLine(t6); Console.WriteLine(t5.Equals(t6)); } } class C<U> { public class E { } public class E<V> { } } class D<T> : C { } class F<T> : C<T> { } class G<T> : C<int> { } "; var expected = @"C+E C`1+E[U] C`1+E[U] True C+E`1[V] C`1+E`1[U,V] C`1+E`1[U,V] True"; var comp = CompileAndVerify(source, expectedOutput: expected); comp.VerifyDiagnostics(); } [WorkItem(542581, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542581")] [Fact] public void TestTypeofInheritedNestedTypeThroughUnboundGeneric_Attribute() { var source = @" using System; [AttributeUsage(AttributeTargets.All, AllowMultiple = true)] class TestAttribute : Attribute { public TestAttribute(System.Type type){} } class D<T> : C, I1, I2<T, int> { } interface I1 { } interface I2<T, U> { } class F<T> { public class E {} } class G<T> : F<T>, I1, I2<T, int> { } class H<T, U> { public class E {} } class K<T> : H<T, int>{ } [TestAttribute(typeof(D<>))] [TestAttribute(typeof(D<>.E))] [TestAttribute(typeof(G<>))] [TestAttribute(typeof(G<>.E))] [TestAttribute(typeof(K<>))] [TestAttribute(typeof(K<>.E))] class C { public class E { } static void Main() { typeof(C).GetCustomAttributes(false); } }"; var comp = CompileAndVerify(source, expectedOutput: ""); } [Fact] public void TestTypeofArray() { var source = @" class Class1<T> { } class Program { static void Print<U>() { System.Console.WriteLine(typeof(int[])); System.Console.WriteLine(typeof(int[,])); System.Console.WriteLine(typeof(int[][])); System.Console.WriteLine(typeof(U[])); System.Console.WriteLine(typeof(Class1<U>[])); System.Console.WriteLine(typeof(Class1<int>[])); } static void Main() { Print<long>(); } }"; var comp = CompileAndVerify(source, expectedOutput: @" System.Int32[] System.Int32[,] System.Int32[][] System.Int64[] Class1`1[System.Int64][] Class1`1[System.Int32][]"); comp.VerifyDiagnostics(); comp.VerifyIL("Program.Print<U>", @"{ // Code size 91 (0x5b) .maxstack 1 IL_0000: ldtoken ""int[]"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""int[,]"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ldtoken ""int[][]"" IL_0023: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0028: call ""void System.Console.WriteLine(object)"" IL_002d: ldtoken ""U[]"" IL_0032: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0037: call ""void System.Console.WriteLine(object)"" IL_003c: ldtoken ""Class1<U>[]"" IL_0041: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0046: call ""void System.Console.WriteLine(object)"" IL_004b: ldtoken ""Class1<int>[]"" IL_0050: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0055: call ""void System.Console.WriteLine(object)"" IL_005a: ret }"); } [Fact] public void TestTypeofNested() { var source = @" class Outer<T> { public static void Print() { System.Console.WriteLine(typeof(Inner<>)); System.Console.WriteLine(typeof(Inner<T>)); System.Console.WriteLine(typeof(Inner<int>)); System.Console.WriteLine(typeof(Outer<>.Inner<>)); // System.Console.WriteLine(typeof(Outer<>.Inner<T>)); //CS7003 // System.Console.WriteLine(typeof(Outer<>.Inner<int>)); //CS7003 // System.Console.WriteLine(typeof(Outer<T>.Inner<>)); //CS7003 System.Console.WriteLine(typeof(Outer<T>.Inner<T>)); System.Console.WriteLine(typeof(Outer<T>.Inner<int>)); // System.Console.WriteLine(typeof(Outer<int>.Inner<>)); //CS7003 System.Console.WriteLine(typeof(Outer<int>.Inner<T>)); System.Console.WriteLine(typeof(Outer<int>.Inner<int>)); } class Inner<U> { } } class Program { static void Main() { Outer<long>.Print(); } }"; var comp = CompileAndVerify(source, expectedOutput: @" Outer`1+Inner`1[T,U] Outer`1+Inner`1[System.Int64,System.Int64] Outer`1+Inner`1[System.Int64,System.Int32] Outer`1+Inner`1[T,U] Outer`1+Inner`1[System.Int64,System.Int64] Outer`1+Inner`1[System.Int64,System.Int32] Outer`1+Inner`1[System.Int32,System.Int64] Outer`1+Inner`1[System.Int32,System.Int32]"); comp.VerifyDiagnostics(); comp.VerifyIL("Outer<T>.Print", @"{ // Code size 121 (0x79) .maxstack 1 IL_0000: ldtoken ""Outer<T>.Inner<U>"" IL_0005: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_000a: call ""void System.Console.WriteLine(object)"" IL_000f: ldtoken ""Outer<T>.Inner<T>"" IL_0014: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0019: call ""void System.Console.WriteLine(object)"" IL_001e: ldtoken ""Outer<T>.Inner<int>"" IL_0023: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0028: call ""void System.Console.WriteLine(object)"" IL_002d: ldtoken ""Outer<T>.Inner<U>"" IL_0032: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0037: call ""void System.Console.WriteLine(object)"" IL_003c: ldtoken ""Outer<T>.Inner<T>"" IL_0041: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0046: call ""void System.Console.WriteLine(object)"" IL_004b: ldtoken ""Outer<T>.Inner<int>"" IL_0050: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0055: call ""void System.Console.WriteLine(object)"" IL_005a: ldtoken ""Outer<int>.Inner<T>"" IL_005f: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0064: call ""void System.Console.WriteLine(object)"" IL_0069: ldtoken ""Outer<int>.Inner<int>"" IL_006e: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_0073: call ""void System.Console.WriteLine(object)"" IL_0078: ret }"); } [Fact] public void TestTypeofInLambda() { var source = @" using System; public class Outer<T> { public class Inner<U> { public Action Method<V>(V v) { return () => { Console.WriteLine(v); Console.WriteLine(typeof(T)); Console.WriteLine(typeof(U)); Console.WriteLine(typeof(V)); Console.WriteLine(typeof(Outer<>)); Console.WriteLine(typeof(Outer<T>)); Console.WriteLine(typeof(Outer<U>)); Console.WriteLine(typeof(Outer<V>)); Console.WriteLine(typeof(Inner<>)); Console.WriteLine(typeof(Inner<T>)); Console.WriteLine(typeof(Inner<U>)); Console.WriteLine(typeof(Inner<V>)); }; } } } class Program { static void Main() { Action a = new Outer<int>.Inner<char>().Method<byte>(1); a(); } }"; var comp = CompileAndVerify(source, expectedOutput: @" 1 System.Int32 System.Char System.Byte Outer`1[T] Outer`1[System.Int32] Outer`1[System.Char] Outer`1[System.Byte] Outer`1+Inner`1[T,U] Outer`1+Inner`1[System.Int32,System.Int32] Outer`1+Inner`1[System.Int32,System.Char] Outer`1+Inner`1[System.Int32,System.Byte]"); comp.VerifyDiagnostics(); } [WorkItem(541600, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541600")] [Fact] public void TestTypeOfAlias4TypeMemberOfGeneric() { var source = @" using System; using MyTestClass = TestClass<string>; public class TestClass<T> { public enum TestEnum { First = 0, } } public class mem178 { public static int Main() { Console.Write(typeof(MyTestClass.TestEnum)); return 0; } } "; CompileAndVerify(source, expectedOutput: @"TestClass`1+TestEnum[System.String]"); } [WorkItem(541618, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541618")] [Fact] public void TestTypeOfAlias5TypeMemberOfGeneric() { var source = @" using OuterOfString = Outer<string>; using OuterOfInt = Outer<int>; public class Outer<T> { public class Inner<U> { } } public class Program { public static void Main() { System.Console.WriteLine(typeof(OuterOfString.Inner<>) == typeof(OuterOfInt.Inner<>)); } } "; // NOTE: this is the Dev10 output. Change to false if we decide to take a breaking change. CompileAndVerify(source, expectedOutput: @"True"); } } }
-1
dotnet/roslyn
55,408
Update package references
CyrusNajmabadi
2021-08-04T19:12:45Z
2021-08-04T22:34:08Z
967cf7cf7be8478cce7cda728217eab8504f2863
d41ae79bb1a3f0deb2de2f3d67c976f795da9563
Update package references.
./src/VisualStudio/Core/Impl/CodeModel/Collections/NodeSnapshot.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnalysis; using Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.InternalElements; using Microsoft.VisualStudio.LanguageServices.Implementation.Interop; namespace Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.Collections { internal class NodeSnapshot : Snapshot { private readonly CodeModelState _state; private readonly ComHandle<EnvDTE.FileCodeModel, FileCodeModel> _fileCodeModel; private readonly SyntaxNode _parentNode; private readonly AbstractCodeElement _parentElement; private readonly ImmutableArray<SyntaxNode> _nodes; public NodeSnapshot( CodeModelState state, ComHandle<EnvDTE.FileCodeModel, FileCodeModel> fileCodeModel, SyntaxNode parentNode, AbstractCodeElement parentElement, ImmutableArray<SyntaxNode> nodes) { _state = state; _fileCodeModel = fileCodeModel; _parentNode = parentNode; _parentElement = parentElement; _nodes = nodes; } private ICodeModelService CodeModelService { get { return _state.CodeModelService; } } private FileCodeModel FileCodeModel { get { return _fileCodeModel.Object; } } private EnvDTE.CodeElement CreateCodeOptionsStatement(SyntaxNode node) { this.CodeModelService.GetOptionNameAndOrdinal(_parentNode, node, out var name, out var ordinal); return CodeOptionsStatement.Create(_state, this.FileCodeModel, name, ordinal); } private EnvDTE.CodeElement CreateCodeImport(SyntaxNode node) { var name = this.CodeModelService.GetImportNamespaceOrType(node); return CodeImport.Create(_state, this.FileCodeModel, _parentElement, name); } private EnvDTE.CodeElement CreateCodeAttribute(SyntaxNode node) { this.CodeModelService.GetAttributeNameAndOrdinal(_parentNode, node, out var name, out var ordinal); return (EnvDTE.CodeElement)CodeAttribute.Create(_state, this.FileCodeModel, _parentElement, name, ordinal); } private EnvDTE.CodeElement CreateCodeParameter(SyntaxNode node) { Debug.Assert(_parentElement is AbstractCodeMember, "Parameters should always have an associated member!"); var name = this.CodeModelService.GetParameterName(node); return (EnvDTE.CodeElement)CodeParameter.Create(_state, (AbstractCodeMember)_parentElement, name); } public override int Count { get { return _nodes.Length; } } public override EnvDTE.CodeElement this[int index] { get { if (index < 0 || index >= _nodes.Length) { throw new ArgumentOutOfRangeException(nameof(index)); } var node = _nodes[index]; if (this.CodeModelService.IsOptionNode(node)) { return CreateCodeOptionsStatement(node); } else if (this.CodeModelService.IsImportNode(node)) { return CreateCodeImport(node); } else if (this.CodeModelService.IsAttributeNode(node)) { return CreateCodeAttribute(node); } else if (this.CodeModelService.IsParameterNode(node)) { return CreateCodeParameter(node); } // The node must be something that the FileCodeModel can create. return this.FileCodeModel.GetOrCreateCodeElement<EnvDTE.CodeElement>(node); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnalysis; using Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.InternalElements; using Microsoft.VisualStudio.LanguageServices.Implementation.Interop; namespace Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.Collections { internal class NodeSnapshot : Snapshot { private readonly CodeModelState _state; private readonly ComHandle<EnvDTE.FileCodeModel, FileCodeModel> _fileCodeModel; private readonly SyntaxNode _parentNode; private readonly AbstractCodeElement _parentElement; private readonly ImmutableArray<SyntaxNode> _nodes; public NodeSnapshot( CodeModelState state, ComHandle<EnvDTE.FileCodeModel, FileCodeModel> fileCodeModel, SyntaxNode parentNode, AbstractCodeElement parentElement, ImmutableArray<SyntaxNode> nodes) { _state = state; _fileCodeModel = fileCodeModel; _parentNode = parentNode; _parentElement = parentElement; _nodes = nodes; } private ICodeModelService CodeModelService { get { return _state.CodeModelService; } } private FileCodeModel FileCodeModel { get { return _fileCodeModel.Object; } } private EnvDTE.CodeElement CreateCodeOptionsStatement(SyntaxNode node) { this.CodeModelService.GetOptionNameAndOrdinal(_parentNode, node, out var name, out var ordinal); return CodeOptionsStatement.Create(_state, this.FileCodeModel, name, ordinal); } private EnvDTE.CodeElement CreateCodeImport(SyntaxNode node) { var name = this.CodeModelService.GetImportNamespaceOrType(node); return CodeImport.Create(_state, this.FileCodeModel, _parentElement, name); } private EnvDTE.CodeElement CreateCodeAttribute(SyntaxNode node) { this.CodeModelService.GetAttributeNameAndOrdinal(_parentNode, node, out var name, out var ordinal); return (EnvDTE.CodeElement)CodeAttribute.Create(_state, this.FileCodeModel, _parentElement, name, ordinal); } private EnvDTE.CodeElement CreateCodeParameter(SyntaxNode node) { Debug.Assert(_parentElement is AbstractCodeMember, "Parameters should always have an associated member!"); var name = this.CodeModelService.GetParameterName(node); return (EnvDTE.CodeElement)CodeParameter.Create(_state, (AbstractCodeMember)_parentElement, name); } public override int Count { get { return _nodes.Length; } } public override EnvDTE.CodeElement this[int index] { get { if (index < 0 || index >= _nodes.Length) { throw new ArgumentOutOfRangeException(nameof(index)); } var node = _nodes[index]; if (this.CodeModelService.IsOptionNode(node)) { return CreateCodeOptionsStatement(node); } else if (this.CodeModelService.IsImportNode(node)) { return CreateCodeImport(node); } else if (this.CodeModelService.IsAttributeNode(node)) { return CreateCodeAttribute(node); } else if (this.CodeModelService.IsParameterNode(node)) { return CreateCodeParameter(node); } // The node must be something that the FileCodeModel can create. return this.FileCodeModel.GetOrCreateCodeElement<EnvDTE.CodeElement>(node); } } } }
-1
dotnet/roslyn
55,408
Update package references
CyrusNajmabadi
2021-08-04T19:12:45Z
2021-08-04T22:34:08Z
967cf7cf7be8478cce7cda728217eab8504f2863
d41ae79bb1a3f0deb2de2f3d67c976f795da9563
Update package references.
./src/Analyzers/VisualBasic/CodeFixes/UseCompoundAssignment/VisualBasicUseCompoundAssignmentCodeFixProvider.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Composition Imports System.Diagnostics.CodeAnalysis Imports Microsoft.CodeAnalysis.CodeFixes Imports Microsoft.CodeAnalysis.UseCompoundAssignment Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.UseCompoundAssignment <ExportCodeFixProvider(LanguageNames.VisualBasic, Name:=PredefinedCodeFixProviderNames.UseCompoundAssignment), [Shared]> Friend Class VisualBasicUseCompoundAssignmentCodeFixProvider Inherits AbstractUseCompoundAssignmentCodeFixProvider(Of SyntaxKind, AssignmentStatementSyntax, ExpressionSyntax) <ImportingConstructor> <SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification:="Used in test code: https://github.com/dotnet/roslyn/issues/42814")> Public Sub New() MyBase.New(Kinds) End Sub Protected Overrides Function Token(kind As SyntaxKind) As SyntaxToken Return SyntaxFactory.Token(kind) End Function Protected Overrides Function Assignment( assignmentOpKind As SyntaxKind, left As ExpressionSyntax, syntaxToken As SyntaxToken, right As ExpressionSyntax) As AssignmentStatementSyntax Return SyntaxFactory.AssignmentStatement(assignmentOpKind, left, syntaxToken, right) End Function Protected Overrides Function Increment(left As ExpressionSyntax, postfix As Boolean) As ExpressionSyntax Throw ExceptionUtilities.Unreachable End Function Protected Overrides Function Decrement(left As ExpressionSyntax, postfix As Boolean) As ExpressionSyntax Throw ExceptionUtilities.Unreachable End Function End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Composition Imports System.Diagnostics.CodeAnalysis Imports Microsoft.CodeAnalysis.CodeFixes Imports Microsoft.CodeAnalysis.UseCompoundAssignment Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.UseCompoundAssignment <ExportCodeFixProvider(LanguageNames.VisualBasic, Name:=PredefinedCodeFixProviderNames.UseCompoundAssignment), [Shared]> Friend Class VisualBasicUseCompoundAssignmentCodeFixProvider Inherits AbstractUseCompoundAssignmentCodeFixProvider(Of SyntaxKind, AssignmentStatementSyntax, ExpressionSyntax) <ImportingConstructor> <SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification:="Used in test code: https://github.com/dotnet/roslyn/issues/42814")> Public Sub New() MyBase.New(Kinds) End Sub Protected Overrides Function Token(kind As SyntaxKind) As SyntaxToken Return SyntaxFactory.Token(kind) End Function Protected Overrides Function Assignment( assignmentOpKind As SyntaxKind, left As ExpressionSyntax, syntaxToken As SyntaxToken, right As ExpressionSyntax) As AssignmentStatementSyntax Return SyntaxFactory.AssignmentStatement(assignmentOpKind, left, syntaxToken, right) End Function Protected Overrides Function Increment(left As ExpressionSyntax, postfix As Boolean) As ExpressionSyntax Throw ExceptionUtilities.Unreachable End Function Protected Overrides Function Decrement(left As ExpressionSyntax, postfix As Boolean) As ExpressionSyntax Throw ExceptionUtilities.Unreachable End Function End Class End Namespace
-1
dotnet/roslyn
55,408
Update package references
CyrusNajmabadi
2021-08-04T19:12:45Z
2021-08-04T22:34:08Z
967cf7cf7be8478cce7cda728217eab8504f2863
d41ae79bb1a3f0deb2de2f3d67c976f795da9563
Update package references.
./src/Features/Core/Portable/CodeCleanup/AbstractCodeCleanupService.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.RemoveUnnecessaryImports; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Shared.Utilities; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CodeCleanup { internal abstract class AbstractCodeCleanupService : ICodeCleanupService { private readonly ICodeFixService _codeFixService; protected AbstractCodeCleanupService(ICodeFixService codeFixService) { _codeFixService = codeFixService; } protected abstract string OrganizeImportsDescription { get; } protected abstract ImmutableArray<DiagnosticSet> GetDiagnosticSets(); public async Task<Document> CleanupAsync( Document document, EnabledDiagnosticOptions enabledDiagnostics, IProgressTracker progressTracker, CancellationToken cancellationToken) { // add one item for the 'format' action we'll do last if (enabledDiagnostics.FormatDocument) { progressTracker.AddItems(1); } // and one for 'remove/sort usings' if we're going to run that. var organizeUsings = enabledDiagnostics.OrganizeUsings.IsRemoveUnusedImportEnabled || enabledDiagnostics.OrganizeUsings.IsSortImportsEnabled; if (organizeUsings) { progressTracker.AddItems(1); } document = await ApplyCodeFixesAsync( document, enabledDiagnostics.Diagnostics, progressTracker, cancellationToken).ConfigureAwait(false); // do the remove usings after code fix, as code fix might remove some code which can results in unused usings. if (organizeUsings) { progressTracker.Description = this.OrganizeImportsDescription; document = await RemoveSortUsingsAsync( document, enabledDiagnostics.OrganizeUsings, cancellationToken).ConfigureAwait(false); progressTracker.ItemCompleted(); } if (enabledDiagnostics.FormatDocument) { progressTracker.Description = FeaturesResources.Formatting_document; using (Logger.LogBlock(FunctionId.CodeCleanup_Format, cancellationToken)) { document = await Formatter.FormatAsync(document, cancellationToken: cancellationToken).ConfigureAwait(false); progressTracker.ItemCompleted(); } } return document; } private static async Task<Document> RemoveSortUsingsAsync( Document document, OrganizeUsingsSet organizeUsingsSet, CancellationToken cancellationToken) { if (organizeUsingsSet.IsRemoveUnusedImportEnabled) { var removeUsingsService = document.GetLanguageService<IRemoveUnnecessaryImportsService>(); if (removeUsingsService != null) { using (Logger.LogBlock(FunctionId.CodeCleanup_RemoveUnusedImports, cancellationToken)) { document = await removeUsingsService.RemoveUnnecessaryImportsAsync(document, cancellationToken).ConfigureAwait(false); } } } if (organizeUsingsSet.IsSortImportsEnabled) { using (Logger.LogBlock(FunctionId.CodeCleanup_SortImports, cancellationToken)) { document = await Formatter.OrganizeImportsAsync(document, cancellationToken).ConfigureAwait(false); } } return document; } private async Task<Document> ApplyCodeFixesAsync( Document document, ImmutableArray<DiagnosticSet> enabledDiagnosticSets, IProgressTracker progressTracker, CancellationToken cancellationToken) { // Add a progress item for each enabled option we're going to fixup. progressTracker.AddItems(enabledDiagnosticSets.Length); foreach (var diagnosticSet in enabledDiagnosticSets) { cancellationToken.ThrowIfCancellationRequested(); progressTracker.Description = diagnosticSet.Description; document = await ApplyCodeFixesForSpecificDiagnosticIdsAsync( document, diagnosticSet.DiagnosticIds, progressTracker, cancellationToken).ConfigureAwait(false); // Mark this option as being completed. progressTracker.ItemCompleted(); } return document; } private async Task<Document> ApplyCodeFixesForSpecificDiagnosticIdsAsync( Document document, ImmutableArray<string> diagnosticIds, IProgressTracker progressTracker, CancellationToken cancellationToken) { foreach (var diagnosticId in diagnosticIds) { using (Logger.LogBlock(FunctionId.CodeCleanup_ApplyCodeFixesAsync, diagnosticId, cancellationToken)) { document = await _codeFixService.ApplyCodeFixesForSpecificDiagnosticIdAsync( document, diagnosticId, progressTracker, cancellationToken).ConfigureAwait(false); } } return document; } public EnabledDiagnosticOptions GetAllDiagnostics() => new EnabledDiagnosticOptions(formatDocument: true, GetDiagnosticSets(), new OrganizeUsingsSet(isRemoveUnusedImportEnabled: true, isSortImportsEnabled: true)); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.RemoveUnnecessaryImports; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Shared.Utilities; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CodeCleanup { internal abstract class AbstractCodeCleanupService : ICodeCleanupService { private readonly ICodeFixService _codeFixService; protected AbstractCodeCleanupService(ICodeFixService codeFixService) { _codeFixService = codeFixService; } protected abstract string OrganizeImportsDescription { get; } protected abstract ImmutableArray<DiagnosticSet> GetDiagnosticSets(); public async Task<Document> CleanupAsync( Document document, EnabledDiagnosticOptions enabledDiagnostics, IProgressTracker progressTracker, CancellationToken cancellationToken) { // add one item for the 'format' action we'll do last if (enabledDiagnostics.FormatDocument) { progressTracker.AddItems(1); } // and one for 'remove/sort usings' if we're going to run that. var organizeUsings = enabledDiagnostics.OrganizeUsings.IsRemoveUnusedImportEnabled || enabledDiagnostics.OrganizeUsings.IsSortImportsEnabled; if (organizeUsings) { progressTracker.AddItems(1); } document = await ApplyCodeFixesAsync( document, enabledDiagnostics.Diagnostics, progressTracker, cancellationToken).ConfigureAwait(false); // do the remove usings after code fix, as code fix might remove some code which can results in unused usings. if (organizeUsings) { progressTracker.Description = this.OrganizeImportsDescription; document = await RemoveSortUsingsAsync( document, enabledDiagnostics.OrganizeUsings, cancellationToken).ConfigureAwait(false); progressTracker.ItemCompleted(); } if (enabledDiagnostics.FormatDocument) { progressTracker.Description = FeaturesResources.Formatting_document; using (Logger.LogBlock(FunctionId.CodeCleanup_Format, cancellationToken)) { document = await Formatter.FormatAsync(document, cancellationToken: cancellationToken).ConfigureAwait(false); progressTracker.ItemCompleted(); } } return document; } private static async Task<Document> RemoveSortUsingsAsync( Document document, OrganizeUsingsSet organizeUsingsSet, CancellationToken cancellationToken) { if (organizeUsingsSet.IsRemoveUnusedImportEnabled) { var removeUsingsService = document.GetLanguageService<IRemoveUnnecessaryImportsService>(); if (removeUsingsService != null) { using (Logger.LogBlock(FunctionId.CodeCleanup_RemoveUnusedImports, cancellationToken)) { document = await removeUsingsService.RemoveUnnecessaryImportsAsync(document, cancellationToken).ConfigureAwait(false); } } } if (organizeUsingsSet.IsSortImportsEnabled) { using (Logger.LogBlock(FunctionId.CodeCleanup_SortImports, cancellationToken)) { document = await Formatter.OrganizeImportsAsync(document, cancellationToken).ConfigureAwait(false); } } return document; } private async Task<Document> ApplyCodeFixesAsync( Document document, ImmutableArray<DiagnosticSet> enabledDiagnosticSets, IProgressTracker progressTracker, CancellationToken cancellationToken) { // Add a progress item for each enabled option we're going to fixup. progressTracker.AddItems(enabledDiagnosticSets.Length); foreach (var diagnosticSet in enabledDiagnosticSets) { cancellationToken.ThrowIfCancellationRequested(); progressTracker.Description = diagnosticSet.Description; document = await ApplyCodeFixesForSpecificDiagnosticIdsAsync( document, diagnosticSet.DiagnosticIds, progressTracker, cancellationToken).ConfigureAwait(false); // Mark this option as being completed. progressTracker.ItemCompleted(); } return document; } private async Task<Document> ApplyCodeFixesForSpecificDiagnosticIdsAsync( Document document, ImmutableArray<string> diagnosticIds, IProgressTracker progressTracker, CancellationToken cancellationToken) { foreach (var diagnosticId in diagnosticIds) { using (Logger.LogBlock(FunctionId.CodeCleanup_ApplyCodeFixesAsync, diagnosticId, cancellationToken)) { document = await _codeFixService.ApplyCodeFixesForSpecificDiagnosticIdAsync( document, diagnosticId, progressTracker, cancellationToken).ConfigureAwait(false); } } return document; } public EnabledDiagnosticOptions GetAllDiagnostics() => new EnabledDiagnosticOptions(formatDocument: true, GetDiagnosticSets(), new OrganizeUsingsSet(isRemoveUnusedImportEnabled: true, isSortImportsEnabled: true)); } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/CSharp/Test/Emit/Emit/EditAndContinue/EditAndContinueClosureTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Immutable; using System.Linq; using System.Reflection.Metadata.Ecma335; using Microsoft.CodeAnalysis.CodeGen; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.CSharp.UnitTests; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests { public class EditAndContinueClosureTests : EditAndContinueTestBase { [Fact] public void MethodToMethodWithClosure() { var source0 = @"delegate object D(); class C { static object F(object o) { return o; } }"; var source1 = @"delegate object D(); class C { static object F(object o) { return ((D)(() => o))(); } }"; var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); var compilation1 = compilation0.WithSource(source1); var bytes0 = compilation0.EmitToArray(); var generation0 = EmitBaseline.CreateInitialBaseline(ModuleMetadata.CreateFromImage(bytes0), EmptyLocalsProvider); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation0.GetMember<MethodSymbol>("C.F"), compilation1.GetMember<MethodSymbol>("C.F")))); using (var md1 = diff1.GetMetadata()) { var reader1 = md1.Reader; // Field 'o' // Methods: 'F', '.ctor', '<F>b__1' // Type: display class CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(4, TableIndex.TypeDef, EditAndContinueOperation.Default), Row(4, TableIndex.TypeDef, EditAndContinueOperation.AddField), Row(1, TableIndex.Field, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.TypeDef, EditAndContinueOperation.AddMethod), Row(7, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.TypeDef, EditAndContinueOperation.AddMethod), Row(8, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.Param, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default), Row(1, TableIndex.NestedClass, EditAndContinueOperation.Default)); } } [Fact] public void MethodWithStaticLambda1() { var source0 = MarkedSource(@" using System; class C { void F() { Func<int> x = <N:0>() => 1</N:0>; } }"); var source1 = MarkedSource(@" using System; class C { void F() { Func<int> x = <N:0>() => 2</N:0>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0_0, <F>b__0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default)); } [Fact] public void MethodWithSwitchExpression() { var source0 = MarkedSource(@" using System; class C { int F(object o) { <N:0>return o switch { int i => new Func<int>(<N:1>() => i + 1</N:1>)(), _ => 0 }</N:0>; } }"); var source1 = MarkedSource(@" using System; class C { int F(object o) { <N:0>return o switch { int i => new Func<int>(<N:1>() => i + 2</N:1>)(), _ => 0 }</N:0>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass0_0: {<i>5__2, <F>b__0}", "C: {<>c__DisplayClass0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; var x = Visualize(generation0.OriginalMetadata, md1); // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void MethodWithNestedSwitchExpression() { var source0 = MarkedSource(@" using System; class C { int F(object o) <N:0>{ <N:1>return o switch { int i => new Func<int>(<N:2>() => i + (int)o + i switch { 1 => 1, _ => new Func<int>(<N:3>() => (int)o + 1</N:3>)() }</N:2>)(), _ => 0 }</N:1>; }</N:0> }"); var source1 = MarkedSource(@" using System; class C { int F(object o) <N:0>{ <N:1>return o switch { int i => new Func<int>(<N:2>() => i + (int)o + i switch { 1 => 1, _ => new Func<int>(<N:3>() => (int)o + 2</N:3>)() }</N:2>)(), _ => 0 }</N:1>; }</N:0> }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0, <>c__DisplayClass0_1}", "C.<>c__DisplayClass0_1: {<i>5__2, CS$<>8__locals2, <F>b__0}", "C.<>c__DisplayClass0_0: {o, <>9__1, <F>b__1}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(3, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(4, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void MethodWithStaticLocalFunction1() { var source0 = MarkedSource(@" using System; class C { void F() { <N:0>int x() => 1;</N:0> } }"); var source1 = MarkedSource(@" using System; class C { void F() { <N:0>int x() => 2;</N:0> } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<F>g__x|0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void MethodWithStaticLocalFunction_ChangeStatic() { var source0 = MarkedSource(@" using System; class C { void F() { <N:0>int x() => 1;</N:0> } }"); var source1 = MarkedSource(@" using System; class C { void F() { <N:0>static int x() => 1;</N:0> } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var reader0 = md0.MetadataReader; var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<F>g__x|0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); var testData0 = new CompilationTestData(); var bytes0 = compilation0.EmitToArray(testData: testData0); var localFunction0 = testData0.GetMethodData("C.<F>g__x|0_0").Method; Assert.True(((Symbol)localFunction0).IsStatic); var localFunction1 = diff1.TestData.GetMethodData("C.<F>g__x|0_0").Method; Assert.True(((Symbol)localFunction1).IsStatic); } [Fact] public void MethodWithStaticLambdaGeneric1() { var source0 = MarkedSource(@" using System; class C { void F<T>() { Func<T> x = <N:0>() => default(T)</N:0>; } }"); var source1 = MarkedSource(@" using System; class C { void F<T>() { Func<T> x = <N:0>() => default(T)</N:0>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c__0}", "C.<>c__0<T>: {<>9__0_0, <F>b__0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(3, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(4, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default)); } [Fact] public void MethodWithStaticLocalFunctionGeneric1() { var source0 = MarkedSource(@" using System; class C { void F<T>() { <N:0>T x() => default(T);</N:0> } }"); var source1 = MarkedSource(@" using System; class C { void F<T>() { <N:0>T x() => default(T);</N:0> } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<F>g__x|0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void MethodWithThisOnlyClosure1() { var source0 = MarkedSource(@" using System; class C { int F(int a) { Func<int> x = <N:0>() => F(1)</N:0>; return 1; } }"); var source1 = MarkedSource(@" using System; class C { int F(int a) { Func<int> x = <N:0>() => F(2)</N:0>; return 2; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<F>b__0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void MethodWithThisOnlyLocalFunctionClosure1() { var source0 = MarkedSource(@" using System; class C { int F(int a) { <N:0>int x() => F(1);</N:0> return 1; } }"); var source1 = MarkedSource(@" using System; class C { int F(int a) { <N:0>int x() => F(2);</N:0> return 2; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<F>g__x|0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void MethodWithClosure1() { var source0 = MarkedSource(@" using System; class C { int F(int a) <N:0>{</N:0> Func<int> x = <N:1>() => F(a + 1)</N:1>; return 1; } }"); var source1 = MarkedSource(@" using System; class C { int F(int a) <N:0>{</N:0> Func<int> x = <N:1>() => F(a + 2)</N:1>; return 2; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass0_0: {<>4__this, a, <F>b__0}", "C: {<>c__DisplayClass0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void MethodWithNullable_AddingNullCheck() { var source0 = MarkedSource(@" using System; #nullable enable class C { static T id<T>(T t) => t; static T G<T>(Func<T> f) => f(); public void F(string? x) <N:0>{</N:0> var <N:1>y1</N:1> = new { A = id(x) }; var <N:2>y2</N:2> = G(<N:3>() => new { B = id(x) }</N:3>); var <N:4>z</N:4> = G(<N:5>() => y1.A + y2.B</N:5>); } }", options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp9)); var source1 = MarkedSource(@" using System; #nullable enable class C { static T id<T>(T t) => t; static T G<T>(Func<T> f) => f(); public void F(string? x) <N:0>{</N:0> if (x is null) throw new Exception(); var <N:1>y1</N:1> = new { A = id(x) }; var <N:2>y2</N:2> = G(<N:3>() => new { B = id(x) }</N:3>); var <N:4>z</N:4> = G(<N:5>() => y1.A + y2.B</N:5>); } }", options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp9)); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "Microsoft.CodeAnalysis: {EmbeddedAttribute}", "Microsoft: {CodeAnalysis}", "System.Runtime: {CompilerServices, CompilerServices}", "<global namespace>: {Microsoft, System, System}", "C: {<>c__DisplayClass2_0}", "System: {Runtime, Runtime}", "C.<>c__DisplayClass2_0: {x, y1, y2, <F>b__0, <F>b__1}", "<>f__AnonymousType1<<B>j__TPar>: {Equals, GetHashCode, ToString}", "System.Runtime.CompilerServices: {NullableAttribute, NullableContextAttribute}", "<>f__AnonymousType0<<A>j__TPar>: {Equals, GetHashCode, ToString}"); diff1.VerifyIL("C.<>c__DisplayClass2_0.<F>b__1()", @" { // Code size 28 (0x1c) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""<anonymous type: string A> C.<>c__DisplayClass2_0.y1"" IL_0006: callvirt ""string <>f__AnonymousType0<string>.A.get"" IL_000b: ldarg.0 IL_000c: ldfld ""<anonymous type: string B> C.<>c__DisplayClass2_0.y2"" IL_0011: callvirt ""string <>f__AnonymousType1<string>.B.get"" IL_0016: call ""string string.Concat(string, string)"" IL_001b: ret }"); diff1.VerifyIL("C.<>c__DisplayClass2_0.<F>b__0()", @" { // Code size 17 (0x11) .maxstack 1 IL_0000: ldarg.0 IL_0001: ldfld ""string C.<>c__DisplayClass2_0.x"" IL_0006: call ""string C.id<string>(string)"" IL_000b: newobj ""<>f__AnonymousType1<string>..ctor(string)"" IL_0010: ret }"); } [Fact] public void MethodWithLocalFunctionClosure1() { var source0 = MarkedSource(@" using System; class C { int F(int a) <N:0>{</N:0> <N:1>int x() => F(a + 1);</N:1> return 1; } }"); var source1 = MarkedSource(@" using System; class C { int F(int a) <N:0>{</N:0> <N:1>int x() => F(a + 2);</N:1> return 2; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<F>g__x|0_0, <>c__DisplayClass0_0}", "C.<>c__DisplayClass0_0: {<>4__this, a}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void ConstructorWithClosure1() { var source0 = MarkedSource(@" using System; class D { public D(Func<int> f) { } } class C : D { <N:0>public C(int a, int b)</N:0> : base(<N:8>() => a</N:8>) <N:1>{</N:1> int c = 0; Func<int> f1 = <N:2>() => a + 1</N:2>; Func<int> f2 = <N:3>() => b + 2</N:3>; Func<int> f3 = <N:4>() => c + 3</N:4>; Func<int> f4 = <N:5>() => a + b + c</N:5>; Func<int> f5 = <N:6>() => a + c</N:6>; Func<int> f6 = <N:7>() => b + c</N:7>; } }"); var source1 = MarkedSource(@" using System; class D { public D(Func<int> f) { } } class C : D { <N:0>public C(int a, int b)</N:0> : base(<N:8>() => a * 10</N:8>) <N:1>{</N:1> int c = 0; Func<int> f1 = <N:2>() => a * 10 + 1</N:2>; Func<int> f2 = <N:3>() => b * 10 + 2</N:3>; Func<int> f3 = <N:4>() => c * 10 + 3</N:4>; Func<int> f4 = <N:5>() => a * 10 + b + c</N:5>; Func<int> f5 = <N:6>() => a * 10 + c</N:6>; Func<int> f6 = <N:7>() => b * 10 + c</N:7>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var ctor0 = compilation0.GetMember<NamedTypeSymbol>("C").InstanceConstructors.Single(); var ctor1 = compilation1.GetMember<NamedTypeSymbol>("C").InstanceConstructors.Single(); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, ctor0, ctor1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0, <>c__DisplayClass0_1}", "C.<>c__DisplayClass0_0: {a, b, <.ctor>b__0, <.ctor>b__1, <.ctor>b__2}", "C.<>c__DisplayClass0_1: {c, CS$<>8__locals1, <.ctor>b__3, <.ctor>b__4, <.ctor>b__5, <.ctor>b__6}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(2, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(8, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(9, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(10, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(11, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(2, TableIndex.Param, EditAndContinueOperation.Default), Row(3, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void PartialClass() { var source0 = MarkedSource(@" using System; partial class C { Func<int> m1 = <N:0>() => 1</N:0>; } partial class C { Func<int> m2 = <N:1>() => 1</N:1>; } "); var source1 = MarkedSource(@" using System; partial class C { Func<int> m1 = <N:0>() => 10</N:0>; } partial class C { Func<int> m2 = <N:1>() => 10</N:1>; }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var ctor0 = compilation0.GetMember<NamedTypeSymbol>("C").InstanceConstructors.Single(); var ctor1 = compilation1.GetMember<NamedTypeSymbol>("C").InstanceConstructors.Single(); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, ctor0, ctor1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__2_0, <>9__2_1, <.ctor>b__2_0, <.ctor>b__2_1}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default)); } [Fact] public void JoinAndGroupByClauses() { var source0 = MarkedSource(@" using System.Linq; class C { void F() { var result = <N:0>from a in new[] { 1, 2, 3 }</N:0> <N:1>join b in new[] { 5 } on a + 1 equals b - 1</N:1> <N:2>group</N:2> new { a, b = a + 5 } by new { c = a + 4 } into d <N:3>select d.Key</N:3>; } }"); var source1 = MarkedSource(@" using System.Linq; class C { void F() { var result = <N:0>from a in new[] { 10, 20, 30 }</N:0> <N:1>join b in new[] { 50 } on a + 10 equals b - 10</N:1> <N:2>group</N:2> new { a, b = a + 50 } by new { c = a + 40 } into d <N:3>select d.Key</N:3>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0_0, <>9__0_1, <>9__0_2, <>9__0_3, <>9__0_4, <>9__0_5, <F>b__0_0, <F>b__0_1, <F>b__0_2, <F>b__0_3, <F>b__0_4, <F>b__0_5}", "<>f__AnonymousType1<<c>j__TPar>: {Equals, GetHashCode, ToString}", "<>f__AnonymousType0<<a>j__TPar, <b>j__TPar>: {Equals, GetHashCode, ToString}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates for lambdas: CheckEncLogDefinitions(reader1, Row(6, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(12, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(16, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(17, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(18, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(19, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(20, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(21, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.Param, EditAndContinueOperation.Default), Row(7, TableIndex.Param, EditAndContinueOperation.Default), Row(8, TableIndex.Param, EditAndContinueOperation.Default), Row(9, TableIndex.Param, EditAndContinueOperation.Default), Row(10, TableIndex.Param, EditAndContinueOperation.Default), Row(11, TableIndex.Param, EditAndContinueOperation.Default), Row(12, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void TransparentIdentifiers_FromClause() { var source0 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } void F() { var <N:10>result = <N:0>from a in new[] { 1 }</N:0> <N:1>from b in <N:9>new[] { 1 }</N:9></N:1> <N:2>where <N:7>Z(<N:5>() => a</N:5>) > 0</N:7></N:2> <N:3>where <N:8>Z(<N:6>() => b</N:6>) > 0</N:8></N:3> <N:4>select a</N:4></N:10>; } }"); var source1 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } void F() { var <N:10>result = <N:0>from a in new[] { 1 }</N:0> <N:1>from b in <N:9>new[] { 2 }</N:9></N:1> <N:2>where <N:7>Z(<N:5>() => a</N:5>) > 1</N:7></N:2> <N:3>where <N:8>Z(<N:6>() => b</N:6>) > 2</N:8></N:3> <N:4>select a</N:4></N:10>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass1_1: {<>h__TransparentIdentifier0, <F>b__6}", "C.<>c__DisplayClass1_0: {<>h__TransparentIdentifier0, <F>b__5}", "C.<>c: {<>9__1_0, <>9__1_1, <>9__1_4, <F>b__1_0, <F>b__1_1, <F>b__1_4}", "C: {<F>b__1_2, <F>b__1_3, <>c__DisplayClass1_0, <>c__DisplayClass1_1, <>c}", "<>f__AnonymousType0<<a>j__TPar, <b>j__TPar>: {Equals, GetHashCode, ToString}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates for lambdas: CheckEncLogDefinitions(reader1, Row(7, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(8, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(9, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(8, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(10, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(11, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(13, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(15, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(18, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(19, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(20, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.Param, EditAndContinueOperation.Default), Row(6, TableIndex.Param, EditAndContinueOperation.Default), Row(7, TableIndex.Param, EditAndContinueOperation.Default), Row(8, TableIndex.Param, EditAndContinueOperation.Default), Row(9, TableIndex.Param, EditAndContinueOperation.Default), Row(10, TableIndex.Param, EditAndContinueOperation.Default), Row(15, TableIndex.CustomAttribute, EditAndContinueOperation.Default), Row(16, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void TransparentIdentifiers_LetClause() { var source0 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } void F() { var result = <N:0>from a in new[] { 1 }</N:0> <N:1>let b = <N:2>Z(<N:3>() => a</N:3>)</N:2></N:1> <N:4>select <N:5>a + b</N:5></N:4>; } }"); var source1 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } void F() { var result = <N:0>from a in new[] { 1 }</N:0> <N:1>let b = <N:2>Z(<N:3>() => a</N:3>) + 1</N:2></N:1> <N:4>select <N:5>a + b</N:5></N:4>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C.<>c: {<>9__1_1, <F>b__1_1}", "<>f__AnonymousType0<<a>j__TPar, <b>j__TPar>: {Equals, GetHashCode, ToString}", "C.<>c__DisplayClass1_0: {a, <F>b__2}", "C: {<F>b__1_0, <>c__DisplayClass1_0, <>c}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates for lambdas: CheckEncLogDefinitions(reader1, Row(6, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(7, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(8, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(10, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(12, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(15, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.Param, EditAndContinueOperation.Default), Row(6, TableIndex.Param, EditAndContinueOperation.Default), Row(14, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void TransparentIdentifiers_JoinClause() { var source0 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } public void F() { var result = <N:0>from a in <N:1>new[] { 1 }</N:1></N:0> <N:2>join b in new[] { 3 } on <N:3>Z(<N:4>() => <N:5>a + 1</N:5></N:4>)</N:3> equals <N:6>Z(<N:7>() => <N:8>b - 1</N:8></N:7>)</N:6></N:2> <N:9>select <N:10>Z(<N:11>() => <N:12>a + b</N:12></N:11>)</N:10></N:9>; } }"); var source1 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } public void F() { var result = <N:0>from a in <N:1>new[] { 1 }</N:1></N:0> <N:2>join b in new[] { 3 } on <N:3>Z(<N:4>() => <N:5>a + 1</N:5></N:4>)</N:3> equals <N:6>Z(<N:7>() => <N:8>b - 1</N:8></N:7>)</N:6></N:2> <N:9>select <N:10>Z(<N:11>() => <N:12>a - b</N:12></N:11>)</N:10></N:9>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass1_1: {b, <F>b__4}", "C.<>c__DisplayClass1_2: {a, b, <F>b__5}", "C.<>c__DisplayClass1_0: {a, <F>b__3}", "C: {<F>b__1_0, <F>b__1_1, <F>b__1_2, <>c__DisplayClass1_0, <>c__DisplayClass1_1, <>c__DisplayClass1_2}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates for lambdas: CheckEncLogDefinitions(reader1, Row(6, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(7, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(8, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(9, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(2, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(8, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(10, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(12, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(2, TableIndex.Param, EditAndContinueOperation.Default), Row(3, TableIndex.Param, EditAndContinueOperation.Default), Row(4, TableIndex.Param, EditAndContinueOperation.Default), Row(5, TableIndex.Param, EditAndContinueOperation.Default), Row(5, TableIndex.CustomAttribute, EditAndContinueOperation.Default), Row(7, TableIndex.CustomAttribute, EditAndContinueOperation.Default), Row(9, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void TransparentIdentifiers_JoinIntoClause() { var source0 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } public void F() { var result = <N:0>from a in <N:1>new[] { 1 }</N:1></N:0> <N:2>join b in new[] { 3 } on <N:3>a + 1</N:3> equals <N:4>b - 1</N:4> into g</N:2> <N:5>select <N:6>Z(<N:7>() => <N:8>g.First()</N:8></N:7>)</N:6></N:5>; } }"); var source1 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } public void F() { var result = <N:0>from a in <N:1>new[] { 1 }</N:1></N:0> <N:2>join b in new[] { 3 } on <N:3>a + 1</N:3> equals <N:4>b - 1</N:4> into g</N:2> <N:5>select <N:6>Z(<N:7>() => <N:8>g.Last()</N:8></N:7>)</N:6></N:5>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<F>b__1_2, <>c__DisplayClass1_0, <>c}", "C.<>c: {<>9__1_0, <>9__1_1, <F>b__1_0, <F>b__1_1}", "C.<>c__DisplayClass1_0: {g, <F>b__3}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates for lambdas: CheckEncLogDefinitions(reader1, Row(4, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(5, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(2, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(9, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(10, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(2, TableIndex.Param, EditAndContinueOperation.Default), Row(3, TableIndex.Param, EditAndContinueOperation.Default), Row(4, TableIndex.Param, EditAndContinueOperation.Default), Row(5, TableIndex.Param, EditAndContinueOperation.Default), Row(5, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void TransparentIdentifiers_QueryContinuation() { var source0 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } public void F() { var result = <N:0>from a in <N:1>new[] { 1 }</N:1></N:0> <N:2>group a by <N:3>a + 1</N:3></N:2> <N:4>into g <N:5>select <N:6>Z(<N:7>() => <N:8>g.First()</N:8></N:7>)</N:6></N:5></N:4>; } }"); var source1 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } public void F() { var result = <N:0>from a in <N:1>new[] { 1 }</N:1></N:0> <N:2>group a by <N:3>a + 1</N:3></N:2> <N:4>into g <N:5>select <N:6>Z(<N:7>() => <N:8>g.Last()</N:8></N:7>)</N:6></N:5></N:4>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<F>b__1_1, <>c__DisplayClass1_0, <>c}", "C.<>c: {<>9__1_0, <F>b__1_0}", "C.<>c__DisplayClass1_0: {g, <F>b__2}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates for lambdas: CheckEncLogDefinitions(reader1, Row(4, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(5, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(2, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(9, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(2, TableIndex.Param, EditAndContinueOperation.Default), Row(3, TableIndex.Param, EditAndContinueOperation.Default), Row(5, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void Lambdas_UpdateAfterAdd() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(null); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + 1</N:0>); } }"); var source2 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + 2</N:0>); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda "<F>b__0#1" has been added: diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0#1, <F>b__0#1}"); // added: diff1.VerifyIL("C.<>c.<F>b__0#1", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.1 IL_0002: add IL_0003: ret } "); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0#1, <F>b__0#1}"); // updated: diff2.VerifyIL("C.<>c.<F>b__0#1", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.2 IL_0002: add IL_0003: ret } "); } [Fact] public void LocalFunctions_UpdateAfterAdd() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(null); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { <N:0>int f(int a) => a + 1;</N:0> return G(f); } }"); var source2 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { <N:0>int f(int a) => a + 2;</N:0> return G(f); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda "<F>b__0#1" has been added: diff1.VerifySynthesizedMembers( "C: {<F>g__f|0#1}"); // added: diff1.VerifyIL("C.<F>g__f|0#1(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.1 IL_0002: add IL_0003: ret } "); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C: {<F>g__f|0#1}"); // updated: diff2.VerifyIL("C.<F>g__f|0#1(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.2 IL_0002: add IL_0003: ret } "); } [Fact] public void LocalFunctions_UpdateAfterAdd_NoDelegatePassing() { var source0 = MarkedSource(@" using System; class C { static object F() { return 0; } }"); var source1 = MarkedSource(@" using System; class C { static object F() { <N:0>int f(int a) => a + 1;</N:0> return 1; } }"); var source2 = MarkedSource(@" using System; class C { static object F() { <N:0>int f(int a) => a + 2;</N:0> return 2; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda "<F>b__0#1" has been added: diff1.VerifySynthesizedMembers( "C: {<F>g__f|0#1}"); // added: diff1.VerifyIL("C.<F>g__f|0#1(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.1 IL_0002: add IL_0003: ret } "); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C: {<F>g__f|0#1}"); // updated: diff2.VerifyIL("C.<F>g__f|0#1(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.2 IL_0002: add IL_0003: ret } "); } [Fact] public void LambdasMultipleGenerations1() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + 1</N:0>); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + 2</N:0>) + G(<N:1>b => b + 20</N:1>); } }"); var source2 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + 3</N:0>) + G(<N:1>b => b + 30</N:1>) + G(<N:2>c => c + 0x300</N:2>); } }"); var source3 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + 4</N:0>) + G(<N:1>b => b + 40</N:1>) + G(<N:2>c => c + 0x400</N:2>); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var compilation3 = compilation2.WithSource(source3.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var f3 = compilation3.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda "<F>b__1_1#1" has been added: diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__1_0, <>9__1_1#1, <F>b__1_0, <F>b__1_1#1}"); // updated: diff1.VerifyIL("C.<>c.<F>b__1_0", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.2 IL_0002: add IL_0003: ret } "); // added: diff1.VerifyIL("C.<>c.<F>b__1_1#1", @" { // Code size 5 (0x5) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.s 20 IL_0003: add IL_0004: ret } "); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); // new lambda "<F>b__1_2#2" has been added: diff2.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__1_0, <>9__1_1#1, <>9__1_2#2, <F>b__1_0, <F>b__1_1#1, <F>b__1_2#2}"); // updated: diff2.VerifyIL("C.<>c.<F>b__1_0", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.3 IL_0002: add IL_0003: ret } "); // updated: diff2.VerifyIL("C.<>c.<F>b__1_1#1", @" { // Code size 5 (0x5) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.s 30 IL_0003: add IL_0004: ret } "); // added: diff2.VerifyIL("C.<>c.<F>b__1_2#2", @" { // Code size 8 (0x8) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4 0x300 IL_0006: add IL_0007: ret } "); var diff3 = compilation3.EmitDifference( diff2.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f2, f3, GetSyntaxMapFromMarkers(source2, source3), preserveLocalVariables: true))); diff3.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__1_0, <>9__1_1#1, <>9__1_2#2, <F>b__1_0, <F>b__1_1#1, <F>b__1_2#2}"); // updated: diff3.VerifyIL("C.<>c.<F>b__1_0", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.4 IL_0002: add IL_0003: ret } "); // updated: diff3.VerifyIL("C.<>c.<F>b__1_1#1", @" { // Code size 5 (0x5) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.s 40 IL_0003: add IL_0004: ret } "); // updated: diff3.VerifyIL("C.<>c.<F>b__1_2#2", @" { // Code size 8 (0x8) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4 0x400 IL_0006: add IL_0007: ret } "); } [Fact] public void LocalFunctionsMultipleGenerations1() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { <N:0>int f1(int a) => a + 1;</N:0> return G(f1); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { <N:0>int f1(int a) => a + 2;</N:0> <N:1>int f2(int b) => b + 20;</N:1> return G(f1) + G(f2); } }"); var source2 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { <N:0>int f1(int a) => a + 3;</N:0> <N:1>int f2(int b) => b + 30;</N:1> <N:2>int f3(int c) => c + 0x300;</N:2> return G(f1) + G(f2) + G(f3); } }"); var source3 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { <N:0>int f1(int a) => a + 4;</N:0> <N:1>int f2(int b) => b + 40;</N:1> <N:2>int f3(int c) => c + 0x400;</N:2> return G(f1) + G(f2) + G(f3); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var compilation3 = compilation2.WithSource(source3.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var f3 = compilation3.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C: {<F>g__f1|1_0, <F>g__f2|1_1#1}"); // updated: diff1.VerifyIL("C.<F>g__f1|1_0(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.2 IL_0002: add IL_0003: ret } "); // added: diff1.VerifyIL("C.<F>g__f2|1_1#1(int)", @" { // Code size 5 (0x5) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.s 20 IL_0003: add IL_0004: ret } "); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C: {<F>g__f1|1_0, <F>g__f2|1_1#1, <F>g__f3|1_2#2}"); // updated: diff2.VerifyIL("C.<F>g__f1|1_0(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.3 IL_0002: add IL_0003: ret } "); // updated: diff2.VerifyIL("C.<F>g__f2|1_1#1(int)", @" { // Code size 5 (0x5) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.s 30 IL_0003: add IL_0004: ret } "); // added: diff2.VerifyIL("C.<F>g__f3|1_2#2(int)", @" { // Code size 8 (0x8) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4 0x300 IL_0006: add IL_0007: ret } "); var diff3 = compilation3.EmitDifference( diff2.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f2, f3, GetSyntaxMapFromMarkers(source2, source3), preserveLocalVariables: true))); diff3.VerifySynthesizedMembers( "C: {<F>g__f1|1_0, <F>g__f2|1_1#1, <F>g__f3|1_2#2}"); // updated: diff3.VerifyIL("C.<F>g__f1|1_0(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.4 IL_0002: add IL_0003: ret } "); // updated: diff3.VerifyIL("C.<F>g__f2|1_1#1(int)", @" { // Code size 5 (0x5) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.s 40 IL_0003: add IL_0004: ret } "); // updated: diff3.VerifyIL("C.<F>g__f3|1_2#2(int)", @" { // Code size 8 (0x8) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4 0x400 IL_0006: add IL_0007: ret } "); } [Fact, WorkItem(2284, "https://github.com/dotnet/roslyn/issues/2284")] public void LambdasMultipleGenerations2() { var source0 = MarkedSource(@" using System; using System.Linq; class C { private int[] _titles = new int[] { 1, 2 }; Action A; private void F() { // edit 1 // var z = from title in _titles // where title > 0 // select title; A += <N:0>() => <N:1>{ Console.WriteLine(1); // edit 2 // Console.WriteLine(2); }</N:1></N:0>; } }"); var source1 = MarkedSource(@" using System; using System.Linq; class C { private int[] _titles = new int[] { 1, 2 }; Action A; private void F() { // edit 1 var <N:3>z = from title in _titles <N:2>where title > 0</N:2> select title</N:3>; A += <N:0>() => <N:1>{ Console.WriteLine(1); // edit 2 // Console.WriteLine(2); }</N:1></N:0>; } }"); var source2 = MarkedSource(@" using System; using System.Linq; class C { private int[] _titles = new int[] { 1, 2 }; Action A; private void F() { // edit 1 var <N:3>z = from title in _titles <N:2>where title > 0</N:2> select title</N:3>; A += <N:0>() => <N:1>{ Console.WriteLine(1); // edit 2 Console.WriteLine(2); }</N:1></N:0>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda "<F>b__2_0#1" has been added: diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__2_0#1, <>9__2_0, <F>b__2_0#1, <F>b__2_0}"); // lambda body unchanged: diff1.VerifyIL("C.<>c.<F>b__2_0", @" { // Code size 9 (0x9) .maxstack 1 IL_0000: nop IL_0001: ldc.i4.1 IL_0002: call ""void System.Console.WriteLine(int)"" IL_0007: nop IL_0008: ret }"); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); // no new members: diff2.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__2_0#1, <>9__2_0, <F>b__2_0#1, <F>b__2_0}"); // lambda body updated: diff2.VerifyIL("C.<>c.<F>b__2_0", @" { // Code size 16 (0x10) .maxstack 1 IL_0000: nop IL_0001: ldc.i4.1 IL_0002: call ""void System.Console.WriteLine(int)"" IL_0007: nop IL_0008: ldc.i4.2 IL_0009: call ""void System.Console.WriteLine(int)"" IL_000e: nop IL_000f: ret }"); } [Fact] public void UniqueSynthesizedNames1() { var source0 = @" using System; public class C { public int F() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } }"; var source1 = @" using System; public class C { public int F(int x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } public int F() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } }"; var source2 = @" using System; public class C { public int F(int x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } public int F(byte x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } public int F() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } }"; var compilation0 = CreateCompilationWithMscorlib45(source0, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); var compilation1 = compilation0.WithSource(source1); var compilation2 = compilation1.WithSource(source2); var f_int1 = compilation1.GetMembers("C.F").Single(m => m.ToString() == "C.F(int)"); var f_byte2 = compilation2.GetMembers("C.F").Single(m => m.ToString() == "C.F(byte)"); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var reader0 = md0.MetadataReader; CheckNames(reader0, reader0.GetTypeDefNames(), "<Module>", "C", "<>c__DisplayClass0_0", "<>c"); CheckNames(reader0, reader0.GetMethodDefNames(), "F", ".ctor", ".ctor", "<F>b__1", "<F>b__2", ".cctor", ".ctor", "<F>b__0_0"); CheckNames(reader0, reader0.GetFieldDefNames(), "<>4__this", "a", "<>9", "<>9__0_0"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, f_int1))); var reader1 = diff1.GetMetadata().Reader; CheckNames(new[] { reader0, reader1 }, reader1.GetTypeDefNames(), "<>c__DisplayClass0#1_0#1"); CheckNames(new[] { reader0, reader1 }, reader1.GetMethodDefNames(), ".ctor", "F", ".ctor", "<F>b__1#1", "<F>b__2#1", "<F>b__0#1_0#1"); CheckNames(new[] { reader0, reader1 }, reader1.GetFieldDefNames(), "<>4__this", "a", "<>9__0#1_0#1"); diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0#1_0#1, <>c}", "C.<>c__DisplayClass0#1_0#1: {<>4__this, a, <F>b__1#1, <F>b__2#1}", "C.<>c: {<>9__0#1_0#1, <F>b__0#1_0#1}"); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, f_byte2))); var reader2 = diff2.GetMetadata().Reader; CheckNames(new[] { reader0, reader1, reader2 }, reader2.GetTypeDefNames(), "<>c__DisplayClass1#2_0#2"); CheckNames(new[] { reader0, reader1, reader2 }, reader2.GetMethodDefNames(), ".ctor", "F", ".ctor", "<F>b__1#2", "<F>b__2#2", "<F>b__1#2_0#2"); CheckNames(new[] { reader0, reader1, reader2 }, reader2.GetFieldDefNames(), "<>4__this", "a", "<>9__1#2_0#2"); } [Fact] public void UniqueSynthesizedNames1_Generic() { var source0 = @" using System; public class C { public int F<T>() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F<T>()); var f3 = new Func<int>(() => a); return 2; } }"; var source1 = @" using System; public class C { public int F<T>(int x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F<T>()); var f3 = new Func<int>(() => a); return 2; } public int F<T>() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F<T>()); var f3 = new Func<int>(() => a); return 2; } }"; var source2 = @" using System; public class C { public int F<T>(int x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F<T>()); var f3 = new Func<int>(() => a); return 2; } public int F<T>(byte x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F<T>()); var f3 = new Func<int>(() => a); return 2; } public int F<T>() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F<T>()); var f3 = new Func<int>(() => a); return 2; } }"; var compilation0 = CreateCompilationWithMscorlib45(source0, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); var compilation1 = compilation0.WithSource(source1); var compilation2 = compilation1.WithSource(source2); var f_int1 = compilation1.GetMembers("C.F").Single(m => m.ToString() == "C.F<T>(int)"); var f_byte2 = compilation2.GetMembers("C.F").Single(m => m.ToString() == "C.F<T>(byte)"); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var reader0 = md0.MetadataReader; CheckNames(reader0, reader0.GetTypeDefNames(), "<Module>", "C", "<>c__DisplayClass0_0`1", "<>c__0`1"); CheckNames(reader0, reader0.GetMethodDefNames(), "F", ".ctor", ".ctor", "<F>b__1", "<F>b__2", ".cctor", ".ctor", "<F>b__0_0"); CheckNames(reader0, reader0.GetFieldDefNames(), "<>4__this", "a", "<>9", "<>9__0_0"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, f_int1))); var reader1 = diff1.GetMetadata().Reader; CheckNames(new[] { reader0, reader1 }, reader1.GetTypeDefNames(), "<>c__DisplayClass0#1_0#1`1", "<>c__0#1`1"); CheckNames(new[] { reader0, reader1 }, reader1.GetMethodDefNames(), "F", ".ctor", "<F>b__1#1", "<F>b__2#1", ".cctor", ".ctor", "<F>b__0#1_0#1"); CheckNames(new[] { reader0, reader1 }, reader1.GetFieldDefNames(), "<>4__this", "a", "<>9", "<>9__0#1_0#1"); diff1.VerifySynthesizedMembers( "C.<>c__0#1<T>: {<>9__0#1_0#1, <F>b__0#1_0#1}", "C: {<>c__DisplayClass0#1_0#1, <>c__0#1}", "C.<>c__DisplayClass0#1_0#1<T>: {<>4__this, a, <F>b__1#1, <F>b__2#1}"); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, f_byte2))); var reader2 = diff2.GetMetadata().Reader; CheckNames(new[] { reader0, reader1, reader2 }, reader2.GetTypeDefNames(), "<>c__DisplayClass1#2_0#2`1", "<>c__1#2`1"); CheckNames(new[] { reader0, reader1, reader2 }, reader2.GetMethodDefNames(), "F", ".ctor", "<F>b__1#2", "<F>b__2#2", ".cctor", ".ctor", "<F>b__1#2_0#2"); CheckNames(new[] { reader0, reader1, reader2 }, reader2.GetFieldDefNames(), "<>4__this", "a", "<>9", "<>9__1#2_0#2"); } [Fact] public void UniqueSynthesizedNames2() { var source0 = @" using System; public class C { public static void Main() { } }"; var source1 = @" using System; public class C { public static void Main() { new C().F(); } public int F() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } }"; var source2 = @" using System; public class C { public static void Main() { new C().F(1); new C().F(); } public int F(int x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } public int F() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } }"; var source3 = @" using System; public class C { public static void Main() { } public int F(int x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } public int F() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } }"; var compilation0 = CreateCompilationWithMscorlib45(source0, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); var compilation1 = compilation0.WithSource(source1); var compilation2 = compilation1.WithSource(source2); var compilation3 = compilation2.WithSource(source3); var main0 = compilation0.GetMember<MethodSymbol>("C.Main"); var main1 = compilation1.GetMember<MethodSymbol>("C.Main"); var main2 = compilation2.GetMember<MethodSymbol>("C.Main"); var main3 = compilation3.GetMember<MethodSymbol>("C.Main"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f_int2 = compilation2.GetMembers("C.F").Single(m => m.ToString() == "C.F(int)"); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, f1), SemanticEdit.Create(SemanticEditKind.Update, main0, main1, preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C.<>c: {<>9__1#1_0#1, <F>b__1#1_0#1}", "C.<>c__DisplayClass1#1_0#1: {<>4__this, a, <F>b__1#1, <F>b__2#1}", "C: {<>c__DisplayClass1#1_0#1, <>c}"); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, f_int2), SemanticEdit.Create(SemanticEditKind.Update, main1, main2, preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C.<>c__DisplayClass1#2_0#2: {<>4__this, a, <F>b__1#2, <F>b__2#2}", "C: {<>c__DisplayClass1#2_0#2, <>c, <>c__DisplayClass1#1_0#1}", "C.<>c: {<>9__1#2_0#2, <F>b__1#2_0#2, <>9__1#1_0#1, <F>b__1#1_0#1}", "C.<>c__DisplayClass1#1_0#1: {<>4__this, a, <F>b__1#1, <F>b__2#1}"); var diff3 = compilation3.EmitDifference( diff2.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, main2, main3, preserveLocalVariables: true))); diff3.VerifySynthesizedMembers( "C.<>c__DisplayClass1#1_0#1: {<>4__this, a, <F>b__1#1, <F>b__2#1}", "C.<>c: {<>9__1#2_0#2, <F>b__1#2_0#2, <>9__1#1_0#1, <F>b__1#1_0#1}", "C.<>c__DisplayClass1#2_0#2: {<>4__this, a, <F>b__1#2, <F>b__2#2}", "C: {<>c__DisplayClass1#2_0#2, <>c, <>c__DisplayClass1#1_0#1}"); } [Fact] public void NestedLambdas() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + G(<N:1>b => 1</N:1>)</N:0>); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + G(<N:1>b => 2</N:1>)</N:0>); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // 3 method updates: // Note that even if the change is in the inner lambda such a change will usually impact sequence point // spans in outer lambda and the method body. So although the IL doesn't change we usually need to update the outer methods. CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(2, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(7, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(2, TableIndex.Param, EditAndContinueOperation.Default), Row(3, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void LambdasInInitializers1() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; public int A = G(<N:0>a => a + 1</N:0>); public C() : this(G(<N:1>a => a + 2</N:1>)) { G(<N:2>a => a + 3</N:2>); } public C(int x) { G(<N:3>a => a + 4</N:3>); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; public int A = G(<N:0>a => a - 1</N:0>); public C() : this(G(<N:1>a => a - 2</N:1>)) { G(<N:2>a => a - 3</N:2>); } public C(int x) { G(<N:3>a => a - 4</N:3>); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var ctor00 = compilation0.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor()"); var ctor10 = compilation0.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor(System.Int32 x)"); var ctor01 = compilation1.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor()"); var ctor11 = compilation1.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor(System.Int32 x)"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, ctor00, ctor01, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true), SemanticEdit.Create(SemanticEditKind.Update, ctor10, ctor11, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__2_0, <>9__2_1, <>9__3_0, <>9__3_1, <.ctor>b__2_0, <.ctor>b__2_1, <.ctor>b__3_0, <.ctor>b__3_1}"); diff1.VerifyIL("C.<>c.<.ctor>b__2_0", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.2 IL_0002: sub IL_0003: ret }"); diff1.VerifyIL("C.<>c.<.ctor>b__2_1", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.3 IL_0002: sub IL_0003: ret }"); diff1.VerifyIL("C.<>c.<.ctor>b__3_0", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.4 IL_0002: sub IL_0003: ret }"); diff1.VerifyIL("C.<>c.<.ctor>b__3_1", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.1 IL_0002: sub IL_0003: ret }"); } [Fact] public void LambdasInInitializers2() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; public int A = G(<N:0>a => { int <N:4>v1 = 1</N:4>; return 1; }</N:0>); public C() : this(G(<N:1>a => { int <N:5>v2 = 1</N:5>; return 2; }</N:1>)) { G(<N:2>a => { int <N:6>v3 = 1</N:6>; return 3; }</N:2>); } public C(int x) { G(<N:3>a => { int <N:7>v4 = 1</N:7>; return 4; }</N:3>); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; public int A = G(<N:0>a => { int <N:4>v1 = 10</N:4>; return 1; }</N:0>); public C() : this(G(<N:1>a => { int <N:5>v2 = 10</N:5>; return 2; }</N:1>)) { G(<N:2>a => { int <N:6>v3 = 10</N:6>; return 3; }</N:2>); } public C(int x) { G(<N:3>a => { int <N:7>v4 = 10</N:7>; return 4; }</N:3>); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var ctor00 = compilation0.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor()"); var ctor10 = compilation0.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor(System.Int32 x)"); var ctor01 = compilation1.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor()"); var ctor11 = compilation1.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor(System.Int32 x)"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, ctor00, ctor01, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true), SemanticEdit.Create(SemanticEditKind.Update, ctor10, ctor11, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__2_0, <>9__2_1, <>9__3_0, <>9__3_1, <.ctor>b__2_0, <.ctor>b__2_1, <.ctor>b__3_0, <.ctor>b__3_1}"); diff1.VerifyIL("C.<>c.<.ctor>b__2_0", @" { // Code size 10 (0xa) .maxstack 1 .locals init (int V_0, //v2 [int] V_1, int V_2) IL_0000: nop IL_0001: ldc.i4.s 10 IL_0003: stloc.0 IL_0004: ldc.i4.2 IL_0005: stloc.2 IL_0006: br.s IL_0008 IL_0008: ldloc.2 IL_0009: ret }"); diff1.VerifyIL("C.<>c.<.ctor>b__2_1", @" { // Code size 10 (0xa) .maxstack 1 .locals init (int V_0, //v3 [int] V_1, int V_2) IL_0000: nop IL_0001: ldc.i4.s 10 IL_0003: stloc.0 IL_0004: ldc.i4.3 IL_0005: stloc.2 IL_0006: br.s IL_0008 IL_0008: ldloc.2 IL_0009: ret }"); diff1.VerifyIL("C.<>c.<.ctor>b__3_0", @" { // Code size 10 (0xa) .maxstack 1 .locals init (int V_0, //v4 [int] V_1, int V_2) IL_0000: nop IL_0001: ldc.i4.s 10 IL_0003: stloc.0 IL_0004: ldc.i4.4 IL_0005: stloc.2 IL_0006: br.s IL_0008 IL_0008: ldloc.2 IL_0009: ret }"); diff1.VerifyIL("C.<>c.<.ctor>b__3_1", @" { // Code size 10 (0xa) .maxstack 1 .locals init (int V_0, //v1 [int] V_1, int V_2) IL_0000: nop IL_0001: ldc.i4.s 10 IL_0003: stloc.0 IL_0004: ldc.i4.1 IL_0005: stloc.2 IL_0006: br.s IL_0008 IL_0008: ldloc.2 IL_0009: ret }"); } [Fact] public void UpdateParameterlessConstructorInPresenceOfFieldInitializersWithLambdas() { var source0 = MarkedSource(@" using System; class C { static int F(Func<int, int> x) => 1; int A = F(<N:0>a => a + 1</N:0>); }"); var source1 = MarkedSource(@" using System; class C { static int F(Func<int, int> x) => 1; int A = F(<N:0>a => a + 1</N:0>); int B = F(b => b + 1); // new field public C() // new ctor { F(c => c + 1); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var b1 = compilation1.GetMember<FieldSymbol>("C.B"); var ctor0 = compilation0.GetMember<MethodSymbol>("C..ctor"); var ctor1 = compilation1.GetMember<MethodSymbol>("C..ctor"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, b1), SemanticEdit.Create(SemanticEditKind.Update, ctor0, ctor1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__2_0#1, <>9__2_0, <>9__2_2#1, <.ctor>b__2_0#1, <.ctor>b__2_0, <.ctor>b__2_2#1}"); diff1.VerifyIL("C..ctor", @" { // Code size 130 (0x82) .maxstack 3 IL_0000: ldarg.0 IL_0001: ldsfld ""System.Func<int, int> C.<>c.<>9__2_0"" IL_0006: dup IL_0007: brtrue.s IL_0020 IL_0009: pop IL_000a: ldsfld ""C.<>c C.<>c.<>9"" IL_000f: ldftn ""int C.<>c.<.ctor>b__2_0(int)"" IL_0015: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_001a: dup IL_001b: stsfld ""System.Func<int, int> C.<>c.<>9__2_0"" IL_0020: call ""int C.F(System.Func<int, int>)"" IL_0025: stfld ""int C.A"" IL_002a: ldarg.0 IL_002b: ldsfld ""System.Func<int, int> C.<>c.<>9__2_2#1"" IL_0030: dup IL_0031: brtrue.s IL_004a IL_0033: pop IL_0034: ldsfld ""C.<>c C.<>c.<>9"" IL_0039: ldftn ""int C.<>c.<.ctor>b__2_2#1(int)"" IL_003f: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0044: dup IL_0045: stsfld ""System.Func<int, int> C.<>c.<>9__2_2#1"" IL_004a: call ""int C.F(System.Func<int, int>)"" IL_004f: stfld ""int C.B"" IL_0054: ldarg.0 IL_0055: call ""object..ctor()"" IL_005a: nop IL_005b: nop IL_005c: ldsfld ""System.Func<int, int> C.<>c.<>9__2_0#1"" IL_0061: dup IL_0062: brtrue.s IL_007b IL_0064: pop IL_0065: ldsfld ""C.<>c C.<>c.<>9"" IL_006a: ldftn ""int C.<>c.<.ctor>b__2_0#1(int)"" IL_0070: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0075: dup IL_0076: stsfld ""System.Func<int, int> C.<>c.<>9__2_0#1"" IL_007b: call ""int C.F(System.Func<int, int>)"" IL_0080: pop IL_0081: ret } "); } [Fact(Skip = "2504"), WorkItem(2504, "https://github.com/dotnet/roslyn/issues/2504")] public void InsertConstructorInPresenceOfFieldInitializersWithLambdas() { var source0 = MarkedSource(@" using System; class C { static int F(Func<int, int> x) => 1; int A = F(<N:0>a => a + 1</N:0>); }"); var source1 = MarkedSource(@" using System; class C { static int F(Func<int, int> x) => 1; int A = F(<N:0>a => a + 1</N:0>); int B = F(b => b + 1); // new field public C(int x) // new ctor { F(c => c + 1); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var b1 = compilation1.GetMember<FieldSymbol>("C.B"); var ctor1 = compilation1.GetMember<MethodSymbol>("C..ctor"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, b1), SemanticEdit.Create(SemanticEditKind.Insert, null, ctor1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C: {<> c}", "C.<>c: {<>9__2_0#1, <>9__2_0, <>9__2_2#1, <.ctor>b__2_0#1, <.ctor>b__2_0, <.ctor>b__2_2#1}"); } [Fact] public void Queries_Select_Reduced1() { var source0 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>where a > 0</N:1> <N:2>select a</N:2></N:0>; } int[] array = null; } "); var source1 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>where a > 0</N:1> <N:2>select a + 1</N:2></N:0>; } int[] array = null; } "); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda for Select(a => a + 1) diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0_0, <>9__0_1#1, <F>b__0_0, <F>b__0_1#1}"); diff1.VerifyIL("C.<>c.<F>b__0_1#1", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.1 IL_0002: add IL_0003: ret } "); // old query: v0.VerifyIL("C.F", @" { // Code size 45 (0x2d) .maxstack 3 .locals init (System.Collections.Generic.IEnumerable<int> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""bool C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, bool>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_0026: call ""System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Where<int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, bool>)"" IL_002b: stloc.0 IL_002c: ret } "); // new query: diff1.VerifyIL("C.F", @" { // Code size 81 (0x51) .maxstack 3 .locals init (System.Collections.Generic.IEnumerable<int> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""bool C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, bool>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_0026: call ""System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Where<int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, bool>)"" IL_002b: ldsfld ""System.Func<int, int> C.<>c.<>9__0_1#1"" IL_0030: dup IL_0031: brtrue.s IL_004a IL_0033: pop IL_0034: ldsfld ""C.<>c C.<>c.<>9"" IL_0039: ldftn ""int C.<>c.<F>b__0_1#1(int)"" IL_003f: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0044: dup IL_0045: stsfld ""System.Func<int, int> C.<>c.<>9__0_1#1"" IL_004a: call ""System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Select<int, int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, int>)"" IL_004f: stloc.0 IL_0050: ret } "); } [Fact] public void Queries_Select_Reduced2() { var source0 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>where a > 0</N:1> <N:2>select a + 1</N:2></N:0>; } int[] array = null; } "); var source1 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>where a > 0</N:1> <N:2>select a</N:2></N:0>; } int[] array = null; } "); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // lambda for Select(a => a + 1) is gone diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0_0, <F>b__0_0}"); // old query: v0.VerifyIL("C.F", @" { // Code size 81 (0x51) .maxstack 3 .locals init (System.Collections.Generic.IEnumerable<int> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""bool C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, bool>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_0026: call ""System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Where<int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, bool>)"" IL_002b: ldsfld ""System.Func<int, int> C.<>c.<>9__0_1"" IL_0030: dup IL_0031: brtrue.s IL_004a IL_0033: pop IL_0034: ldsfld ""C.<>c C.<>c.<>9"" IL_0039: ldftn ""int C.<>c.<F>b__0_1(int)"" IL_003f: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0044: dup IL_0045: stsfld ""System.Func<int, int> C.<>c.<>9__0_1"" IL_004a: call ""System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Select<int, int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, int>)"" IL_004f: stloc.0 IL_0050: ret } "); // new query: diff1.VerifyIL("C.F", @" { // Code size 45 (0x2d) .maxstack 3 .locals init (System.Collections.Generic.IEnumerable<int> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""bool C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, bool>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_0026: call ""System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Where<int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, bool>)"" IL_002b: stloc.0 IL_002c: ret } "); } [Fact] public void Queries_GroupBy_Reduced1() { var source0 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>group a by a</N:1></N:0>; } int[] array = null; } "); var source1 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>group a + 1 by a</N:1></N:0>; } int[] array = null; } "); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda for GroupBy(..., a => a + 1) diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0_0, <>9__0_1#1, <F>b__0_0, <F>b__0_1#1}"); diff1.VerifyIL("C.<>c.<F>b__0_1#1", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.1 IL_0002: add IL_0003: ret } "); // old query: v0.VerifyIL("C.F", @" { // Code size 45 (0x2d) .maxstack 3 .locals init (System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""int C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_0026: call ""System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> System.Linq.Enumerable.GroupBy<int, int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, int>)"" IL_002b: stloc.0 IL_002c: ret } "); // new query: diff1.VerifyIL("C.F", @" { // Code size 76 (0x4c) .maxstack 4 .locals init (System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""int C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_0026: ldsfld ""System.Func<int, int> C.<>c.<>9__0_1#1"" IL_002b: dup IL_002c: brtrue.s IL_0045 IL_002e: pop IL_002f: ldsfld ""C.<>c C.<>c.<>9"" IL_0034: ldftn ""int C.<>c.<F>b__0_1#1(int)"" IL_003a: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_003f: dup IL_0040: stsfld ""System.Func<int, int> C.<>c.<>9__0_1#1"" IL_0045: call ""System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> System.Linq.Enumerable.GroupBy<int, int, int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, int>, System.Func<int, int>)"" IL_004a: stloc.0 IL_004b: ret } "); } [Fact] public void Queries_GroupBy_Reduced2() { var source0 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>group a + 1 by a</N:1></N:0>; } int[] array = null; } "); var source1 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>group a by a</N:1></N:0>; } int[] array = null; } "); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // lambda for GroupBy(..., a => a + 1) is gone diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0_0, <F>b__0_0}"); // old query: v0.VerifyIL("C.F", @" { // Code size 76 (0x4c) .maxstack 4 .locals init (System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""int C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_0026: ldsfld ""System.Func<int, int> C.<>c.<>9__0_1"" IL_002b: dup IL_002c: brtrue.s IL_0045 IL_002e: pop IL_002f: ldsfld ""C.<>c C.<>c.<>9"" IL_0034: ldftn ""int C.<>c.<F>b__0_1(int)"" IL_003a: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_003f: dup IL_0040: stsfld ""System.Func<int, int> C.<>c.<>9__0_1"" IL_0045: call ""System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> System.Linq.Enumerable.GroupBy<int, int, int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, int>, System.Func<int, int>)"" IL_004a: stloc.0 IL_004b: ret } "); // new query: diff1.VerifyIL("C.F", @" { // Code size 45 (0x2d) .maxstack 3 .locals init (System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""int C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_0026: call ""System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> System.Linq.Enumerable.GroupBy<int, int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, int>)"" IL_002b: stloc.0 IL_002c: ret } "); } [Fact, WorkItem(1170899, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1170899")] public void CapturedAnonymousTypes1() { var source0 = MarkedSource(@" using System; class C { static void F() <N:0>{ var <N:1>x = new { A = 1 }</N:1>; var <N:2>y = new Func<int>(<N:3>() => x.A</N:3>)</N:2>; Console.WriteLine(1); }</N:0> } "); var source1 = MarkedSource(@" using System; class C { static void F() <N:0>{ var <N:1>x = new { A = 1 }</N:1>; var <N:2>y = new Func<int>(<N:3>() => x.A</N:3>)</N:2>; Console.WriteLine(2); }</N:0> } "); var source2 = MarkedSource(@" using System; class C { static void F() <N:0>{ var <N:1>x = new { A = 1 }</N:1>; var <N:2>y = new Func<int>(<N:3>() => x.A</N:3>)</N:2>; Console.WriteLine(3); }</N:0> } "); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); v0.VerifyIL("C.F", @" { // Code size 40 (0x28) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0, //CS$<>8__locals0 System.Func<int> V_1) //y IL_0000: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0005: stloc.0 IL_0006: nop IL_0007: ldloc.0 IL_0008: ldc.i4.1 IL_0009: newobj ""<>f__AnonymousType0<int>..ctor(int)"" IL_000e: stfld ""<anonymous type: int A> C.<>c__DisplayClass0_0.x"" IL_0013: ldloc.0 IL_0014: ldftn ""int C.<>c__DisplayClass0_0.<F>b__0()"" IL_001a: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_001f: stloc.1 IL_0020: ldc.i4.1 IL_0021: call ""void System.Console.WriteLine(int)"" IL_0026: nop IL_0027: ret }"); var diff1 = compilation1.EmitDifference(generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0}", "C.<>c__DisplayClass0_0: {x, <F>b__0}", "<>f__AnonymousType0<<A>j__TPar>: {Equals, GetHashCode, ToString}"); diff1.VerifyIL("C.F", @" { // Code size 40 (0x28) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0, //CS$<>8__locals0 System.Func<int> V_1) //y IL_0000: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0005: stloc.0 IL_0006: nop IL_0007: ldloc.0 IL_0008: ldc.i4.1 IL_0009: newobj ""<>f__AnonymousType0<int>..ctor(int)"" IL_000e: stfld ""<anonymous type: int A> C.<>c__DisplayClass0_0.x"" IL_0013: ldloc.0 IL_0014: ldftn ""int C.<>c__DisplayClass0_0.<F>b__0()"" IL_001a: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_001f: stloc.1 IL_0020: ldc.i4.2 IL_0021: call ""void System.Console.WriteLine(int)"" IL_0026: nop IL_0027: ret }"); var diff2 = compilation2.EmitDifference(diff1.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0}", "C.<>c__DisplayClass0_0: {x, <F>b__0}", "<>f__AnonymousType0<<A>j__TPar>: {Equals, GetHashCode, ToString}"); diff2.VerifyIL("C.F", @" { // Code size 40 (0x28) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0, //CS$<>8__locals0 System.Func<int> V_1) //y IL_0000: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0005: stloc.0 IL_0006: nop IL_0007: ldloc.0 IL_0008: ldc.i4.1 IL_0009: newobj ""<>f__AnonymousType0<int>..ctor(int)"" IL_000e: stfld ""<anonymous type: int A> C.<>c__DisplayClass0_0.x"" IL_0013: ldloc.0 IL_0014: ldftn ""int C.<>c__DisplayClass0_0.<F>b__0()"" IL_001a: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_001f: stloc.1 IL_0020: ldc.i4.3 IL_0021: call ""void System.Console.WriteLine(int)"" IL_0026: nop IL_0027: ret }"); } [Fact, WorkItem(1170899, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1170899")] public void CapturedAnonymousTypes2() { var template = @" using System; class C { static void F() <N:0>{ var x = new { X = <<VALUE>> }; Func<int> <N:2>y = <N:1>() => x.X</N:1></N:2>; Console.WriteLine(y()); }</N:0> } "; var source0 = MarkedSource(template.Replace("<<VALUE>>", "0")); var source1 = MarkedSource(template.Replace("<<VALUE>>", "1")); var source2 = MarkedSource(template.Replace("<<VALUE>>", "2")); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); string expectedIL = @" { // Code size 45 (0x2d) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0, //CS$<>8__locals0 System.Func<int> V_1) //y IL_0000: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0005: stloc.0 IL_0006: nop IL_0007: ldloc.0 IL_0008: ldc.i4.<<VALUE>> IL_0009: newobj ""<>f__AnonymousType0<int>..ctor(int)"" IL_000e: stfld ""<anonymous type: int X> C.<>c__DisplayClass0_0.x"" IL_0013: ldloc.0 IL_0014: ldftn ""int C.<>c__DisplayClass0_0.<F>b__0()"" IL_001a: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_001f: stloc.1 IL_0020: ldloc.1 IL_0021: callvirt ""int System.Func<int>.Invoke()"" IL_0026: call ""void System.Console.WriteLine(int)"" IL_002b: nop IL_002c: ret }"; v0.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "0")); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0}", "C.<>c__DisplayClass0_0: {x, <F>b__0}", "<>f__AnonymousType0<<X>j__TPar>: {Equals, GetHashCode, ToString}"); diff1.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "1")); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0}", "C.<>c__DisplayClass0_0: {x, <F>b__0}", "<>f__AnonymousType0<<X>j__TPar>: {Equals, GetHashCode, ToString}"); diff2.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "2")); } [WorkItem(179990, "https://devdiv.visualstudio.com:443/defaultcollection/DevDiv/_workitems/edit/179990")] [Fact] public void SynthesizedDelegates() { var template = @"class C { static void F(dynamic d, out object x, object y) <N:0>{ <<CALL>>; }</N:0> }"; var source0 = MarkedSource(template.Replace("<<CALL>>", "d.F(out x, new { })")); var source1 = MarkedSource(template.Replace("<<CALL>>", "d.F(out x, new { y })")); var source2 = MarkedSource(template.Replace("<<CALL>>", "d.F(new { y }, out x)")); var compilation0 = CreateCompilationWithMscorlib40(new[] { source0.Tree }, references: new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); v0.VerifyIL("C.F", @"{ // Code size 112 (0x70) .maxstack 9 IL_0000: nop IL_0001: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>> C.<>o__0.<>p__0"" IL_0006: brfalse.s IL_000a IL_0008: br.s IL_0053 IL_000a: ldc.i4 0x100 IL_000f: ldstr ""F"" IL_0014: ldnull IL_0015: ldtoken ""C"" IL_001a: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_001f: ldc.i4.3 IL_0020: newarr ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo"" IL_0025: dup IL_0026: ldc.i4.0 IL_0027: ldc.i4.0 IL_0028: ldnull IL_0029: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_002e: stelem.ref IL_002f: dup IL_0030: ldc.i4.1 IL_0031: ldc.i4.s 17 IL_0033: ldnull IL_0034: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_0039: stelem.ref IL_003a: dup IL_003b: ldc.i4.2 IL_003c: ldc.i4.1 IL_003d: ldnull IL_003e: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_0043: stelem.ref IL_0044: call ""System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, string, System.Collections.Generic.IEnumerable<System.Type>, System.Type, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>)"" IL_0049: call ""System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>> System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>>.Create(System.Runtime.CompilerServices.CallSiteBinder)"" IL_004e: stsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>> C.<>o__0.<>p__0"" IL_0053: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>> C.<>o__0.<>p__0"" IL_0058: ldfld ""<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>> System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>>.Target"" IL_005d: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>> C.<>o__0.<>p__0"" IL_0062: ldarg.0 IL_0063: ldarg.1 IL_0064: newobj ""<>f__AnonymousType0..ctor()"" IL_0069: callvirt ""void <>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>.Invoke(System.Runtime.CompilerServices.CallSite, dynamic, ref object, <empty anonymous type>)"" IL_006e: nop IL_006f: ret }"); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifyIL("C.F", @"{ // Code size 113 (0x71) .maxstack 9 IL_0000: nop IL_0001: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>> C.<>o__0#1.<>p__0"" IL_0006: brfalse.s IL_000a IL_0008: br.s IL_0053 IL_000a: ldc.i4 0x100 IL_000f: ldstr ""F"" IL_0014: ldnull IL_0015: ldtoken ""C"" IL_001a: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_001f: ldc.i4.3 IL_0020: newarr ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo"" IL_0025: dup IL_0026: ldc.i4.0 IL_0027: ldc.i4.0 IL_0028: ldnull IL_0029: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_002e: stelem.ref IL_002f: dup IL_0030: ldc.i4.1 IL_0031: ldc.i4.s 17 IL_0033: ldnull IL_0034: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_0039: stelem.ref IL_003a: dup IL_003b: ldc.i4.2 IL_003c: ldc.i4.1 IL_003d: ldnull IL_003e: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_0043: stelem.ref IL_0044: call ""System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, string, System.Collections.Generic.IEnumerable<System.Type>, System.Type, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>)"" IL_0049: call ""System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>> System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>>.Create(System.Runtime.CompilerServices.CallSiteBinder)"" IL_004e: stsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>> C.<>o__0#1.<>p__0"" IL_0053: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>> C.<>o__0#1.<>p__0"" IL_0058: ldfld ""<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>> System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>>.Target"" IL_005d: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>> C.<>o__0#1.<>p__0"" IL_0062: ldarg.0 IL_0063: ldarg.1 IL_0064: ldarg.2 IL_0065: newobj ""<>f__AnonymousType1<object>..ctor(object)"" IL_006a: callvirt ""void <>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>.Invoke(System.Runtime.CompilerServices.CallSite, dynamic, ref object, <anonymous type: object y>)"" IL_006f: nop IL_0070: ret }"); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifyIL("C.F", @"{ // Code size 113 (0x71) .maxstack 9 IL_0000: nop IL_0001: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>> C.<>o__0#2.<>p__0"" IL_0006: brfalse.s IL_000a IL_0008: br.s IL_0053 IL_000a: ldc.i4 0x100 IL_000f: ldstr ""F"" IL_0014: ldnull IL_0015: ldtoken ""C"" IL_001a: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_001f: ldc.i4.3 IL_0020: newarr ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo"" IL_0025: dup IL_0026: ldc.i4.0 IL_0027: ldc.i4.0 IL_0028: ldnull IL_0029: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_002e: stelem.ref IL_002f: dup IL_0030: ldc.i4.1 IL_0031: ldc.i4.1 IL_0032: ldnull IL_0033: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_0038: stelem.ref IL_0039: dup IL_003a: ldc.i4.2 IL_003b: ldc.i4.s 17 IL_003d: ldnull IL_003e: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_0043: stelem.ref IL_0044: call ""System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, string, System.Collections.Generic.IEnumerable<System.Type>, System.Type, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>)"" IL_0049: call ""System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>> System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>>.Create(System.Runtime.CompilerServices.CallSiteBinder)"" IL_004e: stsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>> C.<>o__0#2.<>p__0"" IL_0053: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>> C.<>o__0#2.<>p__0"" IL_0058: ldfld ""<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object> System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>>.Target"" IL_005d: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>> C.<>o__0#2.<>p__0"" IL_0062: ldarg.0 IL_0063: ldarg.2 IL_0064: newobj ""<>f__AnonymousType1<object>..ctor(object)"" IL_0069: ldarg.1 IL_006a: callvirt ""void <>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>.Invoke(System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, ref object)"" IL_006f: nop IL_0070: ret }"); } [Fact] public void TwoStructClosures() { var source0 = MarkedSource(@" public class C { public void F() <N:0>{</N:0> int <N:1>x</N:1> = 0; <N:2>{</N:2> int <N:3>y</N:3> = 0; // Captures two struct closures <N:4>int L() => x + y;</N:4> } } }"); var source1 = MarkedSource(@" public class C { public void F() <N:0>{</N:0> int <N:1>x</N:1> = 0; <N:2>{</N:2> int <N:3>y</N:3> = 0; // Captures two struct closures <N:4>int L() => x + y + 1;</N:4> } } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass0_0: {x}", "C.<>c__DisplayClass0_1: {y}", "C: {<F>g__L|0_0, <>c__DisplayClass0_0, <>c__DisplayClass0_1}"); v0.VerifyIL("C.<F>g__L|0_0(ref C.<>c__DisplayClass0_0, ref C.<>c__DisplayClass0_1)", @" { // Code size 14 (0xe) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_0006: ldarg.1 IL_0007: ldfld ""int C.<>c__DisplayClass0_1.y"" IL_000c: add IL_000d: ret }"); diff1.VerifyIL("C.<F>g__L|0_0(ref C.<>c__DisplayClass0_0, ref C.<>c__DisplayClass0_1)", @" { // Code size 16 (0x10) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_0006: ldarg.1 IL_0007: ldfld ""int C.<>c__DisplayClass0_1.y"" IL_000c: add IL_000d: ldc.i4.1 IL_000e: add IL_000f: ret } "); CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void ThisClosureAndStructClosure() { var source0 = MarkedSource(@" public class C { int <N:0>x</N:0> = 0; public void F() <N:1>{</N:1> int <N:2>y</N:2> = 0; // This + struct closures <N:3>int L() => x + y;</N:3> L(); } }"); var source1 = MarkedSource(@" public class C { int <N:0>x</N:0> = 0; public void F() <N:1>{</N:1> int <N:2>y</N:2> = 0; // This + struct closures <N:3>int L() => x + y + 1;</N:3> L(); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass1_0: {<>4__this, y}", "C: {<F>g__L|1_0, <>c__DisplayClass1_0}"); v0.VerifyIL("C.<F>g__L|1_0(ref C.<>c__DisplayClass1_0)", @" { // Code size 14 (0xe) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.x"" IL_0006: ldarg.1 IL_0007: ldfld ""int C.<>c__DisplayClass1_0.y"" IL_000c: add IL_000d: ret } "); diff1.VerifyIL("C.<F>g__L|1_0(ref C.<>c__DisplayClass1_0)", @" { // Code size 16 (0x10) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.x"" IL_0006: ldarg.1 IL_0007: ldfld ""int C.<>c__DisplayClass1_0.y"" IL_000c: add IL_000d: ldc.i4.1 IL_000e: add IL_000f: ret } "); CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void ThisOnlyClosure() { var source0 = MarkedSource(@" public class C { int <N:0>x</N:0> = 0; public void F() <N:1>{</N:1> // This-only closure <N:2>int L() => x;</N:2> L(); } }"); var source1 = MarkedSource(@" public class C { int <N:0>x</N:0> = 0; public void F() <N:1>{</N:1> // This-only closure <N:2>int L() => x + 1;</N:2> L(); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C: {<F>g__L|1_0}"); v0.VerifyIL("C.<F>g__L|1_0()", @" { // Code size 7 (0x7) .maxstack 1 IL_0000: ldarg.0 IL_0001: ldfld ""int C.x"" IL_0006: ret }"); diff1.VerifyIL("C.<F>g__L|1_0()", @" { // Code size 9 (0x9) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.x"" IL_0006: ldc.i4.1 IL_0007: add IL_0008: ret } "); CheckEncLogDefinitions(reader1, Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void LocatedInSameClosureEnvironment() { var source0 = MarkedSource(@" using System; public class C { public void F(int x) <N:0>{</N:0> Func<int> f = <N:1>() => x</N:1>; // Located in same closure environment <N:2>int L() => x;</N:2> } }"); var source1 = MarkedSource(@" using System; public class C { public void F(int x) <N:0>{</N:0> Func<int> f = <N:1>() => x</N:1>; // Located in same closure environment <N:2>int L() => x + 1;</N:2> } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass0_0: {x, <F>b__0, <F>g__L|1}", "C: {<>c__DisplayClass0_0}"); v0.VerifyIL("C.<>c__DisplayClass0_0.<F>g__L|1()", @" { // Code size 7 (0x7) .maxstack 1 IL_0000: ldarg.0 IL_0001: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_0006: ret }"); diff1.VerifyIL("C.<>c__DisplayClass0_0.<F>g__L|1()", @" { // Code size 9 (0x9) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_0006: ldc.i4.1 IL_0007: add IL_0008: ret } "); CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void SameClassEnvironmentWithStruct() { var source0 = MarkedSource(@" using System; public class C { public void F(int x) <N:0>{</N:0> <N:1>{</N:1> int <N:2>y</N:2> = 0; Func<int> f = <N:3>() => x</N:3>; // Same class environment, with struct env <N:4>int L() => x + y;</N:4> } } }"); var source1 = MarkedSource(@" using System; public class C { public void F(int x) <N:0>{</N:0> <N:1>{</N:1> int <N:2>y</N:2> = 0; Func<int> f = <N:3>() => x</N:3>; // Same class environment, with struct env <N:4>int L() => x + y + 1;</N:4> } } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0, <>c__DisplayClass0_1}", "C.<>c__DisplayClass0_0: {x, <F>b__0, <F>g__L|1}", "C.<>c__DisplayClass0_1: {y}"); v0.VerifyIL("C.<>c__DisplayClass0_0.<F>g__L|1(ref C.<>c__DisplayClass0_1)", @" { // Code size 14 (0xe) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_0006: ldarg.1 IL_0007: ldfld ""int C.<>c__DisplayClass0_1.y"" IL_000c: add IL_000d: ret }"); diff1.VerifyIL("C.<>c__DisplayClass0_0.<F>g__L|1(ref C.<>c__DisplayClass0_1)", @" { // Code size 16 (0x10) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_0006: ldarg.1 IL_0007: ldfld ""int C.<>c__DisplayClass0_1.y"" IL_000c: add IL_000d: ldc.i4.1 IL_000e: add IL_000f: ret } "); CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void CaptureStructAndThroughClassEnvChain() { var source0 = MarkedSource(@" using System; public class C { public void F(int x) <N:0>{</N:0> <N:1>{</N:1> int <N:2>y</N:2> = 0; Func<int> f = <N:3>() => x</N:3>; <N:4>{</N:4> Func<int> f2 = <N:5>() => x + y</N:5>; int <N:6>z</N:6> = 0; // Capture struct and through class env chain <N:7>int L() => x + y + z;</N:7> } } } }"); var source1 = MarkedSource(@" using System; public class C { public void F(int x) <N:0>{</N:0> <N:1>{</N:1> int <N:2>y</N:2> = 0; Func<int> f = <N:3>() => x</N:3>; <N:4>{</N:4> Func<int> f2 = <N:5>() => x + y</N:5>; int <N:6>z</N:6> = 0; // Capture struct and through class env chain <N:7>int L() => x + y + z + 1;</N:7> } } } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass0_2: {z}", "C.<>c__DisplayClass0_0: {x, <F>b__0}", "C: {<>c__DisplayClass0_0, <>c__DisplayClass0_1, <>c__DisplayClass0_2}", "C.<>c__DisplayClass0_1: {y, CS$<>8__locals1, <F>b__1, <F>g__L|2}"); v0.VerifyIL("C.<>c__DisplayClass0_1.<F>g__L|2(ref C.<>c__DisplayClass0_2)", @" { // Code size 26 (0x1a) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""C.<>c__DisplayClass0_0 C.<>c__DisplayClass0_1.CS$<>8__locals1"" IL_0006: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_000b: ldarg.0 IL_000c: ldfld ""int C.<>c__DisplayClass0_1.y"" IL_0011: add IL_0012: ldarg.1 IL_0013: ldfld ""int C.<>c__DisplayClass0_2.z"" IL_0018: add IL_0019: ret }"); diff1.VerifyIL("C.<>c__DisplayClass0_1.<F>g__L|2(ref C.<>c__DisplayClass0_2)", @" { // Code size 28 (0x1c) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""C.<>c__DisplayClass0_0 C.<>c__DisplayClass0_1.CS$<>8__locals1"" IL_0006: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_000b: ldarg.0 IL_000c: ldfld ""int C.<>c__DisplayClass0_1.y"" IL_0011: add IL_0012: ldarg.1 IL_0013: ldfld ""int C.<>c__DisplayClass0_2.z"" IL_0018: add IL_0019: ldc.i4.1 IL_001a: add IL_001b: ret } "); CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(7, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void TopLevelStatement_Closure() { var source0 = MarkedSource(@" <N:0> using System; Func<string> x = <N:1>() => args[0]</N:1>; Console.WriteLine(x()); </N:0> "); var source1 = MarkedSource(@" <N:0> using System; Func<string> x = <N:1>() => args[1]</N:1>; Console.WriteLine(x()); </N:0> "); var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugExe); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("Program.<Main>$"); var f1 = compilation1.GetMember<MethodSymbol>("Program.<Main>$"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "Program.<>c__DisplayClass0_0: {args, <<Main>$>b__0}", "Program: {<>c__DisplayClass0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Immutable; using System.Linq; using System.Reflection.Metadata.Ecma335; using Microsoft.CodeAnalysis.CodeGen; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.CSharp.UnitTests; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests { public class EditAndContinueClosureTests : EditAndContinueTestBase { [Fact] public void MethodToMethodWithClosure() { var source0 = @"delegate object D(); class C { static object F(object o) { return o; } }"; var source1 = @"delegate object D(); class C { static object F(object o) { return ((D)(() => o))(); } }"; var compilation0 = CreateCompilation(source0, options: TestOptions.DebugDll); var compilation1 = compilation0.WithSource(source1); var bytes0 = compilation0.EmitToArray(); var generation0 = EmitBaseline.CreateInitialBaseline(ModuleMetadata.CreateFromImage(bytes0), EmptyLocalsProvider); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, compilation0.GetMember<MethodSymbol>("C.F"), compilation1.GetMember<MethodSymbol>("C.F")))); using (var md1 = diff1.GetMetadata()) { var reader1 = md1.Reader; // Field 'o' // Methods: 'F', '.ctor', '<F>b__1' // Type: display class CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(4, TableIndex.TypeDef, EditAndContinueOperation.Default), Row(4, TableIndex.TypeDef, EditAndContinueOperation.AddField), Row(1, TableIndex.Field, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.TypeDef, EditAndContinueOperation.AddMethod), Row(7, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.TypeDef, EditAndContinueOperation.AddMethod), Row(8, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.Param, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default), Row(1, TableIndex.NestedClass, EditAndContinueOperation.Default)); } } [Fact] public void MethodWithStaticLambda1() { var source0 = MarkedSource(@" using System; class C { void F() { Func<int> x = <N:0>() => 1</N:0>; } }"); var source1 = MarkedSource(@" using System; class C { void F() { Func<int> x = <N:0>() => 2</N:0>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0_0, <F>b__0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default)); } [Fact] public void MethodWithSwitchExpression() { var source0 = MarkedSource(@" using System; class C { int F(object o) { <N:0>return o switch { int i => new Func<int>(<N:1>() => i + 1</N:1>)(), _ => 0 }</N:0>; } }"); var source1 = MarkedSource(@" using System; class C { int F(object o) { <N:0>return o switch { int i => new Func<int>(<N:1>() => i + 2</N:1>)(), _ => 0 }</N:0>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass0_0: {<i>5__2, <F>b__0}", "C: {<>c__DisplayClass0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; var x = Visualize(generation0.OriginalMetadata, md1); // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void MethodWithNestedSwitchExpression() { var source0 = MarkedSource(@" using System; class C { int F(object o) <N:0>{ <N:1>return o switch { int i => new Func<int>(<N:2>() => i + (int)o + i switch { 1 => 1, _ => new Func<int>(<N:3>() => (int)o + 1</N:3>)() }</N:2>)(), _ => 0 }</N:1>; }</N:0> }"); var source1 = MarkedSource(@" using System; class C { int F(object o) <N:0>{ <N:1>return o switch { int i => new Func<int>(<N:2>() => i + (int)o + i switch { 1 => 1, _ => new Func<int>(<N:3>() => (int)o + 2</N:3>)() }</N:2>)(), _ => 0 }</N:1>; }</N:0> }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0, <>c__DisplayClass0_1}", "C.<>c__DisplayClass0_1: {<i>5__2, CS$<>8__locals2, <F>b__0}", "C.<>c__DisplayClass0_0: {o, <>9__1, <F>b__1}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(3, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(4, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void MethodWithStaticLocalFunction1() { var source0 = MarkedSource(@" using System; class C { void F() { <N:0>int x() => 1;</N:0> } }"); var source1 = MarkedSource(@" using System; class C { void F() { <N:0>int x() => 2;</N:0> } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<F>g__x|0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void MethodWithStaticLocalFunction_ChangeStatic() { var source0 = MarkedSource(@" using System; class C { void F() { <N:0>int x() => 1;</N:0> } }"); var source1 = MarkedSource(@" using System; class C { void F() { <N:0>static int x() => 1;</N:0> } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var reader0 = md0.MetadataReader; var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<F>g__x|0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); var testData0 = new CompilationTestData(); var bytes0 = compilation0.EmitToArray(testData: testData0); var localFunction0 = testData0.GetMethodData("C.<F>g__x|0_0").Method; Assert.True(((Symbol)localFunction0).IsStatic); var localFunction1 = diff1.TestData.GetMethodData("C.<F>g__x|0_0").Method; Assert.True(((Symbol)localFunction1).IsStatic); } [Fact] public void MethodWithStaticLambdaGeneric1() { var source0 = MarkedSource(@" using System; class C { void F<T>() { Func<T> x = <N:0>() => default(T)</N:0>; } }"); var source1 = MarkedSource(@" using System; class C { void F<T>() { Func<T> x = <N:0>() => default(T)</N:0>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c__0}", "C.<>c__0<T>: {<>9__0_0, <F>b__0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(3, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(4, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default)); } [Fact] public void MethodWithStaticLocalFunctionGeneric1() { var source0 = MarkedSource(@" using System; class C { void F<T>() { <N:0>T x() => default(T);</N:0> } }"); var source1 = MarkedSource(@" using System; class C { void F<T>() { <N:0>T x() => default(T);</N:0> } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<F>g__x|0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void MethodWithThisOnlyClosure1() { var source0 = MarkedSource(@" using System; class C { int F(int a) { Func<int> x = <N:0>() => F(1)</N:0>; return 1; } }"); var source1 = MarkedSource(@" using System; class C { int F(int a) { Func<int> x = <N:0>() => F(2)</N:0>; return 2; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<F>b__0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void MethodWithThisOnlyLocalFunctionClosure1() { var source0 = MarkedSource(@" using System; class C { int F(int a) { <N:0>int x() => F(1);</N:0> return 1; } }"); var source1 = MarkedSource(@" using System; class C { int F(int a) { <N:0>int x() => F(2);</N:0> return 2; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<F>g__x|0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void MethodWithClosure1() { var source0 = MarkedSource(@" using System; class C { int F(int a) <N:0>{</N:0> Func<int> x = <N:1>() => F(a + 1)</N:1>; return 1; } }"); var source1 = MarkedSource(@" using System; class C { int F(int a) <N:0>{</N:0> Func<int> x = <N:1>() => F(a + 2)</N:1>; return 2; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass0_0: {<>4__this, a, <F>b__0}", "C: {<>c__DisplayClass0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void MethodWithNullable_AddingNullCheck() { var source0 = MarkedSource(@" using System; #nullable enable class C { static T id<T>(T t) => t; static T G<T>(Func<T> f) => f(); public void F(string? x) <N:0>{</N:0> var <N:1>y1</N:1> = new { A = id(x) }; var <N:2>y2</N:2> = G(<N:3>() => new { B = id(x) }</N:3>); var <N:4>z</N:4> = G(<N:5>() => y1.A + y2.B</N:5>); } }", options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp9)); var source1 = MarkedSource(@" using System; #nullable enable class C { static T id<T>(T t) => t; static T G<T>(Func<T> f) => f(); public void F(string? x) <N:0>{</N:0> if (x is null) throw new Exception(); var <N:1>y1</N:1> = new { A = id(x) }; var <N:2>y2</N:2> = G(<N:3>() => new { B = id(x) }</N:3>); var <N:4>z</N:4> = G(<N:5>() => y1.A + y2.B</N:5>); } }", options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp9)); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "Microsoft.CodeAnalysis: {EmbeddedAttribute}", "Microsoft: {CodeAnalysis}", "System.Runtime: {CompilerServices, CompilerServices}", "<global namespace>: {Microsoft, System, System}", "C: {<>c__DisplayClass2_0}", "System: {Runtime, Runtime}", "C.<>c__DisplayClass2_0: {x, y1, y2, <F>b__0, <F>b__1}", "<>f__AnonymousType1<<B>j__TPar>: {Equals, GetHashCode, ToString}", "System.Runtime.CompilerServices: {NullableAttribute, NullableContextAttribute}", "<>f__AnonymousType0<<A>j__TPar>: {Equals, GetHashCode, ToString}"); diff1.VerifyIL("C.<>c__DisplayClass2_0.<F>b__1()", @" { // Code size 28 (0x1c) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""<anonymous type: string A> C.<>c__DisplayClass2_0.y1"" IL_0006: callvirt ""string <>f__AnonymousType0<string>.A.get"" IL_000b: ldarg.0 IL_000c: ldfld ""<anonymous type: string B> C.<>c__DisplayClass2_0.y2"" IL_0011: callvirt ""string <>f__AnonymousType1<string>.B.get"" IL_0016: call ""string string.Concat(string, string)"" IL_001b: ret }"); diff1.VerifyIL("C.<>c__DisplayClass2_0.<F>b__0()", @" { // Code size 17 (0x11) .maxstack 1 IL_0000: ldarg.0 IL_0001: ldfld ""string C.<>c__DisplayClass2_0.x"" IL_0006: call ""string C.id<string>(string)"" IL_000b: newobj ""<>f__AnonymousType1<string>..ctor(string)"" IL_0010: ret }"); } [Fact] public void MethodWithLocalFunctionClosure1() { var source0 = MarkedSource(@" using System; class C { int F(int a) <N:0>{</N:0> <N:1>int x() => F(a + 1);</N:1> return 1; } }"); var source1 = MarkedSource(@" using System; class C { int F(int a) <N:0>{</N:0> <N:1>int x() => F(a + 2);</N:1> return 2; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<F>g__x|0_0, <>c__DisplayClass0_0}", "C.<>c__DisplayClass0_0: {<>4__this, a}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void ConstructorWithClosure1() { var source0 = MarkedSource(@" using System; class D { public D(Func<int> f) { } } class C : D { <N:0>public C(int a, int b)</N:0> : base(<N:8>() => a</N:8>) <N:1>{</N:1> int c = 0; Func<int> f1 = <N:2>() => a + 1</N:2>; Func<int> f2 = <N:3>() => b + 2</N:3>; Func<int> f3 = <N:4>() => c + 3</N:4>; Func<int> f4 = <N:5>() => a + b + c</N:5>; Func<int> f5 = <N:6>() => a + c</N:6>; Func<int> f6 = <N:7>() => b + c</N:7>; } }"); var source1 = MarkedSource(@" using System; class D { public D(Func<int> f) { } } class C : D { <N:0>public C(int a, int b)</N:0> : base(<N:8>() => a * 10</N:8>) <N:1>{</N:1> int c = 0; Func<int> f1 = <N:2>() => a * 10 + 1</N:2>; Func<int> f2 = <N:3>() => b * 10 + 2</N:3>; Func<int> f3 = <N:4>() => c * 10 + 3</N:4>; Func<int> f4 = <N:5>() => a * 10 + b + c</N:5>; Func<int> f5 = <N:6>() => a * 10 + c</N:6>; Func<int> f6 = <N:7>() => b * 10 + c</N:7>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var ctor0 = compilation0.GetMember<NamedTypeSymbol>("C").InstanceConstructors.Single(); var ctor1 = compilation1.GetMember<NamedTypeSymbol>("C").InstanceConstructors.Single(); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, ctor0, ctor1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0, <>c__DisplayClass0_1}", "C.<>c__DisplayClass0_0: {a, b, <.ctor>b__0, <.ctor>b__1, <.ctor>b__2}", "C.<>c__DisplayClass0_1: {c, CS$<>8__locals1, <.ctor>b__3, <.ctor>b__4, <.ctor>b__5, <.ctor>b__6}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(2, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(8, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(9, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(10, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(11, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(2, TableIndex.Param, EditAndContinueOperation.Default), Row(3, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void PartialClass() { var source0 = MarkedSource(@" using System; partial class C { Func<int> m1 = <N:0>() => 1</N:0>; } partial class C { Func<int> m2 = <N:1>() => 1</N:1>; } "); var source1 = MarkedSource(@" using System; partial class C { Func<int> m1 = <N:0>() => 10</N:0>; } partial class C { Func<int> m2 = <N:1>() => 10</N:1>; }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var ctor0 = compilation0.GetMember<NamedTypeSymbol>("C").InstanceConstructors.Single(); var ctor1 = compilation1.GetMember<NamedTypeSymbol>("C").InstanceConstructors.Single(); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, ctor0, ctor1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__2_0, <>9__2_1, <.ctor>b__2_0, <.ctor>b__2_1}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default)); } [Fact] public void JoinAndGroupByClauses() { var source0 = MarkedSource(@" using System.Linq; class C { void F() { var result = <N:0>from a in new[] { 1, 2, 3 }</N:0> <N:1>join b in new[] { 5 } on a + 1 equals b - 1</N:1> <N:2>group</N:2> new { a, b = a + 5 } by new { c = a + 4 } into d <N:3>select d.Key</N:3>; } }"); var source1 = MarkedSource(@" using System.Linq; class C { void F() { var result = <N:0>from a in new[] { 10, 20, 30 }</N:0> <N:1>join b in new[] { 50 } on a + 10 equals b - 10</N:1> <N:2>group</N:2> new { a, b = a + 50 } by new { c = a + 40 } into d <N:3>select d.Key</N:3>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0_0, <>9__0_1, <>9__0_2, <>9__0_3, <>9__0_4, <>9__0_5, <F>b__0_0, <F>b__0_1, <F>b__0_2, <F>b__0_3, <F>b__0_4, <F>b__0_5}", "<>f__AnonymousType1<<c>j__TPar>: {Equals, GetHashCode, ToString}", "<>f__AnonymousType0<<a>j__TPar, <b>j__TPar>: {Equals, GetHashCode, ToString}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates for lambdas: CheckEncLogDefinitions(reader1, Row(6, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(12, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(16, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(17, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(18, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(19, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(20, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(21, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.Param, EditAndContinueOperation.Default), Row(7, TableIndex.Param, EditAndContinueOperation.Default), Row(8, TableIndex.Param, EditAndContinueOperation.Default), Row(9, TableIndex.Param, EditAndContinueOperation.Default), Row(10, TableIndex.Param, EditAndContinueOperation.Default), Row(11, TableIndex.Param, EditAndContinueOperation.Default), Row(12, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void TransparentIdentifiers_FromClause() { var source0 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } void F() { var <N:10>result = <N:0>from a in new[] { 1 }</N:0> <N:1>from b in <N:9>new[] { 1 }</N:9></N:1> <N:2>where <N:7>Z(<N:5>() => a</N:5>) > 0</N:7></N:2> <N:3>where <N:8>Z(<N:6>() => b</N:6>) > 0</N:8></N:3> <N:4>select a</N:4></N:10>; } }"); var source1 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } void F() { var <N:10>result = <N:0>from a in new[] { 1 }</N:0> <N:1>from b in <N:9>new[] { 2 }</N:9></N:1> <N:2>where <N:7>Z(<N:5>() => a</N:5>) > 1</N:7></N:2> <N:3>where <N:8>Z(<N:6>() => b</N:6>) > 2</N:8></N:3> <N:4>select a</N:4></N:10>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass1_1: {<>h__TransparentIdentifier0, <F>b__6}", "C.<>c__DisplayClass1_0: {<>h__TransparentIdentifier0, <F>b__5}", "C.<>c: {<>9__1_0, <>9__1_1, <>9__1_4, <F>b__1_0, <F>b__1_1, <F>b__1_4}", "C: {<F>b__1_2, <F>b__1_3, <>c__DisplayClass1_0, <>c__DisplayClass1_1, <>c}", "<>f__AnonymousType0<<a>j__TPar, <b>j__TPar>: {Equals, GetHashCode, ToString}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates for lambdas: CheckEncLogDefinitions(reader1, Row(7, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(8, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(9, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(8, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(10, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(11, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(13, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(15, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(18, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(19, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(20, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.Param, EditAndContinueOperation.Default), Row(6, TableIndex.Param, EditAndContinueOperation.Default), Row(7, TableIndex.Param, EditAndContinueOperation.Default), Row(8, TableIndex.Param, EditAndContinueOperation.Default), Row(9, TableIndex.Param, EditAndContinueOperation.Default), Row(10, TableIndex.Param, EditAndContinueOperation.Default), Row(15, TableIndex.CustomAttribute, EditAndContinueOperation.Default), Row(16, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void TransparentIdentifiers_LetClause() { var source0 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } void F() { var result = <N:0>from a in new[] { 1 }</N:0> <N:1>let b = <N:2>Z(<N:3>() => a</N:3>)</N:2></N:1> <N:4>select <N:5>a + b</N:5></N:4>; } }"); var source1 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } void F() { var result = <N:0>from a in new[] { 1 }</N:0> <N:1>let b = <N:2>Z(<N:3>() => a</N:3>) + 1</N:2></N:1> <N:4>select <N:5>a + b</N:5></N:4>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C.<>c: {<>9__1_1, <F>b__1_1}", "<>f__AnonymousType0<<a>j__TPar, <b>j__TPar>: {Equals, GetHashCode, ToString}", "C.<>c__DisplayClass1_0: {a, <F>b__2}", "C: {<F>b__1_0, <>c__DisplayClass1_0, <>c}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates for lambdas: CheckEncLogDefinitions(reader1, Row(6, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(7, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(8, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(10, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(12, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(15, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.Param, EditAndContinueOperation.Default), Row(6, TableIndex.Param, EditAndContinueOperation.Default), Row(14, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void TransparentIdentifiers_JoinClause() { var source0 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } public void F() { var result = <N:0>from a in <N:1>new[] { 1 }</N:1></N:0> <N:2>join b in new[] { 3 } on <N:3>Z(<N:4>() => <N:5>a + 1</N:5></N:4>)</N:3> equals <N:6>Z(<N:7>() => <N:8>b - 1</N:8></N:7>)</N:6></N:2> <N:9>select <N:10>Z(<N:11>() => <N:12>a + b</N:12></N:11>)</N:10></N:9>; } }"); var source1 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } public void F() { var result = <N:0>from a in <N:1>new[] { 1 }</N:1></N:0> <N:2>join b in new[] { 3 } on <N:3>Z(<N:4>() => <N:5>a + 1</N:5></N:4>)</N:3> equals <N:6>Z(<N:7>() => <N:8>b - 1</N:8></N:7>)</N:6></N:2> <N:9>select <N:10>Z(<N:11>() => <N:12>a - b</N:12></N:11>)</N:10></N:9>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass1_1: {b, <F>b__4}", "C.<>c__DisplayClass1_2: {a, b, <F>b__5}", "C.<>c__DisplayClass1_0: {a, <F>b__3}", "C: {<F>b__1_0, <F>b__1_1, <F>b__1_2, <>c__DisplayClass1_0, <>c__DisplayClass1_1, <>c__DisplayClass1_2}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates for lambdas: CheckEncLogDefinitions(reader1, Row(6, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(7, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(8, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(9, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(2, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(8, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(10, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(12, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(2, TableIndex.Param, EditAndContinueOperation.Default), Row(3, TableIndex.Param, EditAndContinueOperation.Default), Row(4, TableIndex.Param, EditAndContinueOperation.Default), Row(5, TableIndex.Param, EditAndContinueOperation.Default), Row(5, TableIndex.CustomAttribute, EditAndContinueOperation.Default), Row(7, TableIndex.CustomAttribute, EditAndContinueOperation.Default), Row(9, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void TransparentIdentifiers_JoinIntoClause() { var source0 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } public void F() { var result = <N:0>from a in <N:1>new[] { 1 }</N:1></N:0> <N:2>join b in new[] { 3 } on <N:3>a + 1</N:3> equals <N:4>b - 1</N:4> into g</N:2> <N:5>select <N:6>Z(<N:7>() => <N:8>g.First()</N:8></N:7>)</N:6></N:5>; } }"); var source1 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } public void F() { var result = <N:0>from a in <N:1>new[] { 1 }</N:1></N:0> <N:2>join b in new[] { 3 } on <N:3>a + 1</N:3> equals <N:4>b - 1</N:4> into g</N:2> <N:5>select <N:6>Z(<N:7>() => <N:8>g.Last()</N:8></N:7>)</N:6></N:5>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<F>b__1_2, <>c__DisplayClass1_0, <>c}", "C.<>c: {<>9__1_0, <>9__1_1, <F>b__1_0, <F>b__1_1}", "C.<>c__DisplayClass1_0: {g, <F>b__3}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates for lambdas: CheckEncLogDefinitions(reader1, Row(4, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(5, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(2, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(9, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(10, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(2, TableIndex.Param, EditAndContinueOperation.Default), Row(3, TableIndex.Param, EditAndContinueOperation.Default), Row(4, TableIndex.Param, EditAndContinueOperation.Default), Row(5, TableIndex.Param, EditAndContinueOperation.Default), Row(5, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void TransparentIdentifiers_QueryContinuation() { var source0 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } public void F() { var result = <N:0>from a in <N:1>new[] { 1 }</N:1></N:0> <N:2>group a by <N:3>a + 1</N:3></N:2> <N:4>into g <N:5>select <N:6>Z(<N:7>() => <N:8>g.First()</N:8></N:7>)</N:6></N:5></N:4>; } }"); var source1 = MarkedSource(@" using System; using System.Linq; class C { int Z(Func<int> f) { return 1; } public void F() { var result = <N:0>from a in <N:1>new[] { 1 }</N:1></N:0> <N:2>group a by <N:3>a + 1</N:3></N:2> <N:4>into g <N:5>select <N:6>Z(<N:7>() => <N:8>g.Last()</N:8></N:7>)</N:6></N:5></N:4>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<F>b__1_1, <>c__DisplayClass1_0, <>c}", "C.<>c: {<>9__1_0, <F>b__1_0}", "C.<>c__DisplayClass1_0: {g, <F>b__2}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates for lambdas: CheckEncLogDefinitions(reader1, Row(4, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(5, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(2, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(9, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(2, TableIndex.Param, EditAndContinueOperation.Default), Row(3, TableIndex.Param, EditAndContinueOperation.Default), Row(5, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void Lambdas_UpdateAfterAdd() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(null); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + 1</N:0>); } }"); var source2 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + 2</N:0>); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda "<F>b__0#1" has been added: diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0#1, <F>b__0#1}"); // added: diff1.VerifyIL("C.<>c.<F>b__0#1", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.1 IL_0002: add IL_0003: ret } "); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0#1, <F>b__0#1}"); // updated: diff2.VerifyIL("C.<>c.<F>b__0#1", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.2 IL_0002: add IL_0003: ret } "); } [Fact] public void LocalFunctions_UpdateAfterAdd() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(null); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { <N:0>int f(int a) => a + 1;</N:0> return G(f); } }"); var source2 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { <N:0>int f(int a) => a + 2;</N:0> return G(f); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda "<F>b__0#1" has been added: diff1.VerifySynthesizedMembers( "C: {<F>g__f|0#1}"); // added: diff1.VerifyIL("C.<F>g__f|0#1(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.1 IL_0002: add IL_0003: ret } "); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C: {<F>g__f|0#1}"); // updated: diff2.VerifyIL("C.<F>g__f|0#1(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.2 IL_0002: add IL_0003: ret } "); } [Fact] public void LocalFunctions_UpdateAfterAdd_NoDelegatePassing() { var source0 = MarkedSource(@" using System; class C { static object F() { return 0; } }"); var source1 = MarkedSource(@" using System; class C { static object F() { <N:0>int f(int a) => a + 1;</N:0> return 1; } }"); var source2 = MarkedSource(@" using System; class C { static object F() { <N:0>int f(int a) => a + 2;</N:0> return 2; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda "<F>b__0#1" has been added: diff1.VerifySynthesizedMembers( "C: {<F>g__f|0#1}"); // added: diff1.VerifyIL("C.<F>g__f|0#1(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.1 IL_0002: add IL_0003: ret } "); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C: {<F>g__f|0#1}"); // updated: diff2.VerifyIL("C.<F>g__f|0#1(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.2 IL_0002: add IL_0003: ret } "); } [Fact] public void LambdasMultipleGenerations1() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + 1</N:0>); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + 2</N:0>) + G(<N:1>b => b + 20</N:1>); } }"); var source2 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + 3</N:0>) + G(<N:1>b => b + 30</N:1>) + G(<N:2>c => c + 0x300</N:2>); } }"); var source3 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + 4</N:0>) + G(<N:1>b => b + 40</N:1>) + G(<N:2>c => c + 0x400</N:2>); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var compilation3 = compilation2.WithSource(source3.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var f3 = compilation3.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda "<F>b__1_1#1" has been added: diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__1_0, <>9__1_1#1, <F>b__1_0, <F>b__1_1#1}"); // updated: diff1.VerifyIL("C.<>c.<F>b__1_0", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.2 IL_0002: add IL_0003: ret } "); // added: diff1.VerifyIL("C.<>c.<F>b__1_1#1", @" { // Code size 5 (0x5) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.s 20 IL_0003: add IL_0004: ret } "); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); // new lambda "<F>b__1_2#2" has been added: diff2.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__1_0, <>9__1_1#1, <>9__1_2#2, <F>b__1_0, <F>b__1_1#1, <F>b__1_2#2}"); // updated: diff2.VerifyIL("C.<>c.<F>b__1_0", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.3 IL_0002: add IL_0003: ret } "); // updated: diff2.VerifyIL("C.<>c.<F>b__1_1#1", @" { // Code size 5 (0x5) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.s 30 IL_0003: add IL_0004: ret } "); // added: diff2.VerifyIL("C.<>c.<F>b__1_2#2", @" { // Code size 8 (0x8) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4 0x300 IL_0006: add IL_0007: ret } "); var diff3 = compilation3.EmitDifference( diff2.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f2, f3, GetSyntaxMapFromMarkers(source2, source3), preserveLocalVariables: true))); diff3.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__1_0, <>9__1_1#1, <>9__1_2#2, <F>b__1_0, <F>b__1_1#1, <F>b__1_2#2}"); // updated: diff3.VerifyIL("C.<>c.<F>b__1_0", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.4 IL_0002: add IL_0003: ret } "); // updated: diff3.VerifyIL("C.<>c.<F>b__1_1#1", @" { // Code size 5 (0x5) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.s 40 IL_0003: add IL_0004: ret } "); // updated: diff3.VerifyIL("C.<>c.<F>b__1_2#2", @" { // Code size 8 (0x8) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4 0x400 IL_0006: add IL_0007: ret } "); } [Fact] public void LocalFunctionsMultipleGenerations1() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { <N:0>int f1(int a) => a + 1;</N:0> return G(f1); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { <N:0>int f1(int a) => a + 2;</N:0> <N:1>int f2(int b) => b + 20;</N:1> return G(f1) + G(f2); } }"); var source2 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { <N:0>int f1(int a) => a + 3;</N:0> <N:1>int f2(int b) => b + 30;</N:1> <N:2>int f3(int c) => c + 0x300;</N:2> return G(f1) + G(f2) + G(f3); } }"); var source3 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { <N:0>int f1(int a) => a + 4;</N:0> <N:1>int f2(int b) => b + 40;</N:1> <N:2>int f3(int c) => c + 0x400;</N:2> return G(f1) + G(f2) + G(f3); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var compilation3 = compilation2.WithSource(source3.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var f3 = compilation3.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C: {<F>g__f1|1_0, <F>g__f2|1_1#1}"); // updated: diff1.VerifyIL("C.<F>g__f1|1_0(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.2 IL_0002: add IL_0003: ret } "); // added: diff1.VerifyIL("C.<F>g__f2|1_1#1(int)", @" { // Code size 5 (0x5) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.s 20 IL_0003: add IL_0004: ret } "); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C: {<F>g__f1|1_0, <F>g__f2|1_1#1, <F>g__f3|1_2#2}"); // updated: diff2.VerifyIL("C.<F>g__f1|1_0(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.3 IL_0002: add IL_0003: ret } "); // updated: diff2.VerifyIL("C.<F>g__f2|1_1#1(int)", @" { // Code size 5 (0x5) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.s 30 IL_0003: add IL_0004: ret } "); // added: diff2.VerifyIL("C.<F>g__f3|1_2#2(int)", @" { // Code size 8 (0x8) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4 0x300 IL_0006: add IL_0007: ret } "); var diff3 = compilation3.EmitDifference( diff2.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f2, f3, GetSyntaxMapFromMarkers(source2, source3), preserveLocalVariables: true))); diff3.VerifySynthesizedMembers( "C: {<F>g__f1|1_0, <F>g__f2|1_1#1, <F>g__f3|1_2#2}"); // updated: diff3.VerifyIL("C.<F>g__f1|1_0(int)", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.4 IL_0002: add IL_0003: ret } "); // updated: diff3.VerifyIL("C.<F>g__f2|1_1#1(int)", @" { // Code size 5 (0x5) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4.s 40 IL_0003: add IL_0004: ret } "); // updated: diff3.VerifyIL("C.<F>g__f3|1_2#2(int)", @" { // Code size 8 (0x8) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldc.i4 0x400 IL_0006: add IL_0007: ret } "); } [Fact, WorkItem(2284, "https://github.com/dotnet/roslyn/issues/2284")] public void LambdasMultipleGenerations2() { var source0 = MarkedSource(@" using System; using System.Linq; class C { private int[] _titles = new int[] { 1, 2 }; Action A; private void F() { // edit 1 // var z = from title in _titles // where title > 0 // select title; A += <N:0>() => <N:1>{ Console.WriteLine(1); // edit 2 // Console.WriteLine(2); }</N:1></N:0>; } }"); var source1 = MarkedSource(@" using System; using System.Linq; class C { private int[] _titles = new int[] { 1, 2 }; Action A; private void F() { // edit 1 var <N:3>z = from title in _titles <N:2>where title > 0</N:2> select title</N:3>; A += <N:0>() => <N:1>{ Console.WriteLine(1); // edit 2 // Console.WriteLine(2); }</N:1></N:0>; } }"); var source2 = MarkedSource(@" using System; using System.Linq; class C { private int[] _titles = new int[] { 1, 2 }; Action A; private void F() { // edit 1 var <N:3>z = from title in _titles <N:2>where title > 0</N:2> select title</N:3>; A += <N:0>() => <N:1>{ Console.WriteLine(1); // edit 2 Console.WriteLine(2); }</N:1></N:0>; } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All)); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda "<F>b__2_0#1" has been added: diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__2_0#1, <>9__2_0, <F>b__2_0#1, <F>b__2_0}"); // lambda body unchanged: diff1.VerifyIL("C.<>c.<F>b__2_0", @" { // Code size 9 (0x9) .maxstack 1 IL_0000: nop IL_0001: ldc.i4.1 IL_0002: call ""void System.Console.WriteLine(int)"" IL_0007: nop IL_0008: ret }"); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); // no new members: diff2.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__2_0#1, <>9__2_0, <F>b__2_0#1, <F>b__2_0}"); // lambda body updated: diff2.VerifyIL("C.<>c.<F>b__2_0", @" { // Code size 16 (0x10) .maxstack 1 IL_0000: nop IL_0001: ldc.i4.1 IL_0002: call ""void System.Console.WriteLine(int)"" IL_0007: nop IL_0008: ldc.i4.2 IL_0009: call ""void System.Console.WriteLine(int)"" IL_000e: nop IL_000f: ret }"); } [Fact] public void UniqueSynthesizedNames1() { var source0 = @" using System; public class C { public int F() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } }"; var source1 = @" using System; public class C { public int F(int x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } public int F() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } }"; var source2 = @" using System; public class C { public int F(int x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } public int F(byte x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } public int F() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } }"; var compilation0 = CreateCompilationWithMscorlib45(source0, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); var compilation1 = compilation0.WithSource(source1); var compilation2 = compilation1.WithSource(source2); var f_int1 = compilation1.GetMembers("C.F").Single(m => m.ToString() == "C.F(int)"); var f_byte2 = compilation2.GetMembers("C.F").Single(m => m.ToString() == "C.F(byte)"); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var reader0 = md0.MetadataReader; CheckNames(reader0, reader0.GetTypeDefNames(), "<Module>", "C", "<>c__DisplayClass0_0", "<>c"); CheckNames(reader0, reader0.GetMethodDefNames(), "F", ".ctor", ".ctor", "<F>b__1", "<F>b__2", ".cctor", ".ctor", "<F>b__0_0"); CheckNames(reader0, reader0.GetFieldDefNames(), "<>4__this", "a", "<>9", "<>9__0_0"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, f_int1))); var reader1 = diff1.GetMetadata().Reader; CheckNames(new[] { reader0, reader1 }, reader1.GetTypeDefNames(), "<>c__DisplayClass0#1_0#1"); CheckNames(new[] { reader0, reader1 }, reader1.GetMethodDefNames(), ".ctor", "F", ".ctor", "<F>b__1#1", "<F>b__2#1", "<F>b__0#1_0#1"); CheckNames(new[] { reader0, reader1 }, reader1.GetFieldDefNames(), "<>4__this", "a", "<>9__0#1_0#1"); diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0#1_0#1, <>c}", "C.<>c__DisplayClass0#1_0#1: {<>4__this, a, <F>b__1#1, <F>b__2#1}", "C.<>c: {<>9__0#1_0#1, <F>b__0#1_0#1}"); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, f_byte2))); var reader2 = diff2.GetMetadata().Reader; CheckNames(new[] { reader0, reader1, reader2 }, reader2.GetTypeDefNames(), "<>c__DisplayClass1#2_0#2"); CheckNames(new[] { reader0, reader1, reader2 }, reader2.GetMethodDefNames(), ".ctor", "F", ".ctor", "<F>b__1#2", "<F>b__2#2", "<F>b__1#2_0#2"); CheckNames(new[] { reader0, reader1, reader2 }, reader2.GetFieldDefNames(), "<>4__this", "a", "<>9__1#2_0#2"); } [Fact] public void UniqueSynthesizedNames1_Generic() { var source0 = @" using System; public class C { public int F<T>() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F<T>()); var f3 = new Func<int>(() => a); return 2; } }"; var source1 = @" using System; public class C { public int F<T>(int x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F<T>()); var f3 = new Func<int>(() => a); return 2; } public int F<T>() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F<T>()); var f3 = new Func<int>(() => a); return 2; } }"; var source2 = @" using System; public class C { public int F<T>(int x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F<T>()); var f3 = new Func<int>(() => a); return 2; } public int F<T>(byte x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F<T>()); var f3 = new Func<int>(() => a); return 2; } public int F<T>() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F<T>()); var f3 = new Func<int>(() => a); return 2; } }"; var compilation0 = CreateCompilationWithMscorlib45(source0, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); var compilation1 = compilation0.WithSource(source1); var compilation2 = compilation1.WithSource(source2); var f_int1 = compilation1.GetMembers("C.F").Single(m => m.ToString() == "C.F<T>(int)"); var f_byte2 = compilation2.GetMembers("C.F").Single(m => m.ToString() == "C.F<T>(byte)"); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var reader0 = md0.MetadataReader; CheckNames(reader0, reader0.GetTypeDefNames(), "<Module>", "C", "<>c__DisplayClass0_0`1", "<>c__0`1"); CheckNames(reader0, reader0.GetMethodDefNames(), "F", ".ctor", ".ctor", "<F>b__1", "<F>b__2", ".cctor", ".ctor", "<F>b__0_0"); CheckNames(reader0, reader0.GetFieldDefNames(), "<>4__this", "a", "<>9", "<>9__0_0"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, f_int1))); var reader1 = diff1.GetMetadata().Reader; CheckNames(new[] { reader0, reader1 }, reader1.GetTypeDefNames(), "<>c__DisplayClass0#1_0#1`1", "<>c__0#1`1"); CheckNames(new[] { reader0, reader1 }, reader1.GetMethodDefNames(), "F", ".ctor", "<F>b__1#1", "<F>b__2#1", ".cctor", ".ctor", "<F>b__0#1_0#1"); CheckNames(new[] { reader0, reader1 }, reader1.GetFieldDefNames(), "<>4__this", "a", "<>9", "<>9__0#1_0#1"); diff1.VerifySynthesizedMembers( "C.<>c__0#1<T>: {<>9__0#1_0#1, <F>b__0#1_0#1}", "C: {<>c__DisplayClass0#1_0#1, <>c__0#1}", "C.<>c__DisplayClass0#1_0#1<T>: {<>4__this, a, <F>b__1#1, <F>b__2#1}"); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, f_byte2))); var reader2 = diff2.GetMetadata().Reader; CheckNames(new[] { reader0, reader1, reader2 }, reader2.GetTypeDefNames(), "<>c__DisplayClass1#2_0#2`1", "<>c__1#2`1"); CheckNames(new[] { reader0, reader1, reader2 }, reader2.GetMethodDefNames(), "F", ".ctor", "<F>b__1#2", "<F>b__2#2", ".cctor", ".ctor", "<F>b__1#2_0#2"); CheckNames(new[] { reader0, reader1, reader2 }, reader2.GetFieldDefNames(), "<>4__this", "a", "<>9", "<>9__1#2_0#2"); } [Fact] public void UniqueSynthesizedNames2() { var source0 = @" using System; public class C { public static void Main() { } }"; var source1 = @" using System; public class C { public static void Main() { new C().F(); } public int F() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } }"; var source2 = @" using System; public class C { public static void Main() { new C().F(1); new C().F(); } public int F(int x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } public int F() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } }"; var source3 = @" using System; public class C { public static void Main() { } public int F(int x) { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } public int F() { var a = 1; var f1 = new Func<int>(() => 1); var f2 = new Func<int>(() => F()); var f3 = new Func<int>(() => a); return 2; } }"; var compilation0 = CreateCompilationWithMscorlib45(source0, options: ComSafeDebugDll.WithMetadataImportOptions(MetadataImportOptions.All), assemblyName: "A"); var compilation1 = compilation0.WithSource(source1); var compilation2 = compilation1.WithSource(source2); var compilation3 = compilation2.WithSource(source3); var main0 = compilation0.GetMember<MethodSymbol>("C.Main"); var main1 = compilation1.GetMember<MethodSymbol>("C.Main"); var main2 = compilation2.GetMember<MethodSymbol>("C.Main"); var main3 = compilation3.GetMember<MethodSymbol>("C.Main"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f_int2 = compilation2.GetMembers("C.F").Single(m => m.ToString() == "C.F(int)"); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, f1), SemanticEdit.Create(SemanticEditKind.Update, main0, main1, preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C.<>c: {<>9__1#1_0#1, <F>b__1#1_0#1}", "C.<>c__DisplayClass1#1_0#1: {<>4__this, a, <F>b__1#1, <F>b__2#1}", "C: {<>c__DisplayClass1#1_0#1, <>c}"); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, f_int2), SemanticEdit.Create(SemanticEditKind.Update, main1, main2, preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C.<>c__DisplayClass1#2_0#2: {<>4__this, a, <F>b__1#2, <F>b__2#2}", "C: {<>c__DisplayClass1#2_0#2, <>c, <>c__DisplayClass1#1_0#1}", "C.<>c: {<>9__1#2_0#2, <F>b__1#2_0#2, <>9__1#1_0#1, <F>b__1#1_0#1}", "C.<>c__DisplayClass1#1_0#1: {<>4__this, a, <F>b__1#1, <F>b__2#1}"); var diff3 = compilation3.EmitDifference( diff2.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, main2, main3, preserveLocalVariables: true))); diff3.VerifySynthesizedMembers( "C.<>c__DisplayClass1#1_0#1: {<>4__this, a, <F>b__1#1, <F>b__2#1}", "C.<>c: {<>9__1#2_0#2, <F>b__1#2_0#2, <>9__1#1_0#1, <F>b__1#1_0#1}", "C.<>c__DisplayClass1#2_0#2: {<>4__this, a, <F>b__1#2, <F>b__2#2}", "C: {<>c__DisplayClass1#2_0#2, <>c, <>c__DisplayClass1#1_0#1}"); } [Fact] public void NestedLambdas() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + G(<N:1>b => 1</N:1>)</N:0>); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; static object F() { return G(<N:0>a => a + G(<N:1>b => 2</N:1>)</N:0>); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // 3 method updates: // Note that even if the change is in the inner lambda such a change will usually impact sequence point // spans in outer lambda and the method body. So although the IL doesn't change we usually need to update the outer methods. CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(2, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(7, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(2, TableIndex.Param, EditAndContinueOperation.Default), Row(3, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void LambdasInInitializers1() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; public int A = G(<N:0>a => a + 1</N:0>); public C() : this(G(<N:1>a => a + 2</N:1>)) { G(<N:2>a => a + 3</N:2>); } public C(int x) { G(<N:3>a => a + 4</N:3>); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; public int A = G(<N:0>a => a - 1</N:0>); public C() : this(G(<N:1>a => a - 2</N:1>)) { G(<N:2>a => a - 3</N:2>); } public C(int x) { G(<N:3>a => a - 4</N:3>); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var ctor00 = compilation0.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor()"); var ctor10 = compilation0.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor(System.Int32 x)"); var ctor01 = compilation1.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor()"); var ctor11 = compilation1.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor(System.Int32 x)"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, ctor00, ctor01, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true), SemanticEdit.Create(SemanticEditKind.Update, ctor10, ctor11, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__2_0, <>9__2_1, <>9__3_0, <>9__3_1, <.ctor>b__2_0, <.ctor>b__2_1, <.ctor>b__3_0, <.ctor>b__3_1}"); diff1.VerifyIL("C.<>c.<.ctor>b__2_0", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.2 IL_0002: sub IL_0003: ret }"); diff1.VerifyIL("C.<>c.<.ctor>b__2_1", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.3 IL_0002: sub IL_0003: ret }"); diff1.VerifyIL("C.<>c.<.ctor>b__3_0", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.4 IL_0002: sub IL_0003: ret }"); diff1.VerifyIL("C.<>c.<.ctor>b__3_1", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.1 IL_0002: sub IL_0003: ret }"); } [Fact] public void LambdasInInitializers2() { var source0 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; public int A = G(<N:0>a => { int <N:4>v1 = 1</N:4>; return 1; }</N:0>); public C() : this(G(<N:1>a => { int <N:5>v2 = 1</N:5>; return 2; }</N:1>)) { G(<N:2>a => { int <N:6>v3 = 1</N:6>; return 3; }</N:2>); } public C(int x) { G(<N:3>a => { int <N:7>v4 = 1</N:7>; return 4; }</N:3>); } }"); var source1 = MarkedSource(@" using System; class C { static int G(Func<int, int> f) => 1; public int A = G(<N:0>a => { int <N:4>v1 = 10</N:4>; return 1; }</N:0>); public C() : this(G(<N:1>a => { int <N:5>v2 = 10</N:5>; return 2; }</N:1>)) { G(<N:2>a => { int <N:6>v3 = 10</N:6>; return 3; }</N:2>); } public C(int x) { G(<N:3>a => { int <N:7>v4 = 10</N:7>; return 4; }</N:3>); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var ctor00 = compilation0.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor()"); var ctor10 = compilation0.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor(System.Int32 x)"); var ctor01 = compilation1.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor()"); var ctor11 = compilation1.GetMembers("C..ctor").Single(m => m.ToTestDisplayString() == "C..ctor(System.Int32 x)"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, ctor00, ctor01, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true), SemanticEdit.Create(SemanticEditKind.Update, ctor10, ctor11, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__2_0, <>9__2_1, <>9__3_0, <>9__3_1, <.ctor>b__2_0, <.ctor>b__2_1, <.ctor>b__3_0, <.ctor>b__3_1}"); diff1.VerifyIL("C.<>c.<.ctor>b__2_0", @" { // Code size 10 (0xa) .maxstack 1 .locals init (int V_0, //v2 [int] V_1, int V_2) IL_0000: nop IL_0001: ldc.i4.s 10 IL_0003: stloc.0 IL_0004: ldc.i4.2 IL_0005: stloc.2 IL_0006: br.s IL_0008 IL_0008: ldloc.2 IL_0009: ret }"); diff1.VerifyIL("C.<>c.<.ctor>b__2_1", @" { // Code size 10 (0xa) .maxstack 1 .locals init (int V_0, //v3 [int] V_1, int V_2) IL_0000: nop IL_0001: ldc.i4.s 10 IL_0003: stloc.0 IL_0004: ldc.i4.3 IL_0005: stloc.2 IL_0006: br.s IL_0008 IL_0008: ldloc.2 IL_0009: ret }"); diff1.VerifyIL("C.<>c.<.ctor>b__3_0", @" { // Code size 10 (0xa) .maxstack 1 .locals init (int V_0, //v4 [int] V_1, int V_2) IL_0000: nop IL_0001: ldc.i4.s 10 IL_0003: stloc.0 IL_0004: ldc.i4.4 IL_0005: stloc.2 IL_0006: br.s IL_0008 IL_0008: ldloc.2 IL_0009: ret }"); diff1.VerifyIL("C.<>c.<.ctor>b__3_1", @" { // Code size 10 (0xa) .maxstack 1 .locals init (int V_0, //v1 [int] V_1, int V_2) IL_0000: nop IL_0001: ldc.i4.s 10 IL_0003: stloc.0 IL_0004: ldc.i4.1 IL_0005: stloc.2 IL_0006: br.s IL_0008 IL_0008: ldloc.2 IL_0009: ret }"); } [Fact] public void UpdateParameterlessConstructorInPresenceOfFieldInitializersWithLambdas() { var source0 = MarkedSource(@" using System; class C { static int F(Func<int, int> x) => 1; int A = F(<N:0>a => a + 1</N:0>); }"); var source1 = MarkedSource(@" using System; class C { static int F(Func<int, int> x) => 1; int A = F(<N:0>a => a + 1</N:0>); int B = F(b => b + 1); // new field public C() // new ctor { F(c => c + 1); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var b1 = compilation1.GetMember<FieldSymbol>("C.B"); var ctor0 = compilation0.GetMember<MethodSymbol>("C..ctor"); var ctor1 = compilation1.GetMember<MethodSymbol>("C..ctor"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, b1), SemanticEdit.Create(SemanticEditKind.Update, ctor0, ctor1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__2_0#1, <>9__2_0, <>9__2_2#1, <.ctor>b__2_0#1, <.ctor>b__2_0, <.ctor>b__2_2#1}"); diff1.VerifyIL("C..ctor", @" { // Code size 130 (0x82) .maxstack 3 IL_0000: ldarg.0 IL_0001: ldsfld ""System.Func<int, int> C.<>c.<>9__2_0"" IL_0006: dup IL_0007: brtrue.s IL_0020 IL_0009: pop IL_000a: ldsfld ""C.<>c C.<>c.<>9"" IL_000f: ldftn ""int C.<>c.<.ctor>b__2_0(int)"" IL_0015: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_001a: dup IL_001b: stsfld ""System.Func<int, int> C.<>c.<>9__2_0"" IL_0020: call ""int C.F(System.Func<int, int>)"" IL_0025: stfld ""int C.A"" IL_002a: ldarg.0 IL_002b: ldsfld ""System.Func<int, int> C.<>c.<>9__2_2#1"" IL_0030: dup IL_0031: brtrue.s IL_004a IL_0033: pop IL_0034: ldsfld ""C.<>c C.<>c.<>9"" IL_0039: ldftn ""int C.<>c.<.ctor>b__2_2#1(int)"" IL_003f: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0044: dup IL_0045: stsfld ""System.Func<int, int> C.<>c.<>9__2_2#1"" IL_004a: call ""int C.F(System.Func<int, int>)"" IL_004f: stfld ""int C.B"" IL_0054: ldarg.0 IL_0055: call ""object..ctor()"" IL_005a: nop IL_005b: nop IL_005c: ldsfld ""System.Func<int, int> C.<>c.<>9__2_0#1"" IL_0061: dup IL_0062: brtrue.s IL_007b IL_0064: pop IL_0065: ldsfld ""C.<>c C.<>c.<>9"" IL_006a: ldftn ""int C.<>c.<.ctor>b__2_0#1(int)"" IL_0070: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0075: dup IL_0076: stsfld ""System.Func<int, int> C.<>c.<>9__2_0#1"" IL_007b: call ""int C.F(System.Func<int, int>)"" IL_0080: pop IL_0081: ret } "); } [Fact(Skip = "2504"), WorkItem(2504, "https://github.com/dotnet/roslyn/issues/2504")] public void InsertConstructorInPresenceOfFieldInitializersWithLambdas() { var source0 = MarkedSource(@" using System; class C { static int F(Func<int, int> x) => 1; int A = F(<N:0>a => a + 1</N:0>); }"); var source1 = MarkedSource(@" using System; class C { static int F(Func<int, int> x) => 1; int A = F(<N:0>a => a + 1</N:0>); int B = F(b => b + 1); // new field public C(int x) // new ctor { F(c => c + 1); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var b1 = compilation1.GetMember<FieldSymbol>("C.B"); var ctor1 = compilation1.GetMember<MethodSymbol>("C..ctor"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Insert, null, b1), SemanticEdit.Create(SemanticEditKind.Insert, null, ctor1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C: {<> c}", "C.<>c: {<>9__2_0#1, <>9__2_0, <>9__2_2#1, <.ctor>b__2_0#1, <.ctor>b__2_0, <.ctor>b__2_2#1}"); } [Fact] public void Queries_Select_Reduced1() { var source0 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>where a > 0</N:1> <N:2>select a</N:2></N:0>; } int[] array = null; } "); var source1 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>where a > 0</N:1> <N:2>select a + 1</N:2></N:0>; } int[] array = null; } "); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda for Select(a => a + 1) diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0_0, <>9__0_1#1, <F>b__0_0, <F>b__0_1#1}"); diff1.VerifyIL("C.<>c.<F>b__0_1#1", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.1 IL_0002: add IL_0003: ret } "); // old query: v0.VerifyIL("C.F", @" { // Code size 45 (0x2d) .maxstack 3 .locals init (System.Collections.Generic.IEnumerable<int> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""bool C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, bool>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_0026: call ""System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Where<int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, bool>)"" IL_002b: stloc.0 IL_002c: ret } "); // new query: diff1.VerifyIL("C.F", @" { // Code size 81 (0x51) .maxstack 3 .locals init (System.Collections.Generic.IEnumerable<int> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""bool C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, bool>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_0026: call ""System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Where<int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, bool>)"" IL_002b: ldsfld ""System.Func<int, int> C.<>c.<>9__0_1#1"" IL_0030: dup IL_0031: brtrue.s IL_004a IL_0033: pop IL_0034: ldsfld ""C.<>c C.<>c.<>9"" IL_0039: ldftn ""int C.<>c.<F>b__0_1#1(int)"" IL_003f: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0044: dup IL_0045: stsfld ""System.Func<int, int> C.<>c.<>9__0_1#1"" IL_004a: call ""System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Select<int, int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, int>)"" IL_004f: stloc.0 IL_0050: ret } "); } [Fact] public void Queries_Select_Reduced2() { var source0 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>where a > 0</N:1> <N:2>select a + 1</N:2></N:0>; } int[] array = null; } "); var source1 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>where a > 0</N:1> <N:2>select a</N:2></N:0>; } int[] array = null; } "); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // lambda for Select(a => a + 1) is gone diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0_0, <F>b__0_0}"); // old query: v0.VerifyIL("C.F", @" { // Code size 81 (0x51) .maxstack 3 .locals init (System.Collections.Generic.IEnumerable<int> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""bool C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, bool>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_0026: call ""System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Where<int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, bool>)"" IL_002b: ldsfld ""System.Func<int, int> C.<>c.<>9__0_1"" IL_0030: dup IL_0031: brtrue.s IL_004a IL_0033: pop IL_0034: ldsfld ""C.<>c C.<>c.<>9"" IL_0039: ldftn ""int C.<>c.<F>b__0_1(int)"" IL_003f: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0044: dup IL_0045: stsfld ""System.Func<int, int> C.<>c.<>9__0_1"" IL_004a: call ""System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Select<int, int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, int>)"" IL_004f: stloc.0 IL_0050: ret } "); // new query: diff1.VerifyIL("C.F", @" { // Code size 45 (0x2d) .maxstack 3 .locals init (System.Collections.Generic.IEnumerable<int> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""bool C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, bool>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, bool> C.<>c.<>9__0_0"" IL_0026: call ""System.Collections.Generic.IEnumerable<int> System.Linq.Enumerable.Where<int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, bool>)"" IL_002b: stloc.0 IL_002c: ret } "); } [Fact] public void Queries_GroupBy_Reduced1() { var source0 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>group a by a</N:1></N:0>; } int[] array = null; } "); var source1 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>group a + 1 by a</N:1></N:0>; } int[] array = null; } "); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // new lambda for GroupBy(..., a => a + 1) diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0_0, <>9__0_1#1, <F>b__0_0, <F>b__0_1#1}"); diff1.VerifyIL("C.<>c.<F>b__0_1#1", @" { // Code size 4 (0x4) .maxstack 2 IL_0000: ldarg.1 IL_0001: ldc.i4.1 IL_0002: add IL_0003: ret } "); // old query: v0.VerifyIL("C.F", @" { // Code size 45 (0x2d) .maxstack 3 .locals init (System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""int C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_0026: call ""System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> System.Linq.Enumerable.GroupBy<int, int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, int>)"" IL_002b: stloc.0 IL_002c: ret } "); // new query: diff1.VerifyIL("C.F", @" { // Code size 76 (0x4c) .maxstack 4 .locals init (System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""int C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_0026: ldsfld ""System.Func<int, int> C.<>c.<>9__0_1#1"" IL_002b: dup IL_002c: brtrue.s IL_0045 IL_002e: pop IL_002f: ldsfld ""C.<>c C.<>c.<>9"" IL_0034: ldftn ""int C.<>c.<F>b__0_1#1(int)"" IL_003a: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_003f: dup IL_0040: stsfld ""System.Func<int, int> C.<>c.<>9__0_1#1"" IL_0045: call ""System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> System.Linq.Enumerable.GroupBy<int, int, int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, int>, System.Func<int, int>)"" IL_004a: stloc.0 IL_004b: ret } "); } [Fact] public void Queries_GroupBy_Reduced2() { var source0 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>group a + 1 by a</N:1></N:0>; } int[] array = null; } "); var source1 = MarkedSource(@" using System; using System.Linq; using System.Collections.Generic; class C { void F() { var <N:0>result = from a in array <N:1>group a by a</N:1></N:0>; } int[] array = null; } "); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // lambda for GroupBy(..., a => a + 1) is gone diff1.VerifySynthesizedMembers( "C: {<>c}", "C.<>c: {<>9__0_0, <F>b__0_0}"); // old query: v0.VerifyIL("C.F", @" { // Code size 76 (0x4c) .maxstack 4 .locals init (System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""int C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_0026: ldsfld ""System.Func<int, int> C.<>c.<>9__0_1"" IL_002b: dup IL_002c: brtrue.s IL_0045 IL_002e: pop IL_002f: ldsfld ""C.<>c C.<>c.<>9"" IL_0034: ldftn ""int C.<>c.<F>b__0_1(int)"" IL_003a: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_003f: dup IL_0040: stsfld ""System.Func<int, int> C.<>c.<>9__0_1"" IL_0045: call ""System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> System.Linq.Enumerable.GroupBy<int, int, int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, int>, System.Func<int, int>)"" IL_004a: stloc.0 IL_004b: ret } "); // new query: diff1.VerifyIL("C.F", @" { // Code size 45 (0x2d) .maxstack 3 .locals init (System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> V_0) //result IL_0000: nop IL_0001: ldarg.0 IL_0002: ldfld ""int[] C.array"" IL_0007: ldsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_000c: dup IL_000d: brtrue.s IL_0026 IL_000f: pop IL_0010: ldsfld ""C.<>c C.<>c.<>9"" IL_0015: ldftn ""int C.<>c.<F>b__0_0(int)"" IL_001b: newobj ""System.Func<int, int>..ctor(object, System.IntPtr)"" IL_0020: dup IL_0021: stsfld ""System.Func<int, int> C.<>c.<>9__0_0"" IL_0026: call ""System.Collections.Generic.IEnumerable<System.Linq.IGrouping<int, int>> System.Linq.Enumerable.GroupBy<int, int>(System.Collections.Generic.IEnumerable<int>, System.Func<int, int>)"" IL_002b: stloc.0 IL_002c: ret } "); } [Fact, WorkItem(1170899, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1170899")] public void CapturedAnonymousTypes1() { var source0 = MarkedSource(@" using System; class C { static void F() <N:0>{ var <N:1>x = new { A = 1 }</N:1>; var <N:2>y = new Func<int>(<N:3>() => x.A</N:3>)</N:2>; Console.WriteLine(1); }</N:0> } "); var source1 = MarkedSource(@" using System; class C { static void F() <N:0>{ var <N:1>x = new { A = 1 }</N:1>; var <N:2>y = new Func<int>(<N:3>() => x.A</N:3>)</N:2>; Console.WriteLine(2); }</N:0> } "); var source2 = MarkedSource(@" using System; class C { static void F() <N:0>{ var <N:1>x = new { A = 1 }</N:1>; var <N:2>y = new Func<int>(<N:3>() => x.A</N:3>)</N:2>; Console.WriteLine(3); }</N:0> } "); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); v0.VerifyIL("C.F", @" { // Code size 40 (0x28) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0, //CS$<>8__locals0 System.Func<int> V_1) //y IL_0000: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0005: stloc.0 IL_0006: nop IL_0007: ldloc.0 IL_0008: ldc.i4.1 IL_0009: newobj ""<>f__AnonymousType0<int>..ctor(int)"" IL_000e: stfld ""<anonymous type: int A> C.<>c__DisplayClass0_0.x"" IL_0013: ldloc.0 IL_0014: ldftn ""int C.<>c__DisplayClass0_0.<F>b__0()"" IL_001a: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_001f: stloc.1 IL_0020: ldc.i4.1 IL_0021: call ""void System.Console.WriteLine(int)"" IL_0026: nop IL_0027: ret }"); var diff1 = compilation1.EmitDifference(generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0}", "C.<>c__DisplayClass0_0: {x, <F>b__0}", "<>f__AnonymousType0<<A>j__TPar>: {Equals, GetHashCode, ToString}"); diff1.VerifyIL("C.F", @" { // Code size 40 (0x28) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0, //CS$<>8__locals0 System.Func<int> V_1) //y IL_0000: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0005: stloc.0 IL_0006: nop IL_0007: ldloc.0 IL_0008: ldc.i4.1 IL_0009: newobj ""<>f__AnonymousType0<int>..ctor(int)"" IL_000e: stfld ""<anonymous type: int A> C.<>c__DisplayClass0_0.x"" IL_0013: ldloc.0 IL_0014: ldftn ""int C.<>c__DisplayClass0_0.<F>b__0()"" IL_001a: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_001f: stloc.1 IL_0020: ldc.i4.2 IL_0021: call ""void System.Console.WriteLine(int)"" IL_0026: nop IL_0027: ret }"); var diff2 = compilation2.EmitDifference(diff1.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0}", "C.<>c__DisplayClass0_0: {x, <F>b__0}", "<>f__AnonymousType0<<A>j__TPar>: {Equals, GetHashCode, ToString}"); diff2.VerifyIL("C.F", @" { // Code size 40 (0x28) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0, //CS$<>8__locals0 System.Func<int> V_1) //y IL_0000: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0005: stloc.0 IL_0006: nop IL_0007: ldloc.0 IL_0008: ldc.i4.1 IL_0009: newobj ""<>f__AnonymousType0<int>..ctor(int)"" IL_000e: stfld ""<anonymous type: int A> C.<>c__DisplayClass0_0.x"" IL_0013: ldloc.0 IL_0014: ldftn ""int C.<>c__DisplayClass0_0.<F>b__0()"" IL_001a: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_001f: stloc.1 IL_0020: ldc.i4.3 IL_0021: call ""void System.Console.WriteLine(int)"" IL_0026: nop IL_0027: ret }"); } [Fact, WorkItem(1170899, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1170899")] public void CapturedAnonymousTypes2() { var template = @" using System; class C { static void F() <N:0>{ var x = new { X = <<VALUE>> }; Func<int> <N:2>y = <N:1>() => x.X</N:1></N:2>; Console.WriteLine(y()); }</N:0> } "; var source0 = MarkedSource(template.Replace("<<VALUE>>", "0")); var source1 = MarkedSource(template.Replace("<<VALUE>>", "1")); var source2 = MarkedSource(template.Replace("<<VALUE>>", "2")); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); string expectedIL = @" { // Code size 45 (0x2d) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0, //CS$<>8__locals0 System.Func<int> V_1) //y IL_0000: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0005: stloc.0 IL_0006: nop IL_0007: ldloc.0 IL_0008: ldc.i4.<<VALUE>> IL_0009: newobj ""<>f__AnonymousType0<int>..ctor(int)"" IL_000e: stfld ""<anonymous type: int X> C.<>c__DisplayClass0_0.x"" IL_0013: ldloc.0 IL_0014: ldftn ""int C.<>c__DisplayClass0_0.<F>b__0()"" IL_001a: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_001f: stloc.1 IL_0020: ldloc.1 IL_0021: callvirt ""int System.Func<int>.Invoke()"" IL_0026: call ""void System.Console.WriteLine(int)"" IL_002b: nop IL_002c: ret }"; v0.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "0")); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0}", "C.<>c__DisplayClass0_0: {x, <F>b__0}", "<>f__AnonymousType0<<X>j__TPar>: {Equals, GetHashCode, ToString}"); diff1.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "1")); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0}", "C.<>c__DisplayClass0_0: {x, <F>b__0}", "<>f__AnonymousType0<<X>j__TPar>: {Equals, GetHashCode, ToString}"); diff2.VerifyIL("C.F", expectedIL.Replace("<<VALUE>>", "2")); } [WorkItem(179990, "https://devdiv.visualstudio.com:443/defaultcollection/DevDiv/_workitems/edit/179990")] [Fact] public void SynthesizedDelegates() { var template = @"class C { static void F(dynamic d, out object x, object y) <N:0>{ <<CALL>>; }</N:0> }"; var source0 = MarkedSource(template.Replace("<<CALL>>", "d.F(out x, new { })")); var source1 = MarkedSource(template.Replace("<<CALL>>", "d.F(out x, new { y })")); var source2 = MarkedSource(template.Replace("<<CALL>>", "d.F(new { y }, out x)")); var compilation0 = CreateCompilationWithMscorlib40(new[] { source0.Tree }, references: new[] { SystemCoreRef, CSharpRef }, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var compilation2 = compilation1.WithSource(source2.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var f2 = compilation2.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); v0.VerifyIL("C.F", @"{ // Code size 112 (0x70) .maxstack 9 IL_0000: nop IL_0001: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>> C.<>o__0.<>p__0"" IL_0006: brfalse.s IL_000a IL_0008: br.s IL_0053 IL_000a: ldc.i4 0x100 IL_000f: ldstr ""F"" IL_0014: ldnull IL_0015: ldtoken ""C"" IL_001a: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_001f: ldc.i4.3 IL_0020: newarr ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo"" IL_0025: dup IL_0026: ldc.i4.0 IL_0027: ldc.i4.0 IL_0028: ldnull IL_0029: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_002e: stelem.ref IL_002f: dup IL_0030: ldc.i4.1 IL_0031: ldc.i4.s 17 IL_0033: ldnull IL_0034: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_0039: stelem.ref IL_003a: dup IL_003b: ldc.i4.2 IL_003c: ldc.i4.1 IL_003d: ldnull IL_003e: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_0043: stelem.ref IL_0044: call ""System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, string, System.Collections.Generic.IEnumerable<System.Type>, System.Type, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>)"" IL_0049: call ""System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>> System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>>.Create(System.Runtime.CompilerServices.CallSiteBinder)"" IL_004e: stsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>> C.<>o__0.<>p__0"" IL_0053: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>> C.<>o__0.<>p__0"" IL_0058: ldfld ""<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>> System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>>.Target"" IL_005d: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>> C.<>o__0.<>p__0"" IL_0062: ldarg.0 IL_0063: ldarg.1 IL_0064: newobj ""<>f__AnonymousType0..ctor()"" IL_0069: callvirt ""void <>A{00000010}<System.Runtime.CompilerServices.CallSite, dynamic, object, <empty anonymous type>>.Invoke(System.Runtime.CompilerServices.CallSite, dynamic, ref object, <empty anonymous type>)"" IL_006e: nop IL_006f: ret }"); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); diff1.VerifyIL("C.F", @"{ // Code size 113 (0x71) .maxstack 9 IL_0000: nop IL_0001: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>> C.<>o__0#1.<>p__0"" IL_0006: brfalse.s IL_000a IL_0008: br.s IL_0053 IL_000a: ldc.i4 0x100 IL_000f: ldstr ""F"" IL_0014: ldnull IL_0015: ldtoken ""C"" IL_001a: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_001f: ldc.i4.3 IL_0020: newarr ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo"" IL_0025: dup IL_0026: ldc.i4.0 IL_0027: ldc.i4.0 IL_0028: ldnull IL_0029: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_002e: stelem.ref IL_002f: dup IL_0030: ldc.i4.1 IL_0031: ldc.i4.s 17 IL_0033: ldnull IL_0034: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_0039: stelem.ref IL_003a: dup IL_003b: ldc.i4.2 IL_003c: ldc.i4.1 IL_003d: ldnull IL_003e: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_0043: stelem.ref IL_0044: call ""System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, string, System.Collections.Generic.IEnumerable<System.Type>, System.Type, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>)"" IL_0049: call ""System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>> System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>>.Create(System.Runtime.CompilerServices.CallSiteBinder)"" IL_004e: stsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>> C.<>o__0#1.<>p__0"" IL_0053: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>> C.<>o__0#1.<>p__0"" IL_0058: ldfld ""<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>> System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>>.Target"" IL_005d: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>> C.<>o__0#1.<>p__0"" IL_0062: ldarg.0 IL_0063: ldarg.1 IL_0064: ldarg.2 IL_0065: newobj ""<>f__AnonymousType1<object>..ctor(object)"" IL_006a: callvirt ""void <>A{00000010}#1<System.Runtime.CompilerServices.CallSite, dynamic, object, <anonymous type: object y>>.Invoke(System.Runtime.CompilerServices.CallSite, dynamic, ref object, <anonymous type: object y>)"" IL_006f: nop IL_0070: ret }"); var diff2 = compilation2.EmitDifference( diff1.NextGeneration, ImmutableArray.Create( SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapFromMarkers(source1, source2), preserveLocalVariables: true))); diff2.VerifyIL("C.F", @"{ // Code size 113 (0x71) .maxstack 9 IL_0000: nop IL_0001: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>> C.<>o__0#2.<>p__0"" IL_0006: brfalse.s IL_000a IL_0008: br.s IL_0053 IL_000a: ldc.i4 0x100 IL_000f: ldstr ""F"" IL_0014: ldnull IL_0015: ldtoken ""C"" IL_001a: call ""System.Type System.Type.GetTypeFromHandle(System.RuntimeTypeHandle)"" IL_001f: ldc.i4.3 IL_0020: newarr ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo"" IL_0025: dup IL_0026: ldc.i4.0 IL_0027: ldc.i4.0 IL_0028: ldnull IL_0029: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_002e: stelem.ref IL_002f: dup IL_0030: ldc.i4.1 IL_0031: ldc.i4.1 IL_0032: ldnull IL_0033: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_0038: stelem.ref IL_0039: dup IL_003a: ldc.i4.2 IL_003b: ldc.i4.s 17 IL_003d: ldnull IL_003e: call ""Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfoFlags, string)"" IL_0043: stelem.ref IL_0044: call ""System.Runtime.CompilerServices.CallSiteBinder Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags, string, System.Collections.Generic.IEnumerable<System.Type>, System.Type, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>)"" IL_0049: call ""System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>> System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>>.Create(System.Runtime.CompilerServices.CallSiteBinder)"" IL_004e: stsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>> C.<>o__0#2.<>p__0"" IL_0053: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>> C.<>o__0#2.<>p__0"" IL_0058: ldfld ""<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object> System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>>.Target"" IL_005d: ldsfld ""System.Runtime.CompilerServices.CallSite<<>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>> C.<>o__0#2.<>p__0"" IL_0062: ldarg.0 IL_0063: ldarg.2 IL_0064: newobj ""<>f__AnonymousType1<object>..ctor(object)"" IL_0069: ldarg.1 IL_006a: callvirt ""void <>A{00000040}#2<System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, object>.Invoke(System.Runtime.CompilerServices.CallSite, dynamic, <anonymous type: object y>, ref object)"" IL_006f: nop IL_0070: ret }"); } [Fact] public void TwoStructClosures() { var source0 = MarkedSource(@" public class C { public void F() <N:0>{</N:0> int <N:1>x</N:1> = 0; <N:2>{</N:2> int <N:3>y</N:3> = 0; // Captures two struct closures <N:4>int L() => x + y;</N:4> } } }"); var source1 = MarkedSource(@" public class C { public void F() <N:0>{</N:0> int <N:1>x</N:1> = 0; <N:2>{</N:2> int <N:3>y</N:3> = 0; // Captures two struct closures <N:4>int L() => x + y + 1;</N:4> } } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass0_0: {x}", "C.<>c__DisplayClass0_1: {y}", "C: {<F>g__L|0_0, <>c__DisplayClass0_0, <>c__DisplayClass0_1}"); v0.VerifyIL("C.<F>g__L|0_0(ref C.<>c__DisplayClass0_0, ref C.<>c__DisplayClass0_1)", @" { // Code size 14 (0xe) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_0006: ldarg.1 IL_0007: ldfld ""int C.<>c__DisplayClass0_1.y"" IL_000c: add IL_000d: ret }"); diff1.VerifyIL("C.<F>g__L|0_0(ref C.<>c__DisplayClass0_0, ref C.<>c__DisplayClass0_1)", @" { // Code size 16 (0x10) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_0006: ldarg.1 IL_0007: ldfld ""int C.<>c__DisplayClass0_1.y"" IL_000c: add IL_000d: ldc.i4.1 IL_000e: add IL_000f: ret } "); CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void ThisClosureAndStructClosure() { var source0 = MarkedSource(@" public class C { int <N:0>x</N:0> = 0; public void F() <N:1>{</N:1> int <N:2>y</N:2> = 0; // This + struct closures <N:3>int L() => x + y;</N:3> L(); } }"); var source1 = MarkedSource(@" public class C { int <N:0>x</N:0> = 0; public void F() <N:1>{</N:1> int <N:2>y</N:2> = 0; // This + struct closures <N:3>int L() => x + y + 1;</N:3> L(); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass1_0: {<>4__this, y}", "C: {<F>g__L|1_0, <>c__DisplayClass1_0}"); v0.VerifyIL("C.<F>g__L|1_0(ref C.<>c__DisplayClass1_0)", @" { // Code size 14 (0xe) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.x"" IL_0006: ldarg.1 IL_0007: ldfld ""int C.<>c__DisplayClass1_0.y"" IL_000c: add IL_000d: ret } "); diff1.VerifyIL("C.<F>g__L|1_0(ref C.<>c__DisplayClass1_0)", @" { // Code size 16 (0x10) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.x"" IL_0006: ldarg.1 IL_0007: ldfld ""int C.<>c__DisplayClass1_0.y"" IL_000c: add IL_000d: ldc.i4.1 IL_000e: add IL_000f: ret } "); CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void ThisOnlyClosure() { var source0 = MarkedSource(@" public class C { int <N:0>x</N:0> = 0; public void F() <N:1>{</N:1> // This-only closure <N:2>int L() => x;</N:2> L(); } }"); var source1 = MarkedSource(@" public class C { int <N:0>x</N:0> = 0; public void F() <N:1>{</N:1> // This-only closure <N:2>int L() => x + 1;</N:2> L(); } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C: {<F>g__L|1_0}"); v0.VerifyIL("C.<F>g__L|1_0()", @" { // Code size 7 (0x7) .maxstack 1 IL_0000: ldarg.0 IL_0001: ldfld ""int C.x"" IL_0006: ret }"); diff1.VerifyIL("C.<F>g__L|1_0()", @" { // Code size 9 (0x9) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.x"" IL_0006: ldc.i4.1 IL_0007: add IL_0008: ret } "); CheckEncLogDefinitions(reader1, Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(3, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.CustomAttribute, EditAndContinueOperation.Default)); } [Fact] public void LocatedInSameClosureEnvironment() { var source0 = MarkedSource(@" using System; public class C { public void F(int x) <N:0>{</N:0> Func<int> f = <N:1>() => x</N:1>; // Located in same closure environment <N:2>int L() => x;</N:2> } }"); var source1 = MarkedSource(@" using System; public class C { public void F(int x) <N:0>{</N:0> Func<int> f = <N:1>() => x</N:1>; // Located in same closure environment <N:2>int L() => x + 1;</N:2> } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass0_0: {x, <F>b__0, <F>g__L|1}", "C: {<>c__DisplayClass0_0}"); v0.VerifyIL("C.<>c__DisplayClass0_0.<F>g__L|1()", @" { // Code size 7 (0x7) .maxstack 1 IL_0000: ldarg.0 IL_0001: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_0006: ret }"); diff1.VerifyIL("C.<>c__DisplayClass0_0.<F>g__L|1()", @" { // Code size 9 (0x9) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_0006: ldc.i4.1 IL_0007: add IL_0008: ret } "); CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void SameClassEnvironmentWithStruct() { var source0 = MarkedSource(@" using System; public class C { public void F(int x) <N:0>{</N:0> <N:1>{</N:1> int <N:2>y</N:2> = 0; Func<int> f = <N:3>() => x</N:3>; // Same class environment, with struct env <N:4>int L() => x + y;</N:4> } } }"); var source1 = MarkedSource(@" using System; public class C { public void F(int x) <N:0>{</N:0> <N:1>{</N:1> int <N:2>y</N:2> = 0; Func<int> f = <N:3>() => x</N:3>; // Same class environment, with struct env <N:4>int L() => x + y + 1;</N:4> } } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0, <>c__DisplayClass0_1}", "C.<>c__DisplayClass0_0: {x, <F>b__0, <F>g__L|1}", "C.<>c__DisplayClass0_1: {y}"); v0.VerifyIL("C.<>c__DisplayClass0_0.<F>g__L|1(ref C.<>c__DisplayClass0_1)", @" { // Code size 14 (0xe) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_0006: ldarg.1 IL_0007: ldfld ""int C.<>c__DisplayClass0_1.y"" IL_000c: add IL_000d: ret }"); diff1.VerifyIL("C.<>c__DisplayClass0_0.<F>g__L|1(ref C.<>c__DisplayClass0_1)", @" { // Code size 16 (0x10) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_0006: ldarg.1 IL_0007: ldfld ""int C.<>c__DisplayClass0_1.y"" IL_000c: add IL_000d: ldc.i4.1 IL_000e: add IL_000f: ret } "); CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(5, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void CaptureStructAndThroughClassEnvChain() { var source0 = MarkedSource(@" using System; public class C { public void F(int x) <N:0>{</N:0> <N:1>{</N:1> int <N:2>y</N:2> = 0; Func<int> f = <N:3>() => x</N:3>; <N:4>{</N:4> Func<int> f2 = <N:5>() => x + y</N:5>; int <N:6>z</N:6> = 0; // Capture struct and through class env chain <N:7>int L() => x + y + z;</N:7> } } } }"); var source1 = MarkedSource(@" using System; public class C { public void F(int x) <N:0>{</N:0> <N:1>{</N:1> int <N:2>y</N:2> = 0; Func<int> f = <N:3>() => x</N:3>; <N:4>{</N:4> Func<int> f2 = <N:5>() => x + y</N:5>; int <N:6>z</N:6> = 0; // Capture struct and through class env chain <N:7>int L() => x + y + z + 1;</N:7> } } } }"); var compilation0 = CreateCompilation(source0.Tree, options: ComSafeDebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; diff1.VerifySynthesizedMembers( "C.<>c__DisplayClass0_2: {z}", "C.<>c__DisplayClass0_0: {x, <F>b__0}", "C: {<>c__DisplayClass0_0, <>c__DisplayClass0_1, <>c__DisplayClass0_2}", "C.<>c__DisplayClass0_1: {y, CS$<>8__locals1, <F>b__1, <F>g__L|2}"); v0.VerifyIL("C.<>c__DisplayClass0_1.<F>g__L|2(ref C.<>c__DisplayClass0_2)", @" { // Code size 26 (0x1a) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""C.<>c__DisplayClass0_0 C.<>c__DisplayClass0_1.CS$<>8__locals1"" IL_0006: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_000b: ldarg.0 IL_000c: ldfld ""int C.<>c__DisplayClass0_1.y"" IL_0011: add IL_0012: ldarg.1 IL_0013: ldfld ""int C.<>c__DisplayClass0_2.z"" IL_0018: add IL_0019: ret }"); diff1.VerifyIL("C.<>c__DisplayClass0_1.<F>g__L|2(ref C.<>c__DisplayClass0_2)", @" { // Code size 28 (0x1c) .maxstack 2 IL_0000: ldarg.0 IL_0001: ldfld ""C.<>c__DisplayClass0_0 C.<>c__DisplayClass0_1.CS$<>8__locals1"" IL_0006: ldfld ""int C.<>c__DisplayClass0_0.x"" IL_000b: ldarg.0 IL_000c: ldfld ""int C.<>c__DisplayClass0_1.y"" IL_0011: add IL_0012: ldarg.1 IL_0013: ldfld ""int C.<>c__DisplayClass0_2.z"" IL_0018: add IL_0019: ldc.i4.1 IL_001a: add IL_001b: ret } "); CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(6, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(7, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] public void TopLevelStatement_Closure() { var source0 = MarkedSource(@" <N:0> using System; Func<string> x = <N:1>() => args[0]</N:1>; Console.WriteLine(x()); </N:0> "); var source1 = MarkedSource(@" <N:0> using System; Func<string> x = <N:1>() => args[1]</N:1>; Console.WriteLine(x()); </N:0> "); var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugExe); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("Program.<Main>$"); var f1 = compilation1.GetMember<MethodSymbol>("Program.<Main>$"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "Program.<>c__DisplayClass0_0: {args, <<Main>$>b__0}", "Program: {<>c__DisplayClass0_0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } [Fact] [WorkItem(55381, "https://github.com/dotnet/roslyn/issues/55381")] public void HiddenMethodClosure() { var source0 = MarkedSource(@" #line hidden using System; class C { public static void F(int arg) <N:0>{</N:0> Func<int> x = <N:1>() => arg</N:1>; } } "); var source1 = MarkedSource(@" #line hidden using System; class C { public static void F(int arg) <N:0>{</N:0> Func<int> x = <N:1>() => arg + 1</N:1>; } } "); var compilation0 = CreateCompilation(source0.Tree, options: TestOptions.DebugDll); var compilation1 = compilation0.WithSource(source1.Tree); var v0 = CompileAndVerify(compilation0); var md0 = ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData); var f0 = compilation0.GetMember<MethodSymbol>("C.F"); var f1 = compilation1.GetMember<MethodSymbol>("C.F"); var generation0 = EmitBaseline.CreateInitialBaseline(md0, v0.CreateSymReader().GetEncMethodDebugInfo); var diff1 = compilation1.EmitDifference( generation0, ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.Update, f0, f1, GetSyntaxMapFromMarkers(source0, source1), preserveLocalVariables: true))); // no new synthesized members generated (with #1 in names): diff1.VerifySynthesizedMembers( "C: {<>c__DisplayClass0_0}", "C.<>c__DisplayClass0_0: {arg, <F>b__0}"); var md1 = diff1.GetMetadata(); var reader1 = md1.Reader; // Method updates CheckEncLogDefinitions(reader1, Row(2, TableIndex.StandAloneSig, EditAndContinueOperation.Default), Row(1, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(4, TableIndex.MethodDef, EditAndContinueOperation.Default), Row(1, TableIndex.Param, EditAndContinueOperation.Default)); } } }
1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/CSharp/Test/Emit/PDB/PDBTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.IO; using System.Linq; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Reflection.PortableExecutable; using System.Text; using Microsoft.CodeAnalysis.CodeGen; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Test.PdbUtilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.PDB { public class PDBTests : CSharpPDBTestBase { private static readonly MetadataReference[] s_valueTupleRefs = new[] { SystemRuntimeFacadeRef, ValueTupleRef }; #region General [Fact] public void EmitDebugInfoForSourceTextWithoutEncoding1() { var tree1 = SyntaxFactory.ParseSyntaxTree("class A { }", encoding: null, path: "Foo.cs"); var tree2 = SyntaxFactory.ParseSyntaxTree("class B { }", encoding: null, path: ""); var tree3 = SyntaxFactory.ParseSyntaxTree(SourceText.From("class C { }", encoding: null), path: "Bar.cs"); var tree4 = SyntaxFactory.ParseSyntaxTree("class D { }", encoding: Encoding.UTF8, path: "Baz.cs"); var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] { MscorlibRef }, options: TestOptions.ReleaseDll); var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream()); result.Diagnostics.Verify( // Foo.cs(1,1): error CS8055: Cannot emit debug information for a source text without encoding. Diagnostic(ErrorCode.ERR_EncodinglessSyntaxTree, "class A { }").WithLocation(1, 1), // Bar.cs(1,1): error CS8055: Cannot emit debug information for a source text without encoding. Diagnostic(ErrorCode.ERR_EncodinglessSyntaxTree, "class C { }").WithLocation(1, 1)); Assert.False(result.Success); } [Fact] public void EmitDebugInfoForSourceTextWithoutEncoding2() { var tree1 = SyntaxFactory.ParseSyntaxTree("class A { public void F() { } }", encoding: Encoding.Unicode, path: "Foo.cs"); var tree2 = SyntaxFactory.ParseSyntaxTree("class B { public void F() { } }", encoding: null, path: ""); var tree3 = SyntaxFactory.ParseSyntaxTree("class C { public void F() { } }", encoding: new UTF8Encoding(true, false), path: "Bar.cs"); var tree4 = SyntaxFactory.ParseSyntaxTree(SourceText.From("class D { public void F() { } }", new UTF8Encoding(false, false)), path: "Baz.cs"); var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] { MscorlibRef }, options: TestOptions.ReleaseDll); var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream()); result.Diagnostics.Verify(); Assert.True(result.Success); var hash1 = CryptographicHashProvider.ComputeSha1(Encoding.Unicode.GetBytesWithPreamble(tree1.ToString())).ToArray(); var hash3 = CryptographicHashProvider.ComputeSha1(new UTF8Encoding(true, false).GetBytesWithPreamble(tree3.ToString())).ToArray(); var hash4 = CryptographicHashProvider.ComputeSha1(new UTF8Encoding(false, false).GetBytesWithPreamble(tree4.ToString())).ToArray(); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""Foo.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""" + BitConverter.ToString(hash1) + @""" /> <file id=""2"" name="""" language=""C#"" /> <file id=""3"" name=""Bar.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""" + BitConverter.ToString(hash3) + @""" /> <file id=""4"" name=""Baz.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""" + BitConverter.ToString(hash4) + @""" /> </files> </symbols>", options: PdbValidationOptions.ExcludeMethods); } [WorkItem(846584, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/846584")] [ConditionalFact(typeof(WindowsOnly))] public void RelativePathForExternalSource_Sha1_Windows() { var text1 = WithWindowsLineBreaks(@" #pragma checksum ""..\Test2.cs"" ""{406ea660-64cf-4c82-b6f0-42d48172a799}"" ""BA8CBEA9C2EFABD90D53B616FB80A081"" public class C { public void InitializeComponent() { #line 4 ""..\Test2.cs"" InitializeComponent(); #line default } } "); var compilation = CreateCompilation( new[] { Parse(text1, @"C:\Folder1\Folder2\Test1.cs") }, options: TestOptions.DebugDll.WithSourceReferenceResolver(SourceFileResolver.Default)); compilation.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""C:\Folder1\Folder2\Test1.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""40-A6-20-02-2E-60-7D-4F-2D-A8-F4-A6-ED-2E-0E-49-8D-9F-D7-EB"" /> <file id=""2"" name=""C:\Folder1\Test2.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""BA-8C-BE-A9-C2-EF-AB-D9-0D-53-B6-16-FB-80-A0-81"" /> </files> <methods> <method containingType=""C"" name=""InitializeComponent""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""39"" endLine=""6"" endColumn=""40"" document=""1"" /> <entry offset=""0x1"" startLine=""4"" startColumn=""9"" endLine=""4"" endColumn=""31"" document=""2"" /> <entry offset=""0x8"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(846584, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/846584")] [ConditionalFact(typeof(UnixLikeOnly))] public void RelativePathForExternalSource_Sha1_Unix() { var text1 = WithWindowsLineBreaks(@" #pragma checksum ""../Test2.cs"" ""{406ea660-64cf-4c82-b6f0-42d48172a799}"" ""BA8CBEA9C2EFABD90D53B616FB80A081"" public class C { public void InitializeComponent() { #line 4 ""../Test2.cs"" InitializeComponent(); #line default } } "); var compilation = CreateCompilation( new[] { Parse(text1, @"/Folder1/Folder2/Test1.cs") }, options: TestOptions.DebugDll.WithSourceReferenceResolver(SourceFileResolver.Default)); compilation.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""/Folder1/Folder2/Test1.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""82-08-07-BA-BA-52-02-D8-1D-1F-7C-E7-95-8A-6C-04-64-FF-50-31"" /> <file id=""2"" name=""/Folder1/Test2.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""BA-8C-BE-A9-C2-EF-AB-D9-0D-53-B6-16-FB-80-A0-81"" /> </files> <methods> <method containingType=""C"" name=""InitializeComponent""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""39"" endLine=""6"" endColumn=""40"" document=""1"" /> <entry offset=""0x1"" startLine=""4"" startColumn=""9"" endLine=""4"" endColumn=""31"" document=""2"" /> <entry offset=""0x8"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SymWriterErrors() { var source0 = @"class C { }"; var compilation = CreateCompilation(source0, options: TestOptions.DebugDll); // Verify full metadata contains expected rows. var result = compilation.Emit( peStream: new MemoryStream(), metadataPEStream: null, pdbStream: new MemoryStream(), xmlDocumentationStream: null, cancellationToken: default, win32Resources: null, manifestResources: null, options: null, debugEntryPoint: null, sourceLinkStream: null, embeddedTexts: null, rebuildData: null, testData: new CompilationTestData() { SymWriterFactory = _ => new MockSymUnmanagedWriter() }); result.Diagnostics.Verify( // error CS0041: Unexpected error writing debug information -- 'MockSymUnmanagedWriter error message' Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments("MockSymUnmanagedWriter error message")); Assert.False(result.Success); } [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SymWriterErrors2() { var source0 = @"class C { }"; var compilation = CreateCompilation(source0, options: TestOptions.DebugDll); // Verify full metadata contains expected rows. var result = compilation.Emit( peStream: new MemoryStream(), metadataPEStream: null, pdbStream: new MemoryStream(), xmlDocumentationStream: null, cancellationToken: default, win32Resources: null, manifestResources: null, options: null, debugEntryPoint: null, sourceLinkStream: null, embeddedTexts: null, rebuildData: null, testData: new CompilationTestData() { SymWriterFactory = SymWriterTestUtilities.ThrowingFactory }); result.Diagnostics.Verify( // error CS0041: Unexpected error writing debug information -- 'The version of Windows PDB writer is older than required: '<lib name>'' Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments(string.Format(CodeAnalysisResources.SymWriterOlderVersionThanRequired, "<lib name>"))); Assert.False(result.Success); } [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SymWriterErrors3() { var source0 = @"class C { }"; var compilation = CreateCompilation(source0, options: TestOptions.DebugDll.WithDeterministic(true)); // Verify full metadata contains expected rows. var result = compilation.Emit( peStream: new MemoryStream(), metadataPEStream: null, pdbStream: new MemoryStream(), xmlDocumentationStream: null, cancellationToken: default, win32Resources: null, manifestResources: null, options: null, debugEntryPoint: null, sourceLinkStream: null, embeddedTexts: null, rebuildData: null, testData: new CompilationTestData() { SymWriterFactory = SymWriterTestUtilities.ThrowingFactory }); result.Diagnostics.Verify( // error CS0041: Unexpected error writing debug information -- 'Windows PDB writer doesn't support deterministic compilation: '<lib name>'' Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments(string.Format(CodeAnalysisResources.SymWriterNotDeterministic, "<lib name>"))); Assert.False(result.Success); } [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SymWriterErrors4() { var source0 = @"class C { }"; var compilation = CreateCompilation(source0); // Verify full metadata contains expected rows. var result = compilation.Emit( peStream: new MemoryStream(), metadataPEStream: null, pdbStream: new MemoryStream(), xmlDocumentationStream: null, cancellationToken: default, win32Resources: null, manifestResources: null, options: null, debugEntryPoint: null, sourceLinkStream: null, embeddedTexts: null, rebuildData: null, testData: new CompilationTestData() { SymWriterFactory = _ => throw new DllNotFoundException("xxx") }); result.Diagnostics.Verify( // error CS0041: Unexpected error writing debug information -- 'xxx' Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments("xxx")); Assert.False(result.Success); } [WorkItem(1067635, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1067635")] [Fact] public void SuppressDynamicAndEncCDIForWinRT() { var source = @" public class C { public static void F() { dynamic a = 1; int b = 2; foreach (var x in new[] { 1,2,3 }) { System.Console.WriteLine(a * b); } } } "; var debug = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugWinMD); debug.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""23"" document=""1"" /> <entry offset=""0x8"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""19"" document=""1"" /> <entry offset=""0xa"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""16"" document=""1"" /> <entry offset=""0xb"" startLine=""8"" startColumn=""27"" endLine=""8"" endColumn=""42"" document=""1"" /> <entry offset=""0x1f"" hidden=""true"" document=""1"" /> <entry offset=""0x24"" startLine=""8"" startColumn=""18"" endLine=""8"" endColumn=""23"" document=""1"" /> <entry offset=""0x29"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x2a"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""45"" document=""1"" /> <entry offset=""0xe6"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0xe7"" hidden=""true"" document=""1"" /> <entry offset=""0xeb"" startLine=""8"" startColumn=""24"" endLine=""8"" endColumn=""26"" document=""1"" /> <entry offset=""0xf4"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xf5""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0xf5"" attributes=""0"" /> <local name=""b"" il_index=""1"" il_start=""0x0"" il_end=""0xf5"" attributes=""0"" /> <scope startOffset=""0x24"" endOffset=""0xe7""> <local name=""x"" il_index=""4"" il_start=""0x24"" il_end=""0xe7"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); var release = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseWinMD); release.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""23"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""19"" document=""1"" /> <entry offset=""0x9"" startLine=""8"" startColumn=""27"" endLine=""8"" endColumn=""42"" document=""1"" /> <entry offset=""0x1d"" hidden=""true"" document=""1"" /> <entry offset=""0x22"" startLine=""8"" startColumn=""18"" endLine=""8"" endColumn=""23"" document=""1"" /> <entry offset=""0x26"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""45"" document=""1"" /> <entry offset=""0xdd"" hidden=""true"" document=""1"" /> <entry offset=""0xe1"" startLine=""8"" startColumn=""24"" endLine=""8"" endColumn=""26"" document=""1"" /> <entry offset=""0xea"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xeb""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0xeb"" attributes=""0"" /> <local name=""b"" il_index=""1"" il_start=""0x0"" il_end=""0xeb"" attributes=""0"" /> </scope> </method> </methods> </symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); } [WorkItem(1067635, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1067635")] [Fact] public void SuppressTupleElementNamesCDIForWinRT() { var source = @"class C { static void F() { (int A, int B) o = (1, 2); } }"; var debug = CreateCompilation(source, options: TestOptions.DebugWinMD); debug.VerifyPdb( @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""5"" startColumn=""9"" endLine=""5"" endColumn=""35"" document=""1"" /> <entry offset=""0x9"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xa""> <local name=""o"" il_index=""0"" il_start=""0x0"" il_end=""0xa"" attributes=""0"" /> </scope> </method> </methods> </symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); var release = CreateCompilation(source, options: TestOptions.ReleaseWinMD); release.VerifyPdb( @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); } [Fact] public void DuplicateDocuments() { var source1 = @"class C { static void F() { } }"; var source2 = @"class D { static void F() { } }"; var tree1 = Parse(source1, @"foo.cs"); var tree2 = Parse(source2, @"foo.cs"); var comp = CreateCompilation(new[] { tree1, tree2 }); // the first file wins (checksum CB 22 ...) comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""foo.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""CB-22-D8-03-D3-27-32-64-2C-BC-7D-67-5D-E3-CB-AC-D1-64-25-83"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""29"" endLine=""1"" endColumn=""30"" document=""1"" /> </sequencePoints> </method> <method containingType=""D"" name=""F""> <customDebugInfo> <forward declaringType=""C"" methodName=""F"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""29"" endLine=""1"" endColumn=""30"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void CustomDebugEntryPoint_DLL() { var source = @"class C { static void F() { } }"; var c = CreateCompilation(source, options: TestOptions.DebugDll); var f = c.GetMember<MethodSymbol>("C.F"); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""F"" /> <methods/> </symbols>", debugEntryPoint: f.GetPublicSymbol(), options: PdbValidationOptions.ExcludeScopes | PdbValidationOptions.ExcludeSequencePoints | PdbValidationOptions.ExcludeCustomDebugInformation); var peReader = new PEReader(c.EmitToArray(debugEntryPoint: f.GetPublicSymbol())); int peEntryPointToken = peReader.PEHeaders.CorHeader.EntryPointTokenOrRelativeVirtualAddress; Assert.Equal(0, peEntryPointToken); } [Fact] public void CustomDebugEntryPoint_EXE() { var source = @"class M { static void Main() { } } class C { static void F<S>() { } }"; var c = CreateCompilation(source, options: TestOptions.DebugExe); var f = c.GetMember<MethodSymbol>("C.F"); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""F"" /> <methods/> </symbols>", debugEntryPoint: f.GetPublicSymbol(), options: PdbValidationOptions.ExcludeScopes | PdbValidationOptions.ExcludeSequencePoints | PdbValidationOptions.ExcludeCustomDebugInformation); var peReader = new PEReader(c.EmitToArray(debugEntryPoint: f.GetPublicSymbol())); int peEntryPointToken = peReader.PEHeaders.CorHeader.EntryPointTokenOrRelativeVirtualAddress; var mdReader = peReader.GetMetadataReader(); var methodDef = mdReader.GetMethodDefinition((MethodDefinitionHandle)MetadataTokens.Handle(peEntryPointToken)); Assert.Equal("Main", mdReader.GetString(methodDef.Name)); } [Fact] public void CustomDebugEntryPoint_Errors() { var source1 = @"class C { static void F() { } } class D<T> { static void G<S>() {} }"; var source2 = @"class C { static void F() { } }"; var c1 = CreateCompilation(source1, options: TestOptions.DebugDll); var c2 = CreateCompilation(source2, options: TestOptions.DebugDll); var f1 = c1.GetMember<MethodSymbol>("C.F"); var f2 = c2.GetMember<MethodSymbol>("C.F"); var g = c1.GetMember<MethodSymbol>("D.G"); var d = c1.GetMember<NamedTypeSymbol>("D"); Assert.NotNull(f1); Assert.NotNull(f2); Assert.NotNull(g); Assert.NotNull(d); var stInt = c1.GetSpecialType(SpecialType.System_Int32); var d_t_g_int = g.Construct(stInt); var d_int = d.Construct(stInt); var d_int_g = d_int.GetMember<MethodSymbol>("G"); var d_int_g_int = d_int_g.Construct(stInt); var result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: f2.GetPublicSymbol()); result.Diagnostics.Verify( // error CS8096: Debug entry point must be a definition of a source method in the current compilation. Diagnostic(ErrorCode.ERR_DebugEntryPointNotSourceMethodDefinition)); result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_t_g_int.GetPublicSymbol()); result.Diagnostics.Verify( // error CS8096: Debug entry point must be a definition of a source method in the current compilation. Diagnostic(ErrorCode.ERR_DebugEntryPointNotSourceMethodDefinition)); result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_int_g.GetPublicSymbol()); result.Diagnostics.Verify( // error CS8096: Debug entry point must be a definition of a source method in the current compilation. Diagnostic(ErrorCode.ERR_DebugEntryPointNotSourceMethodDefinition)); result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_int_g_int.GetPublicSymbol()); result.Diagnostics.Verify( // error CS8096: Debug entry point must be a definition of a source method in the current compilation. Diagnostic(ErrorCode.ERR_DebugEntryPointNotSourceMethodDefinition)); } [Fact] [WorkItem(768862, "https://devdiv.visualstudio.com/DevDiv/_workitems/edit/768862")] public void TestLargeLineDelta() { var verbatim = string.Join("\r\n", Enumerable.Repeat("x", 1000)); var source = $@" class C {{ public static void Main() => System.Console.WriteLine(@""{verbatim}""); }} "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2"" startColumn=""40"" endLine=""1001"" endColumn=""4"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> ", format: DebugInformationFormat.PortablePdb); // Native PDBs only support spans with line delta <= 127 (7 bit) // https://github.com/Microsoft/microsoft-pdb/blob/main/include/cvinfo.h#L4621 c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2"" startColumn=""40"" endLine=""129"" endColumn=""4"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> ", format: DebugInformationFormat.Pdb); } [Fact] [WorkItem(20118, "https://github.com/dotnet/roslyn/issues/20118")] public void TestLargeStartAndEndColumn_SameLine() { var spaces = new string(' ', 0x10000); var source = $@" class C {{ public static void Main() => {spaces}System.Console.WriteLine(""{spaces}""); }} "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""65533"" endLine=""5"" endColumn=""65534"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] [WorkItem(20118, "https://github.com/dotnet/roslyn/issues/20118")] public void TestLargeStartAndEndColumn_DifferentLine() { var spaces = new string(' ', 0x10000); var source = $@" class C {{ public static void Main() => {spaces}System.Console.WriteLine( ""{spaces}""); }} "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""65534"" endLine=""6"" endColumn=""65534"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } #endregion #region Method Bodies [Fact] public void TestBasic() { var source = WithWindowsLineBreaks(@" class Program { Program() { } static void Main(string[] args) { Program p = new Program(); } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("Program.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main"" parameterNames=""args""> <customDebugInfo> <forward declaringType=""Program"" methodName="".ctor"" /> <encLocalSlotMap> <slot kind=""0"" offset=""19"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""35"" document=""1"" /> <entry offset=""0x7"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x8""> <local name=""p"" il_index=""0"" il_start=""0x0"" il_end=""0x8"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void TestSimpleLocals() { var source = WithWindowsLineBreaks(@" class C { void Method() { //local at method scope object version = 6; System.Console.WriteLine(""version {0}"", version); { //a scope that defines no locals { //a nested local object foob = 1; System.Console.WriteLine(""foob {0}"", foob); } { //a nested local int foob1 = 1; System.Console.WriteLine(""foob1 {0}"", foob1); } System.Console.WriteLine(""Eva""); } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Method", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Method""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""44"" /> <slot kind=""0"" offset=""246"" /> <slot kind=""0"" offset=""402"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""28"" document=""1"" /> <entry offset=""0x8"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""58"" document=""1"" /> <entry offset=""0x14"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""10"" document=""1"" /> <entry offset=""0x15"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""14"" document=""1"" /> <entry offset=""0x16"" startLine=""12"" startColumn=""17"" endLine=""12"" endColumn=""33"" document=""1"" /> <entry offset=""0x1d"" startLine=""13"" startColumn=""17"" endLine=""13"" endColumn=""60"" document=""1"" /> <entry offset=""0x29"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""14"" document=""1"" /> <entry offset=""0x2a"" startLine=""15"" startColumn=""13"" endLine=""15"" endColumn=""14"" document=""1"" /> <entry offset=""0x2b"" startLine=""17"" startColumn=""17"" endLine=""17"" endColumn=""31"" document=""1"" /> <entry offset=""0x2d"" startLine=""18"" startColumn=""17"" endLine=""18"" endColumn=""62"" document=""1"" /> <entry offset=""0x3e"" startLine=""19"" startColumn=""13"" endLine=""19"" endColumn=""14"" document=""1"" /> <entry offset=""0x3f"" startLine=""20"" startColumn=""13"" endLine=""20"" endColumn=""45"" document=""1"" /> <entry offset=""0x4a"" startLine=""21"" startColumn=""9"" endLine=""21"" endColumn=""10"" document=""1"" /> <entry offset=""0x4b"" startLine=""22"" startColumn=""5"" endLine=""22"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x4c""> <local name=""version"" il_index=""0"" il_start=""0x0"" il_end=""0x4c"" attributes=""0"" /> <scope startOffset=""0x15"" endOffset=""0x2a""> <local name=""foob"" il_index=""1"" il_start=""0x15"" il_end=""0x2a"" attributes=""0"" /> </scope> <scope startOffset=""0x2a"" endOffset=""0x3f""> <local name=""foob1"" il_index=""2"" il_start=""0x2a"" il_end=""0x3f"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] [WorkItem(7244, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/7244")] public void ConstructorsWithoutInitializers() { var source = WithWindowsLineBreaks( @"class C { C() { object o; } C(object x) { object y = x; } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""18"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""3"" startColumn=""5"" endLine=""3"" endColumn=""8"" document=""1"" /> <entry offset=""0x7"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x9""> <scope startOffset=""0x7"" endOffset=""0x9""> <local name=""o"" il_index=""0"" il_start=""0x7"" il_end=""0x9"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C"" name="".ctor"" parameterNames=""x""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> <encLocalSlotMap> <slot kind=""0"" offset=""18"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""16"" document=""1"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""22"" document=""1"" /> <entry offset=""0xa"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb""> <scope startOffset=""0x7"" endOffset=""0xb""> <local name=""y"" il_index=""0"" il_start=""0x7"" il_end=""0xb"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(7244, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/7244")] [Fact] public void ConstructorsWithInitializers() { var source = WithWindowsLineBreaks( @"class C { static object G = 1; object F = G; C() { object o; } C(object x) { object y = x; } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""18"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""18"" document=""1"" /> <entry offset=""0xb"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""8"" document=""1"" /> <entry offset=""0x12"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x13"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x14""> <scope startOffset=""0x12"" endOffset=""0x14""> <local name=""o"" il_index=""0"" il_start=""0x12"" il_end=""0x14"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C"" name="".ctor"" parameterNames=""x""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> <encLocalSlotMap> <slot kind=""0"" offset=""18"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""18"" document=""1"" /> <entry offset=""0xb"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""16"" document=""1"" /> <entry offset=""0x12"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0x13"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""22"" document=""1"" /> <entry offset=""0x15"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x16""> <scope startOffset=""0x12"" endOffset=""0x16""> <local name=""y"" il_index=""0"" il_start=""0x12"" il_end=""0x16"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } /// <summary> /// Although the debugging info attached to DebuggerHidden method is not used by the debugger /// (the debugger doesn't ever stop in the method) Dev11 emits the info and so do we. /// /// StepThrough method needs the information if JustMyCode is disabled and a breakpoint is set within the method. /// NonUserCode method needs the information if JustMyCode is disabled. /// /// It's up to the tool that consumes the debugging information, not the compiler to decide whether to ignore the info or not. /// BTW, the information can actually be retrieved at runtime from the PDB file via Reflection StackTrace. /// </summary> [Fact] public void MethodsWithDebuggerAttributes() { var source = WithWindowsLineBreaks(@" using System; using System.Diagnostics; class Program { [DebuggerHidden] static void Hidden() { int x = 1; Console.WriteLine(x); } [DebuggerStepThrough] static void StepThrough() { int y = 1; Console.WriteLine(y); } [DebuggerNonUserCode] static void NonUserCode() { int z = 1; Console.WriteLine(z); } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Hidden""> <customDebugInfo> <using> <namespace usingCount=""2"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""19"" document=""1"" /> <entry offset=""0x3"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""30"" document=""1"" /> <entry offset=""0xa"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb""> <namespace name=""System"" /> <namespace name=""System.Diagnostics"" /> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0xb"" attributes=""0"" /> </scope> </method> <method containingType=""Program"" name=""StepThrough""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Hidden"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""19"" document=""1"" /> <entry offset=""0x3"" startLine=""18"" startColumn=""9"" endLine=""18"" endColumn=""30"" document=""1"" /> <entry offset=""0xa"" startLine=""19"" startColumn=""5"" endLine=""19"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb""> <local name=""y"" il_index=""0"" il_start=""0x0"" il_end=""0xb"" attributes=""0"" /> </scope> </method> <method containingType=""Program"" name=""NonUserCode""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Hidden"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""23"" startColumn=""5"" endLine=""23"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""24"" startColumn=""9"" endLine=""24"" endColumn=""19"" document=""1"" /> <entry offset=""0x3"" startLine=""25"" startColumn=""9"" endLine=""25"" endColumn=""30"" document=""1"" /> <entry offset=""0xa"" startLine=""26"" startColumn=""5"" endLine=""26"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb""> <local name=""z"" il_index=""0"" il_start=""0x0"" il_end=""0xb"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } /// <summary> /// If a synthesized method contains any user code, /// the method must have a sequence point at /// offset 0 for correct stepping behavior. /// </summary> [WorkItem(804681, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/804681")] [Fact] public void SequencePointAtOffset0() { string source = WithWindowsLineBreaks( @"using System; class C { static Func<object, int> F = x => { Func<object, int> f = o => 1; Func<Func<object, int>, Func<object, int>> g = h => y => h(y); return g(f)(null); }; }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".cctor""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLambdaMap> <methodOrdinal>2</methodOrdinal> <closure offset=""-45"" /> <lambda offset=""-147"" /> <lambda offset=""-109"" /> <lambda offset=""-45"" /> <lambda offset=""-40"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""9"" endColumn=""7"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x16""> <namespace name=""System"" /> </scope> </method> <method containingType=""C+&lt;&gt;c__DisplayClass2_0"" name=""&lt;.cctor&gt;b__3"" parameterNames=""y""> <customDebugInfo> <forward declaringType=""C"" methodName="".cctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""66"" endLine=""7"" endColumn=""70"" document=""1"" /> </sequencePoints> </method> <method containingType=""C+&lt;&gt;c"" name=""&lt;.cctor&gt;b__2_0"" parameterNames=""x""> <customDebugInfo> <forward declaringType=""C"" methodName="".cctor"" /> <encLocalSlotMap> <slot kind=""0"" offset=""-118"" /> <slot kind=""0"" offset=""-54"" /> <slot kind=""21"" offset=""-147"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""38"" document=""1"" /> <entry offset=""0x21"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""71"" document=""1"" /> <entry offset=""0x41"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""27"" document=""1"" /> <entry offset=""0x51"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x53""> <local name=""f"" il_index=""0"" il_start=""0x0"" il_end=""0x53"" attributes=""0"" /> <local name=""g"" il_index=""1"" il_start=""0x0"" il_end=""0x53"" attributes=""0"" /> </scope> </method> <method containingType=""C+&lt;&gt;c"" name=""&lt;.cctor&gt;b__2_1"" parameterNames=""o""> <customDebugInfo> <forward declaringType=""C"" methodName="".cctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""36"" endLine=""6"" endColumn=""37"" document=""1"" /> </sequencePoints> </method> <method containingType=""C+&lt;&gt;c"" name=""&lt;.cctor&gt;b__2_2"" parameterNames=""h""> <customDebugInfo> <forward declaringType=""C"" methodName="".cctor"" /> <encLocalSlotMap> <slot kind=""30"" offset=""-45"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""7"" startColumn=""61"" endLine=""7"" endColumn=""70"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1a""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x1a"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } /// <summary> /// Leading trivia is not included in the syntax offset. /// </summary> [Fact] public void SyntaxOffsetInPresenceOfTrivia_Methods() { string source = @" class C { public static void Main1() /*Comment1*/{/*Comment2*/int a = 1;/*Comment3*/}/*Comment4*/ public static void Main2() {/*Comment2*/int a = 2;/*Comment3*/}/*Comment4*/ }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); // verify that both syntax offsets are the same c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main1""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""17"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""44"" endLine=""4"" endColumn=""45"" document=""1"" /> <entry offset=""0x1"" startLine=""4"" startColumn=""57"" endLine=""4"" endColumn=""67"" document=""1"" /> <entry offset=""0x3"" startLine=""4"" startColumn=""79"" endLine=""4"" endColumn=""80"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x4""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0x4"" attributes=""0"" /> </scope> </method> <method containingType=""C"" name=""Main2""> <customDebugInfo> <forward declaringType=""C"" methodName=""Main1"" /> <encLocalSlotMap> <slot kind=""0"" offset=""17"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""32"" endLine=""5"" endColumn=""33"" document=""1"" /> <entry offset=""0x1"" startLine=""5"" startColumn=""45"" endLine=""5"" endColumn=""55"" document=""1"" /> <entry offset=""0x3"" startLine=""5"" startColumn=""67"" endLine=""5"" endColumn=""68"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x4""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0x4"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } /// <summary> /// Leading and trailing trivia are not included in the syntax offset. /// </summary> [Fact] public void SyntaxOffsetInPresenceOfTrivia_Initializers() { string source = @" using System; class C1 { public static Func<int> e=() => 0; public static Func<int> f/*Comment0*/=/*Comment1*/() => 1;/*Comment2*/ public static Func<int> g=() => 2; } class C2 { public static Func<int> e=() => 0; public static Func<int> f=/*Comment1*/() => 1; public static Func<int> g=() => 2; } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); // verify that syntax offsets of both .cctor's are the same c.VerifyPdb("C1..cctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C1"" name="".cctor""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLambdaMap> <methodOrdinal>4</methodOrdinal> <lambda offset=""-29"" /> <lambda offset=""-9"" /> <lambda offset=""-1"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""39"" document=""1"" /> <entry offset=""0x15"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""63"" document=""1"" /> <entry offset=""0x2a"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""39"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x40""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); c.VerifyPdb("C2..cctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C2"" name="".cctor""> <customDebugInfo> <forward declaringType=""C1"" methodName="".cctor"" /> <encLambdaMap> <methodOrdinal>4</methodOrdinal> <lambda offset=""-29"" /> <lambda offset=""-9"" /> <lambda offset=""-1"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""39"" document=""1"" /> <entry offset=""0x15"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""51"" document=""1"" /> <entry offset=""0x2a"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""39"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region ReturnStatement [Fact] public void Return_Method1() { var source = WithWindowsLineBreaks(@" class Program { static int Main() { return 1; } } "); var v = CompileAndVerify(source, options: TestOptions.DebugDll); // In order to place a breakpoint on the closing brace we need to save the return expression value to // a local and then load it again (since sequence point needs an empty stack). This variable has to be marked as long-lived. v.VerifyIL("Program.Main", @" { // Code size 7 (0x7) .maxstack 1 .locals init (int V_0) -IL_0000: nop -IL_0001: ldc.i4.1 IL_0002: stloc.0 IL_0003: br.s IL_0005 -IL_0005: ldloc.0 IL_0006: ret }", sequencePoints: "Program.Main"); v.VerifyPdb("Program.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""18"" document=""1"" /> <entry offset=""0x5"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void Return_Property1() { var source = WithWindowsLineBreaks(@" class C { static int P { get { return 1; } } } "); var v = CompileAndVerify(source, options: TestOptions.DebugDll); // In order to place a breakpoint on the closing brace we need to save the return expression value to // a local and then load it again (since sequence point needs an empty stack). This variable has to be marked as long-lived. v.VerifyIL("C.P.get", @" { // Code size 7 (0x7) .maxstack 1 .locals init (int V_0) -IL_0000: nop -IL_0001: ldc.i4.1 IL_0002: stloc.0 IL_0003: br.s IL_0005 -IL_0005: ldloc.0 IL_0006: ret }", sequencePoints: "C.get_P"); v.VerifyPdb("C.get_P", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""get_P""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""13"" endLine=""6"" endColumn=""14"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""15"" endLine=""6"" endColumn=""24"" document=""1"" /> <entry offset=""0x5"" startLine=""6"" startColumn=""25"" endLine=""6"" endColumn=""26"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void Return_Void1() { var source = @" class Program { static void Main() { return; } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.Main", @" { // Code size 4 (0x4) .maxstack 0 -IL_0000: nop -IL_0001: br.s IL_0003 -IL_0003: ret }", sequencePoints: "Program.Main"); } [Fact] public void Return_ExpressionBodied1() { var source = @" class Program { static int Main() => 1; } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.Main", @" { // Code size 2 (0x2) .maxstack 1 -IL_0000: ldc.i4.1 IL_0001: ret }", sequencePoints: "Program.Main"); } [Fact] public void Return_FromExceptionHandler1() { var source = WithWindowsLineBreaks(@" using System; class Program { static int Main() { try { Console.WriteLine(); return 1; } catch (Exception) { return 2; } } } "); var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.Main", @" { // Code size 20 (0x14) .maxstack 1 .locals init (int V_0) -IL_0000: nop .try { -IL_0001: nop -IL_0002: call ""void System.Console.WriteLine()"" IL_0007: nop -IL_0008: ldc.i4.1 IL_0009: stloc.0 IL_000a: leave.s IL_0012 } catch System.Exception { -IL_000c: pop -IL_000d: nop -IL_000e: ldc.i4.2 IL_000f: stloc.0 IL_0010: leave.s IL_0012 } -IL_0012: ldloc.0 IL_0013: ret }", sequencePoints: "Program.Main"); v.VerifyPdb("Program.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x2"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""33"" document=""1"" /> <entry offset=""0x8"" startLine=""11"" startColumn=""13"" endLine=""11"" endColumn=""22"" document=""1"" /> <entry offset=""0xc"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""26"" document=""1"" /> <entry offset=""0xd"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0xe"" startLine=""15"" startColumn=""13"" endLine=""15"" endColumn=""22"" document=""1"" /> <entry offset=""0x12"" startLine=""17"" startColumn=""5"" endLine=""17"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x14""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } #endregion #region IfStatement [Fact] public void IfStatement() { var source = WithWindowsLineBreaks(@" class C { void Method() { bool b = true; if (b) { string s = ""true""; System.Console.WriteLine(s); } else { string s = ""false""; int i = 1; while (i < 100) { int j = i, k = 1; System.Console.WriteLine(j); i = j + k; } i = i + 1; } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Method", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Method""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""19"" /> <slot kind=""1"" offset=""38"" /> <slot kind=""0"" offset=""76"" /> <slot kind=""0"" offset=""188"" /> <slot kind=""0"" offset=""218"" /> <slot kind=""0"" offset=""292"" /> <slot kind=""0"" offset=""299"" /> <slot kind=""1"" offset=""240"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""23"" document=""1"" /> <entry offset=""0x3"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""15"" document=""1"" /> <entry offset=""0x5"" hidden=""true"" document=""1"" /> <entry offset=""0x8"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""10"" document=""1"" /> <entry offset=""0x9"" startLine=""9"" startColumn=""13"" endLine=""9"" endColumn=""31"" document=""1"" /> <entry offset=""0xf"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""41"" document=""1"" /> <entry offset=""0x16"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0x17"" hidden=""true"" document=""1"" /> <entry offset=""0x19"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x1a"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""32"" document=""1"" /> <entry offset=""0x20"" startLine=""15"" startColumn=""13"" endLine=""15"" endColumn=""23"" document=""1"" /> <entry offset=""0x23"" hidden=""true"" document=""1"" /> <entry offset=""0x25"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""14"" document=""1"" /> <entry offset=""0x26"" startLine=""19"" startColumn=""17"" endLine=""19"" endColumn=""26"" document=""1"" /> <entry offset=""0x2a"" startLine=""19"" startColumn=""28"" endLine=""19"" endColumn=""33"" document=""1"" /> <entry offset=""0x2d"" startLine=""20"" startColumn=""17"" endLine=""20"" endColumn=""45"" document=""1"" /> <entry offset=""0x35"" startLine=""21"" startColumn=""17"" endLine=""21"" endColumn=""27"" document=""1"" /> <entry offset=""0x3c"" startLine=""22"" startColumn=""13"" endLine=""22"" endColumn=""14"" document=""1"" /> <entry offset=""0x3d"" startLine=""17"" startColumn=""13"" endLine=""17"" endColumn=""28"" document=""1"" /> <entry offset=""0x45"" hidden=""true"" document=""1"" /> <entry offset=""0x49"" startLine=""24"" startColumn=""13"" endLine=""24"" endColumn=""23"" document=""1"" /> <entry offset=""0x4f"" startLine=""25"" startColumn=""9"" endLine=""25"" endColumn=""10"" document=""1"" /> <entry offset=""0x50"" startLine=""26"" startColumn=""5"" endLine=""26"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x51""> <local name=""b"" il_index=""0"" il_start=""0x0"" il_end=""0x51"" attributes=""0"" /> <scope startOffset=""0x8"" endOffset=""0x17""> <local name=""s"" il_index=""2"" il_start=""0x8"" il_end=""0x17"" attributes=""0"" /> </scope> <scope startOffset=""0x19"" endOffset=""0x50""> <local name=""s"" il_index=""3"" il_start=""0x19"" il_end=""0x50"" attributes=""0"" /> <local name=""i"" il_index=""4"" il_start=""0x19"" il_end=""0x50"" attributes=""0"" /> <scope startOffset=""0x25"" endOffset=""0x3d""> <local name=""j"" il_index=""5"" il_start=""0x25"" il_end=""0x3d"" attributes=""0"" /> <local name=""k"" il_index=""6"" il_start=""0x25"" il_end=""0x3d"" attributes=""0"" /> </scope> </scope> </scope> </method> </methods> </symbols>"); } #endregion #region WhileStatement [WorkItem(538299, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538299")] [Fact] public void WhileStatement() { var source = @"using System; public class SeqPointForWhile { public static void Main() { SeqPointForWhile obj = new SeqPointForWhile(); obj.While(234); } int field; public void While(int p) { while (p > 0) // SeqPt should be generated at the end of loop { p = (int)(p / 2); if (p > 100) { continue; } else if (p > 10) { int x = p; field = x; } else { int x = p; Console.WriteLine(x); break; } } field = -1; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); // Offset 0x01 should be: // <entry offset=""0x1"" hidden=""true"" document=""1"" /> // Move original offset 0x01 to 0x33 // <entry offset=""0x33"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""22"" document=""1"" /> // // Note: 16707566 == 0x00FEEFEE c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""SeqPointForWhile"" methodName=""Main"" /> <methods> <method containingType=""SeqPointForWhile"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""55"" document=""1"" /> <entry offset=""0x5"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""24"" document=""1"" /> <entry offset=""0xf"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x10""> <namespace name=""System"" /> </scope> </method> <method containingType=""SeqPointForWhile"" name=""While"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""SeqPointForWhile"" methodName=""Main"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x2"" startLine=""16"" startColumn=""13"" endLine=""16"" endColumn=""30"" document=""1"" /> <entry offset=""0x7"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""25"" document=""1"" /> <entry offset=""0xc"" startLine=""22"" startColumn=""18"" endLine=""22"" endColumn=""29"" document=""1"" /> <entry offset=""0x11"" startLine=""24"" startColumn=""17"" endLine=""24"" endColumn=""27"" document=""1"" /> <entry offset=""0x13"" startLine=""25"" startColumn=""17"" endLine=""25"" endColumn=""27"" document=""1"" /> <entry offset=""0x1a"" hidden=""true"" document=""1"" /> <entry offset=""0x1c"" startLine=""29"" startColumn=""17"" endLine=""29"" endColumn=""27"" document=""1"" /> <entry offset=""0x1d"" startLine=""30"" startColumn=""17"" endLine=""30"" endColumn=""38"" document=""1"" /> <entry offset=""0x22"" startLine=""31"" startColumn=""17"" endLine=""31"" endColumn=""23"" document=""1"" /> <entry offset=""0x24"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""22"" document=""1"" /> <entry offset=""0x28"" startLine=""34"" startColumn=""9"" endLine=""34"" endColumn=""20"" document=""1"" /> <entry offset=""0x2f"" startLine=""35"" startColumn=""5"" endLine=""35"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x30""> <scope startOffset=""0x11"" endOffset=""0x1a""> <local name=""x"" il_index=""0"" il_start=""0x11"" il_end=""0x1a"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } #endregion #region ForStatement [Fact] public void ForStatement1() { var source = WithWindowsLineBreaks(@" class C { static bool F(int i) { return true; } static void G(int i) { } static void M() { for (int i = 1; F(i); G(i)) { System.Console.WriteLine(1); } } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <forward declaringType=""C"" methodName=""F"" parameterNames=""i"" /> <encLocalSlotMap> <slot kind=""0"" offset=""20"" /> <slot kind=""1"" offset=""11"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""14"" endLine=""9"" endColumn=""23"" document=""1"" /> <entry offset=""0x3"" hidden=""true"" document=""1"" /> <entry offset=""0x5"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""10"" document=""1"" /> <entry offset=""0x6"" startLine=""11"" startColumn=""13"" endLine=""11"" endColumn=""41"" document=""1"" /> <entry offset=""0xd"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""10"" document=""1"" /> <entry offset=""0xe"" startLine=""9"" startColumn=""31"" endLine=""9"" endColumn=""35"" document=""1"" /> <entry offset=""0x15"" startLine=""9"" startColumn=""25"" endLine=""9"" endColumn=""29"" document=""1"" /> <entry offset=""0x1c"" hidden=""true"" document=""1"" /> <entry offset=""0x1f"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x20""> <scope startOffset=""0x1"" endOffset=""0x1f""> <local name=""i"" il_index=""0"" il_start=""0x1"" il_end=""0x1f"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void ForStatement2() { var source = @" class C { static void M() { for (;;) { System.Console.WriteLine(1); } } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" hidden=""true"" document=""1"" /> <entry offset=""0x3"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""10"" document=""1"" /> <entry offset=""0x4"" startLine=""8"" startColumn=""13"" endLine=""8"" endColumn=""41"" document=""1"" /> <entry offset=""0xb"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0xc"" hidden=""true"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void ForStatement3() { var source = WithWindowsLineBreaks(@" class C { static void M() { int i = 0; for (;;i++) { System.Console.WriteLine(i); } } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.M", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""19"" document=""1"" /> <entry offset=""0x3"" hidden=""true"" document=""1"" /> <entry offset=""0x5"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""10"" document=""1"" /> <entry offset=""0x6"" startLine=""9"" startColumn=""13"" endLine=""9"" endColumn=""41"" document=""1"" /> <entry offset=""0xd"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""10"" document=""1"" /> <entry offset=""0xe"" startLine=""7"" startColumn=""16"" endLine=""7"" endColumn=""19"" document=""1"" /> <entry offset=""0x12"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x14""> <local name=""i"" il_index=""0"" il_start=""0x0"" il_end=""0x14"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } #endregion #region ForEachStatement [Fact] public void ForEachStatement_String() { var source = @" public class C { public static void Main() { foreach (var c in ""hello"") { System.Console.WriteLine(c); } } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); // Sequence points: // 1) Open brace at start of method // 2) 'foreach' // 3) '"hello"' // 4) Hidden initial jump (of for loop) // 5) 'var c' // 6) Open brace of loop // 7) Loop body // 8) Close brace of loop // 9) Hidden index increment. // 10) 'in' // 11) Close brace at end of method c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""27"" endLine=""6"" endColumn=""34"" document=""1"" /> <entry offset=""0x8"" hidden=""true"" document=""1"" /> <entry offset=""0xa"" startLine=""6"" startColumn=""18"" endLine=""6"" endColumn=""23"" document=""1"" /> <entry offset=""0x11"" startLine=""8"" startColumn=""13"" endLine=""8"" endColumn=""41"" document=""1"" /> <entry offset=""0x16"" hidden=""true"" document=""1"" /> <entry offset=""0x1a"" startLine=""6"" startColumn=""24"" endLine=""6"" endColumn=""26"" document=""1"" /> <entry offset=""0x23"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void ForEachStatement_Array() { var source = WithWindowsLineBreaks(@" public class C { public static void Main() { foreach (var x in new int[2]) { System.Console.WriteLine(x); } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); // Sequence points: // 1) Open brace at start of method // 2) 'foreach' // 3) 'new int[2]' // 4) Hidden initial jump (of for loop) // 5) 'var c' // 6) Open brace of loop // 7) Loop body // 8) Close brace of loop // 9) Hidden index increment. // 10) 'in' // 11) Close brace at end of method c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""6"" offset=""11"" /> <slot kind=""8"" offset=""11"" /> <slot kind=""0"" offset=""11"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""16"" document=""1"" /> <entry offset=""0x2"" startLine=""6"" startColumn=""27"" endLine=""6"" endColumn=""37"" document=""1"" /> <entry offset=""0xb"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""6"" startColumn=""18"" endLine=""6"" endColumn=""23"" document=""1"" /> <entry offset=""0x11"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""10"" document=""1"" /> <entry offset=""0x12"" startLine=""8"" startColumn=""13"" endLine=""8"" endColumn=""41"" document=""1"" /> <entry offset=""0x19"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x1a"" hidden=""true"" document=""1"" /> <entry offset=""0x1e"" startLine=""6"" startColumn=""24"" endLine=""6"" endColumn=""26"" document=""1"" /> <entry offset=""0x24"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x25""> <scope startOffset=""0xd"" endOffset=""0x1a""> <local name=""x"" il_index=""2"" il_start=""0xd"" il_end=""0x1a"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(544937, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544937")] [Fact] public void ForEachStatement_MultiDimensionalArray() { var source = @" public class C { public static void Main() { foreach (var x in new int[2, 3]) { System.Console.WriteLine(x); } } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); // Sequence points: // 1) Open brace at start of method // 2) 'foreach' // 3) 'new int[2, 3]' // 4) Hidden initial jump (of for loop) // 5) 'var c' // 6) Open brace of loop // 7) Loop body // 8) Close brace of loop // 9) 'in' // 10) Close brace at end of method v.VerifyIL("C.Main", @" { // Code size 88 (0x58) .maxstack 3 .locals init (int[,] V_0, int V_1, int V_2, int V_3, int V_4, int V_5) //x -IL_0000: nop -IL_0001: nop -IL_0002: ldc.i4.2 IL_0003: ldc.i4.3 IL_0004: newobj ""int[*,*]..ctor"" IL_0009: stloc.0 IL_000a: ldloc.0 IL_000b: ldc.i4.0 IL_000c: callvirt ""int System.Array.GetUpperBound(int)"" IL_0011: stloc.1 IL_0012: ldloc.0 IL_0013: ldc.i4.1 IL_0014: callvirt ""int System.Array.GetUpperBound(int)"" IL_0019: stloc.2 IL_001a: ldloc.0 IL_001b: ldc.i4.0 IL_001c: callvirt ""int System.Array.GetLowerBound(int)"" IL_0021: stloc.3 ~IL_0022: br.s IL_0053 IL_0024: ldloc.0 IL_0025: ldc.i4.1 IL_0026: callvirt ""int System.Array.GetLowerBound(int)"" IL_002b: stloc.s V_4 ~IL_002d: br.s IL_004a -IL_002f: ldloc.0 IL_0030: ldloc.3 IL_0031: ldloc.s V_4 IL_0033: call ""int[*,*].Get"" IL_0038: stloc.s V_5 -IL_003a: nop -IL_003b: ldloc.s V_5 IL_003d: call ""void System.Console.WriteLine(int)"" IL_0042: nop -IL_0043: nop ~IL_0044: ldloc.s V_4 IL_0046: ldc.i4.1 IL_0047: add IL_0048: stloc.s V_4 -IL_004a: ldloc.s V_4 IL_004c: ldloc.2 IL_004d: ble.s IL_002f ~IL_004f: ldloc.3 IL_0050: ldc.i4.1 IL_0051: add IL_0052: stloc.3 -IL_0053: ldloc.3 IL_0054: ldloc.1 IL_0055: ble.s IL_0024 -IL_0057: ret } ", sequencePoints: "C.Main"); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ConditionalInAsyncMethod() { var source = WithWindowsLineBreaks(@" using System; class Program { public static async void Test() { int i = 0; if (i != 0) Console .WriteLine(); } } "); var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 81 (0x51) .maxstack 2 .locals init (int V_0, bool V_1, System.Exception V_2) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = 0; IL_0008: ldarg.0 IL_0009: ldc.i4.0 IL_000a: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: if (i != 0) IL_000f: ldarg.0 IL_0010: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_0015: ldc.i4.0 IL_0016: cgt.un IL_0018: stloc.1 // sequence point: <hidden> IL_0019: ldloc.1 IL_001a: brfalse.s IL_0022 // sequence point: Console ... .WriteLine() IL_001c: call ""void System.Console.WriteLine()"" IL_0021: nop // sequence point: <hidden> IL_0022: leave.s IL_003c } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_0024: stloc.2 IL_0025: ldarg.0 IL_0026: ldc.i4.s -2 IL_0028: stfld ""int Program.<Test>d__0.<>1__state"" IL_002d: ldarg.0 IL_002e: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0033: ldloc.2 IL_0034: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_0039: nop IL_003a: leave.s IL_0050 } // sequence point: } IL_003c: ldarg.0 IL_003d: ldc.i4.s -2 IL_003f: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_0044: ldarg.0 IL_0045: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_004a: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_004f: nop IL_0050: ret } ", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); v.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Test""> <customDebugInfo> <forwardIterator name=""&lt;Test&gt;d__0"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> </method> <method containingType=""Program+&lt;Test&gt;d__0"" name=""MoveNext""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <hoistedLocalScopes> <slot startOffset=""0x0"" endOffset=""0x51"" /> </hoistedLocalScopes> <encLocalSlotMap> <slot kind=""27"" offset=""0"" /> <slot kind=""1"" offset=""33"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""19"" document=""1"" /> <entry offset=""0xf"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""20"" document=""1"" /> <entry offset=""0x19"" hidden=""true"" document=""1"" /> <entry offset=""0x1c"" startLine=""11"" startColumn=""13"" endLine=""12"" endColumn=""30"" document=""1"" /> <entry offset=""0x22"" hidden=""true"" document=""1"" /> <entry offset=""0x24"" hidden=""true"" document=""1"" /> <entry offset=""0x3c"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> <entry offset=""0x44"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x51""> <namespace name=""System"" /> </scope> <asyncInfo> <catchHandler offset=""0x24"" /> <kickoffMethod declaringType=""Program"" methodName=""Test"" /> </asyncInfo> </method> </methods> </symbols>"); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ConditionalBeforeLocalFunction() { var source = @" class C { void M() { int i = 0; if (i != 0) { return; } string local() { throw null; } System.Console.Write(1); } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("C.M", @" { // Code size 23 (0x17) .maxstack 2 .locals init (int V_0, //i bool V_1) // sequence point: { IL_0000: nop // sequence point: int i = 0; IL_0001: ldc.i4.0 IL_0002: stloc.0 // sequence point: if (i != 0) IL_0003: ldloc.0 IL_0004: ldc.i4.0 IL_0005: cgt.un IL_0007: stloc.1 // sequence point: <hidden> IL_0008: ldloc.1 IL_0009: brfalse.s IL_000e // sequence point: { IL_000b: nop // sequence point: return; IL_000c: br.s IL_0016 // sequence point: <hidden> IL_000e: nop // sequence point: System.Console.Write(1); IL_000f: ldc.i4.1 IL_0010: call ""void System.Console.Write(int)"" IL_0015: nop // sequence point: } IL_0016: ret } ", sequencePoints: "C.M", source: source); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ConditionalInAsyncMethodWithExplicitReturn() { var source = @" using System; class Program { public static async void Test() { int i = 0; if (i != 0) Console .WriteLine(); return; } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 81 (0x51) .maxstack 2 .locals init (int V_0, bool V_1, System.Exception V_2) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = 0; IL_0008: ldarg.0 IL_0009: ldc.i4.0 IL_000a: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: if (i != 0) IL_000f: ldarg.0 IL_0010: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_0015: ldc.i4.0 IL_0016: cgt.un IL_0018: stloc.1 // sequence point: <hidden> IL_0019: ldloc.1 IL_001a: brfalse.s IL_0022 // sequence point: Console ... .WriteLine() IL_001c: call ""void System.Console.WriteLine()"" IL_0021: nop // sequence point: return; IL_0022: leave.s IL_003c } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_0024: stloc.2 IL_0025: ldarg.0 IL_0026: ldc.i4.s -2 IL_0028: stfld ""int Program.<Test>d__0.<>1__state"" IL_002d: ldarg.0 IL_002e: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0033: ldloc.2 IL_0034: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_0039: nop IL_003a: leave.s IL_0050 } // sequence point: } IL_003c: ldarg.0 IL_003d: ldc.i4.s -2 IL_003f: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_0044: ldarg.0 IL_0045: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_004a: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_004f: nop IL_0050: ret } ", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ConditionalInSimpleMethod() { var source = @" using System; class Program { public static void Test() { int i = 0; if (i != 0) Console.WriteLine(); } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.Test()", @" { // Code size 18 (0x12) .maxstack 2 .locals init (int V_0, //i bool V_1) // sequence point: { IL_0000: nop // sequence point: int i = 0; IL_0001: ldc.i4.0 IL_0002: stloc.0 // sequence point: if (i != 0) IL_0003: ldloc.0 IL_0004: ldc.i4.0 IL_0005: cgt.un IL_0007: stloc.1 // sequence point: <hidden> IL_0008: ldloc.1 IL_0009: brfalse.s IL_0011 // sequence point: Console.WriteLine(); IL_000b: call ""void System.Console.WriteLine()"" IL_0010: nop // sequence point: } IL_0011: ret } ", sequencePoints: "Program.Test", source: source); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ElseConditionalInAsyncMethod() { var source = WithWindowsLineBreaks(@" using System; class Program { public static async void Test() { int i = 0; if (i != 0) Console.WriteLine(""one""); else Console.WriteLine(""other""); } } "); var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 99 (0x63) .maxstack 2 .locals init (int V_0, bool V_1, System.Exception V_2) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = 0; IL_0008: ldarg.0 IL_0009: ldc.i4.0 IL_000a: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: if (i != 0) IL_000f: ldarg.0 IL_0010: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_0015: ldc.i4.0 IL_0016: cgt.un IL_0018: stloc.1 // sequence point: <hidden> IL_0019: ldloc.1 IL_001a: brfalse.s IL_0029 // sequence point: Console.WriteLine(""one""); IL_001c: ldstr ""one"" IL_0021: call ""void System.Console.WriteLine(string)"" IL_0026: nop // sequence point: <hidden> IL_0027: br.s IL_0034 // sequence point: Console.WriteLine(""other""); IL_0029: ldstr ""other"" IL_002e: call ""void System.Console.WriteLine(string)"" IL_0033: nop // sequence point: <hidden> IL_0034: leave.s IL_004e } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_0036: stloc.2 IL_0037: ldarg.0 IL_0038: ldc.i4.s -2 IL_003a: stfld ""int Program.<Test>d__0.<>1__state"" IL_003f: ldarg.0 IL_0040: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0045: ldloc.2 IL_0046: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_004b: nop IL_004c: leave.s IL_0062 } // sequence point: } IL_004e: ldarg.0 IL_004f: ldc.i4.s -2 IL_0051: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_0056: ldarg.0 IL_0057: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_005c: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_0061: nop IL_0062: ret } ", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); v.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Test""> <customDebugInfo> <forwardIterator name=""&lt;Test&gt;d__0"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> </method> <method containingType=""Program+&lt;Test&gt;d__0"" name=""MoveNext""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <hoistedLocalScopes> <slot startOffset=""0x0"" endOffset=""0x63"" /> </hoistedLocalScopes> <encLocalSlotMap> <slot kind=""27"" offset=""0"" /> <slot kind=""1"" offset=""33"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""19"" document=""1"" /> <entry offset=""0xf"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""20"" document=""1"" /> <entry offset=""0x19"" hidden=""true"" document=""1"" /> <entry offset=""0x1c"" startLine=""11"" startColumn=""13"" endLine=""11"" endColumn=""38"" document=""1"" /> <entry offset=""0x27"" hidden=""true"" document=""1"" /> <entry offset=""0x29"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""40"" document=""1"" /> <entry offset=""0x34"" hidden=""true"" document=""1"" /> <entry offset=""0x36"" hidden=""true"" document=""1"" /> <entry offset=""0x4e"" startLine=""14"" startColumn=""5"" endLine=""14"" endColumn=""6"" document=""1"" /> <entry offset=""0x56"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x63""> <namespace name=""System"" /> </scope> <asyncInfo> <catchHandler offset=""0x36"" /> <kickoffMethod declaringType=""Program"" methodName=""Test"" /> </asyncInfo> </method> </methods> </symbols>"); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ConditionalInTry() { var source = WithWindowsLineBreaks(@" using System; class Program { public static void Test() { try { int i = 0; if (i != 0) Console.WriteLine(); } catch { } } } "); var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.Test", @" { // Code size 27 (0x1b) .maxstack 2 .locals init (int V_0, //i bool V_1) // sequence point: { IL_0000: nop .try { // sequence point: { IL_0001: nop // sequence point: int i = 0; IL_0002: ldc.i4.0 IL_0003: stloc.0 // sequence point: if (i != 0) IL_0004: ldloc.0 IL_0005: ldc.i4.0 IL_0006: cgt.un IL_0008: stloc.1 // sequence point: <hidden> IL_0009: ldloc.1 IL_000a: brfalse.s IL_0012 // sequence point: Console.WriteLine(); IL_000c: call ""void System.Console.WriteLine()"" IL_0011: nop // sequence point: } IL_0012: nop IL_0013: leave.s IL_001a } catch object { // sequence point: catch IL_0015: pop // sequence point: { IL_0016: nop // sequence point: } IL_0017: nop IL_0018: leave.s IL_001a } // sequence point: } IL_001a: ret } ", sequencePoints: "Program.Test", source: source); v.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Test""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""43"" /> <slot kind=""1"" offset=""65"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x2"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""23"" document=""1"" /> <entry offset=""0x4"" startLine=""12"" startColumn=""13"" endLine=""12"" endColumn=""24"" document=""1"" /> <entry offset=""0x9"" hidden=""true"" document=""1"" /> <entry offset=""0xc"" startLine=""13"" startColumn=""17"" endLine=""13"" endColumn=""37"" document=""1"" /> <entry offset=""0x12"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0x15"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""14"" document=""1"" /> <entry offset=""0x16"" startLine=""15"" startColumn=""15"" endLine=""15"" endColumn=""16"" document=""1"" /> <entry offset=""0x17"" startLine=""15"" startColumn=""17"" endLine=""15"" endColumn=""18"" document=""1"" /> <entry offset=""0x1a"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1b""> <namespace name=""System"" /> <scope startOffset=""0x1"" endOffset=""0x13""> <local name=""i"" il_index=""0"" il_start=""0x1"" il_end=""0x13"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(544937, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544937")] [Fact] public void ForEachStatement_MultiDimensionalArrayBreakAndContinue() { var source = @" using System; class C { static void Main() { int[, ,] array = new[,,] { { {1, 2}, {3, 4} }, { {5, 6}, {7, 8} }, }; foreach (int i in array) { if (i % 2 == 1) continue; if (i > 4) break; Console.WriteLine(i); } } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithModuleName("MODULE")); // Stepping: // After "continue", step to "in". // After "break", step to first sequence point following loop body (in this case, method close brace). v.VerifyIL("C.Main", @" { // Code size 169 (0xa9) .maxstack 4 .locals init (int[,,] V_0, //array int[,,] V_1, int V_2, int V_3, int V_4, int V_5, int V_6, int V_7, int V_8, //i bool V_9, bool V_10) -IL_0000: nop -IL_0001: ldc.i4.2 IL_0002: ldc.i4.2 IL_0003: ldc.i4.2 IL_0004: newobj ""int[*,*,*]..ctor"" IL_0009: dup IL_000a: ldtoken ""<PrivateImplementationDetails>.__StaticArrayInitTypeSize=32 <PrivateImplementationDetails>.8B4B2444E57AED8C2D05A1293255DA1B048C63224317D4666230760935FA4A18"" IL_000f: call ""void System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray(System.Array, System.RuntimeFieldHandle)"" IL_0014: stloc.0 -IL_0015: nop -IL_0016: ldloc.0 IL_0017: stloc.1 IL_0018: ldloc.1 IL_0019: ldc.i4.0 IL_001a: callvirt ""int System.Array.GetUpperBound(int)"" IL_001f: stloc.2 IL_0020: ldloc.1 IL_0021: ldc.i4.1 IL_0022: callvirt ""int System.Array.GetUpperBound(int)"" IL_0027: stloc.3 IL_0028: ldloc.1 IL_0029: ldc.i4.2 IL_002a: callvirt ""int System.Array.GetUpperBound(int)"" IL_002f: stloc.s V_4 IL_0031: ldloc.1 IL_0032: ldc.i4.0 IL_0033: callvirt ""int System.Array.GetLowerBound(int)"" IL_0038: stloc.s V_5 ~IL_003a: br.s IL_00a3 IL_003c: ldloc.1 IL_003d: ldc.i4.1 IL_003e: callvirt ""int System.Array.GetLowerBound(int)"" IL_0043: stloc.s V_6 ~IL_0045: br.s IL_0098 IL_0047: ldloc.1 IL_0048: ldc.i4.2 IL_0049: callvirt ""int System.Array.GetLowerBound(int)"" IL_004e: stloc.s V_7 ~IL_0050: br.s IL_008c -IL_0052: ldloc.1 IL_0053: ldloc.s V_5 IL_0055: ldloc.s V_6 IL_0057: ldloc.s V_7 IL_0059: call ""int[*,*,*].Get"" IL_005e: stloc.s V_8 -IL_0060: nop -IL_0061: ldloc.s V_8 IL_0063: ldc.i4.2 IL_0064: rem IL_0065: ldc.i4.1 IL_0066: ceq IL_0068: stloc.s V_9 ~IL_006a: ldloc.s V_9 IL_006c: brfalse.s IL_0070 -IL_006e: br.s IL_0086 -IL_0070: ldloc.s V_8 IL_0072: ldc.i4.4 IL_0073: cgt IL_0075: stloc.s V_10 ~IL_0077: ldloc.s V_10 IL_0079: brfalse.s IL_007d -IL_007b: br.s IL_00a8 -IL_007d: ldloc.s V_8 IL_007f: call ""void System.Console.WriteLine(int)"" IL_0084: nop -IL_0085: nop ~IL_0086: ldloc.s V_7 IL_0088: ldc.i4.1 IL_0089: add IL_008a: stloc.s V_7 -IL_008c: ldloc.s V_7 IL_008e: ldloc.s V_4 IL_0090: ble.s IL_0052 ~IL_0092: ldloc.s V_6 IL_0094: ldc.i4.1 IL_0095: add IL_0096: stloc.s V_6 -IL_0098: ldloc.s V_6 IL_009a: ldloc.3 IL_009b: ble.s IL_0047 ~IL_009d: ldloc.s V_5 IL_009f: ldc.i4.1 IL_00a0: add IL_00a1: stloc.s V_5 -IL_00a3: ldloc.s V_5 IL_00a5: ldloc.2 IL_00a6: ble.s IL_003c -IL_00a8: ret } ", sequencePoints: "C.Main"); } [Fact] public void ForEachStatement_Enumerator() { var source = @" public class C { public static void Main() { foreach (var x in new System.Collections.Generic.List<int>()) { System.Console.WriteLine(x); } } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); // Sequence points: // 1) Open brace at start of method // 2) 'foreach' // 3) 'new System.Collections.Generic.List<int>()' // 4) Hidden initial jump (of while loop) // 5) 'var c' // 6) Open brace of loop // 7) Loop body // 8) Close brace of loop // 9) 'in' // 10) hidden point in Finally // 11) Close brace at end of method v.VerifyIL("C.Main", @" { // Code size 59 (0x3b) .maxstack 1 .locals init (System.Collections.Generic.List<int>.Enumerator V_0, int V_1) //x -IL_0000: nop -IL_0001: nop -IL_0002: newobj ""System.Collections.Generic.List<int>..ctor()"" IL_0007: call ""System.Collections.Generic.List<int>.Enumerator System.Collections.Generic.List<int>.GetEnumerator()"" IL_000c: stloc.0 .try { ~IL_000d: br.s IL_0020 -IL_000f: ldloca.s V_0 IL_0011: call ""int System.Collections.Generic.List<int>.Enumerator.Current.get"" IL_0016: stloc.1 -IL_0017: nop -IL_0018: ldloc.1 IL_0019: call ""void System.Console.WriteLine(int)"" IL_001e: nop -IL_001f: nop -IL_0020: ldloca.s V_0 IL_0022: call ""bool System.Collections.Generic.List<int>.Enumerator.MoveNext()"" IL_0027: brtrue.s IL_000f IL_0029: leave.s IL_003a } finally { ~IL_002b: ldloca.s V_0 IL_002d: constrained. ""System.Collections.Generic.List<int>.Enumerator"" IL_0033: callvirt ""void System.IDisposable.Dispose()"" IL_0038: nop IL_0039: endfinally } -IL_003a: ret } ", sequencePoints: "C.Main"); } [WorkItem(718501, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/718501")] [Fact] public void ForEachNops() { string source = WithWindowsLineBreaks(@" using System; using System.Collections.Generic; using System.Linq; class Program { private static List<List<int>> l = new List<List<int>>(); static void Main(string[] args) { foreach (var i in l.AsEnumerable()) { switch (i.Count) { case 1: break; default: if (i.Count != 0) { } break; } } } } "); // we just want this to compile without crashing/asserting var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("Program.Main", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main"" parameterNames=""args""> <customDebugInfo> <using> <namespace usingCount=""3"" /> </using> <encLocalSlotMap> <slot kind=""5"" offset=""15"" /> <slot kind=""0"" offset=""15"" /> <slot kind=""35"" offset=""83"" /> <slot kind=""1"" offset=""83"" /> <slot kind=""1"" offset=""237"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0x1"" startLine=""12"" startColumn=""13"" endLine=""12"" endColumn=""20"" document=""1"" /> <entry offset=""0x2"" startLine=""12"" startColumn=""31"" endLine=""12"" endColumn=""47"" document=""1"" /> <entry offset=""0x12"" hidden=""true"" document=""1"" /> <entry offset=""0x14"" startLine=""12"" startColumn=""22"" endLine=""12"" endColumn=""27"" document=""1"" /> <entry offset=""0x1b"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""14"" document=""1"" /> <entry offset=""0x1c"" startLine=""14"" startColumn=""17"" endLine=""14"" endColumn=""33"" document=""1"" /> <entry offset=""0x23"" hidden=""true"" document=""1"" /> <entry offset=""0x25"" hidden=""true"" document=""1"" /> <entry offset=""0x2b"" startLine=""17"" startColumn=""25"" endLine=""17"" endColumn=""31"" document=""1"" /> <entry offset=""0x2d"" startLine=""20"" startColumn=""25"" endLine=""20"" endColumn=""42"" document=""1"" /> <entry offset=""0x38"" hidden=""true"" document=""1"" /> <entry offset=""0x3c"" startLine=""21"" startColumn=""25"" endLine=""21"" endColumn=""26"" document=""1"" /> <entry offset=""0x3d"" startLine=""22"" startColumn=""25"" endLine=""22"" endColumn=""26"" document=""1"" /> <entry offset=""0x3e"" startLine=""24"" startColumn=""25"" endLine=""24"" endColumn=""31"" document=""1"" /> <entry offset=""0x40"" startLine=""26"" startColumn=""13"" endLine=""26"" endColumn=""14"" document=""1"" /> <entry offset=""0x41"" startLine=""12"" startColumn=""28"" endLine=""12"" endColumn=""30"" document=""1"" /> <entry offset=""0x4b"" hidden=""true"" document=""1"" /> <entry offset=""0x55"" hidden=""true"" document=""1"" /> <entry offset=""0x56"" startLine=""27"" startColumn=""9"" endLine=""27"" endColumn=""10"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x57""> <namespace name=""System"" /> <namespace name=""System.Collections.Generic"" /> <namespace name=""System.Linq"" /> <scope startOffset=""0x14"" endOffset=""0x41""> <local name=""i"" il_index=""1"" il_start=""0x14"" il_end=""0x41"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>" ); } [Fact] public void ForEachStatement_Deconstruction() { var source = WithWindowsLineBreaks(@" public class C { public static (int, (bool, double))[] F() => new[] { (1, (true, 2.0)) }; public static void Main() { foreach (var (c, (d, e)) in F()) { System.Console.WriteLine(c); } } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.Main", @" { // Code size 70 (0x46) .maxstack 2 .locals init (System.ValueTuple<int, System.ValueTuple<bool, double>>[] V_0, int V_1, int V_2, //c bool V_3, //d double V_4, //e System.ValueTuple<bool, double> V_5) // sequence point: { IL_0000: nop // sequence point: foreach IL_0001: nop // sequence point: F() IL_0002: call ""System.ValueTuple<int, System.ValueTuple<bool, double>>[] C.F()"" IL_0007: stloc.0 IL_0008: ldc.i4.0 IL_0009: stloc.1 // sequence point: <hidden> IL_000a: br.s IL_003f // sequence point: var (c, (d, e)) IL_000c: ldloc.0 IL_000d: ldloc.1 IL_000e: ldelem ""System.ValueTuple<int, System.ValueTuple<bool, double>>"" IL_0013: dup IL_0014: ldfld ""System.ValueTuple<bool, double> System.ValueTuple<int, System.ValueTuple<bool, double>>.Item2"" IL_0019: stloc.s V_5 IL_001b: ldfld ""int System.ValueTuple<int, System.ValueTuple<bool, double>>.Item1"" IL_0020: stloc.2 IL_0021: ldloc.s V_5 IL_0023: ldfld ""bool System.ValueTuple<bool, double>.Item1"" IL_0028: stloc.3 IL_0029: ldloc.s V_5 IL_002b: ldfld ""double System.ValueTuple<bool, double>.Item2"" IL_0030: stloc.s V_4 // sequence point: { IL_0032: nop // sequence point: System.Console.WriteLine(c); IL_0033: ldloc.2 IL_0034: call ""void System.Console.WriteLine(int)"" IL_0039: nop // sequence point: } IL_003a: nop // sequence point: <hidden> IL_003b: ldloc.1 IL_003c: ldc.i4.1 IL_003d: add IL_003e: stloc.1 // sequence point: in IL_003f: ldloc.1 IL_0040: ldloc.0 IL_0041: ldlen IL_0042: conv.i4 IL_0043: blt.s IL_000c // sequence point: } IL_0045: ret } ", sequencePoints: "C.Main", source: source); v.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""50"" endLine=""4"" endColumn=""76"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""Main""> <customDebugInfo> <forward declaringType=""C"" methodName=""F"" /> <encLocalSlotMap> <slot kind=""6"" offset=""11"" /> <slot kind=""8"" offset=""11"" /> <slot kind=""0"" offset=""25"" /> <slot kind=""0"" offset=""29"" /> <slot kind=""0"" offset=""32"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""16"" document=""1"" /> <entry offset=""0x2"" startLine=""8"" startColumn=""37"" endLine=""8"" endColumn=""40"" document=""1"" /> <entry offset=""0xa"" hidden=""true"" document=""1"" /> <entry offset=""0xc"" startLine=""8"" startColumn=""18"" endLine=""8"" endColumn=""33"" document=""1"" /> <entry offset=""0x32"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x33"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""41"" document=""1"" /> <entry offset=""0x3a"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0x3b"" hidden=""true"" document=""1"" /> <entry offset=""0x3f"" startLine=""8"" startColumn=""34"" endLine=""8"" endColumn=""36"" document=""1"" /> <entry offset=""0x45"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x46""> <scope startOffset=""0xc"" endOffset=""0x3b""> <local name=""c"" il_index=""2"" il_start=""0xc"" il_end=""0x3b"" attributes=""0"" /> <local name=""d"" il_index=""3"" il_start=""0xc"" il_end=""0x3b"" attributes=""0"" /> <local name=""e"" il_index=""4"" il_start=""0xc"" il_end=""0x3b"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } #endregion #region Switch [Fact] public void SwitchWithPattern_01() { string source = WithWindowsLineBreaks(@" using System; using System.Collections.Generic; using System.Linq; class Program { private static List<List<int>> l = new List<List<int>>(); static void Main(string[] args) { Student s = new Student(); s.Name = ""Bozo""; s.GPA = 2.3; Operate(s); } static string Operate(Person p) { switch (p) { case Student s when s.GPA > 3.5: return $""Student {s.Name} ({s.GPA:N1})""; case Student s: return $""Student {s.Name} ({s.GPA:N1})""; case Teacher t: return $""Teacher {t.Name} of {t.Subject}""; default: return $""Person {p.Name}""; } } } class Person { public string Name; } class Teacher : Person { public string Subject; } class Student : Person { public double GPA; } "); // we just want this to compile without crashing/asserting var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("Program.Operate", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Operate"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Main"" parameterNames=""args"" /> <encLocalSlotMap> <slot kind=""0"" offset=""59"" /> <slot kind=""0"" offset=""163"" /> <slot kind=""0"" offset=""250"" /> <slot kind=""35"" offset=""11"" /> <slot kind=""1"" offset=""11"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""19"" startColumn=""5"" endLine=""19"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""19"" document=""1"" /> <entry offset=""0x4"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" hidden=""true"" document=""1"" /> <entry offset=""0x1d"" startLine=""22"" startColumn=""28"" endLine=""22"" endColumn=""44"" document=""1"" /> <entry offset=""0x2e"" hidden=""true"" document=""1"" /> <entry offset=""0x30"" startLine=""23"" startColumn=""17"" endLine=""23"" endColumn=""57"" document=""1"" /> <entry offset=""0x4f"" hidden=""true"" document=""1"" /> <entry offset=""0x53"" startLine=""25"" startColumn=""17"" endLine=""25"" endColumn=""57"" document=""1"" /> <entry offset=""0x72"" hidden=""true"" document=""1"" /> <entry offset=""0x74"" startLine=""27"" startColumn=""17"" endLine=""27"" endColumn=""59"" document=""1"" /> <entry offset=""0x93"" startLine=""29"" startColumn=""17"" endLine=""29"" endColumn=""43"" document=""1"" /> <entry offset=""0xa7"" startLine=""31"" startColumn=""5"" endLine=""31"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xaa""> <scope startOffset=""0x1d"" endOffset=""0x4f""> <local name=""s"" il_index=""0"" il_start=""0x1d"" il_end=""0x4f"" attributes=""0"" /> </scope> <scope startOffset=""0x4f"" endOffset=""0x72""> <local name=""s"" il_index=""1"" il_start=""0x4f"" il_end=""0x72"" attributes=""0"" /> </scope> <scope startOffset=""0x72"" endOffset=""0x93""> <local name=""t"" il_index=""2"" il_start=""0x72"" il_end=""0x93"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void SwitchWithPattern_02() { string source = WithWindowsLineBreaks(@" using System; using System.Collections.Generic; using System.Linq; class Program { private static List<List<int>> l = new List<List<int>>(); static void Main(string[] args) { Student s = new Student(); s.Name = ""Bozo""; s.GPA = 2.3; Operate(s); } static System.Func<string> Operate(Person p) { switch (p) { case Student s when s.GPA > 3.5: return () => $""Student {s.Name} ({s.GPA:N1})""; case Student s: return () => $""Student {s.Name} ({s.GPA:N1})""; case Teacher t: return () => $""Teacher {t.Name} of {t.Subject}""; default: return () => $""Person {p.Name}""; } } } class Person { public string Name; } class Teacher : Person { public string Subject; } class Student : Person { public double GPA; } "); // we just want this to compile without crashing/asserting var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("Program.Operate", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Operate"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Main"" parameterNames=""args"" /> <encLocalSlotMap> <slot kind=""30"" offset=""0"" /> <slot kind=""30"" offset=""11"" /> <slot kind=""35"" offset=""11"" /> <slot kind=""1"" offset=""11"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>2</methodOrdinal> <closure offset=""0"" /> <closure offset=""11"" /> <lambda offset=""109"" closure=""1"" /> <lambda offset=""202"" closure=""1"" /> <lambda offset=""295"" closure=""1"" /> <lambda offset=""383"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""19"" startColumn=""5"" endLine=""19"" endColumn=""6"" document=""1"" /> <entry offset=""0xe"" hidden=""true"" document=""1"" /> <entry offset=""0x1b"" hidden=""true"" document=""1"" /> <entry offset=""0x1d"" hidden=""true"" document=""1"" /> <entry offset=""0x47"" startLine=""22"" startColumn=""28"" endLine=""22"" endColumn=""44"" document=""1"" /> <entry offset=""0x5d"" hidden=""true"" document=""1"" /> <entry offset=""0x5f"" startLine=""23"" startColumn=""17"" endLine=""23"" endColumn=""63"" document=""1"" /> <entry offset=""0x6f"" hidden=""true"" document=""1"" /> <entry offset=""0x7d"" startLine=""25"" startColumn=""17"" endLine=""25"" endColumn=""63"" document=""1"" /> <entry offset=""0x8d"" hidden=""true"" document=""1"" /> <entry offset=""0x8f"" startLine=""27"" startColumn=""17"" endLine=""27"" endColumn=""65"" document=""1"" /> <entry offset=""0x9f"" startLine=""29"" startColumn=""17"" endLine=""29"" endColumn=""49"" document=""1"" /> <entry offset=""0xaf"" startLine=""31"" startColumn=""5"" endLine=""31"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb2""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0xb2"" attributes=""0"" /> <scope startOffset=""0xe"" endOffset=""0xaf""> <local name=""CS$&lt;&gt;8__locals1"" il_index=""1"" il_start=""0xe"" il_end=""0xaf"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void SwitchWithPatternAndLocalFunctions() { string source = WithWindowsLineBreaks(@" using System; using System.Collections.Generic; using System.Linq; class Program { private static List<List<int>> l = new List<List<int>>(); static void Main(string[] args) { Student s = new Student(); s.Name = ""Bozo""; s.GPA = 2.3; Operate(s); } static System.Func<string> Operate(Person p) { switch (p) { case Student s when s.GPA > 3.5: string f1() => $""Student {s.Name} ({s.GPA:N1})""; return f1; case Student s: string f2() => $""Student {s.Name} ({s.GPA:N1})""; return f2; case Teacher t: string f3() => $""Teacher {t.Name} of {t.Subject}""; return f3; default: string f4() => $""Person {p.Name}""; return f4; } } } class Person { public string Name; } class Teacher : Person { public string Subject; } class Student : Person { public double GPA; } "); // we just want this to compile without crashing/asserting var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("Program.Operate", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Operate"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Main"" parameterNames=""args"" /> <encLocalSlotMap> <slot kind=""30"" offset=""0"" /> <slot kind=""30"" offset=""11"" /> <slot kind=""35"" offset=""11"" /> <slot kind=""1"" offset=""11"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>2</methodOrdinal> <closure offset=""0"" /> <closure offset=""11"" /> <lambda offset=""111"" closure=""1"" /> <lambda offset=""234"" closure=""1"" /> <lambda offset=""357"" closure=""1"" /> <lambda offset=""475"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""19"" startColumn=""5"" endLine=""19"" endColumn=""6"" document=""1"" /> <entry offset=""0xe"" hidden=""true"" document=""1"" /> <entry offset=""0x1b"" hidden=""true"" document=""1"" /> <entry offset=""0x1d"" hidden=""true"" document=""1"" /> <entry offset=""0x47"" startLine=""22"" startColumn=""28"" endLine=""22"" endColumn=""44"" document=""1"" /> <entry offset=""0x5d"" hidden=""true"" document=""1"" /> <entry offset=""0x60"" startLine=""24"" startColumn=""17"" endLine=""24"" endColumn=""27"" document=""1"" /> <entry offset=""0x70"" hidden=""true"" document=""1"" /> <entry offset=""0x7f"" startLine=""27"" startColumn=""17"" endLine=""27"" endColumn=""27"" document=""1"" /> <entry offset=""0x8f"" hidden=""true"" document=""1"" /> <entry offset=""0x92"" startLine=""30"" startColumn=""17"" endLine=""30"" endColumn=""27"" document=""1"" /> <entry offset=""0xa2"" hidden=""true"" document=""1"" /> <entry offset=""0xa3"" startLine=""33"" startColumn=""17"" endLine=""33"" endColumn=""27"" document=""1"" /> <entry offset=""0xb3"" startLine=""35"" startColumn=""5"" endLine=""35"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb6""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0xb6"" attributes=""0"" /> <scope startOffset=""0xe"" endOffset=""0xb3""> <local name=""CS$&lt;&gt;8__locals1"" il_index=""1"" il_start=""0xe"" il_end=""0xb3"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(17090, "https://github.com/dotnet/roslyn/issues/17090"), WorkItem(19731, "https://github.com/dotnet/roslyn/issues/19731")] [Fact] public void SwitchWithConstantPattern() { string source = @" using System; class Program { static void Main(string[] args) { M1(); M2(); } static void M1() { switch (1) { case 0 when true: ; case 1: Console.Write(1); break; case 2: ; } } static void M2() { switch (nameof(M2)) { case nameof(M1) when true: ; case nameof(M2): Console.Write(nameof(M2)); break; case nameof(Main): ; } } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); c.VerifyDiagnostics(); var verifier = CompileAndVerify(c, expectedOutput: "1M2"); verifier.VerifyIL(qualifiedMethodName: "Program.M1", sequencePoints: "Program.M1", source: source, expectedIL: @"{ // Code size 17 (0x11) .maxstack 1 .locals init (int V_0, int V_1) // sequence point: { IL_0000: nop // sequence point: switch ... (1 IL_0001: ldc.i4.1 IL_0002: stloc.1 IL_0003: ldc.i4.1 IL_0004: stloc.0 // sequence point: <hidden> IL_0005: br.s IL_0007 // sequence point: Console.Write(1); IL_0007: ldc.i4.1 IL_0008: call ""void System.Console.Write(int)"" IL_000d: nop // sequence point: break; IL_000e: br.s IL_0010 // sequence point: } IL_0010: ret }"); verifier.VerifyIL(qualifiedMethodName: "Program.M2", sequencePoints: "Program.M2", source: source, expectedIL: @"{ // Code size 29 (0x1d) .maxstack 1 .locals init (string V_0, string V_1) // sequence point: { IL_0000: nop // sequence point: switch ... (nameof(M2) IL_0001: ldstr ""M2"" IL_0006: stloc.1 IL_0007: ldstr ""M2"" IL_000c: stloc.0 // sequence point: <hidden> IL_000d: br.s IL_000f // sequence point: Console.Write(nameof(M2)); IL_000f: ldstr ""M2"" IL_0014: call ""void System.Console.Write(string)"" IL_0019: nop // sequence point: break; IL_001a: br.s IL_001c // sequence point: } IL_001c: ret }"); // Check the release code generation too. c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); c.VerifyDiagnostics(); verifier = CompileAndVerify(c, expectedOutput: "1M2"); verifier.VerifyIL("Program.M1", @"{ // Code size 7 (0x7) .maxstack 1 IL_0000: ldc.i4.1 IL_0001: call ""void System.Console.Write(int)"" IL_0006: ret }"); verifier.VerifyIL("Program.M2", @"{ // Code size 11 (0xb) .maxstack 1 IL_0000: ldstr ""M2"" IL_0005: call ""void System.Console.Write(string)"" IL_000a: ret }"); } [WorkItem(19734, "https://github.com/dotnet/roslyn/issues/19734")] [Fact] public void SwitchWithConstantGenericPattern_01() { string source = @" using System; class Program { static void Main(string[] args) { M1<int>(); // 1 M1<long>(); // 2 M2<string>(); // 3 M2<int>(); // 4 } static void M1<T>() { switch (1) { case T t: Console.Write(1); break; case int i: Console.Write(2); break; } } static void M2<T>() { switch (nameof(M2)) { case T t: Console.Write(3); break; case string s: Console.Write(4); break; case null: ; } } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); c.VerifyDiagnostics(); var verifier = CompileAndVerify(c, expectedOutput: "1234"); verifier.VerifyIL(qualifiedMethodName: "Program.M1<T>", sequencePoints: "Program.M1", source: source, expectedIL: @"{ // Code size 60 (0x3c) .maxstack 1 .locals init (T V_0, //t int V_1, //i int V_2) // sequence point: { IL_0000: nop // sequence point: switch (1) IL_0001: ldc.i4.1 IL_0002: stloc.2 IL_0003: ldc.i4.1 IL_0004: stloc.1 // sequence point: <hidden> IL_0005: ldloc.1 IL_0006: box ""int"" IL_000b: isinst ""T"" IL_0010: brfalse.s IL_0030 IL_0012: ldloc.1 IL_0013: box ""int"" IL_0018: isinst ""T"" IL_001d: unbox.any ""T"" IL_0022: stloc.0 // sequence point: <hidden> IL_0023: br.s IL_0025 // sequence point: <hidden> IL_0025: br.s IL_0027 // sequence point: Console.Write(1); IL_0027: ldc.i4.1 IL_0028: call ""void System.Console.Write(int)"" IL_002d: nop // sequence point: break; IL_002e: br.s IL_003b // sequence point: <hidden> IL_0030: br.s IL_0032 // sequence point: Console.Write(2); IL_0032: ldc.i4.2 IL_0033: call ""void System.Console.Write(int)"" IL_0038: nop // sequence point: break; IL_0039: br.s IL_003b // sequence point: } IL_003b: ret }"); verifier.VerifyIL(qualifiedMethodName: "Program.M2<T>", sequencePoints: "Program.M2", source: source, expectedIL: @"{ // Code size 58 (0x3a) .maxstack 1 .locals init (T V_0, //t string V_1, //s string V_2) // sequence point: { IL_0000: nop // sequence point: switch (nameof(M2)) IL_0001: ldstr ""M2"" IL_0006: stloc.2 IL_0007: ldstr ""M2"" IL_000c: stloc.1 // sequence point: <hidden> IL_000d: ldloc.1 IL_000e: isinst ""T"" IL_0013: brfalse.s IL_002e IL_0015: ldloc.1 IL_0016: isinst ""T"" IL_001b: unbox.any ""T"" IL_0020: stloc.0 // sequence point: <hidden> IL_0021: br.s IL_0023 // sequence point: <hidden> IL_0023: br.s IL_0025 // sequence point: Console.Write(3); IL_0025: ldc.i4.3 IL_0026: call ""void System.Console.Write(int)"" IL_002b: nop // sequence point: break; IL_002c: br.s IL_0039 // sequence point: <hidden> IL_002e: br.s IL_0030 // sequence point: Console.Write(4); IL_0030: ldc.i4.4 IL_0031: call ""void System.Console.Write(int)"" IL_0036: nop // sequence point: break; IL_0037: br.s IL_0039 // sequence point: } IL_0039: ret }"); // Check the release code generation too. c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); c.VerifyDiagnostics(); verifier = CompileAndVerify(c, expectedOutput: "1234"); verifier.VerifyIL("Program.M1<T>", @"{ // Code size 29 (0x1d) .maxstack 1 .locals init (int V_0) //i IL_0000: ldc.i4.1 IL_0001: stloc.0 IL_0002: ldloc.0 IL_0003: box ""int"" IL_0008: isinst ""T"" IL_000d: brfalse.s IL_0016 IL_000f: ldc.i4.1 IL_0010: call ""void System.Console.Write(int)"" IL_0015: ret IL_0016: ldc.i4.2 IL_0017: call ""void System.Console.Write(int)"" IL_001c: ret }"); verifier.VerifyIL("Program.M2<T>", @"{ // Code size 28 (0x1c) .maxstack 1 .locals init (string V_0) //s IL_0000: ldstr ""M2"" IL_0005: stloc.0 IL_0006: ldloc.0 IL_0007: isinst ""T"" IL_000c: brfalse.s IL_0015 IL_000e: ldc.i4.3 IL_000f: call ""void System.Console.Write(int)"" IL_0014: ret IL_0015: ldc.i4.4 IL_0016: call ""void System.Console.Write(int)"" IL_001b: ret }"); } [WorkItem(19734, "https://github.com/dotnet/roslyn/issues/19734")] [Fact] public void SwitchWithConstantGenericPattern_02() { string source = @" using System; class Program { static void Main(string[] args) { M2<string>(); // 6 M2<int>(); // 6 } static void M2<T>() { const string x = null; switch (x) { case T t: ; case string s: ; case null: Console.Write(6); break; } } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); c.VerifyDiagnostics(); var verifier = CompileAndVerify(c, expectedOutput: "66"); verifier.VerifyIL(qualifiedMethodName: "Program.M2<T>", sequencePoints: "Program.M2", source: source, expectedIL: @"{ // Code size 17 (0x11) .maxstack 1 .locals init (T V_0, //t string V_1, //s string V_2, string V_3) // sequence point: { IL_0000: nop // sequence point: switch (x) IL_0001: ldnull IL_0002: stloc.3 IL_0003: ldnull IL_0004: stloc.2 // sequence point: <hidden> IL_0005: br.s IL_0007 // sequence point: Console.Write(6); IL_0007: ldc.i4.6 IL_0008: call ""void System.Console.Write(int)"" IL_000d: nop // sequence point: break; IL_000e: br.s IL_0010 // sequence point: } IL_0010: ret }"); // Check the release code generation too. c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); c.VerifyDiagnostics(); verifier = CompileAndVerify(c, expectedOutput: "66"); verifier.VerifyIL("Program.M2<T>", @"{ // Code size 7 (0x7) .maxstack 1 IL_0000: ldc.i4.6 IL_0001: call ""void System.Console.Write(int)"" IL_0006: ret }"); } [Fact] [WorkItem(31665, "https://github.com/dotnet/roslyn/issues/31665")] public void TestSequencePoints_31665() { var source = @" using System; internal class Program { private static void Main(string[] args) { var s = ""1""; if (true) switch (s) { case ""1"": Console.Out.WriteLine(""Input was 1""); break; default: throw new Exception(""Default case""); } else Console.Out.WriteLine(""Too many inputs""); } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.Main(string[])", @" { // Code size 60 (0x3c) .maxstack 2 .locals init (string V_0, //s bool V_1, string V_2, string V_3) // sequence point: { IL_0000: nop // sequence point: var s = ""1""; IL_0001: ldstr ""1"" IL_0006: stloc.0 // sequence point: if (true) IL_0007: ldc.i4.1 IL_0008: stloc.1 // sequence point: switch (s) IL_0009: ldloc.0 IL_000a: stloc.3 // sequence point: <hidden> IL_000b: ldloc.3 IL_000c: stloc.2 // sequence point: <hidden> IL_000d: ldloc.2 IL_000e: ldstr ""1"" IL_0013: call ""bool string.op_Equality(string, string)"" IL_0018: brtrue.s IL_001c IL_001a: br.s IL_002e // sequence point: Console.Out.WriteLine(""Input was 1""); IL_001c: call ""System.IO.TextWriter System.Console.Out.get"" IL_0021: ldstr ""Input was 1"" IL_0026: callvirt ""void System.IO.TextWriter.WriteLine(string)"" IL_002b: nop // sequence point: break; IL_002c: br.s IL_0039 // sequence point: throw new Exception(""Default case""); IL_002e: ldstr ""Default case"" IL_0033: newobj ""System.Exception..ctor(string)"" IL_0038: throw // sequence point: <hidden> IL_0039: br.s IL_003b // sequence point: } IL_003b: ret } ", sequencePoints: "Program.Main", source: source); } [Fact] [WorkItem(17076, "https://github.com/dotnet/roslyn/issues/17076")] public void TestSequencePoints_17076() { var source = @" using System.Threading.Tasks; internal class Program { private static void Main(string[] args) { M(new Node()).GetAwaiter().GetResult(); } static async Task M(Node node) { while (node != null) { if (node is A a) { await Task.Yield(); return; } else if (node is B b) { await Task.Yield(); return; } node = node.Parent; } } } class Node { public Node Parent = null; } class A : Node { } class B : Node { } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<M>d__1.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 403 (0x193) .maxstack 3 .locals init (int V_0, bool V_1, System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter V_2, System.Runtime.CompilerServices.YieldAwaitable V_3, Program.<M>d__1 V_4, bool V_5, System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter V_6, bool V_7, System.Exception V_8) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<M>d__1.<>1__state"" IL_0006: stloc.0 .try { // sequence point: <hidden> IL_0007: ldloc.0 IL_0008: brfalse.s IL_0012 IL_000a: br.s IL_000c IL_000c: ldloc.0 IL_000d: ldc.i4.1 IL_000e: beq.s IL_0014 IL_0010: br.s IL_0019 IL_0012: br.s IL_007e IL_0014: br IL_0109 // sequence point: { IL_0019: nop // sequence point: <hidden> IL_001a: br IL_0150 // sequence point: { IL_001f: nop // sequence point: if (node is A a) IL_0020: ldarg.0 IL_0021: ldarg.0 IL_0022: ldfld ""Node Program.<M>d__1.node"" IL_0027: isinst ""A"" IL_002c: stfld ""A Program.<M>d__1.<a>5__1"" IL_0031: ldarg.0 IL_0032: ldfld ""A Program.<M>d__1.<a>5__1"" IL_0037: ldnull IL_0038: cgt.un IL_003a: stloc.1 // sequence point: <hidden> IL_003b: ldloc.1 IL_003c: brfalse.s IL_00a7 // sequence point: { IL_003e: nop // sequence point: await Task.Yield(); IL_003f: call ""System.Runtime.CompilerServices.YieldAwaitable System.Threading.Tasks.Task.Yield()"" IL_0044: stloc.3 IL_0045: ldloca.s V_3 IL_0047: call ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter System.Runtime.CompilerServices.YieldAwaitable.GetAwaiter()"" IL_004c: stloc.2 // sequence point: <hidden> IL_004d: ldloca.s V_2 IL_004f: call ""bool System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.IsCompleted.get"" IL_0054: brtrue.s IL_009a IL_0056: ldarg.0 IL_0057: ldc.i4.0 IL_0058: dup IL_0059: stloc.0 IL_005a: stfld ""int Program.<M>d__1.<>1__state"" // async: yield IL_005f: ldarg.0 IL_0060: ldloc.2 IL_0061: stfld ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter Program.<M>d__1.<>u__1"" IL_0066: ldarg.0 IL_0067: stloc.s V_4 IL_0069: ldarg.0 IL_006a: ldflda ""System.Runtime.CompilerServices.AsyncTaskMethodBuilder Program.<M>d__1.<>t__builder"" IL_006f: ldloca.s V_2 IL_0071: ldloca.s V_4 IL_0073: call ""void System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AwaitUnsafeOnCompleted<System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter, Program.<M>d__1>(ref System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter, ref Program.<M>d__1)"" IL_0078: nop IL_0079: leave IL_0192 // async: resume IL_007e: ldarg.0 IL_007f: ldfld ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter Program.<M>d__1.<>u__1"" IL_0084: stloc.2 IL_0085: ldarg.0 IL_0086: ldflda ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter Program.<M>d__1.<>u__1"" IL_008b: initobj ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter"" IL_0091: ldarg.0 IL_0092: ldc.i4.m1 IL_0093: dup IL_0094: stloc.0 IL_0095: stfld ""int Program.<M>d__1.<>1__state"" IL_009a: ldloca.s V_2 IL_009c: call ""void System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.GetResult()"" IL_00a1: nop // sequence point: return; IL_00a2: leave IL_017e // sequence point: if (node is B b) IL_00a7: ldarg.0 IL_00a8: ldarg.0 IL_00a9: ldfld ""Node Program.<M>d__1.node"" IL_00ae: isinst ""B"" IL_00b3: stfld ""B Program.<M>d__1.<b>5__2"" IL_00b8: ldarg.0 IL_00b9: ldfld ""B Program.<M>d__1.<b>5__2"" IL_00be: ldnull IL_00bf: cgt.un IL_00c1: stloc.s V_5 // sequence point: <hidden> IL_00c3: ldloc.s V_5 IL_00c5: brfalse.s IL_0130 // sequence point: { IL_00c7: nop // sequence point: await Task.Yield(); IL_00c8: call ""System.Runtime.CompilerServices.YieldAwaitable System.Threading.Tasks.Task.Yield()"" IL_00cd: stloc.3 IL_00ce: ldloca.s V_3 IL_00d0: call ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter System.Runtime.CompilerServices.YieldAwaitable.GetAwaiter()"" IL_00d5: stloc.s V_6 // sequence point: <hidden> IL_00d7: ldloca.s V_6 IL_00d9: call ""bool System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.IsCompleted.get"" IL_00de: brtrue.s IL_0126 IL_00e0: ldarg.0 IL_00e1: ldc.i4.1 IL_00e2: dup IL_00e3: stloc.0 IL_00e4: stfld ""int Program.<M>d__1.<>1__state"" // async: yield IL_00e9: ldarg.0 IL_00ea: ldloc.s V_6 IL_00ec: stfld ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter Program.<M>d__1.<>u__1"" IL_00f1: ldarg.0 IL_00f2: stloc.s V_4 IL_00f4: ldarg.0 IL_00f5: ldflda ""System.Runtime.CompilerServices.AsyncTaskMethodBuilder Program.<M>d__1.<>t__builder"" IL_00fa: ldloca.s V_6 IL_00fc: ldloca.s V_4 IL_00fe: call ""void System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AwaitUnsafeOnCompleted<System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter, Program.<M>d__1>(ref System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter, ref Program.<M>d__1)"" IL_0103: nop IL_0104: leave IL_0192 // async: resume IL_0109: ldarg.0 IL_010a: ldfld ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter Program.<M>d__1.<>u__1"" IL_010f: stloc.s V_6 IL_0111: ldarg.0 IL_0112: ldflda ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter Program.<M>d__1.<>u__1"" IL_0117: initobj ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter"" IL_011d: ldarg.0 IL_011e: ldc.i4.m1 IL_011f: dup IL_0120: stloc.0 IL_0121: stfld ""int Program.<M>d__1.<>1__state"" IL_0126: ldloca.s V_6 IL_0128: call ""void System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.GetResult()"" IL_012d: nop // sequence point: return; IL_012e: leave.s IL_017e // sequence point: <hidden> IL_0130: ldarg.0 IL_0131: ldnull IL_0132: stfld ""B Program.<M>d__1.<b>5__2"" // sequence point: node = node.Parent; IL_0137: ldarg.0 IL_0138: ldarg.0 IL_0139: ldfld ""Node Program.<M>d__1.node"" IL_013e: ldfld ""Node Node.Parent"" IL_0143: stfld ""Node Program.<M>d__1.node"" // sequence point: } IL_0148: nop IL_0149: ldarg.0 IL_014a: ldnull IL_014b: stfld ""A Program.<M>d__1.<a>5__1"" // sequence point: while (node != null) IL_0150: ldarg.0 IL_0151: ldfld ""Node Program.<M>d__1.node"" IL_0156: ldnull IL_0157: cgt.un IL_0159: stloc.s V_7 // sequence point: <hidden> IL_015b: ldloc.s V_7 IL_015d: brtrue IL_001f IL_0162: leave.s IL_017e } catch System.Exception { // sequence point: <hidden> IL_0164: stloc.s V_8 IL_0166: ldarg.0 IL_0167: ldc.i4.s -2 IL_0169: stfld ""int Program.<M>d__1.<>1__state"" IL_016e: ldarg.0 IL_016f: ldflda ""System.Runtime.CompilerServices.AsyncTaskMethodBuilder Program.<M>d__1.<>t__builder"" IL_0174: ldloc.s V_8 IL_0176: call ""void System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetException(System.Exception)"" IL_017b: nop IL_017c: leave.s IL_0192 } // sequence point: } IL_017e: ldarg.0 IL_017f: ldc.i4.s -2 IL_0181: stfld ""int Program.<M>d__1.<>1__state"" // sequence point: <hidden> IL_0186: ldarg.0 IL_0187: ldflda ""System.Runtime.CompilerServices.AsyncTaskMethodBuilder Program.<M>d__1.<>t__builder"" IL_018c: call ""void System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult()"" IL_0191: nop IL_0192: ret } ", sequencePoints: "Program+<M>d__1.MoveNext", source: source); } [Fact] [WorkItem(28288, "https://github.com/dotnet/roslyn/issues/28288")] public void TestSequencePoints_28288() { var source = @" using System.Threading.Tasks; public class C { public static async Task Main() { object o = new C(); switch (o) { case C c: System.Console.Write(1); break; default: return; } if (M() != null) { } } private static object M() { return new C(); } }"; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("C.<Main>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 162 (0xa2) .maxstack 2 .locals init (int V_0, object V_1, bool V_2, System.Exception V_3) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int C.<Main>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: object o = new C(); IL_0008: ldarg.0 IL_0009: newobj ""C..ctor()"" IL_000e: stfld ""object C.<Main>d__0.<o>5__1"" // sequence point: switch (o) IL_0013: ldarg.0 IL_0014: ldarg.0 IL_0015: ldfld ""object C.<Main>d__0.<o>5__1"" IL_001a: stloc.1 // sequence point: <hidden> IL_001b: ldloc.1 IL_001c: stfld ""object C.<Main>d__0.<>s__3"" // sequence point: <hidden> IL_0021: ldarg.0 IL_0022: ldarg.0 IL_0023: ldfld ""object C.<Main>d__0.<>s__3"" IL_0028: isinst ""C"" IL_002d: stfld ""C C.<Main>d__0.<c>5__2"" IL_0032: ldarg.0 IL_0033: ldfld ""C C.<Main>d__0.<c>5__2"" IL_0038: brtrue.s IL_003c IL_003a: br.s IL_0047 // sequence point: <hidden> IL_003c: br.s IL_003e // sequence point: System.Console.Write(1); IL_003e: ldc.i4.1 IL_003f: call ""void System.Console.Write(int)"" IL_0044: nop // sequence point: break; IL_0045: br.s IL_0049 // sequence point: return; IL_0047: leave.s IL_0086 // sequence point: <hidden> IL_0049: ldarg.0 IL_004a: ldnull IL_004b: stfld ""C C.<Main>d__0.<c>5__2"" IL_0050: ldarg.0 IL_0051: ldnull IL_0052: stfld ""object C.<Main>d__0.<>s__3"" // sequence point: if (M() != null) IL_0057: call ""object C.M()"" IL_005c: ldnull IL_005d: cgt.un IL_005f: stloc.2 // sequence point: <hidden> IL_0060: ldloc.2 IL_0061: brfalse.s IL_0065 // sequence point: { IL_0063: nop // sequence point: } IL_0064: nop // sequence point: <hidden> IL_0065: leave.s IL_0086 } catch System.Exception { // sequence point: <hidden> IL_0067: stloc.3 IL_0068: ldarg.0 IL_0069: ldc.i4.s -2 IL_006b: stfld ""int C.<Main>d__0.<>1__state"" IL_0070: ldarg.0 IL_0071: ldnull IL_0072: stfld ""object C.<Main>d__0.<o>5__1"" IL_0077: ldarg.0 IL_0078: ldflda ""System.Runtime.CompilerServices.AsyncTaskMethodBuilder C.<Main>d__0.<>t__builder"" IL_007d: ldloc.3 IL_007e: call ""void System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetException(System.Exception)"" IL_0083: nop IL_0084: leave.s IL_00a1 } // sequence point: } IL_0086: ldarg.0 IL_0087: ldc.i4.s -2 IL_0089: stfld ""int C.<Main>d__0.<>1__state"" // sequence point: <hidden> IL_008e: ldarg.0 IL_008f: ldnull IL_0090: stfld ""object C.<Main>d__0.<o>5__1"" IL_0095: ldarg.0 IL_0096: ldflda ""System.Runtime.CompilerServices.AsyncTaskMethodBuilder C.<Main>d__0.<>t__builder"" IL_009b: call ""void System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult()"" IL_00a0: nop IL_00a1: ret } ", sequencePoints: "C+<Main>d__0.MoveNext", source: source); } [Fact] public void SwitchExpressionWithPattern() { string source = WithWindowsLineBreaks(@" class C { static string M(object o) { return o switch { int i => $""Number: {i}"", _ => ""Don't know"" }; } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.M", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M"" parameterNames=""o""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""55"" /> <slot kind=""temp"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""10"" endColumn=""11"" document=""1"" /> <entry offset=""0x4"" startLine=""6"" startColumn=""18"" endLine=""10"" endColumn=""10"" document=""1"" /> <entry offset=""0x5"" hidden=""true"" document=""1"" /> <entry offset=""0x14"" hidden=""true"" document=""1"" /> <entry offset=""0x16"" hidden=""true"" document=""1"" /> <entry offset=""0x18"" startLine=""8"" startColumn=""22"" endLine=""8"" endColumn=""36"" document=""1"" /> <entry offset=""0x2b"" startLine=""9"" startColumn=""18"" endLine=""9"" endColumn=""30"" document=""1"" /> <entry offset=""0x33"" hidden=""true"" document=""1"" /> <entry offset=""0x36"" startLine=""6"" startColumn=""9"" endLine=""10"" endColumn=""11"" document=""1"" /> <entry offset=""0x37"" hidden=""true"" document=""1"" /> <entry offset=""0x3b"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x3d""> <scope startOffset=""0x16"" endOffset=""0x2b""> <local name=""i"" il_index=""0"" il_start=""0x16"" il_end=""0x2b"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } #endregion #region DoStatement [Fact] public void DoStatement() { var source = WithWindowsLineBreaks( @"using System; public class SeqPointForWhile { public static void Main() { SeqPointForWhile obj = new SeqPointForWhile(); obj.While(234); } int field; public void While(int p) { do { p = (int)(p / 2); if (p > 100) { continue; } else if (p > 10) { field = 1; } else { break; } } while (p > 0); // SeqPt should be generated for [while (p > 0);] field = -1; } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""SeqPointForWhile"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""28"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""55"" document=""1"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""24"" document=""1"" /> <entry offset=""0x13"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x14""> <namespace name=""System"" /> <local name=""obj"" il_index=""0"" il_start=""0x0"" il_end=""0x14"" attributes=""0"" /> </scope> </method> <method containingType=""SeqPointForWhile"" name=""While"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""SeqPointForWhile"" methodName=""Main"" /> <encLocalSlotMap> <slot kind=""1"" offset=""71"" /> <slot kind=""1"" offset=""159"" /> <slot kind=""1"" offset=""11"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x2"" startLine=""16"" startColumn=""13"" endLine=""16"" endColumn=""30"" document=""1"" /> <entry offset=""0x7"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""25"" document=""1"" /> <entry offset=""0xd"" hidden=""true"" document=""1"" /> <entry offset=""0x10"" startLine=""19"" startColumn=""13"" endLine=""19"" endColumn=""14"" document=""1"" /> <entry offset=""0x11"" startLine=""20"" startColumn=""17"" endLine=""20"" endColumn=""26"" document=""1"" /> <entry offset=""0x13"" startLine=""22"" startColumn=""18"" endLine=""22"" endColumn=""29"" document=""1"" /> <entry offset=""0x19"" hidden=""true"" document=""1"" /> <entry offset=""0x1c"" startLine=""23"" startColumn=""13"" endLine=""23"" endColumn=""14"" document=""1"" /> <entry offset=""0x1d"" startLine=""24"" startColumn=""17"" endLine=""24"" endColumn=""27"" document=""1"" /> <entry offset=""0x24"" startLine=""25"" startColumn=""13"" endLine=""25"" endColumn=""14"" document=""1"" /> <entry offset=""0x25"" hidden=""true"" document=""1"" /> <entry offset=""0x27"" startLine=""27"" startColumn=""13"" endLine=""27"" endColumn=""14"" document=""1"" /> <entry offset=""0x28"" startLine=""28"" startColumn=""17"" endLine=""28"" endColumn=""23"" document=""1"" /> <entry offset=""0x2a"" startLine=""30"" startColumn=""9"" endLine=""30"" endColumn=""10"" document=""1"" /> <entry offset=""0x2b"" startLine=""30"" startColumn=""11"" endLine=""30"" endColumn=""25"" document=""1"" /> <entry offset=""0x30"" hidden=""true"" document=""1"" /> <entry offset=""0x33"" startLine=""32"" startColumn=""9"" endLine=""32"" endColumn=""20"" document=""1"" /> <entry offset=""0x3a"" startLine=""33"" startColumn=""5"" endLine=""33"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region Constructor [WorkItem(538317, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538317")] [Fact] public void ConstructorSequencePoints1() { var source = WithWindowsLineBreaks( @"namespace NS { public class MyClass { int intTest; public MyClass() { intTest = 123; } public MyClass(params int[] values) { intTest = values[0] + values[1] + values[2]; } public static int Main() { int intI = 1, intJ = 8; int intK = 3; // Can't step into Ctor MyClass mc = new MyClass(); // Can't step into Ctor mc = new MyClass(intI, intJ, intK); return mc.intTest - 12; } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); // Dev10 vs. Roslyn // // Default Ctor (no param) // Dev10 Roslyn // ====================================================================================== // Code size 18 (0x12) // Code size 16 (0x10) // .maxstack 8 .maxstack 8 //* IL_0000: ldarg.0 *IL_0000: ldarg.0 // IL_0001: call IL_0001: callvirt // instance void [mscorlib]System.Object::.ctor() instance void [mscorlib]System.Object::.ctor() // IL_0006: nop *IL_0006: nop //* IL_0007: nop //* IL_0008: ldarg.0 *IL_0007: ldarg.0 // IL_0009: ldc.i4.s 123 IL_0008: ldc.i4.s 123 // IL_000b: stfld int32 NS.MyClass::intTest IL_000a: stfld int32 NS.MyClass::intTest // IL_0010: nop //* IL_0011: ret *IL_000f: ret // ----------------------------------------------------------------------------------------- // SeqPoint: 0, 7 ,8, 0x10 0, 6, 7, 0xf c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""NS.MyClass"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""25"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""10"" document=""1"" /> <entry offset=""0x8"" startLine=""8"" startColumn=""13"" endLine=""8"" endColumn=""27"" document=""1"" /> <entry offset=""0x10"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> </sequencePoints> </method> <method containingType=""NS.MyClass"" name="".ctor"" parameterNames=""values""> <customDebugInfo> <forward declaringType=""NS.MyClass"" methodName="".ctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""44"" document=""1"" /> <entry offset=""0x7"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""10"" document=""1"" /> <entry offset=""0x8"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""57"" document=""1"" /> <entry offset=""0x19"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""10"" document=""1"" /> </sequencePoints> </method> <method containingType=""NS.MyClass"" name=""Main""> <customDebugInfo> <forward declaringType=""NS.MyClass"" methodName="".ctor"" /> <encLocalSlotMap> <slot kind=""0"" offset=""19"" /> <slot kind=""0"" offset=""29"" /> <slot kind=""0"" offset=""56"" /> <slot kind=""0"" offset=""126"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""10"" document=""1"" /> <entry offset=""0x1"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""25"" document=""1"" /> <entry offset=""0x3"" startLine=""18"" startColumn=""27"" endLine=""18"" endColumn=""35"" document=""1"" /> <entry offset=""0x5"" startLine=""19"" startColumn=""13"" endLine=""19"" endColumn=""26"" document=""1"" /> <entry offset=""0x7"" startLine=""22"" startColumn=""13"" endLine=""22"" endColumn=""40"" document=""1"" /> <entry offset=""0xd"" startLine=""25"" startColumn=""13"" endLine=""25"" endColumn=""48"" document=""1"" /> <entry offset=""0x25"" startLine=""27"" startColumn=""13"" endLine=""27"" endColumn=""36"" document=""1"" /> <entry offset=""0x32"" startLine=""28"" startColumn=""9"" endLine=""28"" endColumn=""10"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x35""> <local name=""intI"" il_index=""0"" il_start=""0x0"" il_end=""0x35"" attributes=""0"" /> <local name=""intJ"" il_index=""1"" il_start=""0x0"" il_end=""0x35"" attributes=""0"" /> <local name=""intK"" il_index=""2"" il_start=""0x0"" il_end=""0x35"" attributes=""0"" /> <local name=""mc"" il_index=""3"" il_start=""0x0"" il_end=""0x35"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void ConstructorSequencePoints2() { TestSequencePoints( @"using System; class D { public D() : [|base()|] { } }", TestOptions.DebugDll); TestSequencePoints( @"using System; class D { static D() [|{|] } }", TestOptions.DebugDll); TestSequencePoints( @"using System; class A : Attribute {} class D { [A] public D() : [|base()|] { } }", TestOptions.DebugDll); TestSequencePoints( @"using System; class A : Attribute {} class D { [A] public D() : [|base()|] { } }", TestOptions.DebugDll); TestSequencePoints( @"using System; class A : Attribute {} class C { } class D { [A] [|public D()|] { } }", TestOptions.DebugDll); } #endregion #region Destructor [Fact] public void Destructors() { var source = @" using System; public class Base { ~Base() { Console.WriteLine(); } } public class Derived : Base { ~Derived() { Console.WriteLine(); } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Base"" name=""Finalize""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x2"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""29"" document=""1"" /> <entry offset=""0xa"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x12"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x13""> <namespace name=""System"" /> </scope> </method> <method containingType=""Derived"" name=""Finalize""> <customDebugInfo> <forward declaringType=""Base"" methodName=""Finalize"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> <entry offset=""0x2"" startLine=""16"" startColumn=""9"" endLine=""16"" endColumn=""29"" document=""1"" /> <entry offset=""0xa"" startLine=""17"" startColumn=""5"" endLine=""17"" endColumn=""6"" document=""1"" /> <entry offset=""0x12"" startLine=""17"" startColumn=""5"" endLine=""17"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region Field and Property Initializers [Fact] [WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")] public void TestPartialClassFieldInitializers() { var text1 = WithWindowsLineBreaks(@" public partial class C { int x = 1; } "); var text2 = WithWindowsLineBreaks(@" public partial class C { int y = 1; static void Main() { C c = new C(); } } "); // Having a unique name here may be important. The infrastructure of the pdb to xml conversion // loads the assembly into the ReflectionOnlyLoadFrom context. // So it's probably a good idea to have a new name for each assembly. var compilation = CreateCompilation(new SyntaxTree[] { Parse(text1, "a.cs"), Parse(text2, "b.cs") }); compilation.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name=""b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""BB-7A-A6-D2-B2-32-59-43-8C-98-7F-E1-98-8D-F0-94-68-E9-EB-80"" /> <file id=""2"" name=""a.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""B4-EA-18-73-D2-0E-7F-15-51-4C-68-86-40-DF-E3-C3-97-9D-F6-B7"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""Main"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""15"" document=""2"" /> <entry offset=""0x7"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""15"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.Pdb); compilation.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name=""a.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""B4-EA-18-73-D2-0E-7F-15-51-4C-68-86-40-DF-E3-C3-97-9D-F6-B7"" /> <file id=""2"" name=""b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""BB-7A-A6-D2-B2-32-59-43-8C-98-7F-E1-98-8D-F0-94-68-E9-EB-80"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""15"" document=""1"" /> <entry offset=""0x7"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""15"" document=""2"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.PortablePdb); } [Fact] [WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")] public void TestPartialClassFieldInitializersWithLineDirectives() { var text1 = WithWindowsLineBreaks(@" using System; public partial class C { int x = 1; #line 12 ""foo.cs"" int z = Math.Abs(-3); int w = Math.Abs(4); #line 17 ""bar.cs"" double zed = Math.Sin(5); } #pragma checksum ""mah.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" "); var text2 = WithWindowsLineBreaks(@" using System; public partial class C { int y = 1; int x2 = 1; #line 12 ""foo2.cs"" int z2 = Math.Abs(-3); int w2 = Math.Abs(4); } "); var text3 = WithWindowsLineBreaks(@" using System; public partial class C { #line 112 ""mah.cs"" int y3 = 1; int x3 = 1; int z3 = Math.Abs(-3); #line default int w3 = Math.Abs(4); double zed3 = Math.Sin(5); C() { Console.WriteLine(""hi""); } static void Main() { C c = new C(); } } "); //Having a unique name here may be important. The infrastructure of the pdb to xml conversion //loads the assembly into the ReflectionOnlyLoadFrom context. //So it's probably a good idea to have a new name for each assembly. var compilation = CreateCompilation(new[] { Parse(text1, "a.cs"), Parse(text2, "b.cs"), Parse(text3, "a.cs") }, options: TestOptions.DebugDll); compilation.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name=""a.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""E2-3B-47-02-DC-E4-8D-B4-FF-00-67-90-31-68-74-C0-06-D7-39-0E"" /> <file id=""2"" name=""b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""DB-CE-E5-E9-CB-53-E5-EF-C1-7F-2C-53-EC-02-FE-5C-34-2C-EF-94"" /> <file id=""3"" name=""foo.cs"" language=""C#"" /> <file id=""4"" name=""bar.cs"" language=""C#"" /> <file id=""5"" name=""foo2.cs"" language=""C#"" /> <file id=""6"" name=""mah.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D9"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""15"" document=""1"" /> <entry offset=""0x7"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""26"" document=""3"" /> <entry offset=""0x14"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""25"" document=""3"" /> <entry offset=""0x20"" startLine=""17"" startColumn=""5"" endLine=""17"" endColumn=""30"" document=""4"" /> <entry offset=""0x34"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""15"" document=""2"" /> <entry offset=""0x3b"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""16"" document=""2"" /> <entry offset=""0x42"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""27"" document=""5"" /> <entry offset=""0x4f"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""26"" document=""5"" /> <entry offset=""0x5b"" startLine=""112"" startColumn=""5"" endLine=""112"" endColumn=""16"" document=""6"" /> <entry offset=""0x62"" startLine=""113"" startColumn=""5"" endLine=""113"" endColumn=""16"" document=""6"" /> <entry offset=""0x69"" startLine=""114"" startColumn=""5"" endLine=""114"" endColumn=""27"" document=""6"" /> <entry offset=""0x76"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""26"" document=""1"" /> <entry offset=""0x82"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""31"" document=""1"" /> <entry offset=""0x96"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""8"" document=""1"" /> <entry offset=""0x9d"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x9e"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""33"" document=""1"" /> <entry offset=""0xa9"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.PortablePdb); } [WorkItem(543313, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543313")] [Fact] public void TestFieldInitializerExpressionLambda() { var source = @" class C { int x = ((System.Func<int, int>)(z => z))(1); } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLambdaMap> <methodOrdinal>1</methodOrdinal> <lambda offset=""-6"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""50"" document=""1"" /> </sequencePoints> </method> <method containingType=""C+&lt;&gt;c"" name=""&lt;.ctor&gt;b__1_0"" parameterNames=""z""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""43"" endLine=""4"" endColumn=""44"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void FieldInitializerSequencePointSpans() { var source = @" class C { int x = 1, y = 2; } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""14"" document=""1"" /> <entry offset=""0x7"" startLine=""4"" startColumn=""16"" endLine=""4"" endColumn=""21"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region Auto-Property [WorkItem(820806, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/820806")] [Fact] public void BreakpointForAutoImplementedProperty() { var source = @" public class C { public static int AutoProp1 { get; private set; } internal string AutoProp2 { get; set; } internal protected C AutoProp3 { internal get; set; } } "; var comp = CreateCompilation(source, options: TestOptions.DebugDll); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""get_AutoProp1""> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""35"" endLine=""4"" endColumn=""39"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""set_AutoProp1"" parameterNames=""value""> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""40"" endLine=""4"" endColumn=""52"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""get_AutoProp2""> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""33"" endLine=""5"" endColumn=""37"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""set_AutoProp2"" parameterNames=""value""> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""38"" endLine=""5"" endColumn=""42"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""get_AutoProp3""> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""38"" endLine=""6"" endColumn=""51"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""set_AutoProp3"" parameterNames=""value""> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""52"" endLine=""6"" endColumn=""56"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void PropertyDeclaration() { TestSequencePoints( @"using System; public class C { int P { [|get;|] set; } }", TestOptions.DebugDll); TestSequencePoints( @"using System; public class C { int P { get; [|set;|] } }", TestOptions.DebugDll); TestSequencePoints( @"using System; public class C { int P { get [|{|] return 0; } } }", TestOptions.DebugDll); TestSequencePoints( @"using System; public class C { int P { get; } = [|int.Parse(""42"")|]; }", TestOptions.DebugDll, TestOptions.Regular); } #endregion #region ReturnStatement [Fact] public void Return_Implicit() { var source = @"class C { static void Main() { } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void Return_Explicit() { var source = @"class C { static void Main() { return; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""5"" startColumn=""9"" endLine=""5"" endColumn=""16"" document=""1"" /> <entry offset=""0x3"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(538298, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538298")] [Fact] public void RegressSeqPtEndOfMethodAfterReturn() { var source = WithWindowsLineBreaks( @"using System; public class SeqPointAfterReturn { public static int Main() { int ret = 0; ReturnVoid(100); if (field != ""Even"") ret = 1; ReturnVoid(99); if (field != ""Odd"") ret = ret + 1; string rets = ReturnValue(101); if (rets != ""Odd"") ret = ret + 1; rets = ReturnValue(102); if (rets != ""Even"") ret = ret + 1; return ret; } static string field; public static void ReturnVoid(int p) { int x = (int)(p % 2); if (x == 0) { field = ""Even""; } else { field = ""Odd""; } } public static string ReturnValue(int p) { int x = (int)(p % 2); if (x == 0) { return ""Even""; } else { return ""Odd""; } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); // Expected are current actual output plus Two extra expected SeqPt: // <entry offset=""0x73"" startLine=""25"" startColumn=""5"" endLine=""25"" endColumn=""6"" document=""1"" /> // <entry offset=""0x22"" startLine=""52"" startColumn=""5"" endLine=""52"" endColumn=""6"" document=""1"" /> // // Note: NOT include other differences between Roslyn and Dev10, as they are filed in separated bugs c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""SeqPointAfterReturn"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> <slot kind=""0"" offset=""204"" /> <slot kind=""1"" offset=""59"" /> <slot kind=""1"" offset=""138"" /> <slot kind=""1"" offset=""238"" /> <slot kind=""1"" offset=""330"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""21"" document=""1"" /> <entry offset=""0x3"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""25"" document=""1"" /> <entry offset=""0xb"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""29"" document=""1"" /> <entry offset=""0x1b"" hidden=""true"" document=""1"" /> <entry offset=""0x1e"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""21"" document=""1"" /> <entry offset=""0x20"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""24"" document=""1"" /> <entry offset=""0x28"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""28"" document=""1"" /> <entry offset=""0x38"" hidden=""true"" document=""1"" /> <entry offset=""0x3b"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""27"" document=""1"" /> <entry offset=""0x3f"" startLine=""16"" startColumn=""9"" endLine=""16"" endColumn=""40"" document=""1"" /> <entry offset=""0x47"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""27"" document=""1"" /> <entry offset=""0x54"" hidden=""true"" document=""1"" /> <entry offset=""0x58"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""27"" document=""1"" /> <entry offset=""0x5c"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""33"" document=""1"" /> <entry offset=""0x64"" startLine=""21"" startColumn=""9"" endLine=""21"" endColumn=""28"" document=""1"" /> <entry offset=""0x71"" hidden=""true"" document=""1"" /> <entry offset=""0x75"" startLine=""22"" startColumn=""13"" endLine=""22"" endColumn=""27"" document=""1"" /> <entry offset=""0x79"" startLine=""24"" startColumn=""9"" endLine=""24"" endColumn=""20"" document=""1"" /> <entry offset=""0x7e"" startLine=""25"" startColumn=""5"" endLine=""25"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x81""> <namespace name=""System"" /> <local name=""ret"" il_index=""0"" il_start=""0x0"" il_end=""0x81"" attributes=""0"" /> <local name=""rets"" il_index=""1"" il_start=""0x0"" il_end=""0x81"" attributes=""0"" /> </scope> </method> <method containingType=""SeqPointAfterReturn"" name=""ReturnVoid"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""SeqPointAfterReturn"" methodName=""Main"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> <slot kind=""1"" offset=""42"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""29"" startColumn=""5"" endLine=""29"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""30"" startColumn=""9"" endLine=""30"" endColumn=""30"" document=""1"" /> <entry offset=""0x5"" startLine=""31"" startColumn=""9"" endLine=""31"" endColumn=""20"" document=""1"" /> <entry offset=""0xa"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""32"" startColumn=""9"" endLine=""32"" endColumn=""10"" document=""1"" /> <entry offset=""0xe"" startLine=""33"" startColumn=""13"" endLine=""33"" endColumn=""28"" document=""1"" /> <entry offset=""0x18"" startLine=""34"" startColumn=""9"" endLine=""34"" endColumn=""10"" document=""1"" /> <entry offset=""0x19"" hidden=""true"" document=""1"" /> <entry offset=""0x1b"" startLine=""36"" startColumn=""9"" endLine=""36"" endColumn=""10"" document=""1"" /> <entry offset=""0x1c"" startLine=""37"" startColumn=""13"" endLine=""37"" endColumn=""27"" document=""1"" /> <entry offset=""0x26"" startLine=""38"" startColumn=""9"" endLine=""38"" endColumn=""10"" document=""1"" /> <entry offset=""0x27"" startLine=""39"" startColumn=""5"" endLine=""39"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x28""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x28"" attributes=""0"" /> </scope> </method> <method containingType=""SeqPointAfterReturn"" name=""ReturnValue"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""SeqPointAfterReturn"" methodName=""Main"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> <slot kind=""1"" offset=""42"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""42"" startColumn=""5"" endLine=""42"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""43"" startColumn=""9"" endLine=""43"" endColumn=""30"" document=""1"" /> <entry offset=""0x5"" startLine=""44"" startColumn=""9"" endLine=""44"" endColumn=""20"" document=""1"" /> <entry offset=""0xa"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""45"" startColumn=""9"" endLine=""45"" endColumn=""10"" document=""1"" /> <entry offset=""0xe"" startLine=""46"" startColumn=""13"" endLine=""46"" endColumn=""27"" document=""1"" /> <entry offset=""0x16"" startLine=""49"" startColumn=""9"" endLine=""49"" endColumn=""10"" document=""1"" /> <entry offset=""0x17"" startLine=""50"" startColumn=""13"" endLine=""50"" endColumn=""26"" document=""1"" /> <entry offset=""0x1f"" startLine=""52"" startColumn=""5"" endLine=""52"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x21""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x21"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } #endregion #region Exception Handling [WorkItem(542064, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542064")] [Fact] public void ExceptionHandling() { var source = WithWindowsLineBreaks(@" class Test { static int Main() { int ret = 0; // stop 1 try { // stop 2 throw new System.Exception(); // stop 3 } catch (System.Exception e) // stop 4 { // stop 5 ret = 1; // stop 6 } try { // stop 7 throw new System.Exception(); // stop 8 } catch // stop 9 { // stop 10 return ret; // stop 11 } } } "); // Dev12 inserts an additional sequence point on catch clause, just before // the exception object is assigned to the variable. We don't place that sequence point. // Also the scope of he exception variable is different. var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("Test.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Test"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> <slot kind=""0"" offset=""147"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""21"" document=""1"" /> <entry offset=""0x3"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""10"" document=""1"" /> <entry offset=""0x4"" startLine=""9"" startColumn=""13"" endLine=""9"" endColumn=""42"" document=""1"" /> <entry offset=""0xa"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""35"" document=""1"" /> <entry offset=""0xb"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""10"" document=""1"" /> <entry offset=""0xc"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""21"" document=""1"" /> <entry offset=""0xe"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0x11"" hidden=""true"" document=""1"" /> <entry offset=""0x12"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""10"" document=""1"" /> <entry offset=""0x13"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""42"" document=""1"" /> <entry offset=""0x19"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""14"" document=""1"" /> <entry offset=""0x1a"" startLine=""21"" startColumn=""9"" endLine=""21"" endColumn=""10"" document=""1"" /> <entry offset=""0x1b"" startLine=""22"" startColumn=""13"" endLine=""22"" endColumn=""24"" document=""1"" /> <entry offset=""0x1f"" startLine=""25"" startColumn=""5"" endLine=""25"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x21""> <local name=""ret"" il_index=""0"" il_start=""0x0"" il_end=""0x21"" attributes=""0"" /> <scope startOffset=""0xa"" endOffset=""0x11""> <local name=""e"" il_index=""1"" il_start=""0xa"" il_end=""0x11"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(2911, "https://github.com/dotnet/roslyn/issues/2911")] [Fact] public void ExceptionHandling_Filter_Debug1() { var source = WithWindowsLineBreaks(@" using System; using System.IO; class Test { static string filter(Exception e) { return null; } static void Main() { try { throw new InvalidOperationException(); } catch (IOException e) when (filter(e) != null) { Console.WriteLine(); } catch (Exception e) when (filter(e) != null) { Console.WriteLine(); } } } "); var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); v.VerifyIL("Test.Main", @" { // Code size 89 (0x59) .maxstack 2 .locals init (System.IO.IOException V_0, //e bool V_1, System.Exception V_2, //e bool V_3) -IL_0000: nop .try { -IL_0001: nop -IL_0002: newobj ""System.InvalidOperationException..ctor()"" IL_0007: throw } filter { ~IL_0008: isinst ""System.IO.IOException"" IL_000d: dup IL_000e: brtrue.s IL_0014 IL_0010: pop IL_0011: ldc.i4.0 IL_0012: br.s IL_0023 IL_0014: stloc.0 -IL_0015: ldloc.0 IL_0016: call ""string Test.filter(System.Exception)"" IL_001b: ldnull IL_001c: cgt.un IL_001e: stloc.1 ~IL_001f: ldloc.1 IL_0020: ldc.i4.0 IL_0021: cgt.un IL_0023: endfilter } // end filter { // handler ~IL_0025: pop -IL_0026: nop -IL_0027: call ""void System.Console.WriteLine()"" IL_002c: nop -IL_002d: nop IL_002e: leave.s IL_0058 } filter { ~IL_0030: isinst ""System.Exception"" IL_0035: dup IL_0036: brtrue.s IL_003c IL_0038: pop IL_0039: ldc.i4.0 IL_003a: br.s IL_004b IL_003c: stloc.2 -IL_003d: ldloc.2 IL_003e: call ""string Test.filter(System.Exception)"" IL_0043: ldnull IL_0044: cgt.un IL_0046: stloc.3 ~IL_0047: ldloc.3 IL_0048: ldc.i4.0 IL_0049: cgt.un IL_004b: endfilter } // end filter { // handler ~IL_004d: pop -IL_004e: nop -IL_004f: call ""void System.Console.WriteLine()"" IL_0054: nop -IL_0055: nop IL_0056: leave.s IL_0058 } -IL_0058: ret } ", sequencePoints: "Test.Main"); v.VerifyPdb("Test.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Test"" name=""Main""> <customDebugInfo> <forward declaringType=""Test"" methodName=""filter"" parameterNames=""e"" /> <encLocalSlotMap> <slot kind=""0"" offset=""104"" /> <slot kind=""1"" offset=""120"" /> <slot kind=""0"" offset=""216"" /> <slot kind=""1"" offset=""230"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x2"" startLine=""16"" startColumn=""13"" endLine=""16"" endColumn=""51"" document=""1"" /> <entry offset=""0x8"" hidden=""true"" document=""1"" /> <entry offset=""0x15"" startLine=""18"" startColumn=""31"" endLine=""18"" endColumn=""55"" document=""1"" /> <entry offset=""0x1f"" hidden=""true"" document=""1"" /> <entry offset=""0x25"" hidden=""true"" document=""1"" /> <entry offset=""0x26"" startLine=""19"" startColumn=""9"" endLine=""19"" endColumn=""10"" document=""1"" /> <entry offset=""0x27"" startLine=""20"" startColumn=""13"" endLine=""20"" endColumn=""33"" document=""1"" /> <entry offset=""0x2d"" startLine=""21"" startColumn=""9"" endLine=""21"" endColumn=""10"" document=""1"" /> <entry offset=""0x30"" hidden=""true"" document=""1"" /> <entry offset=""0x3d"" startLine=""22"" startColumn=""29"" endLine=""22"" endColumn=""53"" document=""1"" /> <entry offset=""0x47"" hidden=""true"" document=""1"" /> <entry offset=""0x4d"" hidden=""true"" document=""1"" /> <entry offset=""0x4e"" startLine=""23"" startColumn=""9"" endLine=""23"" endColumn=""10"" document=""1"" /> <entry offset=""0x4f"" startLine=""24"" startColumn=""13"" endLine=""24"" endColumn=""33"" document=""1"" /> <entry offset=""0x55"" startLine=""25"" startColumn=""9"" endLine=""25"" endColumn=""10"" document=""1"" /> <entry offset=""0x58"" startLine=""26"" startColumn=""5"" endLine=""26"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x59""> <scope startOffset=""0x8"" endOffset=""0x30""> <local name=""e"" il_index=""0"" il_start=""0x8"" il_end=""0x30"" attributes=""0"" /> </scope> <scope startOffset=""0x30"" endOffset=""0x58""> <local name=""e"" il_index=""2"" il_start=""0x30"" il_end=""0x58"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(2911, "https://github.com/dotnet/roslyn/issues/2911")] [Fact] public void ExceptionHandling_Filter_Debug2() { var source = WithWindowsLineBreaks(@" class Test { static void Main() { try { throw new System.Exception(); } catch when (F()) { System.Console.WriteLine(); } } private static bool F() { return true; } } "); var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); v.VerifyIL("Test.Main", @" { // Code size 33 (0x21) .maxstack 2 .locals init (bool V_0) -IL_0000: nop .try { -IL_0001: nop -IL_0002: newobj ""System.Exception..ctor()"" IL_0007: throw } filter { ~IL_0008: pop -IL_0009: call ""bool Test.F()"" IL_000e: stloc.0 ~IL_000f: ldloc.0 IL_0010: ldc.i4.0 IL_0011: cgt.un IL_0013: endfilter } // end filter { // handler ~IL_0015: pop -IL_0016: nop -IL_0017: call ""void System.Console.WriteLine()"" IL_001c: nop -IL_001d: nop IL_001e: leave.s IL_0020 } -IL_0020: ret } ", sequencePoints: "Test.Main"); v.VerifyPdb("Test.Main", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Test"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""1"" offset=""95"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""10"" document=""1"" /> <entry offset=""0x2"" startLine=""8"" startColumn=""13"" endLine=""8"" endColumn=""42"" document=""1"" /> <entry offset=""0x8"" hidden=""true"" document=""1"" /> <entry offset=""0x9"" startLine=""10"" startColumn=""15"" endLine=""10"" endColumn=""25"" document=""1"" /> <entry offset=""0xf"" hidden=""true"" document=""1"" /> <entry offset=""0x15"" hidden=""true"" document=""1"" /> <entry offset=""0x16"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0x17"" startLine=""12"" startColumn=""13"" endLine=""12"" endColumn=""40"" document=""1"" /> <entry offset=""0x1d"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x20"" startLine=""14"" startColumn=""5"" endLine=""14"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(2911, "https://github.com/dotnet/roslyn/issues/2911")] [Fact] public void ExceptionHandling_Filter_Debug3() { var source = WithWindowsLineBreaks(@" class Test { static bool a = true; static void Main() { try { throw new System.Exception(); } catch when (a) { System.Console.WriteLine(); } } } "); var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); v.VerifyIL("Test.Main", @" { // Code size 33 (0x21) .maxstack 2 .locals init (bool V_0) -IL_0000: nop .try { -IL_0001: nop -IL_0002: newobj ""System.Exception..ctor()"" IL_0007: throw } filter { ~IL_0008: pop -IL_0009: ldsfld ""bool Test.a"" IL_000e: stloc.0 ~IL_000f: ldloc.0 IL_0010: ldc.i4.0 IL_0011: cgt.un IL_0013: endfilter } // end filter { // handler ~IL_0015: pop -IL_0016: nop -IL_0017: call ""void System.Console.WriteLine()"" IL_001c: nop -IL_001d: nop IL_001e: leave.s IL_0020 } -IL_0020: ret } ", sequencePoints: "Test.Main"); v.VerifyPdb("Test.Main", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Test"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""1"" offset=""95"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x2"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""42"" document=""1"" /> <entry offset=""0x8"" hidden=""true"" document=""1"" /> <entry offset=""0x9"" startLine=""12"" startColumn=""15"" endLine=""12"" endColumn=""23"" document=""1"" /> <entry offset=""0xf"" hidden=""true"" document=""1"" /> <entry offset=""0x15"" hidden=""true"" document=""1"" /> <entry offset=""0x16"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x17"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""40"" document=""1"" /> <entry offset=""0x1d"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x20"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(2911, "https://github.com/dotnet/roslyn/issues/2911")] [Fact] public void ExceptionHandling_Filter_Release3() { var source = @" class Test { static bool a = true; static void Main() { try { throw new System.Exception(); } catch when (a) { System.Console.WriteLine(); } } } "; var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll)); v.VerifyIL("Test.Main", @" { // Code size 26 (0x1a) .maxstack 2 .try { -IL_0000: newobj ""System.Exception..ctor()"" IL_0005: throw } filter { ~IL_0006: pop -IL_0007: ldsfld ""bool Test.a"" IL_000c: ldc.i4.0 IL_000d: cgt.un IL_000f: endfilter } // end filter { // handler ~IL_0011: pop -IL_0012: call ""void System.Console.WriteLine()"" -IL_0017: leave.s IL_0019 } -IL_0019: ret } ", sequencePoints: "Test.Main"); v.VerifyPdb("Test.Main", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Test"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""42"" document=""1"" /> <entry offset=""0x6"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" startLine=""12"" startColumn=""15"" endLine=""12"" endColumn=""23"" document=""1"" /> <entry offset=""0x11"" hidden=""true"" document=""1"" /> <entry offset=""0x12"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""40"" document=""1"" /> <entry offset=""0x17"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x19"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(778655, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/778655")] [Fact] public void BranchToStartOfTry() { string source = WithWindowsLineBreaks(@" using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string str = null; bool isEmpty = string.IsNullOrEmpty(str); // isEmpty is always true here, so it should never go thru this if statement. if (!isEmpty) { throw new Exception(); } try { Console.WriteLine(); } catch { } } } "); // Note the hidden sequence point @IL_0019. var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main"" parameterNames=""args""> <customDebugInfo> <using> <namespace usingCount=""2"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""18"" /> <slot kind=""0"" offset=""44"" /> <slot kind=""1"" offset=""177"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""27"" document=""1"" /> <entry offset=""0x3"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""50"" document=""1"" /> <entry offset=""0xa"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""22"" document=""1"" /> <entry offset=""0xf"" hidden=""true"" document=""1"" /> <entry offset=""0x12"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x13"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""35"" document=""1"" /> <entry offset=""0x19"" hidden=""true"" document=""1"" /> <entry offset=""0x1a"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""10"" document=""1"" /> <entry offset=""0x1b"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""33"" document=""1"" /> <entry offset=""0x21"" startLine=""19"" startColumn=""9"" endLine=""19"" endColumn=""10"" document=""1"" /> <entry offset=""0x24"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""14"" document=""1"" /> <entry offset=""0x25"" startLine=""21"" startColumn=""9"" endLine=""21"" endColumn=""10"" document=""1"" /> <entry offset=""0x26"" startLine=""22"" startColumn=""9"" endLine=""22"" endColumn=""10"" document=""1"" /> <entry offset=""0x29"" startLine=""23"" startColumn=""5"" endLine=""23"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2a""> <namespace name=""System"" /> <namespace name=""System.Collections.Generic"" /> <local name=""str"" il_index=""0"" il_start=""0x0"" il_end=""0x2a"" attributes=""0"" /> <local name=""isEmpty"" il_index=""1"" il_start=""0x0"" il_end=""0x2a"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } #endregion #region UsingStatement [Fact] public void UsingStatement_EmbeddedStatement() { var source = WithWindowsLineBreaks(@" public class DisposableClass : System.IDisposable { public DisposableClass(int a) { } public void Dispose() { } } class C { static void Main() { using (DisposableClass a = new DisposableClass(1), b = new DisposableClass(2)) System.Console.WriteLine(""First""); } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.Main", sequencePoints: "C.Main", source: source, expectedIL: @" { // Code size 53 (0x35) .maxstack 1 .locals init (DisposableClass V_0, //a DisposableClass V_1) //b // sequence point: { IL_0000: nop // sequence point: DisposableClass a = new DisposableClass(1) IL_0001: ldc.i4.1 IL_0002: newobj ""DisposableClass..ctor(int)"" IL_0007: stloc.0 .try { // sequence point: b = new DisposableClass(2) IL_0008: ldc.i4.2 IL_0009: newobj ""DisposableClass..ctor(int)"" IL_000e: stloc.1 .try { // sequence point: System.Console.WriteLine(""First""); IL_000f: ldstr ""First"" IL_0014: call ""void System.Console.WriteLine(string)"" IL_0019: nop IL_001a: leave.s IL_0027 } finally { // sequence point: <hidden> IL_001c: ldloc.1 IL_001d: brfalse.s IL_0026 IL_001f: ldloc.1 IL_0020: callvirt ""void System.IDisposable.Dispose()"" IL_0025: nop // sequence point: <hidden> IL_0026: endfinally } // sequence point: <hidden> IL_0027: leave.s IL_0034 } finally { // sequence point: <hidden> IL_0029: ldloc.0 IL_002a: brfalse.s IL_0033 IL_002c: ldloc.0 IL_002d: callvirt ""void System.IDisposable.Dispose()"" IL_0032: nop // sequence point: <hidden> IL_0033: endfinally } // sequence point: } IL_0034: ret } "); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <forward declaringType=""DisposableClass"" methodName="".ctor"" parameterNames=""a"" /> <encLocalSlotMap> <slot kind=""0"" offset=""34"" /> <slot kind=""0"" offset=""62"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""12"" startColumn=""16"" endLine=""12"" endColumn=""58"" document=""1"" /> <entry offset=""0x8"" startLine=""12"" startColumn=""60"" endLine=""12"" endColumn=""86"" document=""1"" /> <entry offset=""0xf"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""47"" document=""1"" /> <entry offset=""0x1c"" hidden=""true"" document=""1"" /> <entry offset=""0x26"" hidden=""true"" document=""1"" /> <entry offset=""0x27"" hidden=""true"" document=""1"" /> <entry offset=""0x29"" hidden=""true"" document=""1"" /> <entry offset=""0x33"" hidden=""true"" document=""1"" /> <entry offset=""0x34"" startLine=""14"" startColumn=""5"" endLine=""14"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x35""> <scope startOffset=""0x1"" endOffset=""0x34""> <local name=""a"" il_index=""0"" il_start=""0x1"" il_end=""0x34"" attributes=""0"" /> <local name=""b"" il_index=""1"" il_start=""0x1"" il_end=""0x34"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void UsingStatement_Block() { var source = WithWindowsLineBreaks(@" public class DisposableClass : System.IDisposable { public DisposableClass(int a) { } public void Dispose() { } } class C { static void Main() { using (DisposableClass c = new DisposableClass(3), d = new DisposableClass(4)) { System.Console.WriteLine(""Second""); } } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.Main", sequencePoints: "C.Main", source: source, expectedIL: @" { // Code size 55 (0x37) .maxstack 1 .locals init (DisposableClass V_0, //c DisposableClass V_1) //d // sequence point: { IL_0000: nop // sequence point: DisposableClass c = new DisposableClass(3) IL_0001: ldc.i4.3 IL_0002: newobj ""DisposableClass..ctor(int)"" IL_0007: stloc.0 .try { // sequence point: d = new DisposableClass(4) IL_0008: ldc.i4.4 IL_0009: newobj ""DisposableClass..ctor(int)"" IL_000e: stloc.1 .try { // sequence point: { IL_000f: nop // sequence point: System.Console.WriteLine(""Second""); IL_0010: ldstr ""Second"" IL_0015: call ""void System.Console.WriteLine(string)"" IL_001a: nop // sequence point: } IL_001b: nop IL_001c: leave.s IL_0029 } finally { // sequence point: <hidden> IL_001e: ldloc.1 IL_001f: brfalse.s IL_0028 IL_0021: ldloc.1 IL_0022: callvirt ""void System.IDisposable.Dispose()"" IL_0027: nop // sequence point: <hidden> IL_0028: endfinally } // sequence point: <hidden> IL_0029: leave.s IL_0036 } finally { // sequence point: <hidden> IL_002b: ldloc.0 IL_002c: brfalse.s IL_0035 IL_002e: ldloc.0 IL_002f: callvirt ""void System.IDisposable.Dispose()"" IL_0034: nop // sequence point: <hidden> IL_0035: endfinally } // sequence point: } IL_0036: ret } " ); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <forward declaringType=""DisposableClass"" methodName="".ctor"" parameterNames=""a"" /> <encLocalSlotMap> <slot kind=""0"" offset=""34"" /> <slot kind=""0"" offset=""62"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""12"" startColumn=""16"" endLine=""12"" endColumn=""58"" document=""1"" /> <entry offset=""0x8"" startLine=""12"" startColumn=""60"" endLine=""12"" endColumn=""86"" document=""1"" /> <entry offset=""0xf"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x10"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""48"" document=""1"" /> <entry offset=""0x1b"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x1e"" hidden=""true"" document=""1"" /> <entry offset=""0x28"" hidden=""true"" document=""1"" /> <entry offset=""0x29"" hidden=""true"" document=""1"" /> <entry offset=""0x2b"" hidden=""true"" document=""1"" /> <entry offset=""0x35"" hidden=""true"" document=""1"" /> <entry offset=""0x36"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x37""> <scope startOffset=""0x1"" endOffset=""0x36""> <local name=""c"" il_index=""0"" il_start=""0x1"" il_end=""0x36"" attributes=""0"" /> <local name=""d"" il_index=""1"" il_start=""0x1"" il_end=""0x36"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(18844, "https://github.com/dotnet/roslyn/issues/18844")] [Fact] public void UsingStatement_EmbeddedConditional() { var source = @" class C { bool F() { bool x = true; bool value = false; using (var stream = new System.IO.MemoryStream()) if (x) { value = true; } else value = false; return value; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.F", @" { // Code size 45 (0x2d) .maxstack 1 .locals init (bool V_0, //x bool V_1, //value System.IO.MemoryStream V_2, //stream bool V_3, bool V_4) // sequence point: { IL_0000: nop // sequence point: bool x = true; IL_0001: ldc.i4.1 IL_0002: stloc.0 // sequence point: bool value = false; IL_0003: ldc.i4.0 IL_0004: stloc.1 // sequence point: var stream = new System.IO.MemoryStream() IL_0005: newobj ""System.IO.MemoryStream..ctor()"" IL_000a: stloc.2 .try { // sequence point: if (x) IL_000b: ldloc.0 IL_000c: stloc.3 // sequence point: <hidden> IL_000d: ldloc.3 IL_000e: brfalse.s IL_0016 // sequence point: { IL_0010: nop // sequence point: value = true; IL_0011: ldc.i4.1 IL_0012: stloc.1 // sequence point: } IL_0013: nop // sequence point: <hidden> IL_0014: br.s IL_0018 // sequence point: value = false; IL_0016: ldc.i4.0 IL_0017: stloc.1 // sequence point: <hidden> IL_0018: leave.s IL_0025 } finally { // sequence point: <hidden> IL_001a: ldloc.2 IL_001b: brfalse.s IL_0024 IL_001d: ldloc.2 IL_001e: callvirt ""void System.IDisposable.Dispose()"" IL_0023: nop // sequence point: <hidden> IL_0024: endfinally } // sequence point: return value; IL_0025: ldloc.1 IL_0026: stloc.s V_4 IL_0028: br.s IL_002a // sequence point: } IL_002a: ldloc.s V_4 IL_002c: ret } ", sequencePoints: "C.F", source: source); } [WorkItem(18844, "https://github.com/dotnet/roslyn/issues/18844")] [Fact] public void UsingStatement_EmbeddedConditional2() { var source = @" class C { bool F() { bool x = true; bool value = false; using (var stream = new System.IO.MemoryStream()) if (x) { value = true; } else { value = false; } return value; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.F", @" { // Code size 47 (0x2f) .maxstack 1 .locals init (bool V_0, //x bool V_1, //value System.IO.MemoryStream V_2, //stream bool V_3, bool V_4) // sequence point: { IL_0000: nop // sequence point: bool x = true; IL_0001: ldc.i4.1 IL_0002: stloc.0 // sequence point: bool value = false; IL_0003: ldc.i4.0 IL_0004: stloc.1 // sequence point: var stream = new System.IO.MemoryStream() IL_0005: newobj ""System.IO.MemoryStream..ctor()"" IL_000a: stloc.2 .try { // sequence point: if (x) IL_000b: ldloc.0 IL_000c: stloc.3 // sequence point: <hidden> IL_000d: ldloc.3 IL_000e: brfalse.s IL_0016 // sequence point: { IL_0010: nop // sequence point: value = true; IL_0011: ldc.i4.1 IL_0012: stloc.1 // sequence point: } IL_0013: nop // sequence point: <hidden> IL_0014: br.s IL_001a // sequence point: { IL_0016: nop // sequence point: value = false; IL_0017: ldc.i4.0 IL_0018: stloc.1 // sequence point: } IL_0019: nop // sequence point: <hidden> IL_001a: leave.s IL_0027 } finally { // sequence point: <hidden> IL_001c: ldloc.2 IL_001d: brfalse.s IL_0026 IL_001f: ldloc.2 IL_0020: callvirt ""void System.IDisposable.Dispose()"" IL_0025: nop // sequence point: <hidden> IL_0026: endfinally } // sequence point: return value; IL_0027: ldloc.1 IL_0028: stloc.s V_4 IL_002a: br.s IL_002c // sequence point: } IL_002c: ldloc.s V_4 IL_002e: ret } ", sequencePoints: "C.F", source: source); } [WorkItem(18844, "https://github.com/dotnet/roslyn/issues/18844")] [Fact] public void UsingStatement_EmbeddedWhile() { var source = @" class C { void F(bool x) { using (var stream = new System.IO.MemoryStream()) while (x) x = false; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.F", @" { // Code size 31 (0x1f) .maxstack 1 .locals init (System.IO.MemoryStream V_0, //stream bool V_1) // sequence point: { IL_0000: nop // sequence point: var stream = new System.IO.MemoryStream() IL_0001: newobj ""System.IO.MemoryStream..ctor()"" IL_0006: stloc.0 .try { // sequence point: <hidden> IL_0007: br.s IL_000c // sequence point: x = false; IL_0009: ldc.i4.0 IL_000a: starg.s V_1 // sequence point: while (x) IL_000c: ldarg.1 IL_000d: stloc.1 // sequence point: <hidden> IL_000e: ldloc.1 IL_000f: brtrue.s IL_0009 IL_0011: leave.s IL_001e } finally { // sequence point: <hidden> IL_0013: ldloc.0 IL_0014: brfalse.s IL_001d IL_0016: ldloc.0 IL_0017: callvirt ""void System.IDisposable.Dispose()"" IL_001c: nop // sequence point: <hidden> IL_001d: endfinally } // sequence point: } IL_001e: ret } ", sequencePoints: "C.F", source: source); } [WorkItem(18844, "https://github.com/dotnet/roslyn/issues/18844")] [Fact] public void UsingStatement_EmbeddedFor() { var source = @" class C { void F(bool x) { using (var stream = new System.IO.MemoryStream()) for ( ; x == true; ) x = false; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.F", @" { // Code size 31 (0x1f) .maxstack 1 .locals init (System.IO.MemoryStream V_0, //stream bool V_1) // sequence point: { IL_0000: nop // sequence point: var stream = new System.IO.MemoryStream() IL_0001: newobj ""System.IO.MemoryStream..ctor()"" IL_0006: stloc.0 .try { // sequence point: <hidden> IL_0007: br.s IL_000c // sequence point: x = false; IL_0009: ldc.i4.0 IL_000a: starg.s V_1 // sequence point: x == true IL_000c: ldarg.1 IL_000d: stloc.1 // sequence point: <hidden> IL_000e: ldloc.1 IL_000f: brtrue.s IL_0009 IL_0011: leave.s IL_001e } finally { // sequence point: <hidden> IL_0013: ldloc.0 IL_0014: brfalse.s IL_001d IL_0016: ldloc.0 IL_0017: callvirt ""void System.IDisposable.Dispose()"" IL_001c: nop // sequence point: <hidden> IL_001d: endfinally } // sequence point: } IL_001e: ret } ", sequencePoints: "C.F", source: source); } [WorkItem(18844, "https://github.com/dotnet/roslyn/issues/18844")] [Fact] public void LockStatement_EmbeddedIf() { var source = @" class C { void F(bool x) { string y = """"; lock (y) if (!x) System.Console.Write(1); else System.Console.Write(2); } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.F", @" { // Code size 58 (0x3a) .maxstack 2 .locals init (string V_0, //y string V_1, bool V_2, bool V_3) // sequence point: { IL_0000: nop // sequence point: string y = """"; IL_0001: ldstr """" IL_0006: stloc.0 // sequence point: lock (y) IL_0007: ldloc.0 IL_0008: stloc.1 IL_0009: ldc.i4.0 IL_000a: stloc.2 .try { IL_000b: ldloc.1 IL_000c: ldloca.s V_2 IL_000e: call ""void System.Threading.Monitor.Enter(object, ref bool)"" IL_0013: nop // sequence point: if (!x) IL_0014: ldarg.1 IL_0015: ldc.i4.0 IL_0016: ceq IL_0018: stloc.3 // sequence point: <hidden> IL_0019: ldloc.3 IL_001a: brfalse.s IL_0025 // sequence point: System.Console.Write(1); IL_001c: ldc.i4.1 IL_001d: call ""void System.Console.Write(int)"" IL_0022: nop // sequence point: <hidden> IL_0023: br.s IL_002c // sequence point: System.Console.Write(2); IL_0025: ldc.i4.2 IL_0026: call ""void System.Console.Write(int)"" IL_002b: nop // sequence point: <hidden> IL_002c: leave.s IL_0039 } finally { // sequence point: <hidden> IL_002e: ldloc.2 IL_002f: brfalse.s IL_0038 IL_0031: ldloc.1 IL_0032: call ""void System.Threading.Monitor.Exit(object)"" IL_0037: nop // sequence point: <hidden> IL_0038: endfinally } // sequence point: } IL_0039: ret } ", sequencePoints: "C.F", source: source); } #endregion #region Using Declaration [WorkItem(37417, "https://github.com/dotnet/roslyn/issues/37417")] [Fact] public void UsingDeclaration_BodyBlockScope() { var source = WithWindowsLineBreaks(@" using System; using System.IO; class C { static void Main() { using MemoryStream m = new MemoryStream(), n = new MemoryStream(); Console.WriteLine(1); } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); // TODO: https://github.com/dotnet/roslyn/issues/37417 // Duplicate sequence point at `}` v.VerifyIL("C.Main", sequencePoints: "C.Main", source: source, expectedIL: @" { // Code size 45 (0x2d) .maxstack 1 .locals init (System.IO.MemoryStream V_0, //m System.IO.MemoryStream V_1) //n // sequence point: { IL_0000: nop // sequence point: using MemoryStream m = new MemoryStream() IL_0001: newobj ""System.IO.MemoryStream..ctor()"" IL_0006: stloc.0 .try { // sequence point: n = new MemoryStream() IL_0007: newobj ""System.IO.MemoryStream..ctor()"" IL_000c: stloc.1 .try { // sequence point: Console.WriteLine(1); IL_000d: ldc.i4.1 IL_000e: call ""void System.Console.WriteLine(int)"" IL_0013: nop // sequence point: } IL_0014: leave.s IL_002c } finally { // sequence point: <hidden> IL_0016: ldloc.1 IL_0017: brfalse.s IL_0020 IL_0019: ldloc.1 IL_001a: callvirt ""void System.IDisposable.Dispose()"" IL_001f: nop // sequence point: <hidden> IL_0020: endfinally } } finally { // sequence point: <hidden> IL_0021: ldloc.0 IL_0022: brfalse.s IL_002b IL_0024: ldloc.0 IL_0025: callvirt ""void System.IDisposable.Dispose()"" IL_002a: nop // sequence point: <hidden> IL_002b: endfinally } // sequence point: } IL_002c: ret } "); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""2"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""30"" /> <slot kind=""0"" offset=""54"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""50"" document=""1"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""52"" endLine=""8"" endColumn=""74"" document=""1"" /> <entry offset=""0xd"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""30"" document=""1"" /> <entry offset=""0x14"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0x16"" hidden=""true"" document=""1"" /> <entry offset=""0x20"" hidden=""true"" document=""1"" /> <entry offset=""0x21"" hidden=""true"" document=""1"" /> <entry offset=""0x2b"" hidden=""true"" document=""1"" /> <entry offset=""0x2c"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2d""> <namespace name=""System"" /> <namespace name=""System.IO"" /> <local name=""m"" il_index=""0"" il_start=""0x0"" il_end=""0x2d"" attributes=""0"" /> <local name=""n"" il_index=""1"" il_start=""0x0"" il_end=""0x2d"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [WorkItem(37417, "https://github.com/dotnet/roslyn/issues/37417")] [Fact] public void UsingDeclaration_BodyBlockScopeWithReturn() { var source = WithWindowsLineBreaks(@" using System; using System.IO; class C { static int Main() { using MemoryStream m = new MemoryStream(); Console.WriteLine(1); return 1; } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); // TODO: https://github.com/dotnet/roslyn/issues/37417 // Duplicate sequence point at `}` v.VerifyIL("C.Main", sequencePoints: "C.Main", source: source, expectedIL: @" { // Code size 31 (0x1f) .maxstack 1 .locals init (System.IO.MemoryStream V_0, //m int V_1) // sequence point: { IL_0000: nop // sequence point: using MemoryStream m = new MemoryStream(); IL_0001: newobj ""System.IO.MemoryStream..ctor()"" IL_0006: stloc.0 .try { // sequence point: Console.WriteLine(1); IL_0007: ldc.i4.1 IL_0008: call ""void System.Console.WriteLine(int)"" IL_000d: nop // sequence point: return 1; IL_000e: ldc.i4.1 IL_000f: stloc.1 IL_0010: leave.s IL_001d } finally { // sequence point: <hidden> IL_0012: ldloc.0 IL_0013: brfalse.s IL_001c IL_0015: ldloc.0 IL_0016: callvirt ""void System.IDisposable.Dispose()"" IL_001b: nop // sequence point: <hidden> IL_001c: endfinally } // sequence point: } IL_001d: ldloc.1 IL_001e: ret } "); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""2"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""30"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""51"" document=""1"" /> <entry offset=""0x7"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""30"" document=""1"" /> <entry offset=""0xe"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""18"" document=""1"" /> <entry offset=""0x12"" hidden=""true"" document=""1"" /> <entry offset=""0x1c"" hidden=""true"" document=""1"" /> <entry offset=""0x1d"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1f""> <namespace name=""System"" /> <namespace name=""System.IO"" /> <local name=""m"" il_index=""0"" il_start=""0x0"" il_end=""0x1f"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [WorkItem(37417, "https://github.com/dotnet/roslyn/issues/37417")] [Fact] public void UsingDeclaration_IfBodyScope() { var source = WithWindowsLineBreaks(@" using System; using System.IO; class C { public static bool G() => true; static void Main() { if (G()) { using var m = new MemoryStream(); Console.WriteLine(1); } Console.WriteLine(2); } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); // TODO: https://github.com/dotnet/roslyn/issues/37417 // In this case the sequence point `}` is not emitted on the leave instruction, // but to a nop instruction following the disposal. v.VerifyIL("C.Main", sequencePoints: "C.Main", source: source, expectedIL: @" { // Code size 46 (0x2e) .maxstack 1 .locals init (bool V_0, System.IO.MemoryStream V_1) //m // sequence point: { IL_0000: nop // sequence point: if (G()) IL_0001: call ""bool C.G()"" IL_0006: stloc.0 // sequence point: <hidden> IL_0007: ldloc.0 IL_0008: brfalse.s IL_0026 // sequence point: { IL_000a: nop // sequence point: using var m = new MemoryStream(); IL_000b: newobj ""System.IO.MemoryStream..ctor()"" IL_0010: stloc.1 .try { // sequence point: Console.WriteLine(1); IL_0011: ldc.i4.1 IL_0012: call ""void System.Console.WriteLine(int)"" IL_0017: nop IL_0018: leave.s IL_0025 } finally { // sequence point: <hidden> IL_001a: ldloc.1 IL_001b: brfalse.s IL_0024 IL_001d: ldloc.1 IL_001e: callvirt ""void System.IDisposable.Dispose()"" IL_0023: nop // sequence point: <hidden> IL_0024: endfinally } // sequence point: } IL_0025: nop // sequence point: Console.WriteLine(2); IL_0026: ldc.i4.2 IL_0027: call ""void System.Console.WriteLine(int)"" IL_002c: nop // sequence point: } IL_002d: ret } "); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" /> <encLocalSlotMap> <slot kind=""1"" offset=""11"" /> <slot kind=""0"" offset=""55"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""17"" document=""1"" /> <entry offset=""0x7"" hidden=""true"" document=""1"" /> <entry offset=""0xa"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0xb"" startLine=""12"" startColumn=""13"" endLine=""12"" endColumn=""46"" document=""1"" /> <entry offset=""0x11"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""34"" document=""1"" /> <entry offset=""0x1a"" hidden=""true"" document=""1"" /> <entry offset=""0x24"" hidden=""true"" document=""1"" /> <entry offset=""0x25"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0x26"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""30"" document=""1"" /> <entry offset=""0x2d"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2e""> <scope startOffset=""0xa"" endOffset=""0x26""> <local name=""m"" il_index=""1"" il_start=""0xa"" il_end=""0x26"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } #endregion // LockStatement tested in CodeGenLock #region Anonymous Type [Fact] public void AnonymousType_Empty() { var source = WithWindowsLineBreaks(@" class Program { static void Main(string[] args) { var o = new {}; } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main"" parameterNames=""args""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""24"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x8""> <local name=""o"" il_index=""0"" il_start=""0x0"" il_end=""0x8"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void AnonymousType_NonEmpty() { var source = WithWindowsLineBreaks(@" class Program { static void Main(string[] args) { var o = new { a = 1 }; } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main"" parameterNames=""args""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""31"" document=""1"" /> <entry offset=""0x8"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x9""> <local name=""o"" il_index=""0"" il_start=""0x0"" il_end=""0x9"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } #endregion #region FixedStatement [Fact] public void FixedStatementSingleAddress() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { int x; static void Main() { C c = new C(); fixed (int* p = &c.x) { *p = 1; } Console.WriteLine(c.x); } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""13"" /> <slot kind=""0"" offset=""47"" /> <slot kind=""9"" offset=""47"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""23"" document=""1"" /> <entry offset=""0xe"" startLine=""11"" startColumn=""16"" endLine=""11"" endColumn=""29"" document=""1"" /> <entry offset=""0x11"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""10"" document=""1"" /> <entry offset=""0x12"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""20"" document=""1"" /> <entry offset=""0x15"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0x16"" hidden=""true"" document=""1"" /> <entry offset=""0x19"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""32"" document=""1"" /> <entry offset=""0x25"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x26""> <namespace name=""System"" /> <local name=""c"" il_index=""0"" il_start=""0x0"" il_end=""0x26"" attributes=""0"" /> <scope startOffset=""0x7"" endOffset=""0x19""> <local name=""p"" il_index=""1"" il_start=""0x7"" il_end=""0x19"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void FixedStatementSingleString() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { static void Main() { fixed (char* p = ""hello"") { Console.WriteLine(*p); } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""24"" /> <slot kind=""9"" offset=""24"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""16"" endLine=""8"" endColumn=""33"" document=""1"" /> <entry offset=""0x15"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x16"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""35"" document=""1"" /> <entry offset=""0x1e"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0x1f"" hidden=""true"" document=""1"" /> <entry offset=""0x21"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x22""> <namespace name=""System"" /> <scope startOffset=""0x1"" endOffset=""0x21""> <local name=""p"" il_index=""0"" il_start=""0x1"" il_end=""0x21"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void FixedStatementSingleArray() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { int[] a = new int[1]; static void Main() { C c = new C(); Console.Write(c.a[0]); fixed (int* p = c.a) { (*p)++; } Console.Write(c.a[0]); } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""13"" /> <slot kind=""0"" offset=""79"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""23"" document=""1"" /> <entry offset=""0x7"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""31"" document=""1"" /> <entry offset=""0x15"" startLine=""12"" startColumn=""16"" endLine=""12"" endColumn=""28"" document=""1"" /> <entry offset=""0x32"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x33"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""20"" document=""1"" /> <entry offset=""0x39"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x3a"" hidden=""true"" document=""1"" /> <entry offset=""0x3c"" startLine=""16"" startColumn=""9"" endLine=""16"" endColumn=""31"" document=""1"" /> <entry offset=""0x4a"" startLine=""17"" startColumn=""5"" endLine=""17"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x4b""> <namespace name=""System"" /> <local name=""c"" il_index=""0"" il_start=""0x0"" il_end=""0x4b"" attributes=""0"" /> <scope startOffset=""0x15"" endOffset=""0x3c""> <local name=""p"" il_index=""1"" il_start=""0x15"" il_end=""0x3c"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""Main"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""26"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void FixedStatementMultipleAddresses() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { int x; int y; static void Main() { C c = new C(); fixed (int* p = &c.x, q = &c.y) { *p = 1; *q = 2; } Console.WriteLine(c.x + c.y); } } "); // NOTE: stop on each declarator. var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""13"" /> <slot kind=""0"" offset=""47"" /> <slot kind=""0"" offset=""57"" /> <slot kind=""9"" offset=""47"" /> <slot kind=""9"" offset=""57"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""23"" document=""1"" /> <entry offset=""0xe"" startLine=""12"" startColumn=""16"" endLine=""12"" endColumn=""29"" document=""1"" /> <entry offset=""0x19"" startLine=""12"" startColumn=""31"" endLine=""12"" endColumn=""39"" document=""1"" /> <entry offset=""0x1d"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x1e"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""20"" document=""1"" /> <entry offset=""0x21"" startLine=""15"" startColumn=""13"" endLine=""15"" endColumn=""20"" document=""1"" /> <entry offset=""0x24"" startLine=""16"" startColumn=""9"" endLine=""16"" endColumn=""10"" document=""1"" /> <entry offset=""0x25"" hidden=""true"" document=""1"" /> <entry offset=""0x2c"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""38"" document=""1"" /> <entry offset=""0x3f"" startLine=""18"" startColumn=""5"" endLine=""18"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x40""> <namespace name=""System"" /> <local name=""c"" il_index=""0"" il_start=""0x0"" il_end=""0x40"" attributes=""0"" /> <scope startOffset=""0x7"" endOffset=""0x2c""> <local name=""p"" il_index=""1"" il_start=""0x7"" il_end=""0x2c"" attributes=""0"" /> <local name=""q"" il_index=""2"" il_start=""0x7"" il_end=""0x2c"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void FixedStatementMultipleStrings() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { static void Main() { fixed (char* p = ""hello"", q = ""goodbye"") { Console.Write(*p); Console.Write(*q); } } } "); // NOTE: stop on each declarator. var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""24"" /> <slot kind=""0"" offset=""37"" /> <slot kind=""9"" offset=""24"" /> <slot kind=""9"" offset=""37"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""16"" endLine=""8"" endColumn=""33"" document=""1"" /> <entry offset=""0x1b"" startLine=""8"" startColumn=""35"" endLine=""8"" endColumn=""48"" document=""1"" /> <entry offset=""0x29"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x2a"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""31"" document=""1"" /> <entry offset=""0x32"" startLine=""11"" startColumn=""13"" endLine=""11"" endColumn=""31"" document=""1"" /> <entry offset=""0x3a"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""10"" document=""1"" /> <entry offset=""0x3b"" hidden=""true"" document=""1"" /> <entry offset=""0x3f"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x40""> <namespace name=""System"" /> <scope startOffset=""0x1"" endOffset=""0x3f""> <local name=""p"" il_index=""0"" il_start=""0x1"" il_end=""0x3f"" attributes=""0"" /> <local name=""q"" il_index=""1"" il_start=""0x1"" il_end=""0x3f"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void FixedStatementMultipleArrays() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { int[] a = new int[1]; int[] b = new int[1]; static void Main() { C c = new C(); Console.Write(c.a[0]); Console.Write(c.b[0]); fixed (int* p = c.a, q = c.b) { *p = 1; *q = 2; } Console.Write(c.a[0]); Console.Write(c.b[0]); } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""13"" /> <slot kind=""0"" offset=""111"" /> <slot kind=""0"" offset=""120"" /> <slot kind=""temp"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""23"" document=""1"" /> <entry offset=""0x7"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""31"" document=""1"" /> <entry offset=""0x15"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""31"" document=""1"" /> <entry offset=""0x23"" startLine=""14"" startColumn=""16"" endLine=""14"" endColumn=""28"" document=""1"" /> <entry offset=""0x40"" startLine=""14"" startColumn=""30"" endLine=""14"" endColumn=""37"" document=""1"" /> <entry offset=""0x60"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x61"" startLine=""16"" startColumn=""13"" endLine=""16"" endColumn=""20"" document=""1"" /> <entry offset=""0x64"" startLine=""17"" startColumn=""13"" endLine=""17"" endColumn=""20"" document=""1"" /> <entry offset=""0x67"" startLine=""18"" startColumn=""9"" endLine=""18"" endColumn=""10"" document=""1"" /> <entry offset=""0x68"" hidden=""true"" document=""1"" /> <entry offset=""0x6d"" startLine=""19"" startColumn=""9"" endLine=""19"" endColumn=""31"" document=""1"" /> <entry offset=""0x7b"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""31"" document=""1"" /> <entry offset=""0x89"" startLine=""21"" startColumn=""5"" endLine=""21"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x8a""> <namespace name=""System"" /> <local name=""c"" il_index=""0"" il_start=""0x0"" il_end=""0x8a"" attributes=""0"" /> <scope startOffset=""0x23"" endOffset=""0x6d""> <local name=""p"" il_index=""1"" il_start=""0x23"" il_end=""0x6d"" attributes=""0"" /> <local name=""q"" il_index=""2"" il_start=""0x23"" il_end=""0x6d"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""Main"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""26"" document=""1"" /> <entry offset=""0xc"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""26"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void FixedStatementMultipleMixed() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { char c = 'a'; char[] a = new char[1]; static void Main() { C c = new C(); fixed (char* p = &c.c, q = c.a, r = ""hello"") { Console.Write((int)*p); Console.Write((int)*q); Console.Write((int)*r); } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); c.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""13"" /> <slot kind=""0"" offset=""48"" /> <slot kind=""0"" offset=""58"" /> <slot kind=""0"" offset=""67"" /> <slot kind=""9"" offset=""48"" /> <slot kind=""temp"" /> <slot kind=""9"" offset=""67"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""23"" document=""1"" /> <entry offset=""0xf"" startLine=""12"" startColumn=""16"" endLine=""12"" endColumn=""30"" document=""1"" /> <entry offset=""0x13"" startLine=""12"" startColumn=""32"" endLine=""12"" endColumn=""39"" document=""1"" /> <entry offset=""0x3a"" startLine=""12"" startColumn=""41"" endLine=""12"" endColumn=""52"" document=""1"" /> <entry offset=""0x49"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x4a"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""36"" document=""1"" /> <entry offset=""0x52"" startLine=""15"" startColumn=""13"" endLine=""15"" endColumn=""36"" document=""1"" /> <entry offset=""0x5a"" startLine=""16"" startColumn=""13"" endLine=""16"" endColumn=""36"" document=""1"" /> <entry offset=""0x62"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""10"" document=""1"" /> <entry offset=""0x63"" hidden=""true"" document=""1"" /> <entry offset=""0x6d"" startLine=""18"" startColumn=""5"" endLine=""18"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x6e""> <namespace name=""System"" /> <local name=""c"" il_index=""0"" il_start=""0x0"" il_end=""0x6e"" attributes=""0"" /> <scope startOffset=""0x7"" endOffset=""0x6d""> <local name=""p"" il_index=""1"" il_start=""0x7"" il_end=""0x6d"" attributes=""0"" /> <local name=""q"" il_index=""2"" il_start=""0x7"" il_end=""0x6d"" attributes=""0"" /> <local name=""r"" il_index=""3"" il_start=""0x7"" il_end=""0x6d"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""Main"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""18"" document=""1"" /> <entry offset=""0x8"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""28"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region Line Directives [Fact] public void LineDirective() { var source = @" #line 50 ""foo.cs"" using System; unsafe class C { static void Main() { Console.Write(1); } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""foo.cs"" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""56"" startColumn=""5"" endLine=""56"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""57"" startColumn=""9"" endLine=""57"" endColumn=""26"" document=""1"" /> <entry offset=""0x8"" startLine=""58"" startColumn=""5"" endLine=""58"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x9""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } [WorkItem(544917, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544917")] [Fact] public void DisabledLineDirective() { var source = @" #if false #line 50 ""foo.cs"" #endif using System; unsafe class C { static void Main() { Console.Write(1); } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""26"" document=""1"" /> <entry offset=""0x8"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x9""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void TestLineDirectivesHidden() { var text1 = WithWindowsLineBreaks(@" using System; public class C { public void Foo() { foreach (var x in new int[] { 1, 2, 3, 4 }) { Console.WriteLine(x); } #line hidden foreach (var x in new int[] { 1, 2, 3, 4 }) { Console.WriteLine(x); } #line default foreach (var x in new int[] { 1, 2, 3, 4 }) { Console.WriteLine(x); } } } "); var compilation = CreateCompilation(text1, options: TestOptions.DebugDll); compilation.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Foo""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""6"" offset=""11"" /> <slot kind=""8"" offset=""11"" /> <slot kind=""0"" offset=""11"" /> <slot kind=""6"" offset=""137"" /> <slot kind=""8"" offset=""137"" /> <slot kind=""0"" offset=""137"" /> <slot kind=""6"" offset=""264"" /> <slot kind=""8"" offset=""264"" /> <slot kind=""0"" offset=""264"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""16"" document=""1"" /> <entry offset=""0x2"" startLine=""7"" startColumn=""27"" endLine=""7"" endColumn=""51"" document=""1"" /> <entry offset=""0x16"" hidden=""true"" document=""1"" /> <entry offset=""0x18"" startLine=""7"" startColumn=""18"" endLine=""7"" endColumn=""23"" document=""1"" /> <entry offset=""0x1c"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""10"" document=""1"" /> <entry offset=""0x1d"" startLine=""9"" startColumn=""13"" endLine=""9"" endColumn=""34"" document=""1"" /> <entry offset=""0x24"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""10"" document=""1"" /> <entry offset=""0x25"" hidden=""true"" document=""1"" /> <entry offset=""0x29"" startLine=""7"" startColumn=""24"" endLine=""7"" endColumn=""26"" document=""1"" /> <entry offset=""0x2f"" hidden=""true"" document=""1"" /> <entry offset=""0x30"" hidden=""true"" document=""1"" /> <entry offset=""0x45"" hidden=""true"" document=""1"" /> <entry offset=""0x47"" hidden=""true"" document=""1"" /> <entry offset=""0x4d"" hidden=""true"" document=""1"" /> <entry offset=""0x4e"" hidden=""true"" document=""1"" /> <entry offset=""0x56"" hidden=""true"" document=""1"" /> <entry offset=""0x57"" hidden=""true"" document=""1"" /> <entry offset=""0x5d"" hidden=""true"" document=""1"" /> <entry offset=""0x64"" startLine=""19"" startColumn=""9"" endLine=""19"" endColumn=""16"" document=""1"" /> <entry offset=""0x65"" startLine=""19"" startColumn=""27"" endLine=""19"" endColumn=""51"" document=""1"" /> <entry offset=""0x7b"" hidden=""true"" document=""1"" /> <entry offset=""0x7d"" startLine=""19"" startColumn=""18"" endLine=""19"" endColumn=""23"" document=""1"" /> <entry offset=""0x84"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""10"" document=""1"" /> <entry offset=""0x85"" startLine=""21"" startColumn=""13"" endLine=""21"" endColumn=""34"" document=""1"" /> <entry offset=""0x8d"" startLine=""22"" startColumn=""9"" endLine=""22"" endColumn=""10"" document=""1"" /> <entry offset=""0x8e"" hidden=""true"" document=""1"" /> <entry offset=""0x94"" startLine=""19"" startColumn=""24"" endLine=""19"" endColumn=""26"" document=""1"" /> <entry offset=""0x9c"" startLine=""23"" startColumn=""5"" endLine=""23"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x9d""> <namespace name=""System"" /> <scope startOffset=""0x18"" endOffset=""0x25""> <local name=""x"" il_index=""2"" il_start=""0x18"" il_end=""0x25"" attributes=""0"" /> </scope> <scope startOffset=""0x47"" endOffset=""0x57""> <local name=""x"" il_index=""5"" il_start=""0x47"" il_end=""0x57"" attributes=""0"" /> </scope> <scope startOffset=""0x7d"" endOffset=""0x8e""> <local name=""x"" il_index=""8"" il_start=""0x7d"" il_end=""0x8e"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void HiddenMethods() { var src = @" using System; class C { #line hidden public static void H() { F(); } #line default public static void G() { F(); } #line hidden public static void F() { { const int z = 1; var (x, y) = (1,2); Console.WriteLine(x + z); } { dynamic x = 1; Console.WriteLine(x); } } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""G""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""14"" startColumn=""5"" endLine=""14"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""13"" document=""1"" /> <entry offset=""0x7"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x8""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void HiddenEntryPoint() { var src = @" class C { #line hidden public static void Main() { } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugExe); // Note: Dev10 emitted a hidden sequence point to #line hidden method, // which enabled the debugger to locate the first user visible sequence point starting from the entry point. // Roslyn does not emit such sequence point. We could potentially synthesize one but that would defeat the purpose of // #line hidden directive. c.VerifyPdb(@" <symbols> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main"" format=""windows""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> </method> </methods> </symbols>", // When converting from Portable to Windows the PDB writer doesn't create an entry for the Main method // and thus there is no entry point record either. options: PdbValidationOptions.SkipConversionValidation); } [Fact] public void HiddenIterator() { var src = WithWindowsLineBreaks(@" using System; using System.Collections.Generic; class C { public static void Main() { F(); } #line hidden public static IEnumerable<int> F() { { const int z = 1; var (x, y) = (1,2); Console.WriteLine(x + z); } { dynamic x = 1; Console.WriteLine(x); } yield return 1; } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll); // We don't really need the debug info for kickoff method when the entire iterator method is hidden, // but it doesn't hurt and removing it would need extra effort that's unnecessary. c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""2"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""13"" document=""1"" /> <entry offset=""0x7"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x8""> <namespace name=""System"" /> <namespace name=""System.Collections.Generic"" /> </scope> </method> <method containingType=""C"" name=""F""> <customDebugInfo> <forwardIterator name=""&lt;F&gt;d__1"" /> <encLocalSlotMap> <slot kind=""0"" offset=""61"" /> <slot kind=""0"" offset=""64"" /> <slot kind=""0"" offset=""158"" /> </encLocalSlotMap> </customDebugInfo> </method> </methods> </symbols>"); } #endregion #region Nested Types [Fact] public void NestedTypes() { string source = WithWindowsLineBreaks(@" using System; namespace N { public class C { public class D<T> { public class E { public static void f(int a) { Console.WriteLine(); } } } } } "); var c = CreateCompilation(Parse(source, filename: "file.cs")); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""file.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""F7-03-46-2C-11-16-DE-85-F9-DD-5C-76-F6-55-D9-13-E0-95-DE-14"" /> </files> <methods> <method containingType=""N.C+D`1+E"" name=""f"" parameterNames=""a""> <customDebugInfo> <using> <namespace usingCount=""0"" /> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""14"" startColumn=""6"" endLine=""14"" endColumn=""26"" document=""1"" /> <entry offset=""0x5"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x6""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } #endregion #region Expression Bodied Members [Fact] public void ExpressionBodiedProperty() { var source = WithWindowsLineBreaks(@" class C { public int P => M(); public int M() { return 2; } }"); var comp = CreateCompilationWithMscorlib45(source); comp.VerifyDiagnostics(); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""get_P""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""21"" endLine=""4"" endColumn=""24"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""M""> <customDebugInfo> <forward declaringType=""C"" methodName=""get_P"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""18"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void ExpressionBodiedIndexer() { var comp = CreateCompilationWithMscorlib45(@" using System; class C { public int this[Int32 i] => M(); public int M() { return 2; } }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""get_Item"" parameterNames=""i""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""33"" endLine=""6"" endColumn=""36"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x7""> <namespace name=""System"" /> </scope> </method> <method containingType=""C"" name=""M""> <customDebugInfo> <forward declaringType=""C"" methodName=""get_Item"" parameterNames=""i"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""18"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void ExpressionBodiedMethod() { var comp = CreateCompilationWithMscorlib45(@" using System; class C { public Int32 P => 2; }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""get_P""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""23"" endLine=""6"" endColumn=""24"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void ExpressionBodiedOperator() { var comp = CreateCompilationWithMscorlib45(@" class C { public static C operator ++(C c) => c; }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""op_Increment"" parameterNames=""c""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""41"" endLine=""4"" endColumn=""42"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void ExpressionBodiedConversion() { var comp = CreateCompilationWithMscorlib45(@" using System; class C { public static explicit operator C(Int32 i) => new C(); }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""op_Explicit"" parameterNames=""i""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""51"" endLine=""6"" endColumn=""58"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x6""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } [WorkItem(14438, "https://github.com/dotnet/roslyn/issues/14438")] [Fact] public void ExpressionBodiedConstructor() { var comp = CreateCompilationWithMscorlib45(@" using System; class C { public int X; public C(Int32 x) => X = x; }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor"" parameterNames=""x""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""22"" document=""1"" /> <entry offset=""0x6"" startLine=""7"" startColumn=""26"" endLine=""7"" endColumn=""31"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xe""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } [WorkItem(14438, "https://github.com/dotnet/roslyn/issues/14438")] [Fact] public void ExpressionBodiedDestructor() { var comp = CreateCompilationWithMscorlib45(@" class C { public int X; ~C() => X = 0; }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Finalize""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""13"" endLine=""5"" endColumn=""18"" document=""1"" /> <entry offset=""0x9"" hidden=""true"" document=""1"" /> <entry offset=""0x10"" hidden=""true"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(14438, "https://github.com/dotnet/roslyn/issues/14438")] [Fact] public void ExpressionBodiedAccessor() { var comp = CreateCompilationWithMscorlib45(@" class C { public int x; public int X { get => x; set => x = value; } public event System.Action E { add => x = 1; remove => x = 0; } }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""get_X""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""16"" endLine=""7"" endColumn=""17"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""set_X"" parameterNames=""value""> <customDebugInfo> <forward declaringType=""C"" methodName=""get_X"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""16"" endLine=""8"" endColumn=""25"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""add_E"" parameterNames=""value""> <customDebugInfo> <forward declaringType=""C"" methodName=""get_X"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""12"" startColumn=""16"" endLine=""12"" endColumn=""21"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""remove_E"" parameterNames=""value""> <customDebugInfo> <forward declaringType=""C"" methodName=""get_X"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""13"" startColumn=""19"" endLine=""13"" endColumn=""24"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region Synthesized Methods [Fact] public void ImportsInLambda() { var source = WithWindowsLineBreaks( @"using System.Collections.Generic; using System.Linq; class C { static void M() { System.Action f = () => { var c = new[] { 1, 2, 3 }; c.Select(i => i); }; f(); } }"); var c = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); c.VerifyPdb("C+<>c.<M>b__0_0", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c"" name=""&lt;M&gt;b__0_0""> <customDebugInfo> <forward declaringType=""C"" methodName=""M"" /> <encLocalSlotMap> <slot kind=""0"" offset=""63"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""10"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""13"" endLine=""9"" endColumn=""39"" document=""1"" /> <entry offset=""0x13"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""30"" document=""1"" /> <entry offset=""0x39"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x3a""> <local name=""c"" il_index=""0"" il_start=""0x0"" il_end=""0x3a"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void ImportsInIterator() { var source = WithWindowsLineBreaks( @"using System.Collections.Generic; using System.Linq; class C { static IEnumerable<object> F() { var c = new[] { 1, 2, 3 }; foreach (var i in c.Select(i => i)) { yield return i; } } }"); var c = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); c.VerifyPdb("C+<F>d__0.MoveNext", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;F&gt;d__0"" name=""MoveNext""> <customDebugInfo> <forward declaringType=""C+&lt;&gt;c"" methodName=""&lt;F&gt;b__0_0"" parameterNames=""i"" /> <hoistedLocalScopes> <slot startOffset=""0x27"" endOffset=""0xd5"" /> <slot /> <slot startOffset=""0x7f"" endOffset=""0xb6"" /> </hoistedLocalScopes> <encLocalSlotMap> <slot kind=""temp"" /> <slot kind=""27"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x27"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x28"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""35"" document=""1"" /> <entry offset=""0x3f"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""16"" document=""1"" /> <entry offset=""0x40"" startLine=""8"" startColumn=""27"" endLine=""8"" endColumn=""43"" document=""1"" /> <entry offset=""0x7d"" hidden=""true"" document=""1"" /> <entry offset=""0x7f"" startLine=""8"" startColumn=""18"" endLine=""8"" endColumn=""23"" document=""1"" /> <entry offset=""0x90"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x91"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""28"" document=""1"" /> <entry offset=""0xad"" hidden=""true"" document=""1"" /> <entry offset=""0xb5"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0xb6"" startLine=""8"" startColumn=""24"" endLine=""8"" endColumn=""26"" document=""1"" /> <entry offset=""0xd1"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> <entry offset=""0xd5"" hidden=""true"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void ImportsInAsync() { var source = WithWindowsLineBreaks( @"using System.Linq; using System.Threading.Tasks; class C { static async Task F() { var c = new[] { 1, 2, 3 }; c.Select(i => i); } }"); var c = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); c.VerifyPdb("C+<F>d__0.MoveNext", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;F&gt;d__0"" name=""MoveNext""> <customDebugInfo> <forward declaringType=""C+&lt;&gt;c"" methodName=""&lt;F&gt;b__0_0"" parameterNames=""i"" /> <hoistedLocalScopes> <slot startOffset=""0x0"" endOffset=""0x87"" /> </hoistedLocalScopes> <encLocalSlotMap> <slot kind=""27"" offset=""0"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""35"" document=""1"" /> <entry offset=""0x1f"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""26"" document=""1"" /> <entry offset=""0x4c"" hidden=""true"" document=""1"" /> <entry offset=""0x6b"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x73"" hidden=""true"" document=""1"" /> </sequencePoints> <asyncInfo> <kickoffMethod declaringType=""C"" methodName=""F"" /> </asyncInfo> </method> </methods> </symbols>"); } [WorkItem(2501, "https://github.com/dotnet/roslyn/issues/2501")] [Fact] public void ImportsInAsyncLambda() { var source = WithWindowsLineBreaks( @"using System.Linq; class C { static void M() { System.Action f = async () => { var c = new[] { 1, 2, 3 }; c.Select(i => i); }; } }"); var c = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); c.VerifyPdb("C+<>c.<M>b__0_0", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c"" name=""&lt;M&gt;b__0_0""> <customDebugInfo> <forwardIterator name=""&lt;&lt;M&gt;b__0_0&gt;d"" /> <encLocalSlotMap> <slot kind=""0"" offset=""69"" /> </encLocalSlotMap> </customDebugInfo> </method> </methods> </symbols>"); c.VerifyPdb("C+<>c+<<M>b__0_0>d.MoveNext", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c+&lt;&lt;M&gt;b__0_0&gt;d"" name=""MoveNext""> <customDebugInfo> <forward declaringType=""C"" methodName=""M"" /> <hoistedLocalScopes> <slot startOffset=""0x0"" endOffset=""0x87"" /> </hoistedLocalScopes> <encLocalSlotMap> <slot kind=""27"" offset=""50"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""10"" document=""1"" /> <entry offset=""0x8"" startLine=""8"" startColumn=""13"" endLine=""8"" endColumn=""39"" document=""1"" /> <entry offset=""0x1f"" startLine=""9"" startColumn=""13"" endLine=""9"" endColumn=""30"" document=""1"" /> <entry offset=""0x4c"" hidden=""true"" document=""1"" /> <entry offset=""0x6b"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""10"" document=""1"" /> <entry offset=""0x73"" hidden=""true"" document=""1"" /> </sequencePoints> <asyncInfo> <catchHandler offset=""0x4c"" /> <kickoffMethod declaringType=""C+&lt;&gt;c"" methodName=""&lt;M&gt;b__0_0"" /> </asyncInfo> </method> </methods> </symbols>"); } #endregion #region Patterns [Fact] public void SyntaxOffset_IsPattern() { var source = @"class C { bool F(object o) => o is int i && o is 3 && o is bool; }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.F", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F"" parameterNames=""o""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""12"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""31"" endLine=""1"" endColumn=""64"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2d""> <local name=""i"" il_index=""0"" il_start=""0x0"" il_end=""0x2d"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [WorkItem(37172, "https://github.com/dotnet/roslyn/issues/37172")] [Fact] public void Patterns_SwitchStatement() { string source = WithWindowsLineBreaks(@" class C { public void Deconstruct() { } public void Deconstruct(out int x) { x = 1; } public void Deconstruct(out int x, out object y) { x = 2; y = new C(); } } class D { public int P { get; set; } public D Q { get; set; } public C R { get; set; } } class Program { static object F() => new C(); static bool B() => true; static int G(int x) => x; static int Main() { switch (F()) { // declaration pattern case int x when G(x) > 10: return 1; // discard pattern case bool _: return 2; // var pattern case var (y, z): return 3; // constant pattern case 4.0: return 4; // positional patterns case C() when B(): return 5; case (): return 6; case C(int p, C(int q)): return 7; case C(x: int p): return 8; // property pattern case D { P: 1, Q: D { P: 2 }, R: C(int z) }: return 9; default: return 10; }; } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); var verifier = CompileAndVerify(c, verify: Verification.Skipped); verifier.VerifyIL("Program.Main", sequencePoints: "Program.Main", expectedIL: @" { // Code size 432 (0x1b0) .maxstack 3 .locals init (int V_0, //x object V_1, //y object V_2, //z int V_3, //p int V_4, //q int V_5, //p int V_6, //z object V_7, System.Runtime.CompilerServices.ITuple V_8, int V_9, double V_10, C V_11, object V_12, C V_13, D V_14, int V_15, D V_16, int V_17, C V_18, object V_19, int V_20) // sequence point: { IL_0000: nop // sequence point: switch (F()) IL_0001: call ""object Program.F()"" IL_0006: stloc.s V_19 // sequence point: <hidden> IL_0008: ldloc.s V_19 IL_000a: stloc.s V_7 // sequence point: <hidden> IL_000c: ldloc.s V_7 IL_000e: isinst ""int"" IL_0013: brfalse.s IL_0022 IL_0015: ldloc.s V_7 IL_0017: unbox.any ""int"" IL_001c: stloc.0 // sequence point: <hidden> IL_001d: br IL_014d IL_0022: ldloc.s V_7 IL_0024: isinst ""bool"" IL_0029: brtrue IL_015e IL_002e: ldloc.s V_7 IL_0030: isinst ""System.Runtime.CompilerServices.ITuple"" IL_0035: stloc.s V_8 IL_0037: ldloc.s V_8 IL_0039: brfalse.s IL_0080 IL_003b: ldloc.s V_8 IL_003d: callvirt ""int System.Runtime.CompilerServices.ITuple.Length.get"" IL_0042: stloc.s V_9 // sequence point: <hidden> IL_0044: ldloc.s V_9 IL_0046: ldc.i4.2 IL_0047: bne.un.s IL_0060 IL_0049: ldloc.s V_8 IL_004b: ldc.i4.0 IL_004c: callvirt ""object System.Runtime.CompilerServices.ITuple.this[int].get"" IL_0051: stloc.1 // sequence point: <hidden> IL_0052: ldloc.s V_8 IL_0054: ldc.i4.1 IL_0055: callvirt ""object System.Runtime.CompilerServices.ITuple.this[int].get"" IL_005a: stloc.2 // sequence point: <hidden> IL_005b: br IL_0163 IL_0060: ldloc.s V_7 IL_0062: isinst ""C"" IL_0067: brtrue IL_016f IL_006c: br.s IL_0077 IL_006e: ldloc.s V_9 IL_0070: brfalse IL_018c IL_0075: br.s IL_00b5 IL_0077: ldloc.s V_9 IL_0079: brfalse IL_018c IL_007e: br.s IL_00f5 IL_0080: ldloc.s V_7 IL_0082: isinst ""double"" IL_0087: brfalse.s IL_00a7 IL_0089: ldloc.s V_7 IL_008b: unbox.any ""double"" IL_0090: stloc.s V_10 // sequence point: <hidden> IL_0092: ldloc.s V_10 IL_0094: ldc.r8 4 IL_009d: beq IL_016a IL_00a2: br IL_01a7 IL_00a7: ldloc.s V_7 IL_00a9: isinst ""C"" IL_00ae: brtrue IL_017b IL_00b3: br.s IL_00f5 IL_00b5: ldloc.s V_7 IL_00b7: castclass ""C"" IL_00bc: stloc.s V_11 // sequence point: <hidden> IL_00be: ldloc.s V_11 IL_00c0: ldloca.s V_3 IL_00c2: ldloca.s V_12 IL_00c4: callvirt ""void C.Deconstruct(out int, out object)"" IL_00c9: nop // sequence point: <hidden> IL_00ca: ldloc.s V_12 IL_00cc: isinst ""C"" IL_00d1: stloc.s V_13 IL_00d3: ldloc.s V_13 IL_00d5: brfalse.s IL_00e6 IL_00d7: ldloc.s V_13 IL_00d9: ldloca.s V_4 IL_00db: callvirt ""void C.Deconstruct(out int)"" IL_00e0: nop // sequence point: <hidden> IL_00e1: br IL_0191 IL_00e6: ldloc.s V_11 IL_00e8: ldloca.s V_5 IL_00ea: callvirt ""void C.Deconstruct(out int)"" IL_00ef: nop // sequence point: <hidden> IL_00f0: br IL_0198 IL_00f5: ldloc.s V_7 IL_00f7: isinst ""D"" IL_00fc: stloc.s V_14 IL_00fe: ldloc.s V_14 IL_0100: brfalse IL_01a7 IL_0105: ldloc.s V_14 IL_0107: callvirt ""int D.P.get"" IL_010c: stloc.s V_15 // sequence point: <hidden> IL_010e: ldloc.s V_15 IL_0110: ldc.i4.1 IL_0111: bne.un IL_01a7 IL_0116: ldloc.s V_14 IL_0118: callvirt ""D D.Q.get"" IL_011d: stloc.s V_16 // sequence point: <hidden> IL_011f: ldloc.s V_16 IL_0121: brfalse IL_01a7 IL_0126: ldloc.s V_16 IL_0128: callvirt ""int D.P.get"" IL_012d: stloc.s V_17 // sequence point: <hidden> IL_012f: ldloc.s V_17 IL_0131: ldc.i4.2 IL_0132: bne.un.s IL_01a7 IL_0134: ldloc.s V_14 IL_0136: callvirt ""C D.R.get"" IL_013b: stloc.s V_18 // sequence point: <hidden> IL_013d: ldloc.s V_18 IL_013f: brfalse.s IL_01a7 IL_0141: ldloc.s V_18 IL_0143: ldloca.s V_6 IL_0145: callvirt ""void C.Deconstruct(out int)"" IL_014a: nop // sequence point: <hidden> IL_014b: br.s IL_019f // sequence point: when G(x) > 10 IL_014d: ldloc.0 IL_014e: call ""int Program.G(int)"" IL_0153: ldc.i4.s 10 IL_0155: bgt.s IL_0159 // sequence point: <hidden> IL_0157: br.s IL_01a7 // sequence point: return 1; IL_0159: ldc.i4.1 IL_015a: stloc.s V_20 IL_015c: br.s IL_01ad // sequence point: return 2; IL_015e: ldc.i4.2 IL_015f: stloc.s V_20 IL_0161: br.s IL_01ad // sequence point: <hidden> IL_0163: br.s IL_0165 // sequence point: return 3; IL_0165: ldc.i4.3 IL_0166: stloc.s V_20 IL_0168: br.s IL_01ad // sequence point: return 4; IL_016a: ldc.i4.4 IL_016b: stloc.s V_20 IL_016d: br.s IL_01ad // sequence point: when B() IL_016f: call ""bool Program.B()"" IL_0174: brtrue.s IL_0187 // sequence point: <hidden> IL_0176: br IL_006e // sequence point: when B() IL_017b: call ""bool Program.B()"" IL_0180: brtrue.s IL_0187 // sequence point: <hidden> IL_0182: br IL_00b5 // sequence point: return 5; IL_0187: ldc.i4.5 IL_0188: stloc.s V_20 IL_018a: br.s IL_01ad // sequence point: return 6; IL_018c: ldc.i4.6 IL_018d: stloc.s V_20 IL_018f: br.s IL_01ad // sequence point: <hidden> IL_0191: br.s IL_0193 // sequence point: return 7; IL_0193: ldc.i4.7 IL_0194: stloc.s V_20 IL_0196: br.s IL_01ad // sequence point: <hidden> IL_0198: br.s IL_019a // sequence point: return 8; IL_019a: ldc.i4.8 IL_019b: stloc.s V_20 IL_019d: br.s IL_01ad // sequence point: <hidden> IL_019f: br.s IL_01a1 // sequence point: return 9; IL_01a1: ldc.i4.s 9 IL_01a3: stloc.s V_20 IL_01a5: br.s IL_01ad // sequence point: return 10; IL_01a7: ldc.i4.s 10 IL_01a9: stloc.s V_20 IL_01ab: br.s IL_01ad // sequence point: } IL_01ad: ldloc.s V_20 IL_01af: ret } ", source: source); verifier.VerifyPdb("Program.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main""> <customDebugInfo> <forward declaringType=""C"" methodName=""Deconstruct"" /> <encLocalSlotMap> <slot kind=""0"" offset=""93"" /> <slot kind=""0"" offset=""244"" /> <slot kind=""0"" offset=""247"" /> <slot kind=""0"" offset=""465"" /> <slot kind=""0"" offset=""474"" /> <slot kind=""0"" offset=""516"" /> <slot kind=""0"" offset=""617"" /> <slot kind=""35"" offset=""11"" /> <slot kind=""35"" offset=""11"" ordinal=""1"" /> <slot kind=""35"" offset=""11"" ordinal=""2"" /> <slot kind=""35"" offset=""11"" ordinal=""3"" /> <slot kind=""35"" offset=""11"" ordinal=""4"" /> <slot kind=""35"" offset=""11"" ordinal=""5"" /> <slot kind=""35"" offset=""11"" ordinal=""6"" /> <slot kind=""35"" offset=""11"" ordinal=""7"" /> <slot kind=""35"" offset=""11"" ordinal=""8"" /> <slot kind=""35"" offset=""11"" ordinal=""9"" /> <slot kind=""35"" offset=""11"" ordinal=""10"" /> <slot kind=""35"" offset=""11"" ordinal=""11"" /> <slot kind=""1"" offset=""11"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""23"" startColumn=""5"" endLine=""23"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""24"" startColumn=""9"" endLine=""24"" endColumn=""21"" document=""1"" /> <entry offset=""0x8"" hidden=""true"" document=""1"" /> <entry offset=""0xc"" hidden=""true"" document=""1"" /> <entry offset=""0x1d"" hidden=""true"" document=""1"" /> <entry offset=""0x44"" hidden=""true"" document=""1"" /> <entry offset=""0x52"" hidden=""true"" document=""1"" /> <entry offset=""0x5b"" hidden=""true"" document=""1"" /> <entry offset=""0x92"" hidden=""true"" document=""1"" /> <entry offset=""0xbe"" hidden=""true"" document=""1"" /> <entry offset=""0xca"" hidden=""true"" document=""1"" /> <entry offset=""0xe1"" hidden=""true"" document=""1"" /> <entry offset=""0xf0"" hidden=""true"" document=""1"" /> <entry offset=""0x10e"" hidden=""true"" document=""1"" /> <entry offset=""0x11f"" hidden=""true"" document=""1"" /> <entry offset=""0x12f"" hidden=""true"" document=""1"" /> <entry offset=""0x13d"" hidden=""true"" document=""1"" /> <entry offset=""0x14b"" hidden=""true"" document=""1"" /> <entry offset=""0x14d"" startLine=""27"" startColumn=""24"" endLine=""27"" endColumn=""38"" document=""1"" /> <entry offset=""0x157"" hidden=""true"" document=""1"" /> <entry offset=""0x159"" startLine=""27"" startColumn=""40"" endLine=""27"" endColumn=""49"" document=""1"" /> <entry offset=""0x15e"" startLine=""30"" startColumn=""26"" endLine=""30"" endColumn=""35"" document=""1"" /> <entry offset=""0x163"" hidden=""true"" document=""1"" /> <entry offset=""0x165"" startLine=""33"" startColumn=""30"" endLine=""33"" endColumn=""39"" document=""1"" /> <entry offset=""0x16a"" startLine=""36"" startColumn=""23"" endLine=""36"" endColumn=""32"" document=""1"" /> <entry offset=""0x16f"" startLine=""39"" startColumn=""22"" endLine=""39"" endColumn=""30"" document=""1"" /> <entry offset=""0x176"" hidden=""true"" document=""1"" /> <entry offset=""0x17b"" startLine=""39"" startColumn=""22"" endLine=""39"" endColumn=""30"" document=""1"" /> <entry offset=""0x182"" hidden=""true"" document=""1"" /> <entry offset=""0x187"" startLine=""39"" startColumn=""32"" endLine=""39"" endColumn=""41"" document=""1"" /> <entry offset=""0x18c"" startLine=""40"" startColumn=""22"" endLine=""40"" endColumn=""31"" document=""1"" /> <entry offset=""0x191"" hidden=""true"" document=""1"" /> <entry offset=""0x193"" startLine=""41"" startColumn=""38"" endLine=""41"" endColumn=""47"" document=""1"" /> <entry offset=""0x198"" hidden=""true"" document=""1"" /> <entry offset=""0x19a"" startLine=""42"" startColumn=""31"" endLine=""42"" endColumn=""40"" document=""1"" /> <entry offset=""0x19f"" hidden=""true"" document=""1"" /> <entry offset=""0x1a1"" startLine=""45"" startColumn=""58"" endLine=""45"" endColumn=""67"" document=""1"" /> <entry offset=""0x1a7"" startLine=""47"" startColumn=""22"" endLine=""47"" endColumn=""32"" document=""1"" /> <entry offset=""0x1ad"" startLine=""49"" startColumn=""5"" endLine=""49"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1b0""> <scope startOffset=""0x14d"" endOffset=""0x15e""> <local name=""x"" il_index=""0"" il_start=""0x14d"" il_end=""0x15e"" attributes=""0"" /> </scope> <scope startOffset=""0x163"" endOffset=""0x16a""> <local name=""y"" il_index=""1"" il_start=""0x163"" il_end=""0x16a"" attributes=""0"" /> <local name=""z"" il_index=""2"" il_start=""0x163"" il_end=""0x16a"" attributes=""0"" /> </scope> <scope startOffset=""0x191"" endOffset=""0x198""> <local name=""p"" il_index=""3"" il_start=""0x191"" il_end=""0x198"" attributes=""0"" /> <local name=""q"" il_index=""4"" il_start=""0x191"" il_end=""0x198"" attributes=""0"" /> </scope> <scope startOffset=""0x198"" endOffset=""0x19f""> <local name=""p"" il_index=""5"" il_start=""0x198"" il_end=""0x19f"" attributes=""0"" /> </scope> <scope startOffset=""0x19f"" endOffset=""0x1a7""> <local name=""z"" il_index=""6"" il_start=""0x19f"" il_end=""0x1a7"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } [WorkItem(37172, "https://github.com/dotnet/roslyn/issues/37172")] [Fact] public void Patterns_SwitchExpression() { string source = WithWindowsLineBreaks(@" class C { public void Deconstruct() { } public void Deconstruct(out int x) { x = 1; } public void Deconstruct(out int x, out object y) { x = 2; y = new C(); } } class D { public int P { get; set; } public D Q { get; set; } public C R { get; set; } } class Program { static object F() => new C(); static bool B() => true; static int G(int x) => x; static void Main() { var a = F() switch { // declaration pattern int x when G(x) > 10 => 1, // discard pattern bool _ => 2, // var pattern var (y, z) => 3, // constant pattern 4.0 => 4, // positional patterns C() when B() => 5, () => 6, C(int p, C(int q)) => 7, C(x: int p) => 8, // property pattern D { P: 1, Q: D { P: 2 }, R: C (int z) } => 9, _ => 10, }; } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); var verifier = CompileAndVerify(c, verify: Verification.Skipped); // note no sequence points emitted within the switch expression verifier.VerifyIL("Program.Main", sequencePoints: "Program.Main", expectedIL: @" { // Code size 437 (0x1b5) .maxstack 3 .locals init (int V_0, //a int V_1, //x object V_2, //y object V_3, //z int V_4, //p int V_5, //q int V_6, //p int V_7, //z int V_8, object V_9, System.Runtime.CompilerServices.ITuple V_10, int V_11, double V_12, C V_13, object V_14, C V_15, D V_16, int V_17, D V_18, int V_19, C V_20) -IL_0000: nop -IL_0001: call ""object Program.F()"" IL_0006: stloc.s V_9 IL_0008: ldc.i4.1 IL_0009: brtrue.s IL_000c -IL_000b: nop ~IL_000c: ldloc.s V_9 IL_000e: isinst ""int"" IL_0013: brfalse.s IL_0022 IL_0015: ldloc.s V_9 IL_0017: unbox.any ""int"" IL_001c: stloc.1 ~IL_001d: br IL_014d IL_0022: ldloc.s V_9 IL_0024: isinst ""bool"" IL_0029: brtrue IL_015e IL_002e: ldloc.s V_9 IL_0030: isinst ""System.Runtime.CompilerServices.ITuple"" IL_0035: stloc.s V_10 IL_0037: ldloc.s V_10 IL_0039: brfalse.s IL_0080 IL_003b: ldloc.s V_10 IL_003d: callvirt ""int System.Runtime.CompilerServices.ITuple.Length.get"" IL_0042: stloc.s V_11 ~IL_0044: ldloc.s V_11 IL_0046: ldc.i4.2 IL_0047: bne.un.s IL_0060 IL_0049: ldloc.s V_10 IL_004b: ldc.i4.0 IL_004c: callvirt ""object System.Runtime.CompilerServices.ITuple.this[int].get"" IL_0051: stloc.2 ~IL_0052: ldloc.s V_10 IL_0054: ldc.i4.1 IL_0055: callvirt ""object System.Runtime.CompilerServices.ITuple.this[int].get"" IL_005a: stloc.3 ~IL_005b: br IL_0163 IL_0060: ldloc.s V_9 IL_0062: isinst ""C"" IL_0067: brtrue IL_016f IL_006c: br.s IL_0077 IL_006e: ldloc.s V_11 IL_0070: brfalse IL_018c IL_0075: br.s IL_00b5 IL_0077: ldloc.s V_11 IL_0079: brfalse IL_018c IL_007e: br.s IL_00f5 IL_0080: ldloc.s V_9 IL_0082: isinst ""double"" IL_0087: brfalse.s IL_00a7 IL_0089: ldloc.s V_9 IL_008b: unbox.any ""double"" IL_0090: stloc.s V_12 ~IL_0092: ldloc.s V_12 IL_0094: ldc.r8 4 IL_009d: beq IL_016a IL_00a2: br IL_01a7 IL_00a7: ldloc.s V_9 IL_00a9: isinst ""C"" IL_00ae: brtrue IL_017b IL_00b3: br.s IL_00f5 IL_00b5: ldloc.s V_9 IL_00b7: castclass ""C"" IL_00bc: stloc.s V_13 ~IL_00be: ldloc.s V_13 IL_00c0: ldloca.s V_4 IL_00c2: ldloca.s V_14 IL_00c4: callvirt ""void C.Deconstruct(out int, out object)"" IL_00c9: nop ~IL_00ca: ldloc.s V_14 IL_00cc: isinst ""C"" IL_00d1: stloc.s V_15 IL_00d3: ldloc.s V_15 IL_00d5: brfalse.s IL_00e6 IL_00d7: ldloc.s V_15 IL_00d9: ldloca.s V_5 IL_00db: callvirt ""void C.Deconstruct(out int)"" IL_00e0: nop ~IL_00e1: br IL_0191 IL_00e6: ldloc.s V_13 IL_00e8: ldloca.s V_6 IL_00ea: callvirt ""void C.Deconstruct(out int)"" IL_00ef: nop ~IL_00f0: br IL_0198 IL_00f5: ldloc.s V_9 IL_00f7: isinst ""D"" IL_00fc: stloc.s V_16 IL_00fe: ldloc.s V_16 IL_0100: brfalse IL_01a7 IL_0105: ldloc.s V_16 IL_0107: callvirt ""int D.P.get"" IL_010c: stloc.s V_17 ~IL_010e: ldloc.s V_17 IL_0110: ldc.i4.1 IL_0111: bne.un IL_01a7 IL_0116: ldloc.s V_16 IL_0118: callvirt ""D D.Q.get"" IL_011d: stloc.s V_18 ~IL_011f: ldloc.s V_18 IL_0121: brfalse IL_01a7 IL_0126: ldloc.s V_18 IL_0128: callvirt ""int D.P.get"" IL_012d: stloc.s V_19 ~IL_012f: ldloc.s V_19 IL_0131: ldc.i4.2 IL_0132: bne.un.s IL_01a7 IL_0134: ldloc.s V_16 IL_0136: callvirt ""C D.R.get"" IL_013b: stloc.s V_20 ~IL_013d: ldloc.s V_20 IL_013f: brfalse.s IL_01a7 IL_0141: ldloc.s V_20 IL_0143: ldloca.s V_7 IL_0145: callvirt ""void C.Deconstruct(out int)"" IL_014a: nop ~IL_014b: br.s IL_019f -IL_014d: ldloc.1 IL_014e: call ""int Program.G(int)"" IL_0153: ldc.i4.s 10 IL_0155: bgt.s IL_0159 ~IL_0157: br.s IL_01a7 -IL_0159: ldc.i4.1 IL_015a: stloc.s V_8 IL_015c: br.s IL_01ad -IL_015e: ldc.i4.2 IL_015f: stloc.s V_8 IL_0161: br.s IL_01ad ~IL_0163: br.s IL_0165 -IL_0165: ldc.i4.3 IL_0166: stloc.s V_8 IL_0168: br.s IL_01ad -IL_016a: ldc.i4.4 IL_016b: stloc.s V_8 IL_016d: br.s IL_01ad -IL_016f: call ""bool Program.B()"" IL_0174: brtrue.s IL_0187 ~IL_0176: br IL_006e -IL_017b: call ""bool Program.B()"" IL_0180: brtrue.s IL_0187 ~IL_0182: br IL_00b5 -IL_0187: ldc.i4.5 IL_0188: stloc.s V_8 IL_018a: br.s IL_01ad -IL_018c: ldc.i4.6 IL_018d: stloc.s V_8 IL_018f: br.s IL_01ad ~IL_0191: br.s IL_0193 -IL_0193: ldc.i4.7 IL_0194: stloc.s V_8 IL_0196: br.s IL_01ad ~IL_0198: br.s IL_019a -IL_019a: ldc.i4.8 IL_019b: stloc.s V_8 IL_019d: br.s IL_01ad ~IL_019f: br.s IL_01a1 -IL_01a1: ldc.i4.s 9 IL_01a3: stloc.s V_8 IL_01a5: br.s IL_01ad -IL_01a7: ldc.i4.s 10 IL_01a9: stloc.s V_8 IL_01ab: br.s IL_01ad ~IL_01ad: ldc.i4.1 IL_01ae: brtrue.s IL_01b1 -IL_01b0: nop ~IL_01b1: ldloc.s V_8 IL_01b3: stloc.0 -IL_01b4: ret } "); verifier.VerifyPdb("Program.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main""> <customDebugInfo> <forward declaringType=""C"" methodName=""Deconstruct"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> <slot kind=""0"" offset=""94"" /> <slot kind=""0"" offset=""225"" /> <slot kind=""0"" offset=""228"" /> <slot kind=""0"" offset=""406"" /> <slot kind=""0"" offset=""415"" /> <slot kind=""0"" offset=""447"" /> <slot kind=""0"" offset=""539"" /> <slot kind=""temp"" /> <slot kind=""35"" offset=""23"" /> <slot kind=""35"" offset=""23"" ordinal=""1"" /> <slot kind=""35"" offset=""23"" ordinal=""2"" /> <slot kind=""35"" offset=""23"" ordinal=""3"" /> <slot kind=""35"" offset=""23"" ordinal=""4"" /> <slot kind=""35"" offset=""23"" ordinal=""5"" /> <slot kind=""35"" offset=""23"" ordinal=""6"" /> <slot kind=""35"" offset=""23"" ordinal=""7"" /> <slot kind=""35"" offset=""23"" ordinal=""8"" /> <slot kind=""35"" offset=""23"" ordinal=""9"" /> <slot kind=""35"" offset=""23"" ordinal=""10"" /> <slot kind=""35"" offset=""23"" ordinal=""11"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""23"" startColumn=""5"" endLine=""23"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""24"" startColumn=""9"" endLine=""48"" endColumn=""11"" document=""1"" /> <entry offset=""0xb"" startLine=""24"" startColumn=""21"" endLine=""48"" endColumn=""10"" document=""1"" /> <entry offset=""0xc"" hidden=""true"" document=""1"" /> <entry offset=""0x1d"" hidden=""true"" document=""1"" /> <entry offset=""0x44"" hidden=""true"" document=""1"" /> <entry offset=""0x52"" hidden=""true"" document=""1"" /> <entry offset=""0x5b"" hidden=""true"" document=""1"" /> <entry offset=""0x92"" hidden=""true"" document=""1"" /> <entry offset=""0xbe"" hidden=""true"" document=""1"" /> <entry offset=""0xca"" hidden=""true"" document=""1"" /> <entry offset=""0xe1"" hidden=""true"" document=""1"" /> <entry offset=""0xf0"" hidden=""true"" document=""1"" /> <entry offset=""0x10e"" hidden=""true"" document=""1"" /> <entry offset=""0x11f"" hidden=""true"" document=""1"" /> <entry offset=""0x12f"" hidden=""true"" document=""1"" /> <entry offset=""0x13d"" hidden=""true"" document=""1"" /> <entry offset=""0x14b"" hidden=""true"" document=""1"" /> <entry offset=""0x14d"" startLine=""27"" startColumn=""19"" endLine=""27"" endColumn=""33"" document=""1"" /> <entry offset=""0x157"" hidden=""true"" document=""1"" /> <entry offset=""0x159"" startLine=""27"" startColumn=""37"" endLine=""27"" endColumn=""38"" document=""1"" /> <entry offset=""0x15e"" startLine=""30"" startColumn=""23"" endLine=""30"" endColumn=""24"" document=""1"" /> <entry offset=""0x163"" hidden=""true"" document=""1"" /> <entry offset=""0x165"" startLine=""33"" startColumn=""27"" endLine=""33"" endColumn=""28"" document=""1"" /> <entry offset=""0x16a"" startLine=""36"" startColumn=""20"" endLine=""36"" endColumn=""21"" document=""1"" /> <entry offset=""0x16f"" startLine=""39"" startColumn=""17"" endLine=""39"" endColumn=""25"" document=""1"" /> <entry offset=""0x176"" hidden=""true"" document=""1"" /> <entry offset=""0x17b"" startLine=""39"" startColumn=""17"" endLine=""39"" endColumn=""25"" document=""1"" /> <entry offset=""0x182"" hidden=""true"" document=""1"" /> <entry offset=""0x187"" startLine=""39"" startColumn=""29"" endLine=""39"" endColumn=""30"" document=""1"" /> <entry offset=""0x18c"" startLine=""40"" startColumn=""19"" endLine=""40"" endColumn=""20"" document=""1"" /> <entry offset=""0x191"" hidden=""true"" document=""1"" /> <entry offset=""0x193"" startLine=""41"" startColumn=""35"" endLine=""41"" endColumn=""36"" document=""1"" /> <entry offset=""0x198"" hidden=""true"" document=""1"" /> <entry offset=""0x19a"" startLine=""42"" startColumn=""28"" endLine=""42"" endColumn=""29"" document=""1"" /> <entry offset=""0x19f"" hidden=""true"" document=""1"" /> <entry offset=""0x1a1"" startLine=""45"" startColumn=""56"" endLine=""45"" endColumn=""57"" document=""1"" /> <entry offset=""0x1a7"" startLine=""47"" startColumn=""18"" endLine=""47"" endColumn=""20"" document=""1"" /> <entry offset=""0x1ad"" hidden=""true"" document=""1"" /> <entry offset=""0x1b0"" startLine=""24"" startColumn=""9"" endLine=""48"" endColumn=""11"" document=""1"" /> <entry offset=""0x1b1"" hidden=""true"" document=""1"" /> <entry offset=""0x1b4"" startLine=""49"" startColumn=""5"" endLine=""49"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1b5""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0x1b5"" attributes=""0"" /> <scope startOffset=""0x14d"" endOffset=""0x15e""> <local name=""x"" il_index=""1"" il_start=""0x14d"" il_end=""0x15e"" attributes=""0"" /> </scope> <scope startOffset=""0x163"" endOffset=""0x16a""> <local name=""y"" il_index=""2"" il_start=""0x163"" il_end=""0x16a"" attributes=""0"" /> <local name=""z"" il_index=""3"" il_start=""0x163"" il_end=""0x16a"" attributes=""0"" /> </scope> <scope startOffset=""0x191"" endOffset=""0x198""> <local name=""p"" il_index=""4"" il_start=""0x191"" il_end=""0x198"" attributes=""0"" /> <local name=""q"" il_index=""5"" il_start=""0x191"" il_end=""0x198"" attributes=""0"" /> </scope> <scope startOffset=""0x198"" endOffset=""0x19f""> <local name=""p"" il_index=""6"" il_start=""0x198"" il_end=""0x19f"" attributes=""0"" /> </scope> <scope startOffset=""0x19f"" endOffset=""0x1a7""> <local name=""z"" il_index=""7"" il_start=""0x19f"" il_end=""0x1a7"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } [WorkItem(37172, "https://github.com/dotnet/roslyn/issues/37172")] [Fact] public void Patterns_IsPattern() { string source = WithWindowsLineBreaks(@" class C { public void Deconstruct() { } public void Deconstruct(out int x) { x = 1; } public void Deconstruct(out int x, out object y) { x = 2; y = new C(); } } class D { public int P { get; set; } public D Q { get; set; } public C R { get; set; } } class Program { static object F() => new C(); static bool B() => true; static int G(int x) => x; static bool M() { object obj = F(); return // declaration pattern obj is int x || // discard pattern obj is bool _ || // var pattern obj is var (y, z1) || // constant pattern obj is 4.0 || // positional patterns obj is C() || obj is () || obj is C(int p1, C(int q)) || obj is C(x: int p2) || // property pattern obj is D { P: 1, Q: D { P: 2 }, R: C(int z2) }; } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); var verifier = CompileAndVerify(c, verify: Verification.Skipped); verifier.VerifyIL("Program.M", sequencePoints: "Program.M", expectedIL: @" { // Code size 301 (0x12d) .maxstack 3 .locals init (object V_0, //obj int V_1, //x object V_2, //y object V_3, //z1 int V_4, //p1 int V_5, //q int V_6, //p2 int V_7, //z2 System.Runtime.CompilerServices.ITuple V_8, C V_9, object V_10, C V_11, D V_12, D V_13, bool V_14) -IL_0000: nop -IL_0001: call ""object Program.F()"" IL_0006: stloc.0 -IL_0007: ldloc.0 IL_0008: isinst ""int"" IL_000d: brfalse.s IL_001b IL_000f: ldloc.0 IL_0010: unbox.any ""int"" IL_0015: stloc.1 IL_0016: br IL_0125 IL_001b: ldloc.0 IL_001c: isinst ""bool"" IL_0021: brtrue IL_0125 IL_0026: ldloc.0 IL_0027: isinst ""System.Runtime.CompilerServices.ITuple"" IL_002c: stloc.s V_8 IL_002e: ldloc.s V_8 IL_0030: brfalse.s IL_0053 IL_0032: ldloc.s V_8 IL_0034: callvirt ""int System.Runtime.CompilerServices.ITuple.Length.get"" IL_0039: ldc.i4.2 IL_003a: bne.un.s IL_0053 IL_003c: ldloc.s V_8 IL_003e: ldc.i4.0 IL_003f: callvirt ""object System.Runtime.CompilerServices.ITuple.this[int].get"" IL_0044: stloc.2 IL_0045: ldloc.s V_8 IL_0047: ldc.i4.1 IL_0048: callvirt ""object System.Runtime.CompilerServices.ITuple.this[int].get"" IL_004d: stloc.3 IL_004e: br IL_0125 IL_0053: ldloc.0 IL_0054: isinst ""double"" IL_0059: brfalse.s IL_006f IL_005b: ldloc.0 IL_005c: unbox.any ""double"" IL_0061: ldc.r8 4 IL_006a: beq IL_0125 IL_006f: ldloc.0 IL_0070: isinst ""C"" IL_0075: brtrue IL_0125 IL_007a: ldloc.0 IL_007b: isinst ""System.Runtime.CompilerServices.ITuple"" IL_0080: stloc.s V_8 IL_0082: ldloc.s V_8 IL_0084: brfalse.s IL_0092 IL_0086: ldloc.s V_8 IL_0088: callvirt ""int System.Runtime.CompilerServices.ITuple.Length.get"" IL_008d: brfalse IL_0125 IL_0092: ldloc.0 IL_0093: isinst ""C"" IL_0098: stloc.s V_9 IL_009a: ldloc.s V_9 IL_009c: brfalse.s IL_00c3 IL_009e: ldloc.s V_9 IL_00a0: ldloca.s V_4 IL_00a2: ldloca.s V_10 IL_00a4: callvirt ""void C.Deconstruct(out int, out object)"" IL_00a9: nop IL_00aa: ldloc.s V_10 IL_00ac: isinst ""C"" IL_00b1: stloc.s V_11 IL_00b3: ldloc.s V_11 IL_00b5: brfalse.s IL_00c3 IL_00b7: ldloc.s V_11 IL_00b9: ldloca.s V_5 IL_00bb: callvirt ""void C.Deconstruct(out int)"" IL_00c0: nop IL_00c1: br.s IL_0125 IL_00c3: ldloc.0 IL_00c4: isinst ""C"" IL_00c9: stloc.s V_11 IL_00cb: ldloc.s V_11 IL_00cd: brfalse.s IL_00db IL_00cf: ldloc.s V_11 IL_00d1: ldloca.s V_6 IL_00d3: callvirt ""void C.Deconstruct(out int)"" IL_00d8: nop IL_00d9: br.s IL_0125 IL_00db: ldloc.0 IL_00dc: isinst ""D"" IL_00e1: stloc.s V_12 IL_00e3: ldloc.s V_12 IL_00e5: brfalse.s IL_0122 IL_00e7: ldloc.s V_12 IL_00e9: callvirt ""int D.P.get"" IL_00ee: ldc.i4.1 IL_00ef: bne.un.s IL_0122 IL_00f1: ldloc.s V_12 IL_00f3: callvirt ""D D.Q.get"" IL_00f8: stloc.s V_13 IL_00fa: ldloc.s V_13 IL_00fc: brfalse.s IL_0122 IL_00fe: ldloc.s V_13 IL_0100: callvirt ""int D.P.get"" IL_0105: ldc.i4.2 IL_0106: bne.un.s IL_0122 IL_0108: ldloc.s V_12 IL_010a: callvirt ""C D.R.get"" IL_010f: stloc.s V_11 IL_0111: ldloc.s V_11 IL_0113: brfalse.s IL_0122 IL_0115: ldloc.s V_11 IL_0117: ldloca.s V_7 IL_0119: callvirt ""void C.Deconstruct(out int)"" IL_011e: nop IL_011f: ldc.i4.1 IL_0120: br.s IL_0123 IL_0122: ldc.i4.0 IL_0123: br.s IL_0126 IL_0125: ldc.i4.1 IL_0126: stloc.s V_14 IL_0128: br.s IL_012a -IL_012a: ldloc.s V_14 IL_012c: ret } "); verifier.VerifyPdb("Program.M", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""M""> <customDebugInfo> <forward declaringType=""C"" methodName=""Deconstruct"" /> <encLocalSlotMap> <slot kind=""0"" offset=""18"" /> <slot kind=""0"" offset=""106"" /> <slot kind=""0"" offset=""230"" /> <slot kind=""0"" offset=""233"" /> <slot kind=""0"" offset=""419"" /> <slot kind=""0"" offset=""429"" /> <slot kind=""0"" offset=""465"" /> <slot kind=""0"" offset=""561"" /> <slot kind=""temp"" /> <slot kind=""temp"" /> <slot kind=""temp"" /> <slot kind=""temp"" /> <slot kind=""temp"" /> <slot kind=""temp"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""23"" startColumn=""5"" endLine=""23"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""24"" startColumn=""9"" endLine=""24"" endColumn=""26"" document=""1"" /> <entry offset=""0x7"" startLine=""25"" startColumn=""9"" endLine=""45"" endColumn=""60"" document=""1"" /> <entry offset=""0x12a"" startLine=""46"" startColumn=""5"" endLine=""46"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x12d""> <local name=""obj"" il_index=""0"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""x"" il_index=""1"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""y"" il_index=""2"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""z1"" il_index=""3"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""p1"" il_index=""4"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""q"" il_index=""5"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""p2"" il_index=""6"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""z2"" il_index=""7"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } [WorkItem(37172, "https://github.com/dotnet/roslyn/issues/37172")] [WorkItem(37232, "https://github.com/dotnet/roslyn/issues/37232")] [WorkItem(37237, "https://github.com/dotnet/roslyn/issues/37237")] [Fact] public void Patterns_SwitchExpression_Closures() { string source = WithWindowsLineBreaks(@" using System; public class C { static int M() { return F() switch { 1 => F() switch { C { P: int p, Q: C { P: int q } } => G(() => p + q), _ => 10 }, 2 => F() switch { C { P: int r } => G(() => r), _ => 20 }, C { Q: int s } => G(() => s), _ => 0 } switch { var t when t > 0 => G(() => t), _ => 0 }; } object P { get; set; } object Q { get; set; } static object F() => null; static int G(Func<int> f) => 0; } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var verifier = CompileAndVerify(c); verifier.VerifyIL("C.M", sequencePoints: "C.M", source: source, expectedIL: @" { // Code size 472 (0x1d8) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0, //CS$<>8__locals0 int V_1, C.<>c__DisplayClass0_1 V_2, //CS$<>8__locals1 int V_3, object V_4, int V_5, C V_6, object V_7, C.<>c__DisplayClass0_2 V_8, //CS$<>8__locals2 int V_9, object V_10, C V_11, object V_12, object V_13, C V_14, object V_15, C.<>c__DisplayClass0_3 V_16, //CS$<>8__locals3 object V_17, C V_18, object V_19, int V_20) // sequence point: { IL_0000: nop // sequence point: <hidden> IL_0001: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0006: stloc.0 // sequence point: <hidden> IL_0007: newobj ""C.<>c__DisplayClass0_1..ctor()"" IL_000c: stloc.2 IL_000d: call ""object C.F()"" IL_0012: stloc.s V_4 IL_0014: ldc.i4.1 IL_0015: brtrue.s IL_0018 // sequence point: switch ... } IL_0017: nop // sequence point: <hidden> IL_0018: ldloc.s V_4 IL_001a: isinst ""int"" IL_001f: brfalse.s IL_003e IL_0021: ldloc.s V_4 IL_0023: unbox.any ""int"" IL_0028: stloc.s V_5 // sequence point: <hidden> IL_002a: ldloc.s V_5 IL_002c: ldc.i4.1 IL_002d: beq.s IL_0075 IL_002f: br.s IL_0031 IL_0031: ldloc.s V_5 IL_0033: ldc.i4.2 IL_0034: beq IL_0116 IL_0039: br IL_0194 IL_003e: ldloc.s V_4 IL_0040: isinst ""C"" IL_0045: stloc.s V_6 IL_0047: ldloc.s V_6 IL_0049: brfalse IL_0194 IL_004e: ldloc.s V_6 IL_0050: callvirt ""object C.Q.get"" IL_0055: stloc.s V_7 // sequence point: <hidden> IL_0057: ldloc.s V_7 IL_0059: isinst ""int"" IL_005e: brfalse IL_0194 IL_0063: ldloc.2 IL_0064: ldloc.s V_7 IL_0066: unbox.any ""int"" IL_006b: stfld ""int C.<>c__DisplayClass0_1.<s>5__3"" // sequence point: <hidden> IL_0070: br IL_017e // sequence point: <hidden> IL_0075: newobj ""C.<>c__DisplayClass0_2..ctor()"" IL_007a: stloc.s V_8 IL_007c: call ""object C.F()"" IL_0081: stloc.s V_10 IL_0083: ldc.i4.1 IL_0084: brtrue.s IL_0087 // sequence point: switch ... IL_0086: nop // sequence point: <hidden> IL_0087: ldloc.s V_10 IL_0089: isinst ""C"" IL_008e: stloc.s V_11 IL_0090: ldloc.s V_11 IL_0092: brfalse.s IL_0104 IL_0094: ldloc.s V_11 IL_0096: callvirt ""object C.P.get"" IL_009b: stloc.s V_12 // sequence point: <hidden> IL_009d: ldloc.s V_12 IL_009f: isinst ""int"" IL_00a4: brfalse.s IL_0104 IL_00a6: ldloc.s V_8 IL_00a8: ldloc.s V_12 IL_00aa: unbox.any ""int"" IL_00af: stfld ""int C.<>c__DisplayClass0_2.<p>5__4"" // sequence point: <hidden> IL_00b4: ldloc.s V_11 IL_00b6: callvirt ""object C.Q.get"" IL_00bb: stloc.s V_13 // sequence point: <hidden> IL_00bd: ldloc.s V_13 IL_00bf: isinst ""C"" IL_00c4: stloc.s V_14 IL_00c6: ldloc.s V_14 IL_00c8: brfalse.s IL_0104 IL_00ca: ldloc.s V_14 IL_00cc: callvirt ""object C.P.get"" IL_00d1: stloc.s V_15 // sequence point: <hidden> IL_00d3: ldloc.s V_15 IL_00d5: isinst ""int"" IL_00da: brfalse.s IL_0104 IL_00dc: ldloc.s V_8 IL_00de: ldloc.s V_15 IL_00e0: unbox.any ""int"" IL_00e5: stfld ""int C.<>c__DisplayClass0_2.<q>5__5"" // sequence point: <hidden> IL_00ea: br.s IL_00ec // sequence point: <hidden> IL_00ec: br.s IL_00ee // sequence point: G(() => p + q) IL_00ee: ldloc.s V_8 IL_00f0: ldftn ""int C.<>c__DisplayClass0_2.<M>b__2()"" IL_00f6: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_00fb: call ""int C.G(System.Func<int>)"" IL_0100: stloc.s V_9 IL_0102: br.s IL_010a // sequence point: 10 IL_0104: ldc.i4.s 10 IL_0106: stloc.s V_9 IL_0108: br.s IL_010a // sequence point: <hidden> IL_010a: ldc.i4.1 IL_010b: brtrue.s IL_010e // sequence point: switch ... } IL_010d: nop // sequence point: F() switch ... IL_010e: ldloc.s V_9 IL_0110: stloc.3 IL_0111: br IL_0198 // sequence point: <hidden> IL_0116: newobj ""C.<>c__DisplayClass0_3..ctor()"" IL_011b: stloc.s V_16 IL_011d: call ""object C.F()"" IL_0122: stloc.s V_17 IL_0124: ldc.i4.1 IL_0125: brtrue.s IL_0128 // sequence point: switch ... IL_0127: nop // sequence point: <hidden> IL_0128: ldloc.s V_17 IL_012a: isinst ""C"" IL_012f: stloc.s V_18 IL_0131: ldloc.s V_18 IL_0133: brfalse.s IL_016f IL_0135: ldloc.s V_18 IL_0137: callvirt ""object C.P.get"" IL_013c: stloc.s V_19 // sequence point: <hidden> IL_013e: ldloc.s V_19 IL_0140: isinst ""int"" IL_0145: brfalse.s IL_016f IL_0147: ldloc.s V_16 IL_0149: ldloc.s V_19 IL_014b: unbox.any ""int"" IL_0150: stfld ""int C.<>c__DisplayClass0_3.<r>5__6"" // sequence point: <hidden> IL_0155: br.s IL_0157 // sequence point: <hidden> IL_0157: br.s IL_0159 // sequence point: G(() => r) IL_0159: ldloc.s V_16 IL_015b: ldftn ""int C.<>c__DisplayClass0_3.<M>b__3()"" IL_0161: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_0166: call ""int C.G(System.Func<int>)"" IL_016b: stloc.s V_9 IL_016d: br.s IL_0175 // sequence point: 20 IL_016f: ldc.i4.s 20 IL_0171: stloc.s V_9 IL_0173: br.s IL_0175 // sequence point: <hidden> IL_0175: ldc.i4.1 IL_0176: brtrue.s IL_0179 // sequence point: F() switch ... IL_0178: nop // sequence point: F() switch ... IL_0179: ldloc.s V_9 IL_017b: stloc.3 IL_017c: br.s IL_0198 // sequence point: <hidden> IL_017e: br.s IL_0180 // sequence point: G(() => s) IL_0180: ldloc.2 IL_0181: ldftn ""int C.<>c__DisplayClass0_1.<M>b__1()"" IL_0187: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_018c: call ""int C.G(System.Func<int>)"" IL_0191: stloc.3 IL_0192: br.s IL_0198 // sequence point: 0 IL_0194: ldc.i4.0 IL_0195: stloc.3 IL_0196: br.s IL_0198 // sequence point: <hidden> IL_0198: ldc.i4.1 IL_0199: brtrue.s IL_019c // sequence point: return F() s ... }; IL_019b: nop // sequence point: <hidden> IL_019c: ldloc.0 IL_019d: ldloc.3 IL_019e: stfld ""int C.<>c__DisplayClass0_0.<t>5__2"" IL_01a3: ldc.i4.1 IL_01a4: brtrue.s IL_01a7 // sequence point: switch ... } IL_01a6: nop // sequence point: <hidden> IL_01a7: br.s IL_01a9 // sequence point: when t > 0 IL_01a9: ldloc.0 IL_01aa: ldfld ""int C.<>c__DisplayClass0_0.<t>5__2"" IL_01af: ldc.i4.0 IL_01b0: bgt.s IL_01b4 // sequence point: <hidden> IL_01b2: br.s IL_01c8 // sequence point: G(() => t) IL_01b4: ldloc.0 IL_01b5: ldftn ""int C.<>c__DisplayClass0_0.<M>b__0()"" IL_01bb: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_01c0: call ""int C.G(System.Func<int>)"" IL_01c5: stloc.1 IL_01c6: br.s IL_01cc // sequence point: 0 IL_01c8: ldc.i4.0 IL_01c9: stloc.1 IL_01ca: br.s IL_01cc // sequence point: <hidden> IL_01cc: ldc.i4.1 IL_01cd: brtrue.s IL_01d0 // sequence point: return F() s ... }; IL_01cf: nop // sequence point: <hidden> IL_01d0: ldloc.1 IL_01d1: stloc.s V_20 IL_01d3: br.s IL_01d5 // sequence point: } IL_01d5: ldloc.s V_20 IL_01d7: ret } "); verifier.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""30"" offset=""11"" /> <slot kind=""temp"" /> <slot kind=""30"" offset=""22"" /> <slot kind=""temp"" /> <slot kind=""35"" offset=""22"" /> <slot kind=""35"" offset=""22"" ordinal=""1"" /> <slot kind=""35"" offset=""22"" ordinal=""2"" /> <slot kind=""35"" offset=""22"" ordinal=""3"" /> <slot kind=""30"" offset=""63"" /> <slot kind=""temp"" /> <slot kind=""35"" offset=""63"" /> <slot kind=""35"" offset=""63"" ordinal=""1"" /> <slot kind=""35"" offset=""63"" ordinal=""2"" /> <slot kind=""35"" offset=""63"" ordinal=""3"" /> <slot kind=""35"" offset=""63"" ordinal=""4"" /> <slot kind=""35"" offset=""63"" ordinal=""5"" /> <slot kind=""30"" offset=""238"" /> <slot kind=""35"" offset=""238"" /> <slot kind=""35"" offset=""238"" ordinal=""1"" /> <slot kind=""35"" offset=""238"" ordinal=""2"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""11"" /> <closure offset=""22"" /> <closure offset=""63"" /> <closure offset=""238"" /> <lambda offset=""511"" closure=""0"" /> <lambda offset=""407"" closure=""1"" /> <lambda offset=""157"" closure=""2"" /> <lambda offset=""313"" closure=""3"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" hidden=""true"" document=""1"" /> <entry offset=""0x17"" startLine=""7"" startColumn=""20"" endLine=""21"" endColumn=""10"" document=""1"" /> <entry offset=""0x18"" hidden=""true"" document=""1"" /> <entry offset=""0x2a"" hidden=""true"" document=""1"" /> <entry offset=""0x57"" hidden=""true"" document=""1"" /> <entry offset=""0x70"" hidden=""true"" document=""1"" /> <entry offset=""0x75"" hidden=""true"" document=""1"" /> <entry offset=""0x86"" startLine=""9"" startColumn=""22"" endLine=""13"" endColumn=""19"" document=""1"" /> <entry offset=""0x87"" hidden=""true"" document=""1"" /> <entry offset=""0x9d"" hidden=""true"" document=""1"" /> <entry offset=""0xb4"" hidden=""true"" document=""1"" /> <entry offset=""0xbd"" hidden=""true"" document=""1"" /> <entry offset=""0xd3"" hidden=""true"" document=""1"" /> <entry offset=""0xea"" hidden=""true"" document=""1"" /> <entry offset=""0xec"" hidden=""true"" document=""1"" /> <entry offset=""0xee"" startLine=""11"" startColumn=""59"" endLine=""11"" endColumn=""73"" document=""1"" /> <entry offset=""0x104"" startLine=""12"" startColumn=""27"" endLine=""12"" endColumn=""29"" document=""1"" /> <entry offset=""0x10a"" hidden=""true"" document=""1"" /> <entry offset=""0x10d"" startLine=""7"" startColumn=""20"" endLine=""21"" endColumn=""10"" document=""1"" /> <entry offset=""0x10e"" startLine=""9"" startColumn=""18"" endLine=""13"" endColumn=""19"" document=""1"" /> <entry offset=""0x116"" hidden=""true"" document=""1"" /> <entry offset=""0x127"" startLine=""14"" startColumn=""22"" endLine=""18"" endColumn=""19"" document=""1"" /> <entry offset=""0x128"" hidden=""true"" document=""1"" /> <entry offset=""0x13e"" hidden=""true"" document=""1"" /> <entry offset=""0x155"" hidden=""true"" document=""1"" /> <entry offset=""0x157"" hidden=""true"" document=""1"" /> <entry offset=""0x159"" startLine=""16"" startColumn=""40"" endLine=""16"" endColumn=""50"" document=""1"" /> <entry offset=""0x16f"" startLine=""17"" startColumn=""27"" endLine=""17"" endColumn=""29"" document=""1"" /> <entry offset=""0x175"" hidden=""true"" document=""1"" /> <entry offset=""0x178"" startLine=""9"" startColumn=""18"" endLine=""13"" endColumn=""19"" document=""1"" /> <entry offset=""0x179"" startLine=""14"" startColumn=""18"" endLine=""18"" endColumn=""19"" document=""1"" /> <entry offset=""0x17e"" hidden=""true"" document=""1"" /> <entry offset=""0x180"" startLine=""19"" startColumn=""31"" endLine=""19"" endColumn=""41"" document=""1"" /> <entry offset=""0x194"" startLine=""20"" startColumn=""18"" endLine=""20"" endColumn=""19"" document=""1"" /> <entry offset=""0x198"" hidden=""true"" document=""1"" /> <entry offset=""0x19b"" startLine=""7"" startColumn=""9"" endLine=""26"" endColumn=""11"" document=""1"" /> <entry offset=""0x19c"" hidden=""true"" document=""1"" /> <entry offset=""0x1a6"" startLine=""22"" startColumn=""9"" endLine=""26"" endColumn=""10"" document=""1"" /> <entry offset=""0x1a7"" hidden=""true"" document=""1"" /> <entry offset=""0x1a9"" startLine=""24"" startColumn=""19"" endLine=""24"" endColumn=""29"" document=""1"" /> <entry offset=""0x1b2"" hidden=""true"" document=""1"" /> <entry offset=""0x1b4"" startLine=""24"" startColumn=""33"" endLine=""24"" endColumn=""43"" document=""1"" /> <entry offset=""0x1c8"" startLine=""25"" startColumn=""18"" endLine=""25"" endColumn=""19"" document=""1"" /> <entry offset=""0x1cc"" hidden=""true"" document=""1"" /> <entry offset=""0x1cf"" startLine=""7"" startColumn=""9"" endLine=""26"" endColumn=""11"" document=""1"" /> <entry offset=""0x1d0"" hidden=""true"" document=""1"" /> <entry offset=""0x1d5"" startLine=""27"" startColumn=""5"" endLine=""27"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1d8""> <namespace name=""System"" /> <scope startOffset=""0x1"" endOffset=""0x1d5""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x1"" il_end=""0x1d5"" attributes=""0"" /> <scope startOffset=""0x7"" endOffset=""0x1a3""> <local name=""CS$&lt;&gt;8__locals1"" il_index=""2"" il_start=""0x7"" il_end=""0x1a3"" attributes=""0"" /> <scope startOffset=""0x75"" endOffset=""0x111""> <local name=""CS$&lt;&gt;8__locals2"" il_index=""8"" il_start=""0x75"" il_end=""0x111"" attributes=""0"" /> </scope> <scope startOffset=""0x116"" endOffset=""0x17c""> <local name=""CS$&lt;&gt;8__locals3"" il_index=""16"" il_start=""0x116"" il_end=""0x17c"" attributes=""0"" /> </scope> </scope> </scope> </scope> </method> </methods> </symbols> "); } [WorkItem(50321, "https://github.com/dotnet/roslyn/issues/50321")] [ConditionalFact(typeof(CoreClrOnly))] public void NestedSwitchExpressions_Closures_01() { string source = WithWindowsLineBreaks( @"using System; class C { static int F(object o) { return o switch { int i => new Func<int>(() => i + i switch { 1 => 2, _ => 3 })(), _ => 4 }; } }"); var verifier = CompileAndVerify(source, options: TestOptions.DebugDll); verifier.VerifyTypeIL("C", @".class private auto ansi beforefieldinit C extends [netstandard]System.Object { // Nested Types .class nested private auto ansi sealed beforefieldinit '<>c__DisplayClass0_0' extends [netstandard]System.Object { .custom instance void [netstandard]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Fields .field public int32 '<i>5__2' // Methods .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { // Method begins at RVA 0x20a1 // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [netstandard]System.Object::.ctor() IL_0006: nop IL_0007: ret } // end of method '<>c__DisplayClass0_0'::.ctor .method assembly hidebysig instance int32 '<F>b__0' () cil managed { // Method begins at RVA 0x20ac // Code size 38 (0x26) .maxstack 2 .locals init ( [0] int32, [1] int32 ) IL_0000: ldarg.0 IL_0001: ldfld int32 C/'<>c__DisplayClass0_0'::'<i>5__2' IL_0006: stloc.0 IL_0007: ldc.i4.1 IL_0008: brtrue.s IL_000b IL_000a: nop IL_000b: ldarg.0 IL_000c: ldfld int32 C/'<>c__DisplayClass0_0'::'<i>5__2' IL_0011: ldc.i4.1 IL_0012: beq.s IL_0016 IL_0014: br.s IL_001a IL_0016: ldc.i4.2 IL_0017: stloc.1 IL_0018: br.s IL_001e IL_001a: ldc.i4.3 IL_001b: stloc.1 IL_001c: br.s IL_001e IL_001e: ldc.i4.1 IL_001f: brtrue.s IL_0022 IL_0021: nop IL_0022: ldloc.0 IL_0023: ldloc.1 IL_0024: add IL_0025: ret } // end of method '<>c__DisplayClass0_0'::'<F>b__0' } // end of class <>c__DisplayClass0_0 // Methods .method private hidebysig static int32 F ( object o ) cil managed { // Method begins at RVA 0x2050 // Code size 69 (0x45) .maxstack 2 .locals init ( [0] class C/'<>c__DisplayClass0_0', [1] int32, [2] int32 ) IL_0000: nop IL_0001: newobj instance void C/'<>c__DisplayClass0_0'::.ctor() IL_0006: stloc.0 IL_0007: ldc.i4.1 IL_0008: brtrue.s IL_000b IL_000a: nop IL_000b: ldarg.0 IL_000c: isinst [netstandard]System.Int32 IL_0011: brfalse.s IL_0037 IL_0013: ldloc.0 IL_0014: ldarg.0 IL_0015: unbox.any [netstandard]System.Int32 IL_001a: stfld int32 C/'<>c__DisplayClass0_0'::'<i>5__2' IL_001f: br.s IL_0021 IL_0021: br.s IL_0023 IL_0023: ldloc.0 IL_0024: ldftn instance int32 C/'<>c__DisplayClass0_0'::'<F>b__0'() IL_002a: newobj instance void class [netstandard]System.Func`1<int32>::.ctor(object, native int) IL_002f: callvirt instance !0 class [netstandard]System.Func`1<int32>::Invoke() IL_0034: stloc.1 IL_0035: br.s IL_003b IL_0037: ldc.i4.4 IL_0038: stloc.1 IL_0039: br.s IL_003b IL_003b: ldc.i4.1 IL_003c: brtrue.s IL_003f IL_003e: nop IL_003f: ldloc.1 IL_0040: stloc.2 IL_0041: br.s IL_0043 IL_0043: ldloc.2 IL_0044: ret } // end of method C::F .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { // Method begins at RVA 0x20a1 // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [netstandard]System.Object::.ctor() IL_0006: nop IL_0007: ret } // end of method C::.ctor } // end of class C "); verifier.VerifyPdb( @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F"" parameterNames=""o""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""30"" offset=""11"" /> <slot kind=""temp"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""11"" /> <lambda offset=""80"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" hidden=""true"" document=""1"" /> <entry offset=""0xa"" startLine=""6"" startColumn=""18"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0xb"" hidden=""true"" document=""1"" /> <entry offset=""0x1f"" hidden=""true"" document=""1"" /> <entry offset=""0x21"" hidden=""true"" document=""1"" /> <entry offset=""0x23"" startLine=""8"" startColumn=""22"" endLine=""12"" endColumn=""17"" document=""1"" /> <entry offset=""0x37"" startLine=""13"" startColumn=""18"" endLine=""13"" endColumn=""19"" document=""1"" /> <entry offset=""0x3b"" hidden=""true"" document=""1"" /> <entry offset=""0x3e"" startLine=""6"" startColumn=""9"" endLine=""14"" endColumn=""11"" document=""1"" /> <entry offset=""0x3f"" hidden=""true"" document=""1"" /> <entry offset=""0x43"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x45""> <namespace name=""System"" /> <scope startOffset=""0x1"" endOffset=""0x43""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x1"" il_end=""0x43"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C+&lt;&gt;c__DisplayClass0_0"" name=""&lt;F&gt;b__0""> <customDebugInfo> <forward declaringType=""C"" methodName=""F"" parameterNames=""o"" /> <encLocalSlotMap> <slot kind=""28"" offset=""86"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""42"" endLine=""12"" endColumn=""14"" document=""1"" /> <entry offset=""0xa"" startLine=""8"" startColumn=""48"" endLine=""12"" endColumn=""14"" document=""1"" /> <entry offset=""0xb"" hidden=""true"" document=""1"" /> <entry offset=""0x16"" startLine=""10"" startColumn=""22"" endLine=""10"" endColumn=""23"" document=""1"" /> <entry offset=""0x1a"" startLine=""11"" startColumn=""22"" endLine=""11"" endColumn=""23"" document=""1"" /> <entry offset=""0x1e"" hidden=""true"" document=""1"" /> <entry offset=""0x21"" startLine=""8"" startColumn=""42"" endLine=""12"" endColumn=""14"" document=""1"" /> <entry offset=""0x22"" hidden=""true"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(50321, "https://github.com/dotnet/roslyn/issues/50321")] [ConditionalFact(typeof(CoreClrOnly))] public void NestedSwitchExpressions_Closures_02() { string source = WithWindowsLineBreaks( @"using System; class C { static string F(object o) { return o switch { int i => new Func<string>(() => ""1"" + i switch { 1 => new Func<string>(() => ""2"" + i)(), _ => ""3"" })(), _ => ""4"" }; } }"); var verifier = CompileAndVerify(source, options: TestOptions.DebugDll); verifier.VerifyTypeIL("C", @".class private auto ansi beforefieldinit C extends [netstandard]System.Object { // Nested Types .class nested private auto ansi sealed beforefieldinit '<>c__DisplayClass0_0' extends [netstandard]System.Object { .custom instance void [netstandard]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Fields .field public int32 '<i>5__2' .field public class [netstandard]System.Func`1<string> '<>9__1' // Methods .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { // Method begins at RVA 0x20a5 // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [netstandard]System.Object::.ctor() IL_0006: nop IL_0007: ret } // end of method '<>c__DisplayClass0_0'::.ctor .method assembly hidebysig instance string '<F>b__0' () cil managed { // Method begins at RVA 0x20b0 // Code size 78 (0x4e) .maxstack 3 .locals init ( [0] string, [1] class [netstandard]System.Func`1<string> ) IL_0000: ldc.i4.1 IL_0001: brtrue.s IL_0004 IL_0003: nop IL_0004: ldarg.0 IL_0005: ldfld int32 C/'<>c__DisplayClass0_0'::'<i>5__2' IL_000a: ldc.i4.1 IL_000b: beq.s IL_000f IL_000d: br.s IL_0036 IL_000f: ldarg.0 IL_0010: ldfld class [netstandard]System.Func`1<string> C/'<>c__DisplayClass0_0'::'<>9__1' IL_0015: dup IL_0016: brtrue.s IL_002e IL_0018: pop IL_0019: ldarg.0 IL_001a: ldarg.0 IL_001b: ldftn instance string C/'<>c__DisplayClass0_0'::'<F>b__1'() IL_0021: newobj instance void class [netstandard]System.Func`1<string>::.ctor(object, native int) IL_0026: dup IL_0027: stloc.1 IL_0028: stfld class [netstandard]System.Func`1<string> C/'<>c__DisplayClass0_0'::'<>9__1' IL_002d: ldloc.1 IL_002e: callvirt instance !0 class [netstandard]System.Func`1<string>::Invoke() IL_0033: stloc.0 IL_0034: br.s IL_003e IL_0036: ldstr ""3"" IL_003b: stloc.0 IL_003c: br.s IL_003e IL_003e: ldc.i4.1 IL_003f: brtrue.s IL_0042 IL_0041: nop IL_0042: ldstr ""1"" IL_0047: ldloc.0 IL_0048: call string [netstandard]System.String::Concat(string, string) IL_004d: ret } // end of method '<>c__DisplayClass0_0'::'<F>b__0' .method assembly hidebysig instance string '<F>b__1' () cil managed { // Method begins at RVA 0x210a // Code size 22 (0x16) .maxstack 8 IL_0000: ldstr ""2"" IL_0005: ldarg.0 IL_0006: ldflda int32 C/'<>c__DisplayClass0_0'::'<i>5__2' IL_000b: call instance string [netstandard]System.Int32::ToString() IL_0010: call string [netstandard]System.String::Concat(string, string) IL_0015: ret } // end of method '<>c__DisplayClass0_0'::'<F>b__1' } // end of class <>c__DisplayClass0_0 // Methods .method private hidebysig static string F ( object o ) cil managed { // Method begins at RVA 0x2050 // Code size 73 (0x49) .maxstack 2 .locals init ( [0] class C/'<>c__DisplayClass0_0', [1] string, [2] string ) IL_0000: nop IL_0001: newobj instance void C/'<>c__DisplayClass0_0'::.ctor() IL_0006: stloc.0 IL_0007: ldc.i4.1 IL_0008: brtrue.s IL_000b IL_000a: nop IL_000b: ldarg.0 IL_000c: isinst [netstandard]System.Int32 IL_0011: brfalse.s IL_0037 IL_0013: ldloc.0 IL_0014: ldarg.0 IL_0015: unbox.any [netstandard]System.Int32 IL_001a: stfld int32 C/'<>c__DisplayClass0_0'::'<i>5__2' IL_001f: br.s IL_0021 IL_0021: br.s IL_0023 IL_0023: ldloc.0 IL_0024: ldftn instance string C/'<>c__DisplayClass0_0'::'<F>b__0'() IL_002a: newobj instance void class [netstandard]System.Func`1<string>::.ctor(object, native int) IL_002f: callvirt instance !0 class [netstandard]System.Func`1<string>::Invoke() IL_0034: stloc.1 IL_0035: br.s IL_003f IL_0037: ldstr ""4"" IL_003c: stloc.1 IL_003d: br.s IL_003f IL_003f: ldc.i4.1 IL_0040: brtrue.s IL_0043 IL_0042: nop IL_0043: ldloc.1 IL_0044: stloc.2 IL_0045: br.s IL_0047 IL_0047: ldloc.2 IL_0048: ret } // end of method C::F .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { // Method begins at RVA 0x20a5 // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [netstandard]System.Object::.ctor() IL_0006: nop IL_0007: ret } // end of method C::.ctor } // end of class C "); verifier.VerifyPdb( @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F"" parameterNames=""o""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""30"" offset=""11"" /> <slot kind=""temp"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""11"" /> <lambda offset=""83"" closure=""0"" /> <lambda offset=""158"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" hidden=""true"" document=""1"" /> <entry offset=""0xa"" startLine=""6"" startColumn=""18"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0xb"" hidden=""true"" document=""1"" /> <entry offset=""0x1f"" hidden=""true"" document=""1"" /> <entry offset=""0x21"" hidden=""true"" document=""1"" /> <entry offset=""0x23"" startLine=""8"" startColumn=""22"" endLine=""12"" endColumn=""17"" document=""1"" /> <entry offset=""0x37"" startLine=""13"" startColumn=""18"" endLine=""13"" endColumn=""21"" document=""1"" /> <entry offset=""0x3f"" hidden=""true"" document=""1"" /> <entry offset=""0x42"" startLine=""6"" startColumn=""9"" endLine=""14"" endColumn=""11"" document=""1"" /> <entry offset=""0x43"" hidden=""true"" document=""1"" /> <entry offset=""0x47"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x49""> <namespace name=""System"" /> <scope startOffset=""0x1"" endOffset=""0x47""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x1"" il_end=""0x47"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C+&lt;&gt;c__DisplayClass0_0"" name=""&lt;F&gt;b__0""> <customDebugInfo> <forward declaringType=""C"" methodName=""F"" parameterNames=""o"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""45"" endLine=""12"" endColumn=""14"" document=""1"" /> <entry offset=""0x3"" startLine=""8"" startColumn=""53"" endLine=""12"" endColumn=""14"" document=""1"" /> <entry offset=""0x4"" hidden=""true"" document=""1"" /> <entry offset=""0xf"" startLine=""10"" startColumn=""22"" endLine=""10"" endColumn=""55"" document=""1"" /> <entry offset=""0x36"" startLine=""11"" startColumn=""22"" endLine=""11"" endColumn=""25"" document=""1"" /> <entry offset=""0x3e"" hidden=""true"" document=""1"" /> <entry offset=""0x41"" startLine=""8"" startColumn=""45"" endLine=""12"" endColumn=""14"" document=""1"" /> <entry offset=""0x42"" hidden=""true"" document=""1"" /> </sequencePoints> </method> <method containingType=""C+&lt;&gt;c__DisplayClass0_0"" name=""&lt;F&gt;b__1""> <customDebugInfo> <forward declaringType=""C"" methodName=""F"" parameterNames=""o"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""45"" endLine=""10"" endColumn=""52"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(37261, "https://github.com/dotnet/roslyn/issues/37261")] [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SwitchExpression_MethodBody() { string source = @" using System; public class C { static int M() => F() switch { 1 => 1, C { P: int p, Q: C { P: int q } } => G(() => p + q), _ => 0 }; object P { get; set; } object Q { get; set; } static object F() => null; static int G(Func<int> f) => 0; } "; var c = CreateCompilation(source, options: TestOptions.DebugDll); var verifier = CompileAndVerify(c); verifier.VerifyIL("C.M", sequencePoints: "C.M", source: source, expectedIL: @" { // Code size 171 (0xab) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0, //CS$<>8__locals0 int V_1, object V_2, int V_3, C V_4, object V_5, object V_6, C V_7, object V_8) // sequence point: <hidden> IL_0000: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0005: stloc.0 IL_0006: call ""object C.F()"" IL_000b: stloc.2 IL_000c: ldc.i4.1 IL_000d: brtrue.s IL_0010 // sequence point: switch ... } IL_000f: nop // sequence point: <hidden> IL_0010: ldloc.2 IL_0011: isinst ""int"" IL_0016: brfalse.s IL_0025 IL_0018: ldloc.2 IL_0019: unbox.any ""int"" IL_001e: stloc.3 // sequence point: <hidden> IL_001f: ldloc.3 IL_0020: ldc.i4.1 IL_0021: beq.s IL_0087 IL_0023: br.s IL_00a1 IL_0025: ldloc.2 IL_0026: isinst ""C"" IL_002b: stloc.s V_4 IL_002d: ldloc.s V_4 IL_002f: brfalse.s IL_00a1 IL_0031: ldloc.s V_4 IL_0033: callvirt ""object C.P.get"" IL_0038: stloc.s V_5 // sequence point: <hidden> IL_003a: ldloc.s V_5 IL_003c: isinst ""int"" IL_0041: brfalse.s IL_00a1 IL_0043: ldloc.0 IL_0044: ldloc.s V_5 IL_0046: unbox.any ""int"" IL_004b: stfld ""int C.<>c__DisplayClass0_0.<p>5__2"" // sequence point: <hidden> IL_0050: ldloc.s V_4 IL_0052: callvirt ""object C.Q.get"" IL_0057: stloc.s V_6 // sequence point: <hidden> IL_0059: ldloc.s V_6 IL_005b: isinst ""C"" IL_0060: stloc.s V_7 IL_0062: ldloc.s V_7 IL_0064: brfalse.s IL_00a1 IL_0066: ldloc.s V_7 IL_0068: callvirt ""object C.P.get"" IL_006d: stloc.s V_8 // sequence point: <hidden> IL_006f: ldloc.s V_8 IL_0071: isinst ""int"" IL_0076: brfalse.s IL_00a1 IL_0078: ldloc.0 IL_0079: ldloc.s V_8 IL_007b: unbox.any ""int"" IL_0080: stfld ""int C.<>c__DisplayClass0_0.<q>5__3"" // sequence point: <hidden> IL_0085: br.s IL_008b // sequence point: 1 IL_0087: ldc.i4.1 IL_0088: stloc.1 IL_0089: br.s IL_00a5 // sequence point: <hidden> IL_008b: br.s IL_008d // sequence point: G(() => p + q) IL_008d: ldloc.0 IL_008e: ldftn ""int C.<>c__DisplayClass0_0.<M>b__0()"" IL_0094: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_0099: call ""int C.G(System.Func<int>)"" IL_009e: stloc.1 IL_009f: br.s IL_00a5 // sequence point: 0 IL_00a1: ldc.i4.0 IL_00a2: stloc.1 IL_00a3: br.s IL_00a5 // sequence point: <hidden> IL_00a5: ldc.i4.1 IL_00a6: brtrue.s IL_00a9 // sequence point: F() switch ... } IL_00a8: nop // sequence point: <hidden> IL_00a9: ldloc.1 IL_00aa: ret } "); verifier.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""30"" offset=""7"" /> <slot kind=""temp"" /> <slot kind=""35"" offset=""7"" /> <slot kind=""35"" offset=""7"" ordinal=""1"" /> <slot kind=""35"" offset=""7"" ordinal=""2"" /> <slot kind=""35"" offset=""7"" ordinal=""3"" /> <slot kind=""35"" offset=""7"" ordinal=""4"" /> <slot kind=""35"" offset=""7"" ordinal=""5"" /> <slot kind=""35"" offset=""7"" ordinal=""6"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""7"" /> <lambda offset=""92"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0xf"" startLine=""5"" startColumn=""27"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0x10"" hidden=""true"" document=""1"" /> <entry offset=""0x1f"" hidden=""true"" document=""1"" /> <entry offset=""0x3a"" hidden=""true"" document=""1"" /> <entry offset=""0x50"" hidden=""true"" document=""1"" /> <entry offset=""0x59"" hidden=""true"" document=""1"" /> <entry offset=""0x6f"" hidden=""true"" document=""1"" /> <entry offset=""0x85"" hidden=""true"" document=""1"" /> <entry offset=""0x87"" startLine=""7"" startColumn=""14"" endLine=""7"" endColumn=""15"" document=""1"" /> <entry offset=""0x8b"" hidden=""true"" document=""1"" /> <entry offset=""0x8d"" startLine=""8"" startColumn=""46"" endLine=""8"" endColumn=""60"" document=""1"" /> <entry offset=""0xa1"" startLine=""9"" startColumn=""14"" endLine=""9"" endColumn=""15"" document=""1"" /> <entry offset=""0xa5"" hidden=""true"" document=""1"" /> <entry offset=""0xa8"" startLine=""5"" startColumn=""23"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0xa9"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xab""> <namespace name=""System"" /> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0xab"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } [WorkItem(37261, "https://github.com/dotnet/roslyn/issues/37261")] [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SwitchExpression_MethodBody_02() { string source = @" using System; public class C { static Action M1(int x) => () => { _ = x; }; static Action M2(int x) => x switch { _ => () => { _ = x; } }; } "; var c = CreateCompilation(source, options: TestOptions.DebugDll); var verifier = CompileAndVerify(c); verifier.VerifyIL("C.M1", sequencePoints: "C.M1", source: source, expectedIL: @" { // Code size 26 (0x1a) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0) //CS$<>8__locals0 // sequence point: <hidden> IL_0000: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0005: stloc.0 IL_0006: ldloc.0 IL_0007: ldarg.0 IL_0008: stfld ""int C.<>c__DisplayClass0_0.x"" // sequence point: () => { _ = x; } IL_000d: ldloc.0 IL_000e: ldftn ""void C.<>c__DisplayClass0_0.<M1>b__0()"" IL_0014: newobj ""System.Action..ctor(object, System.IntPtr)"" IL_0019: ret } "); verifier.VerifyIL("C.M2", sequencePoints: "C.M2", source: source, expectedIL: @" { // Code size 40 (0x28) .maxstack 2 .locals init (C.<>c__DisplayClass1_0 V_0, //CS$<>8__locals0 System.Action V_1) // sequence point: <hidden> IL_0000: newobj ""C.<>c__DisplayClass1_0..ctor()"" IL_0005: stloc.0 IL_0006: ldloc.0 IL_0007: ldarg.0 IL_0008: stfld ""int C.<>c__DisplayClass1_0.x"" // sequence point: x switch { _ => () => { _ = x; } } IL_000d: ldc.i4.1 IL_000e: brtrue.s IL_0011 // sequence point: switch { _ => () => { _ = x; } } IL_0010: nop // sequence point: <hidden> IL_0011: br.s IL_0013 // sequence point: () => { _ = x; } IL_0013: ldloc.0 IL_0014: ldftn ""void C.<>c__DisplayClass1_0.<M2>b__0()"" IL_001a: newobj ""System.Action..ctor(object, System.IntPtr)"" IL_001f: stloc.1 IL_0020: br.s IL_0022 // sequence point: <hidden> IL_0022: ldc.i4.1 IL_0023: brtrue.s IL_0026 // sequence point: x switch { _ => () => { _ = x; } } IL_0025: nop // sequence point: <hidden> IL_0026: ldloc.1 IL_0027: ret } "); verifier.VerifyPdb("C.M1", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M1"" parameterNames=""x""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""30"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""0"" /> <lambda offset=""9"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""5"" startColumn=""32"" endLine=""5"" endColumn=""48"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1a""> <namespace name=""System"" /> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x1a"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); verifier.VerifyPdb("C.M2", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M2"" parameterNames=""x""> <customDebugInfo> <forward declaringType=""C"" methodName=""M1"" parameterNames=""x"" /> <encLocalSlotMap> <slot kind=""30"" offset=""0"" /> <slot kind=""temp"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>1</methodOrdinal> <closure offset=""0"" /> <lambda offset=""25"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""6"" startColumn=""32"" endLine=""6"" endColumn=""66"" document=""1"" /> <entry offset=""0x10"" startLine=""6"" startColumn=""34"" endLine=""6"" endColumn=""66"" document=""1"" /> <entry offset=""0x11"" hidden=""true"" document=""1"" /> <entry offset=""0x13"" startLine=""6"" startColumn=""48"" endLine=""6"" endColumn=""64"" document=""1"" /> <entry offset=""0x22"" hidden=""true"" document=""1"" /> <entry offset=""0x25"" startLine=""6"" startColumn=""32"" endLine=""6"" endColumn=""66"" document=""1"" /> <entry offset=""0x26"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x28""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x28"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SyntaxOffset_OutVarInInitializers_SwitchExpression() { var source = @"class C { static int G(out int x) => throw null; static int F(System.Func<int> x) => throw null; C() { } int y1 = G(out var z) switch { _ => F(() => z) }; // line 7 } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> <encLocalSlotMap> <slot kind=""30"" offset=""-26"" /> <slot kind=""temp"" /> <slot kind=""35"" offset=""-26"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>2</methodOrdinal> <closure offset=""-26"" /> <lambda offset=""-4"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x6"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""54"" document=""1"" /> <entry offset=""0x15"" startLine=""7"" startColumn=""27"" endLine=""7"" endColumn=""53"" document=""1"" /> <entry offset=""0x16"" hidden=""true"" document=""1"" /> <entry offset=""0x18"" startLine=""7"" startColumn=""41"" endLine=""7"" endColumn=""51"" document=""1"" /> <entry offset=""0x2c"" hidden=""true"" document=""1"" /> <entry offset=""0x2f"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""54"" document=""1"" /> <entry offset=""0x30"" hidden=""true"" document=""1"" /> <entry offset=""0x37"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""8"" document=""1"" /> <entry offset=""0x3e"" startLine=""5"" startColumn=""9"" endLine=""5"" endColumn=""10"" document=""1"" /> <entry offset=""0x3f"" startLine=""5"" startColumn=""11"" endLine=""5"" endColumn=""12"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x40""> <scope startOffset=""0x0"" endOffset=""0x37""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x37"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } [WorkItem(43468, "https://github.com/dotnet/roslyn/issues/43468")] [Fact] public void HiddenSequencePointAtSwitchExpressionFinalMergePoint() { var source = @"class C { static int M(int x) { var y = x switch { 1 => 2, _ => 3, }; return y; } } "; var c = CreateCompilation(source, options: TestOptions.DebugDll); var verifier = CompileAndVerify(c); verifier.VerifyIL("C.M", sequencePoints: "C.M", source: source, expectedIL: @" { // Code size 31 (0x1f) .maxstack 2 .locals init (int V_0, //y int V_1, int V_2) // sequence point: { IL_0000: nop // sequence point: var y = x sw ... }; IL_0001: ldc.i4.1 IL_0002: brtrue.s IL_0005 // sequence point: switch ... } IL_0004: nop // sequence point: <hidden> IL_0005: ldarg.0 IL_0006: ldc.i4.1 IL_0007: beq.s IL_000b IL_0009: br.s IL_000f // sequence point: 2 IL_000b: ldc.i4.2 IL_000c: stloc.1 IL_000d: br.s IL_0013 // sequence point: 3 IL_000f: ldc.i4.3 IL_0010: stloc.1 IL_0011: br.s IL_0013 // sequence point: <hidden> IL_0013: ldc.i4.1 IL_0014: brtrue.s IL_0017 // sequence point: var y = x sw ... }; IL_0016: nop // sequence point: <hidden> IL_0017: ldloc.1 IL_0018: stloc.0 // sequence point: return y; IL_0019: ldloc.0 IL_001a: stloc.2 IL_001b: br.s IL_001d // sequence point: } IL_001d: ldloc.2 IL_001e: ret } "); } [WorkItem(12378, "https://github.com/dotnet/roslyn/issues/12378")] [WorkItem(13971, "https://github.com/dotnet/roslyn/issues/13971")] [Fact] public void Patterns_SwitchStatement_Constant() { string source = WithWindowsLineBreaks( @"class Program { static void M(object o) { switch (o) { case 1 when o == null: case 4: case 2 when o == null: break; case 1 when o != null: case 5: case 3 when o != null: break; default: break; case 1: break; } switch (o) { case 1: break; default: break; } switch (o) { default: break; } } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); CompileAndVerify(c).VerifyIL(qualifiedMethodName: "Program.M", sequencePoints: "Program.M", source: source, expectedIL: @"{ // Code size 123 (0x7b) .maxstack 2 .locals init (object V_0, int V_1, object V_2, object V_3, int V_4, object V_5, object V_6, object V_7) // sequence point: { IL_0000: nop // sequence point: switch (o) IL_0001: ldarg.0 IL_0002: stloc.2 // sequence point: <hidden> IL_0003: ldloc.2 IL_0004: stloc.0 // sequence point: <hidden> IL_0005: ldloc.0 IL_0006: isinst ""int"" IL_000b: brfalse.s IL_004a IL_000d: ldloc.0 IL_000e: unbox.any ""int"" IL_0013: stloc.1 // sequence point: <hidden> IL_0014: ldloc.1 IL_0015: ldc.i4.1 IL_0016: sub IL_0017: switch ( IL_0032, IL_0037, IL_0043, IL_003c, IL_0048) IL_0030: br.s IL_004a // sequence point: when o == null IL_0032: ldarg.0 IL_0033: brfalse.s IL_003c // sequence point: <hidden> IL_0035: br.s IL_003e // sequence point: when o == null IL_0037: ldarg.0 IL_0038: brfalse.s IL_003c // sequence point: <hidden> IL_003a: br.s IL_004a // sequence point: break; IL_003c: br.s IL_004e // sequence point: when o != null IL_003e: ldarg.0 IL_003f: brtrue.s IL_0048 // sequence point: <hidden> IL_0041: br.s IL_004c // sequence point: when o != null IL_0043: ldarg.0 IL_0044: brtrue.s IL_0048 // sequence point: <hidden> IL_0046: br.s IL_004a // sequence point: break; IL_0048: br.s IL_004e // sequence point: break; IL_004a: br.s IL_004e // sequence point: break; IL_004c: br.s IL_004e // sequence point: switch (o) IL_004e: ldarg.0 IL_004f: stloc.s V_5 // sequence point: <hidden> IL_0051: ldloc.s V_5 IL_0053: stloc.3 // sequence point: <hidden> IL_0054: ldloc.3 IL_0055: isinst ""int"" IL_005a: brfalse.s IL_006d IL_005c: ldloc.3 IL_005d: unbox.any ""int"" IL_0062: stloc.s V_4 // sequence point: <hidden> IL_0064: ldloc.s V_4 IL_0066: ldc.i4.1 IL_0067: beq.s IL_006b IL_0069: br.s IL_006d // sequence point: break; IL_006b: br.s IL_006f // sequence point: break; IL_006d: br.s IL_006f // sequence point: switch (o) IL_006f: ldarg.0 IL_0070: stloc.s V_7 // sequence point: <hidden> IL_0072: ldloc.s V_7 IL_0074: stloc.s V_6 // sequence point: <hidden> IL_0076: br.s IL_0078 // sequence point: break; IL_0078: br.s IL_007a // sequence point: } IL_007a: ret }"); c.VerifyPdb( @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""M"" parameterNames=""o""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""35"" offset=""11"" /> <slot kind=""35"" offset=""11"" ordinal=""1"" /> <slot kind=""1"" offset=""11"" /> <slot kind=""35"" offset=""378"" /> <slot kind=""35"" offset=""378"" ordinal=""1"" /> <slot kind=""1"" offset=""378"" /> <slot kind=""35"" offset=""511"" /> <slot kind=""1"" offset=""511"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""5"" startColumn=""9"" endLine=""5"" endColumn=""19"" document=""1"" /> <entry offset=""0x3"" hidden=""true"" document=""1"" /> <entry offset=""0x5"" hidden=""true"" document=""1"" /> <entry offset=""0x14"" hidden=""true"" document=""1"" /> <entry offset=""0x32"" startLine=""7"" startColumn=""20"" endLine=""7"" endColumn=""34"" document=""1"" /> <entry offset=""0x35"" hidden=""true"" document=""1"" /> <entry offset=""0x37"" startLine=""9"" startColumn=""20"" endLine=""9"" endColumn=""34"" document=""1"" /> <entry offset=""0x3a"" hidden=""true"" document=""1"" /> <entry offset=""0x3c"" startLine=""10"" startColumn=""17"" endLine=""10"" endColumn=""23"" document=""1"" /> <entry offset=""0x3e"" startLine=""11"" startColumn=""20"" endLine=""11"" endColumn=""34"" document=""1"" /> <entry offset=""0x41"" hidden=""true"" document=""1"" /> <entry offset=""0x43"" startLine=""13"" startColumn=""20"" endLine=""13"" endColumn=""34"" document=""1"" /> <entry offset=""0x46"" hidden=""true"" document=""1"" /> <entry offset=""0x48"" startLine=""14"" startColumn=""17"" endLine=""14"" endColumn=""23"" document=""1"" /> <entry offset=""0x4a"" startLine=""16"" startColumn=""17"" endLine=""16"" endColumn=""23"" document=""1"" /> <entry offset=""0x4c"" startLine=""18"" startColumn=""17"" endLine=""18"" endColumn=""23"" document=""1"" /> <entry offset=""0x4e"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""19"" document=""1"" /> <entry offset=""0x51"" hidden=""true"" document=""1"" /> <entry offset=""0x54"" hidden=""true"" document=""1"" /> <entry offset=""0x64"" hidden=""true"" document=""1"" /> <entry offset=""0x6b"" startLine=""23"" startColumn=""17"" endLine=""23"" endColumn=""23"" document=""1"" /> <entry offset=""0x6d"" startLine=""25"" startColumn=""17"" endLine=""25"" endColumn=""23"" document=""1"" /> <entry offset=""0x6f"" startLine=""27"" startColumn=""9"" endLine=""27"" endColumn=""19"" document=""1"" /> <entry offset=""0x72"" hidden=""true"" document=""1"" /> <entry offset=""0x76"" hidden=""true"" document=""1"" /> <entry offset=""0x78"" startLine=""30"" startColumn=""17"" endLine=""30"" endColumn=""23"" document=""1"" /> <entry offset=""0x7a"" startLine=""32"" startColumn=""5"" endLine=""32"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(37172, "https://github.com/dotnet/roslyn/issues/37172")] [Fact] public void Patterns_SwitchStatement_Tuple() { string source = WithWindowsLineBreaks(@" public class C { static int F(int i) { switch (G()) { case (1, 2): return 3; default: return 0; }; } static (object, object) G() => (2, 3); }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); var cv = CompileAndVerify(c); cv.VerifyIL("C.F", @" { // Code size 80 (0x50) .maxstack 2 .locals init (System.ValueTuple<object, object> V_0, object V_1, int V_2, object V_3, int V_4, System.ValueTuple<object, object> V_5, int V_6) IL_0000: nop IL_0001: call ""System.ValueTuple<object, object> C.G()"" IL_0006: stloc.s V_5 IL_0008: ldloc.s V_5 IL_000a: stloc.0 IL_000b: ldloc.0 IL_000c: ldfld ""object System.ValueTuple<object, object>.Item1"" IL_0011: stloc.1 IL_0012: ldloc.1 IL_0013: isinst ""int"" IL_0018: brfalse.s IL_0048 IL_001a: ldloc.1 IL_001b: unbox.any ""int"" IL_0020: stloc.2 IL_0021: ldloc.2 IL_0022: ldc.i4.1 IL_0023: bne.un.s IL_0048 IL_0025: ldloc.0 IL_0026: ldfld ""object System.ValueTuple<object, object>.Item2"" IL_002b: stloc.3 IL_002c: ldloc.3 IL_002d: isinst ""int"" IL_0032: brfalse.s IL_0048 IL_0034: ldloc.3 IL_0035: unbox.any ""int"" IL_003a: stloc.s V_4 IL_003c: ldloc.s V_4 IL_003e: ldc.i4.2 IL_003f: beq.s IL_0043 IL_0041: br.s IL_0048 IL_0043: ldc.i4.3 IL_0044: stloc.s V_6 IL_0046: br.s IL_004d IL_0048: ldc.i4.0 IL_0049: stloc.s V_6 IL_004b: br.s IL_004d IL_004d: ldloc.s V_6 IL_004f: ret } "); c.VerifyPdb("C.F", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F"" parameterNames=""i""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""35"" offset=""11"" /> <slot kind=""35"" offset=""11"" ordinal=""1"" /> <slot kind=""35"" offset=""11"" ordinal=""2"" /> <slot kind=""35"" offset=""11"" ordinal=""3"" /> <slot kind=""35"" offset=""11"" ordinal=""4"" /> <slot kind=""1"" offset=""11"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""21"" document=""1"" /> <entry offset=""0x8"" hidden=""true"" document=""1"" /> <entry offset=""0xb"" hidden=""true"" document=""1"" /> <entry offset=""0x12"" hidden=""true"" document=""1"" /> <entry offset=""0x21"" hidden=""true"" document=""1"" /> <entry offset=""0x2c"" hidden=""true"" document=""1"" /> <entry offset=""0x3c"" hidden=""true"" document=""1"" /> <entry offset=""0x43"" startLine=""8"" startColumn=""26"" endLine=""8"" endColumn=""35"" document=""1"" /> <entry offset=""0x48"" startLine=""9"" startColumn=""22"" endLine=""9"" endColumn=""31"" document=""1"" /> <entry offset=""0x4d"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region Tuples [Fact] public void SyntaxOffset_TupleDeconstruction() { var source = @"class C { int F() { (int a, (_, int c)) = (1, (2, 3)); return a + c; } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); c.VerifyPdb("C.F", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""7"" /> <slot kind=""0"" offset=""18"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""19"" endLine=""1"" endColumn=""20"" document=""1"" /> <entry offset=""0x1"" startLine=""1"" startColumn=""21"" endLine=""1"" endColumn=""55"" document=""1"" /> <entry offset=""0x5"" startLine=""1"" startColumn=""56"" endLine=""1"" endColumn=""69"" document=""1"" /> <entry offset=""0xb"" startLine=""1"" startColumn=""70"" endLine=""1"" endColumn=""71"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xd""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0xd"" attributes=""0"" /> <local name=""c"" il_index=""1"" il_start=""0x0"" il_end=""0xd"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void TestDeconstruction() { var source = @" public class C { public static (int, int) F() => (1, 2); public static void Main() { int x, y; (x, y) = F(); System.Console.WriteLine(x + y); } } "; var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.Main", @" { // Code size 29 (0x1d) .maxstack 2 .locals init (int V_0, //x int V_1) //y // sequence point: { IL_0000: nop // sequence point: (x, y) = F(); IL_0001: call ""System.ValueTuple<int, int> C.F()"" IL_0006: dup IL_0007: ldfld ""int System.ValueTuple<int, int>.Item1"" IL_000c: stloc.0 IL_000d: ldfld ""int System.ValueTuple<int, int>.Item2"" IL_0012: stloc.1 // sequence point: System.Console.WriteLine(x + y); IL_0013: ldloc.0 IL_0014: ldloc.1 IL_0015: add IL_0016: call ""void System.Console.WriteLine(int)"" IL_001b: nop // sequence point: } IL_001c: ret } ", sequencePoints: "C.Main", source: source); } [Fact] public void SyntaxOffset_TupleParenthesized() { var source = @"class C { int F() { (int, (int, int)) x = (1, (2, 3)); return x.Item1 + x.Item2.Item1 + x.Item2.Item2; } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); c.VerifyPdb("C.F", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""20"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""19"" endLine=""1"" endColumn=""20"" document=""1"" /> <entry offset=""0x1"" startLine=""1"" startColumn=""21"" endLine=""1"" endColumn=""55"" document=""1"" /> <entry offset=""0x10"" startLine=""1"" startColumn=""56"" endLine=""1"" endColumn=""103"" document=""1"" /> <entry offset=""0x31"" startLine=""1"" startColumn=""104"" endLine=""1"" endColumn=""105"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x33""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x33"" attributes=""0"" /> </scope> </method> </methods> </symbols>" ); } [Fact] public void SyntaxOffset_TupleVarDefined() { var source = @"class C { int F() { var x = (1, 2); return x.Item1 + x.Item2; } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); c.VerifyPdb("C.F", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""6"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""19"" endLine=""1"" endColumn=""20"" document=""1"" /> <entry offset=""0x1"" startLine=""1"" startColumn=""21"" endLine=""1"" endColumn=""36"" document=""1"" /> <entry offset=""0xa"" startLine=""1"" startColumn=""37"" endLine=""1"" endColumn=""62"" document=""1"" /> <entry offset=""0x1a"" startLine=""1"" startColumn=""63"" endLine=""1"" endColumn=""64"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1c""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x1c"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void SyntaxOffset_TupleIgnoreDeconstructionIfVariableDeclared() { var source = @"class C { int F() { (int x, int y) a = (1, 2); return a.Item1 + a.Item2; } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); c.VerifyPdb("C.F", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <tupleElementNames> <local elementNames=""|x|y"" slotIndex=""0"" localName=""a"" scopeStart=""0x0"" scopeEnd=""0x0"" /> </tupleElementNames> <encLocalSlotMap> <slot kind=""0"" offset=""17"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""19"" endLine=""1"" endColumn=""20"" document=""1"" /> <entry offset=""0x1"" startLine=""1"" startColumn=""21"" endLine=""1"" endColumn=""47"" document=""1"" /> <entry offset=""0x9"" startLine=""1"" startColumn=""48"" endLine=""1"" endColumn=""73"" document=""1"" /> <entry offset=""0x19"" startLine=""1"" startColumn=""74"" endLine=""1"" endColumn=""75"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1b""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0x1b"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } #endregion #region OutVar [Fact] public void SyntaxOffset_OutVarInConstructor() { var source = @" class B { B(out int z) { z = 2; } } class C { int F = G(out var v1); int P => G(out var v2); C() : base(out var v3) { G(out var v4); } int G(out int x) { x = 1; return 2; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyDiagnostics( // (9,13): error CS0236: A field initializer cannot reference the non-static field, method, or property 'C.G(out int)' // int F = G(out var v1); Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "G").WithArguments("C.G(out int)").WithLocation(9, 13), // (13,7): error CS1729: 'object' does not contain a constructor that takes 1 arguments // : base(out var v3) Diagnostic(ErrorCode.ERR_BadCtorArgCount, "base").WithArguments("object", "1").WithLocation(13, 7)); } [Fact] public void SyntaxOffset_OutVarInMethod() { var source = @"class C { int G(out int x) { int z = 1; G(out var y); G(out var w); return x = y; } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.G", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""G"" parameterNames=""x""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""6"" /> <slot kind=""0"" offset=""23"" /> <slot kind=""0"" offset=""37"" /> <slot kind=""temp"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""28"" endLine=""1"" endColumn=""29"" document=""1"" /> <entry offset=""0x1"" startLine=""1"" startColumn=""30"" endLine=""1"" endColumn=""40"" document=""1"" /> <entry offset=""0x3"" startLine=""1"" startColumn=""41"" endLine=""1"" endColumn=""54"" document=""1"" /> <entry offset=""0xc"" startLine=""1"" startColumn=""55"" endLine=""1"" endColumn=""68"" document=""1"" /> <entry offset=""0x15"" startLine=""1"" startColumn=""69"" endLine=""1"" endColumn=""82"" document=""1"" /> <entry offset=""0x1f"" startLine=""1"" startColumn=""83"" endLine=""1"" endColumn=""84"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x22""> <local name=""z"" il_index=""0"" il_start=""0x0"" il_end=""0x22"" attributes=""0"" /> <local name=""y"" il_index=""1"" il_start=""0x0"" il_end=""0x22"" attributes=""0"" /> <local name=""w"" il_index=""2"" il_start=""0x0"" il_end=""0x22"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_01() { var source = WithWindowsLineBreaks( @" class C : A { int x = G(out var x); int y {get;} = G(out var y); C() : base(G(out var z)) { } static int G(out int x) { throw null; } } class A { public A(int x) {} } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""-36"" /> <slot kind=""0"" offset=""-22"" /> <slot kind=""0"" offset=""-3"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""26"" document=""1"" /> <entry offset=""0xd"" startLine=""5"" startColumn=""20"" endLine=""5"" endColumn=""32"" document=""1"" /> <entry offset=""0x1a"" startLine=""7"" startColumn=""11"" endLine=""7"" endColumn=""29"" document=""1"" /> <entry offset=""0x28"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> <entry offset=""0x29"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2a""> <scope startOffset=""0x0"" endOffset=""0xd""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0xd"" attributes=""0"" /> </scope> <scope startOffset=""0xd"" endOffset=""0x1a""> <local name=""y"" il_index=""1"" il_start=""0xd"" il_end=""0x1a"" attributes=""0"" /> </scope> <scope startOffset=""0x1a"" endOffset=""0x2a""> <local name=""z"" il_index=""2"" il_start=""0x1a"" il_end=""0x2a"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_02() { var source = WithWindowsLineBreaks( @" class C : A { C() : base(G(out var x)) { int y = 1; y++; } static int G(out int x) { throw null; } } class A { public A(int x) {} } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""-3"" /> <slot kind=""0"" offset=""16"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""11"" endLine=""4"" endColumn=""29"" document=""1"" /> <entry offset=""0xe"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0xf"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""19"" document=""1"" /> <entry offset=""0x11"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""13"" document=""1"" /> <entry offset=""0x15"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x16""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x16"" attributes=""0"" /> <scope startOffset=""0xe"" endOffset=""0x16""> <local name=""y"" il_index=""1"" il_start=""0xe"" il_end=""0x16"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_03() { var source = WithWindowsLineBreaks( @" class C : A { C() : base(G(out var x)) => G(out var y); static int G(out int x) { throw null; } } class A { public A(int x) {} } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""-3"" /> <slot kind=""0"" offset=""13"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""11"" endLine=""4"" endColumn=""29"" document=""1"" /> <entry offset=""0xe"" startLine=""5"" startColumn=""8"" endLine=""5"" endColumn=""20"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x17""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x17"" attributes=""0"" /> <scope startOffset=""0xe"" endOffset=""0x17""> <local name=""y"" il_index=""1"" il_start=""0xe"" il_end=""0x17"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_04() { var source = WithWindowsLineBreaks( @" class C { static int G(out int x) { throw null; } static int F(System.Func<int> x) { throw null; } C() { } #line 2000 int y1 = G(out var z) + F(() => z); } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> <encLocalSlotMap> <slot kind=""30"" offset=""-25"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>2</methodOrdinal> <closure offset=""-25"" /> <lambda offset=""-2"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x6"" startLine=""2000"" startColumn=""5"" endLine=""2000"" endColumn=""40"" document=""1"" /> <entry offset=""0x29"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""8"" document=""1"" /> <entry offset=""0x30"" startLine=""14"" startColumn=""5"" endLine=""14"" endColumn=""6"" document=""1"" /> <entry offset=""0x31"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x32""> <scope startOffset=""0x0"" endOffset=""0x29""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x29"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c__DisplayClass2_0.<.ctor>b__0", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c__DisplayClass2_0"" name=""&lt;.ctor&gt;b__0""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2000"" startColumn=""37"" endLine=""2000"" endColumn=""38"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_05() { var source = WithWindowsLineBreaks( @" class C { static int G(out int x) { throw null; } static int F(System.Func<int> x) { throw null; } #line 2000 int y1 { get; } = G(out var z) + F(() => z); } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> <encLocalSlotMap> <slot kind=""30"" offset=""-25"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>5</methodOrdinal> <closure offset=""-25"" /> <lambda offset=""-2"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x6"" startLine=""2000"" startColumn=""23"" endLine=""2000"" endColumn=""48"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x31""> <scope startOffset=""0x0"" endOffset=""0x29""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x29"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c__DisplayClass5_0.<.ctor>b__0", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c__DisplayClass5_0"" name=""&lt;.ctor&gt;b__0""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2000"" startColumn=""46"" endLine=""2000"" endColumn=""47"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_06() { var source = WithWindowsLineBreaks( @" class C { static int G(out int x) { throw null; } static int F(System.Func<int> x) { throw null; } #line 2000 int y1 = G(out var z) + F(() => z), y2 = G(out var u) + F(() => u); } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C..ctor", sequencePoints: "C..ctor", expectedIL: @" { // Code size 90 (0x5a) .maxstack 4 .locals init (C.<>c__DisplayClass4_0 V_0, //CS$<>8__locals0 C.<>c__DisplayClass4_1 V_1) //CS$<>8__locals1 ~IL_0000: newobj ""C.<>c__DisplayClass4_0..ctor()"" IL_0005: stloc.0 -IL_0006: ldarg.0 IL_0007: ldloc.0 IL_0008: ldflda ""int C.<>c__DisplayClass4_0.z"" IL_000d: call ""int C.G(out int)"" IL_0012: ldloc.0 IL_0013: ldftn ""int C.<>c__DisplayClass4_0.<.ctor>b__0()"" IL_0019: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_001e: call ""int C.F(System.Func<int>)"" IL_0023: add IL_0024: stfld ""int C.y1"" ~IL_0029: newobj ""C.<>c__DisplayClass4_1..ctor()"" IL_002e: stloc.1 -IL_002f: ldarg.0 IL_0030: ldloc.1 IL_0031: ldflda ""int C.<>c__DisplayClass4_1.u"" IL_0036: call ""int C.G(out int)"" IL_003b: ldloc.1 IL_003c: ldftn ""int C.<>c__DisplayClass4_1.<.ctor>b__1()"" IL_0042: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_0047: call ""int C.F(System.Func<int>)"" IL_004c: add IL_004d: stfld ""int C.y2"" IL_0052: ldarg.0 IL_0053: call ""object..ctor()"" IL_0058: nop IL_0059: ret } "); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> <encLocalSlotMap> <slot kind=""30"" offset=""-52"" /> <slot kind=""30"" offset=""-25"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>4</methodOrdinal> <closure offset=""-52"" /> <closure offset=""-25"" /> <lambda offset=""-29"" closure=""0"" /> <lambda offset=""-2"" closure=""1"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x6"" startLine=""2000"" startColumn=""5"" endLine=""2000"" endColumn=""39"" document=""1"" /> <entry offset=""0x29"" hidden=""true"" document=""1"" /> <entry offset=""0x2f"" startLine=""2000"" startColumn=""41"" endLine=""2000"" endColumn=""71"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x5a""> <scope startOffset=""0x0"" endOffset=""0x29""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x29"" attributes=""0"" /> </scope> <scope startOffset=""0x29"" endOffset=""0x52""> <local name=""CS$&lt;&gt;8__locals1"" il_index=""1"" il_start=""0x29"" il_end=""0x52"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c__DisplayClass4_0.<.ctor>b__0", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c__DisplayClass4_0"" name=""&lt;.ctor&gt;b__0""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2000"" startColumn=""37"" endLine=""2000"" endColumn=""38"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c__DisplayClass4_1.<.ctor>b__1", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c__DisplayClass4_1"" name=""&lt;.ctor&gt;b__1""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2000"" startColumn=""69"" endLine=""2000"" endColumn=""70"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_07() { var source = WithWindowsLineBreaks( @" class C : A { #line 2000 C() : base(G(out var z)+ F(() => z)) { } static int G(out int x) { throw null; } static int F(System.Func<int> x) { throw null; } } class A { public A(int x) {} } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""30"" offset=""-1"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""-1"" /> <lambda offset=""-3"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x6"" startLine=""2000"" startColumn=""11"" endLine=""2000"" endColumn=""41"" document=""1"" /> <entry offset=""0x2a"" startLine=""2001"" startColumn=""5"" endLine=""2001"" endColumn=""6"" document=""1"" /> <entry offset=""0x2b"" startLine=""2002"" startColumn=""5"" endLine=""2002"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2c""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x2c"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c__DisplayClass0_0.<.ctor>b__0", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c__DisplayClass0_0"" name=""&lt;.ctor&gt;b__0""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2000"" startColumn=""38"" endLine=""2000"" endColumn=""39"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInQuery_01() { var source = WithWindowsLineBreaks( @" using System.Linq; class C { C() { var q = from a in new [] {1} where G(out var x1) > a select a; } static int G(out int x) { throw null; } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <lambda offset=""88"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""8"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""8"" startColumn=""9"" endLine=""11"" endColumn=""26"" document=""1"" /> <entry offset=""0x37"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x38""> <namespace name=""System.Linq"" /> <scope startOffset=""0x7"" endOffset=""0x38""> <local name=""q"" il_index=""0"" il_start=""0x7"" il_end=""0x38"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c.<.ctor>b__0_0", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c"" name=""&lt;.ctor&gt;b__0_0"" parameterNames=""a""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> <encLocalSlotMap> <slot kind=""0"" offset=""98"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""23"" endLine=""10"" endColumn=""40"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb""> <local name=""x1"" il_index=""0"" il_start=""0x0"" il_end=""0xb"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInQuery_02() { var source = WithWindowsLineBreaks( @" using System.Linq; class C { C() #line 2000 { var q = from a in new [] {1} where G(out var x1) > F(() => x1) select a; } static int G(out int x) { throw null; } static int F(System.Func<int> x) { throw null; } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""88"" /> <lambda offset=""88"" /> <lambda offset=""112"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""8"" document=""1"" /> <entry offset=""0x7"" startLine=""2000"" startColumn=""5"" endLine=""2000"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""2001"" startColumn=""9"" endLine=""2004"" endColumn=""26"" document=""1"" /> <entry offset=""0x37"" startLine=""2005"" startColumn=""5"" endLine=""2005"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x38""> <namespace name=""System.Linq"" /> <scope startOffset=""0x7"" endOffset=""0x38""> <local name=""q"" il_index=""0"" il_start=""0x7"" il_end=""0x38"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c.<.ctor>b__0_0", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c"" name=""&lt;.ctor&gt;b__0_0"" parameterNames=""a""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> <encLocalSlotMap> <slot kind=""30"" offset=""88"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x6"" startLine=""2003"" startColumn=""23"" endLine=""2003"" endColumn=""50"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x25""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x25"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c__DisplayClass0_0.<.ctor>b__1", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c__DisplayClass0_0"" name=""&lt;.ctor&gt;b__1""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2003"" startColumn=""47"" endLine=""2003"" endColumn=""49"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInSwitchExpression() { var source = @"class C { static object G() => N(out var x) switch { null => x switch {1 => 1, _ => 2 }, _ => 1 }; static object N(out int x) { x = 1; return null; } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.G", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""G""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""13"" /> <slot kind=""temp"" /> <slot kind=""35"" offset=""16"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""32"" endLine=""1"" endColumn=""99"" document=""1"" /> <entry offset=""0xb"" startLine=""1"" startColumn=""45"" endLine=""1"" endColumn=""99"" document=""1"" /> <entry offset=""0xc"" hidden=""true"" document=""1"" /> <entry offset=""0x11"" hidden=""true"" document=""1"" /> <entry offset=""0x14"" startLine=""1"" startColumn=""64"" endLine=""1"" endColumn=""89"" document=""1"" /> <entry offset=""0x15"" hidden=""true"" document=""1"" /> <entry offset=""0x1b"" startLine=""1"" startColumn=""78"" endLine=""1"" endColumn=""79"" document=""1"" /> <entry offset=""0x1f"" startLine=""1"" startColumn=""86"" endLine=""1"" endColumn=""87"" document=""1"" /> <entry offset=""0x23"" hidden=""true"" document=""1"" /> <entry offset=""0x26"" startLine=""1"" startColumn=""45"" endLine=""1"" endColumn=""99"" document=""1"" /> <entry offset=""0x27"" startLine=""1"" startColumn=""62"" endLine=""1"" endColumn=""89"" document=""1"" /> <entry offset=""0x2b"" startLine=""1"" startColumn=""96"" endLine=""1"" endColumn=""97"" document=""1"" /> <entry offset=""0x2f"" hidden=""true"" document=""1"" /> <entry offset=""0x32"" startLine=""1"" startColumn=""32"" endLine=""1"" endColumn=""99"" document=""1"" /> <entry offset=""0x33"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x3a""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x3a"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } #endregion [WorkItem(4370, "https://github.com/dotnet/roslyn/issues/4370")] [Fact] public void HeadingHiddenSequencePointsPickUpDocumentFromVisibleSequencePoint() { var source = WithWindowsLineBreaks( @"#line 1 ""C:\Async.cs"" #pragma checksum ""C:\Async.cs"" ""{ff1816ec-aa5e-4d10-87f7-6f4963833460}"" ""DBEB2A067B2F0E0D678A002C587A2806056C3DCE"" using System.Threading.Tasks; public class C { public async void M1() { } } "); var tree = SyntaxFactory.ParseSyntaxTree(source, encoding: Encoding.UTF8, path: "HIDDEN.cs"); var c = CSharpCompilation.Create("Compilation", new[] { tree }, new[] { MscorlibRef_v46 }, options: TestOptions.DebugDll.WithDebugPlusMode(true)); c.VerifyPdb( @"<symbols> <files> <file id=""1"" name=""C:\Async.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""DB-EB-2A-06-7B-2F-0E-0D-67-8A-00-2C-58-7A-28-06-05-6C-3D-CE"" /> <file id=""2"" name=""HIDDEN.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""8A-92-EE-2F-D6-6F-C0-69-F4-A8-54-CB-11-BE-A3-06-76-2C-9C-98"" /> </files> <methods> <method containingType=""C"" name=""M1""> <customDebugInfo> <forwardIterator name=""&lt;M1&gt;d__0"" /> </customDebugInfo> </method> <method containingType=""C+&lt;M1&gt;d__0"" name=""MoveNext""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""27"" offset=""0"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> <entry offset=""0xa"" hidden=""true"" document=""1"" /> <entry offset=""0x22"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x2a"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x37""> <namespace name=""System.Threading.Tasks"" /> </scope> <asyncInfo> <catchHandler offset=""0xa"" /> <kickoffMethod declaringType=""C"" methodName=""M1"" /> </asyncInfo> </method> </methods> </symbols> ", format: DebugInformationFormat.Pdb); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""HIDDEN.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""8A-92-EE-2F-D6-6F-C0-69-F4-A8-54-CB-11-BE-A3-06-76-2C-9C-98"" /> <file id=""2"" name=""C:\Async.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""DB-EB-2A-06-7B-2F-0E-0D-67-8A-00-2C-58-7A-28-06-05-6C-3D-CE"" /> </files> <methods> <method containingType=""C+&lt;M1&gt;d__0"" name=""MoveNext""> <customDebugInfo> <encLocalSlotMap> <slot kind=""27"" offset=""0"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""2"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""2"" /> <entry offset=""0xa"" hidden=""true"" document=""2"" /> <entry offset=""0x22"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""2"" /> <entry offset=""0x2a"" hidden=""true"" document=""2"" /> </sequencePoints> <asyncInfo> <catchHandler offset=""0xa"" /> <kickoffMethod declaringType=""C"" methodName=""M1"" /> </asyncInfo> </method> </methods> </symbols>", format: DebugInformationFormat.PortablePdb); } [WorkItem(12923, "https://github.com/dotnet/roslyn/issues/12923")] [Fact] public void SequencePointsForConstructorWithHiddenInitializer() { string initializerSource = WithWindowsLineBreaks(@" #line hidden partial class C { int i = 42; } "); string constructorSource = WithWindowsLineBreaks(@" partial class C { C() { } } "); var c = CreateCompilation( new[] { Parse(initializerSource, "initializer.cs"), Parse(constructorSource, "constructor.cs") }, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""constructor.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""EA-D6-0A-16-6C-6A-BC-C1-5D-98-0F-B7-4B-78-13-93-FB-C7-C2-5A"" /> <file id=""2"" name=""initializer.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""84-32-24-D7-FE-32-63-BA-41-D5-17-A2-D5-90-23-B8-12-3C-AF-D5"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x8"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""8"" document=""1"" /> <entry offset=""0xf"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x10"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> ", format: DebugInformationFormat.Pdb); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""initializer.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""84-32-24-D7-FE-32-63-BA-41-D5-17-A2-D5-90-23-B8-12-3C-AF-D5"" /> <file id=""2"" name=""constructor.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""EA-D6-0A-16-6C-6A-BC-C1-5D-98-0F-B7-4B-78-13-93-FB-C7-C2-5A"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""2"" /> <entry offset=""0x8"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""8"" document=""2"" /> <entry offset=""0xf"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""2"" /> <entry offset=""0x10"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""2"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.PortablePdb); } [WorkItem(14437, "https://github.com/dotnet/roslyn/issues/14437")] [Fact] public void LocalFunctionSequencePoints() { string source = WithWindowsLineBreaks( @"class Program { static int Main(string[] args) { // 4 int Local1(string[] a) => a.Length; // 7 int Local2(string[] a) { // 9 return a.Length; // 10 } // 11 return Local1(args) + Local2(args); // 12 } // 13 }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb( @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main"" parameterNames=""args""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <lambda offset=""115"" /> <lambda offset=""202"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""6"" document=""1"" /> <entry offset=""0x3"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""44"" document=""1"" /> <entry offset=""0x13"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> <method containingType=""Program"" name=""&lt;Main&gt;g__Local1|0_0"" parameterNames=""a""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Main"" parameterNames=""args"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""13"" endLine=""7"" endColumn=""21"" document=""1"" /> </sequencePoints> </method> <method containingType=""Program"" name=""&lt;Main&gt;g__Local2|0_1"" parameterNames=""a""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Main"" parameterNames=""args"" /> <encLocalSlotMap> <slot kind=""21"" offset=""202"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x1"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""29"" document=""1"" /> <entry offset=""0x7"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void SwitchInAsyncMethod() { var source = @" using System; class Program { public static async void Test() { int i = 0; switch (i) { case 1: break; } } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 89 (0x59) .maxstack 2 .locals init (int V_0, int V_1, System.Exception V_2) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = 0; IL_0008: ldarg.0 IL_0009: ldc.i4.0 IL_000a: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: switch (i) IL_000f: ldarg.0 IL_0010: ldarg.0 IL_0011: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_0016: stloc.1 // sequence point: <hidden> IL_0017: ldloc.1 IL_0018: stfld ""int Program.<Test>d__0.<>s__2"" // sequence point: <hidden> IL_001d: ldarg.0 IL_001e: ldfld ""int Program.<Test>d__0.<>s__2"" IL_0023: ldc.i4.1 IL_0024: beq.s IL_0028 IL_0026: br.s IL_002a // sequence point: break; IL_0028: br.s IL_002a // sequence point: <hidden> IL_002a: leave.s IL_0044 } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_002c: stloc.2 IL_002d: ldarg.0 IL_002e: ldc.i4.s -2 IL_0030: stfld ""int Program.<Test>d__0.<>1__state"" IL_0035: ldarg.0 IL_0036: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_003b: ldloc.2 IL_003c: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_0041: nop IL_0042: leave.s IL_0058 } // sequence point: } IL_0044: ldarg.0 IL_0045: ldc.i4.s -2 IL_0047: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_004c: ldarg.0 IL_004d: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0052: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_0057: nop IL_0058: ret }", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void WhileInAsyncMethod() { var source = @" using System; class Program { public static async void Test() { int i = 0; while (i == 1) Console.WriteLine(); } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 83 (0x53) .maxstack 2 .locals init (int V_0, bool V_1, System.Exception V_2) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = 0; IL_0008: ldarg.0 IL_0009: ldc.i4.0 IL_000a: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: <hidden> IL_000f: br.s IL_0017 // sequence point: Console.WriteLine(); IL_0011: call ""void System.Console.WriteLine()"" IL_0016: nop // sequence point: while (i == 1) IL_0017: ldarg.0 IL_0018: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_001d: ldc.i4.1 IL_001e: ceq IL_0020: stloc.1 // sequence point: <hidden> IL_0021: ldloc.1 IL_0022: brtrue.s IL_0011 IL_0024: leave.s IL_003e } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_0026: stloc.2 IL_0027: ldarg.0 IL_0028: ldc.i4.s -2 IL_002a: stfld ""int Program.<Test>d__0.<>1__state"" IL_002f: ldarg.0 IL_0030: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0035: ldloc.2 IL_0036: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_003b: nop IL_003c: leave.s IL_0052 } // sequence point: } IL_003e: ldarg.0 IL_003f: ldc.i4.s -2 IL_0041: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_0046: ldarg.0 IL_0047: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_004c: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_0051: nop IL_0052: ret } ", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ForInAsyncMethod() { var source = @" using System; class Program { public static async void Test() { for (int i = 0; i > 1; i--) Console.WriteLine(); } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 99 (0x63) .maxstack 3 .locals init (int V_0, int V_1, bool V_2, System.Exception V_3) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = 0 IL_0008: ldarg.0 IL_0009: ldc.i4.0 IL_000a: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: <hidden> IL_000f: br.s IL_0027 // sequence point: Console.WriteLine(); IL_0011: call ""void System.Console.WriteLine()"" IL_0016: nop // sequence point: i-- IL_0017: ldarg.0 IL_0018: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_001d: stloc.1 IL_001e: ldarg.0 IL_001f: ldloc.1 IL_0020: ldc.i4.1 IL_0021: sub IL_0022: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: i > 1 IL_0027: ldarg.0 IL_0028: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_002d: ldc.i4.1 IL_002e: cgt IL_0030: stloc.2 // sequence point: <hidden> IL_0031: ldloc.2 IL_0032: brtrue.s IL_0011 IL_0034: leave.s IL_004e } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_0036: stloc.3 IL_0037: ldarg.0 IL_0038: ldc.i4.s -2 IL_003a: stfld ""int Program.<Test>d__0.<>1__state"" IL_003f: ldarg.0 IL_0040: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0045: ldloc.3 IL_0046: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_004b: nop IL_004c: leave.s IL_0062 } // sequence point: } IL_004e: ldarg.0 IL_004f: ldc.i4.s -2 IL_0051: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_0056: ldarg.0 IL_0057: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_005c: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_0061: nop IL_0062: ret } ", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ForWithInnerLocalsInAsyncMethod() { var source = @" using System; class Program { public static async void Test() { for (int i = M(out var x); i > 1; i--) Console.WriteLine(); } public static int M(out int x) { x = 0; return 0; } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 109 (0x6d) .maxstack 3 .locals init (int V_0, int V_1, bool V_2, System.Exception V_3) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = M(out var x) IL_0008: ldarg.0 IL_0009: ldarg.0 IL_000a: ldflda ""int Program.<Test>d__0.<x>5__2"" IL_000f: call ""int Program.M(out int)"" IL_0014: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: <hidden> IL_0019: br.s IL_0031 // sequence point: Console.WriteLine(); IL_001b: call ""void System.Console.WriteLine()"" IL_0020: nop // sequence point: i-- IL_0021: ldarg.0 IL_0022: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_0027: stloc.1 IL_0028: ldarg.0 IL_0029: ldloc.1 IL_002a: ldc.i4.1 IL_002b: sub IL_002c: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: i > 1 IL_0031: ldarg.0 IL_0032: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_0037: ldc.i4.1 IL_0038: cgt IL_003a: stloc.2 // sequence point: <hidden> IL_003b: ldloc.2 IL_003c: brtrue.s IL_001b IL_003e: leave.s IL_0058 } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_0040: stloc.3 IL_0041: ldarg.0 IL_0042: ldc.i4.s -2 IL_0044: stfld ""int Program.<Test>d__0.<>1__state"" IL_0049: ldarg.0 IL_004a: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_004f: ldloc.3 IL_0050: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_0055: nop IL_0056: leave.s IL_006c } // sequence point: } IL_0058: ldarg.0 IL_0059: ldc.i4.s -2 IL_005b: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_0060: ldarg.0 IL_0061: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0066: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_006b: nop IL_006c: ret } ", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); } [ConditionalFact(typeof(WindowsDesktopOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] [WorkItem(23525, "https://github.com/dotnet/roslyn/issues/23525")] public void InvalidCharacterInPdbPath() { using (var outStream = Temp.CreateFile().Open()) { var compilation = CreateCompilation(""); var result = compilation.Emit(outStream, options: new EmitOptions(pdbFilePath: "test\\?.pdb", debugInformationFormat: DebugInformationFormat.Embedded)); // This is fine because EmitOptions just controls what is written into the PE file and it's // valid for this to be an illegal file name (path map can easily create these). Assert.True(result.Success); } } [Fact] [WorkItem(38954, "https://github.com/dotnet/roslyn/issues/38954")] public void FilesOneWithNoMethodBody() { string source1 = WithWindowsLineBreaks(@" using System; class C { public static void Main() { Console.WriteLine(); } } "); string source2 = WithWindowsLineBreaks(@" // no code "); var tree1 = Parse(source1, "f:/build/goo.cs"); var tree2 = Parse(source2, "f:/build/nocode.cs"); var c = CreateCompilation(new[] { tree1, tree2 }, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""f:/build/goo.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""5D-7D-CF-1B-79-12-0E-0A-80-13-E0-98-7E-5C-AA-3B-63-D8-7E-4F"" /> <file id=""2"" name=""f:/build/nocode.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""8B-1D-3F-75-E0-A8-8F-90-B2-D3-52-CF-71-9B-17-29-3C-70-7A-42"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""29"" document=""1"" /> <entry offset=""0x7"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x8""> <namespace name=""System"" /> </scope> </method> </methods> </symbols> "); } [Fact] [WorkItem(38954, "https://github.com/dotnet/roslyn/issues/38954")] public void SingleFileWithNoMethodBody() { string source = WithWindowsLineBreaks(@" // no code "); var tree = Parse(source, "f:/build/nocode.cs"); var c = CreateCompilation(new[] { tree }, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""f:/build/nocode.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""8B-1D-3F-75-E0-A8-8F-90-B2-D3-52-CF-71-9B-17-29-3C-70-7A-42"" /> </files> <methods /> </symbols> "); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.IO; using System.Linq; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Reflection.PortableExecutable; using System.Text; using Microsoft.CodeAnalysis.CodeGen; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Test.PdbUtilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.PDB { public class PDBTests : CSharpPDBTestBase { private static readonly MetadataReference[] s_valueTupleRefs = new[] { SystemRuntimeFacadeRef, ValueTupleRef }; #region General [Fact] public void EmitDebugInfoForSourceTextWithoutEncoding1() { var tree1 = SyntaxFactory.ParseSyntaxTree("class A { }", encoding: null, path: "Foo.cs"); var tree2 = SyntaxFactory.ParseSyntaxTree("class B { }", encoding: null, path: ""); var tree3 = SyntaxFactory.ParseSyntaxTree(SourceText.From("class C { }", encoding: null), path: "Bar.cs"); var tree4 = SyntaxFactory.ParseSyntaxTree("class D { }", encoding: Encoding.UTF8, path: "Baz.cs"); var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] { MscorlibRef }, options: TestOptions.ReleaseDll); var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream()); result.Diagnostics.Verify( // Foo.cs(1,1): error CS8055: Cannot emit debug information for a source text without encoding. Diagnostic(ErrorCode.ERR_EncodinglessSyntaxTree, "class A { }").WithLocation(1, 1), // Bar.cs(1,1): error CS8055: Cannot emit debug information for a source text without encoding. Diagnostic(ErrorCode.ERR_EncodinglessSyntaxTree, "class C { }").WithLocation(1, 1)); Assert.False(result.Success); } [Fact] public void EmitDebugInfoForSourceTextWithoutEncoding2() { var tree1 = SyntaxFactory.ParseSyntaxTree("class A { public void F() { } }", encoding: Encoding.Unicode, path: "Foo.cs"); var tree2 = SyntaxFactory.ParseSyntaxTree("class B { public void F() { } }", encoding: null, path: ""); var tree3 = SyntaxFactory.ParseSyntaxTree("class C { public void F() { } }", encoding: new UTF8Encoding(true, false), path: "Bar.cs"); var tree4 = SyntaxFactory.ParseSyntaxTree(SourceText.From("class D { public void F() { } }", new UTF8Encoding(false, false)), path: "Baz.cs"); var comp = CSharpCompilation.Create("Compilation", new[] { tree1, tree2, tree3, tree4 }, new[] { MscorlibRef }, options: TestOptions.ReleaseDll); var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream()); result.Diagnostics.Verify(); Assert.True(result.Success); var hash1 = CryptographicHashProvider.ComputeSha1(Encoding.Unicode.GetBytesWithPreamble(tree1.ToString())).ToArray(); var hash3 = CryptographicHashProvider.ComputeSha1(new UTF8Encoding(true, false).GetBytesWithPreamble(tree3.ToString())).ToArray(); var hash4 = CryptographicHashProvider.ComputeSha1(new UTF8Encoding(false, false).GetBytesWithPreamble(tree4.ToString())).ToArray(); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""Foo.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""" + BitConverter.ToString(hash1) + @""" /> <file id=""2"" name="""" language=""C#"" /> <file id=""3"" name=""Bar.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""" + BitConverter.ToString(hash3) + @""" /> <file id=""4"" name=""Baz.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""" + BitConverter.ToString(hash4) + @""" /> </files> </symbols>", options: PdbValidationOptions.ExcludeMethods); } [WorkItem(846584, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/846584")] [ConditionalFact(typeof(WindowsOnly))] public void RelativePathForExternalSource_Sha1_Windows() { var text1 = WithWindowsLineBreaks(@" #pragma checksum ""..\Test2.cs"" ""{406ea660-64cf-4c82-b6f0-42d48172a799}"" ""BA8CBEA9C2EFABD90D53B616FB80A081"" public class C { public void InitializeComponent() { #line 4 ""..\Test2.cs"" InitializeComponent(); #line default } } "); var compilation = CreateCompilation( new[] { Parse(text1, @"C:\Folder1\Folder2\Test1.cs") }, options: TestOptions.DebugDll.WithSourceReferenceResolver(SourceFileResolver.Default)); compilation.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""C:\Folder1\Folder2\Test1.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""40-A6-20-02-2E-60-7D-4F-2D-A8-F4-A6-ED-2E-0E-49-8D-9F-D7-EB"" /> <file id=""2"" name=""C:\Folder1\Test2.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""BA-8C-BE-A9-C2-EF-AB-D9-0D-53-B6-16-FB-80-A0-81"" /> </files> <methods> <method containingType=""C"" name=""InitializeComponent""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""39"" endLine=""6"" endColumn=""40"" document=""1"" /> <entry offset=""0x1"" startLine=""4"" startColumn=""9"" endLine=""4"" endColumn=""31"" document=""2"" /> <entry offset=""0x8"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(846584, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/846584")] [ConditionalFact(typeof(UnixLikeOnly))] public void RelativePathForExternalSource_Sha1_Unix() { var text1 = WithWindowsLineBreaks(@" #pragma checksum ""../Test2.cs"" ""{406ea660-64cf-4c82-b6f0-42d48172a799}"" ""BA8CBEA9C2EFABD90D53B616FB80A081"" public class C { public void InitializeComponent() { #line 4 ""../Test2.cs"" InitializeComponent(); #line default } } "); var compilation = CreateCompilation( new[] { Parse(text1, @"/Folder1/Folder2/Test1.cs") }, options: TestOptions.DebugDll.WithSourceReferenceResolver(SourceFileResolver.Default)); compilation.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""/Folder1/Folder2/Test1.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""82-08-07-BA-BA-52-02-D8-1D-1F-7C-E7-95-8A-6C-04-64-FF-50-31"" /> <file id=""2"" name=""/Folder1/Test2.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""BA-8C-BE-A9-C2-EF-AB-D9-0D-53-B6-16-FB-80-A0-81"" /> </files> <methods> <method containingType=""C"" name=""InitializeComponent""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""39"" endLine=""6"" endColumn=""40"" document=""1"" /> <entry offset=""0x1"" startLine=""4"" startColumn=""9"" endLine=""4"" endColumn=""31"" document=""2"" /> <entry offset=""0x8"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SymWriterErrors() { var source0 = @"class C { }"; var compilation = CreateCompilation(source0, options: TestOptions.DebugDll); // Verify full metadata contains expected rows. var result = compilation.Emit( peStream: new MemoryStream(), metadataPEStream: null, pdbStream: new MemoryStream(), xmlDocumentationStream: null, cancellationToken: default, win32Resources: null, manifestResources: null, options: null, debugEntryPoint: null, sourceLinkStream: null, embeddedTexts: null, rebuildData: null, testData: new CompilationTestData() { SymWriterFactory = _ => new MockSymUnmanagedWriter() }); result.Diagnostics.Verify( // error CS0041: Unexpected error writing debug information -- 'MockSymUnmanagedWriter error message' Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments("MockSymUnmanagedWriter error message")); Assert.False(result.Success); } [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SymWriterErrors2() { var source0 = @"class C { }"; var compilation = CreateCompilation(source0, options: TestOptions.DebugDll); // Verify full metadata contains expected rows. var result = compilation.Emit( peStream: new MemoryStream(), metadataPEStream: null, pdbStream: new MemoryStream(), xmlDocumentationStream: null, cancellationToken: default, win32Resources: null, manifestResources: null, options: null, debugEntryPoint: null, sourceLinkStream: null, embeddedTexts: null, rebuildData: null, testData: new CompilationTestData() { SymWriterFactory = SymWriterTestUtilities.ThrowingFactory }); result.Diagnostics.Verify( // error CS0041: Unexpected error writing debug information -- 'The version of Windows PDB writer is older than required: '<lib name>'' Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments(string.Format(CodeAnalysisResources.SymWriterOlderVersionThanRequired, "<lib name>"))); Assert.False(result.Success); } [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SymWriterErrors3() { var source0 = @"class C { }"; var compilation = CreateCompilation(source0, options: TestOptions.DebugDll.WithDeterministic(true)); // Verify full metadata contains expected rows. var result = compilation.Emit( peStream: new MemoryStream(), metadataPEStream: null, pdbStream: new MemoryStream(), xmlDocumentationStream: null, cancellationToken: default, win32Resources: null, manifestResources: null, options: null, debugEntryPoint: null, sourceLinkStream: null, embeddedTexts: null, rebuildData: null, testData: new CompilationTestData() { SymWriterFactory = SymWriterTestUtilities.ThrowingFactory }); result.Diagnostics.Verify( // error CS0041: Unexpected error writing debug information -- 'Windows PDB writer doesn't support deterministic compilation: '<lib name>'' Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments(string.Format(CodeAnalysisResources.SymWriterNotDeterministic, "<lib name>"))); Assert.False(result.Success); } [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SymWriterErrors4() { var source0 = @"class C { }"; var compilation = CreateCompilation(source0); // Verify full metadata contains expected rows. var result = compilation.Emit( peStream: new MemoryStream(), metadataPEStream: null, pdbStream: new MemoryStream(), xmlDocumentationStream: null, cancellationToken: default, win32Resources: null, manifestResources: null, options: null, debugEntryPoint: null, sourceLinkStream: null, embeddedTexts: null, rebuildData: null, testData: new CompilationTestData() { SymWriterFactory = _ => throw new DllNotFoundException("xxx") }); result.Diagnostics.Verify( // error CS0041: Unexpected error writing debug information -- 'xxx' Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments("xxx")); Assert.False(result.Success); } [WorkItem(1067635, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1067635")] [Fact] public void SuppressDynamicAndEncCDIForWinRT() { var source = @" public class C { public static void F() { dynamic a = 1; int b = 2; foreach (var x in new[] { 1,2,3 }) { System.Console.WriteLine(a * b); } } } "; var debug = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.DebugWinMD); debug.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""23"" document=""1"" /> <entry offset=""0x8"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""19"" document=""1"" /> <entry offset=""0xa"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""16"" document=""1"" /> <entry offset=""0xb"" startLine=""8"" startColumn=""27"" endLine=""8"" endColumn=""42"" document=""1"" /> <entry offset=""0x1f"" hidden=""true"" document=""1"" /> <entry offset=""0x24"" startLine=""8"" startColumn=""18"" endLine=""8"" endColumn=""23"" document=""1"" /> <entry offset=""0x29"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x2a"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""45"" document=""1"" /> <entry offset=""0xe6"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0xe7"" hidden=""true"" document=""1"" /> <entry offset=""0xeb"" startLine=""8"" startColumn=""24"" endLine=""8"" endColumn=""26"" document=""1"" /> <entry offset=""0xf4"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xf5""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0xf5"" attributes=""0"" /> <local name=""b"" il_index=""1"" il_start=""0x0"" il_end=""0xf5"" attributes=""0"" /> <scope startOffset=""0x24"" endOffset=""0xe7""> <local name=""x"" il_index=""4"" il_start=""0x24"" il_end=""0xe7"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); var release = CreateCompilation(source, new[] { CSharpRef }, options: TestOptions.ReleaseWinMD); release.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""23"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""19"" document=""1"" /> <entry offset=""0x9"" startLine=""8"" startColumn=""27"" endLine=""8"" endColumn=""42"" document=""1"" /> <entry offset=""0x1d"" hidden=""true"" document=""1"" /> <entry offset=""0x22"" startLine=""8"" startColumn=""18"" endLine=""8"" endColumn=""23"" document=""1"" /> <entry offset=""0x26"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""45"" document=""1"" /> <entry offset=""0xdd"" hidden=""true"" document=""1"" /> <entry offset=""0xe1"" startLine=""8"" startColumn=""24"" endLine=""8"" endColumn=""26"" document=""1"" /> <entry offset=""0xea"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xeb""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0xeb"" attributes=""0"" /> <local name=""b"" il_index=""1"" il_start=""0x0"" il_end=""0xeb"" attributes=""0"" /> </scope> </method> </methods> </symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); } [WorkItem(1067635, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1067635")] [Fact] public void SuppressTupleElementNamesCDIForWinRT() { var source = @"class C { static void F() { (int A, int B) o = (1, 2); } }"; var debug = CreateCompilation(source, options: TestOptions.DebugWinMD); debug.VerifyPdb( @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""5"" startColumn=""9"" endLine=""5"" endColumn=""35"" document=""1"" /> <entry offset=""0x9"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xa""> <local name=""o"" il_index=""0"" il_start=""0x0"" il_end=""0xa"" attributes=""0"" /> </scope> </method> </methods> </symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); var release = CreateCompilation(source, options: TestOptions.ReleaseWinMD); release.VerifyPdb( @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.Pdb, options: PdbValidationOptions.SkipConversionValidation); } [Fact] public void DuplicateDocuments() { var source1 = @"class C { static void F() { } }"; var source2 = @"class D { static void F() { } }"; var tree1 = Parse(source1, @"foo.cs"); var tree2 = Parse(source2, @"foo.cs"); var comp = CreateCompilation(new[] { tree1, tree2 }); // the first file wins (checksum CB 22 ...) comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""foo.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""CB-22-D8-03-D3-27-32-64-2C-BC-7D-67-5D-E3-CB-AC-D1-64-25-83"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""29"" endLine=""1"" endColumn=""30"" document=""1"" /> </sequencePoints> </method> <method containingType=""D"" name=""F""> <customDebugInfo> <forward declaringType=""C"" methodName=""F"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""29"" endLine=""1"" endColumn=""30"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void CustomDebugEntryPoint_DLL() { var source = @"class C { static void F() { } }"; var c = CreateCompilation(source, options: TestOptions.DebugDll); var f = c.GetMember<MethodSymbol>("C.F"); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""F"" /> <methods/> </symbols>", debugEntryPoint: f.GetPublicSymbol(), options: PdbValidationOptions.ExcludeScopes | PdbValidationOptions.ExcludeSequencePoints | PdbValidationOptions.ExcludeCustomDebugInformation); var peReader = new PEReader(c.EmitToArray(debugEntryPoint: f.GetPublicSymbol())); int peEntryPointToken = peReader.PEHeaders.CorHeader.EntryPointTokenOrRelativeVirtualAddress; Assert.Equal(0, peEntryPointToken); } [Fact] public void CustomDebugEntryPoint_EXE() { var source = @"class M { static void Main() { } } class C { static void F<S>() { } }"; var c = CreateCompilation(source, options: TestOptions.DebugExe); var f = c.GetMember<MethodSymbol>("C.F"); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""F"" /> <methods/> </symbols>", debugEntryPoint: f.GetPublicSymbol(), options: PdbValidationOptions.ExcludeScopes | PdbValidationOptions.ExcludeSequencePoints | PdbValidationOptions.ExcludeCustomDebugInformation); var peReader = new PEReader(c.EmitToArray(debugEntryPoint: f.GetPublicSymbol())); int peEntryPointToken = peReader.PEHeaders.CorHeader.EntryPointTokenOrRelativeVirtualAddress; var mdReader = peReader.GetMetadataReader(); var methodDef = mdReader.GetMethodDefinition((MethodDefinitionHandle)MetadataTokens.Handle(peEntryPointToken)); Assert.Equal("Main", mdReader.GetString(methodDef.Name)); } [Fact] public void CustomDebugEntryPoint_Errors() { var source1 = @"class C { static void F() { } } class D<T> { static void G<S>() {} }"; var source2 = @"class C { static void F() { } }"; var c1 = CreateCompilation(source1, options: TestOptions.DebugDll); var c2 = CreateCompilation(source2, options: TestOptions.DebugDll); var f1 = c1.GetMember<MethodSymbol>("C.F"); var f2 = c2.GetMember<MethodSymbol>("C.F"); var g = c1.GetMember<MethodSymbol>("D.G"); var d = c1.GetMember<NamedTypeSymbol>("D"); Assert.NotNull(f1); Assert.NotNull(f2); Assert.NotNull(g); Assert.NotNull(d); var stInt = c1.GetSpecialType(SpecialType.System_Int32); var d_t_g_int = g.Construct(stInt); var d_int = d.Construct(stInt); var d_int_g = d_int.GetMember<MethodSymbol>("G"); var d_int_g_int = d_int_g.Construct(stInt); var result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: f2.GetPublicSymbol()); result.Diagnostics.Verify( // error CS8096: Debug entry point must be a definition of a source method in the current compilation. Diagnostic(ErrorCode.ERR_DebugEntryPointNotSourceMethodDefinition)); result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_t_g_int.GetPublicSymbol()); result.Diagnostics.Verify( // error CS8096: Debug entry point must be a definition of a source method in the current compilation. Diagnostic(ErrorCode.ERR_DebugEntryPointNotSourceMethodDefinition)); result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_int_g.GetPublicSymbol()); result.Diagnostics.Verify( // error CS8096: Debug entry point must be a definition of a source method in the current compilation. Diagnostic(ErrorCode.ERR_DebugEntryPointNotSourceMethodDefinition)); result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: d_int_g_int.GetPublicSymbol()); result.Diagnostics.Verify( // error CS8096: Debug entry point must be a definition of a source method in the current compilation. Diagnostic(ErrorCode.ERR_DebugEntryPointNotSourceMethodDefinition)); } [Fact] [WorkItem(768862, "https://devdiv.visualstudio.com/DevDiv/_workitems/edit/768862")] public void TestLargeLineDelta() { var verbatim = string.Join("\r\n", Enumerable.Repeat("x", 1000)); var source = $@" class C {{ public static void Main() => System.Console.WriteLine(@""{verbatim}""); }} "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2"" startColumn=""40"" endLine=""1001"" endColumn=""4"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> ", format: DebugInformationFormat.PortablePdb); // Native PDBs only support spans with line delta <= 127 (7 bit) // https://github.com/Microsoft/microsoft-pdb/blob/main/include/cvinfo.h#L4621 c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2"" startColumn=""40"" endLine=""129"" endColumn=""4"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> ", format: DebugInformationFormat.Pdb); } [Fact] [WorkItem(20118, "https://github.com/dotnet/roslyn/issues/20118")] public void TestLargeStartAndEndColumn_SameLine() { var spaces = new string(' ', 0x10000); var source = $@" class C {{ public static void Main() => {spaces}System.Console.WriteLine(""{spaces}""); }} "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""65533"" endLine=""5"" endColumn=""65534"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] [WorkItem(20118, "https://github.com/dotnet/roslyn/issues/20118")] public void TestLargeStartAndEndColumn_DifferentLine() { var spaces = new string(' ', 0x10000); var source = $@" class C {{ public static void Main() => {spaces}System.Console.WriteLine( ""{spaces}""); }} "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""65534"" endLine=""6"" endColumn=""65534"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } #endregion #region Method Bodies [Fact] public void TestBasic() { var source = WithWindowsLineBreaks(@" class Program { Program() { } static void Main(string[] args) { Program p = new Program(); } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("Program.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main"" parameterNames=""args""> <customDebugInfo> <forward declaringType=""Program"" methodName="".ctor"" /> <encLocalSlotMap> <slot kind=""0"" offset=""19"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""35"" document=""1"" /> <entry offset=""0x7"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x8""> <local name=""p"" il_index=""0"" il_start=""0x0"" il_end=""0x8"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void TestSimpleLocals() { var source = WithWindowsLineBreaks(@" class C { void Method() { //local at method scope object version = 6; System.Console.WriteLine(""version {0}"", version); { //a scope that defines no locals { //a nested local object foob = 1; System.Console.WriteLine(""foob {0}"", foob); } { //a nested local int foob1 = 1; System.Console.WriteLine(""foob1 {0}"", foob1); } System.Console.WriteLine(""Eva""); } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Method", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Method""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""44"" /> <slot kind=""0"" offset=""246"" /> <slot kind=""0"" offset=""402"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""28"" document=""1"" /> <entry offset=""0x8"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""58"" document=""1"" /> <entry offset=""0x14"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""10"" document=""1"" /> <entry offset=""0x15"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""14"" document=""1"" /> <entry offset=""0x16"" startLine=""12"" startColumn=""17"" endLine=""12"" endColumn=""33"" document=""1"" /> <entry offset=""0x1d"" startLine=""13"" startColumn=""17"" endLine=""13"" endColumn=""60"" document=""1"" /> <entry offset=""0x29"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""14"" document=""1"" /> <entry offset=""0x2a"" startLine=""15"" startColumn=""13"" endLine=""15"" endColumn=""14"" document=""1"" /> <entry offset=""0x2b"" startLine=""17"" startColumn=""17"" endLine=""17"" endColumn=""31"" document=""1"" /> <entry offset=""0x2d"" startLine=""18"" startColumn=""17"" endLine=""18"" endColumn=""62"" document=""1"" /> <entry offset=""0x3e"" startLine=""19"" startColumn=""13"" endLine=""19"" endColumn=""14"" document=""1"" /> <entry offset=""0x3f"" startLine=""20"" startColumn=""13"" endLine=""20"" endColumn=""45"" document=""1"" /> <entry offset=""0x4a"" startLine=""21"" startColumn=""9"" endLine=""21"" endColumn=""10"" document=""1"" /> <entry offset=""0x4b"" startLine=""22"" startColumn=""5"" endLine=""22"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x4c""> <local name=""version"" il_index=""0"" il_start=""0x0"" il_end=""0x4c"" attributes=""0"" /> <scope startOffset=""0x15"" endOffset=""0x2a""> <local name=""foob"" il_index=""1"" il_start=""0x15"" il_end=""0x2a"" attributes=""0"" /> </scope> <scope startOffset=""0x2a"" endOffset=""0x3f""> <local name=""foob1"" il_index=""2"" il_start=""0x2a"" il_end=""0x3f"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] [WorkItem(7244, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/7244")] public void ConstructorsWithoutInitializers() { var source = WithWindowsLineBreaks( @"class C { C() { object o; } C(object x) { object y = x; } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""18"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""3"" startColumn=""5"" endLine=""3"" endColumn=""8"" document=""1"" /> <entry offset=""0x7"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x9""> <scope startOffset=""0x7"" endOffset=""0x9""> <local name=""o"" il_index=""0"" il_start=""0x7"" il_end=""0x9"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C"" name="".ctor"" parameterNames=""x""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> <encLocalSlotMap> <slot kind=""0"" offset=""18"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""16"" document=""1"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""22"" document=""1"" /> <entry offset=""0xa"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb""> <scope startOffset=""0x7"" endOffset=""0xb""> <local name=""y"" il_index=""0"" il_start=""0x7"" il_end=""0xb"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(7244, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/7244")] [Fact] public void ConstructorsWithInitializers() { var source = WithWindowsLineBreaks( @"class C { static object G = 1; object F = G; C() { object o; } C(object x) { object y = x; } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""18"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""18"" document=""1"" /> <entry offset=""0xb"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""8"" document=""1"" /> <entry offset=""0x12"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x13"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x14""> <scope startOffset=""0x12"" endOffset=""0x14""> <local name=""o"" il_index=""0"" il_start=""0x12"" il_end=""0x14"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C"" name="".ctor"" parameterNames=""x""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> <encLocalSlotMap> <slot kind=""0"" offset=""18"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""18"" document=""1"" /> <entry offset=""0xb"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""16"" document=""1"" /> <entry offset=""0x12"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0x13"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""22"" document=""1"" /> <entry offset=""0x15"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x16""> <scope startOffset=""0x12"" endOffset=""0x16""> <local name=""y"" il_index=""0"" il_start=""0x12"" il_end=""0x16"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } /// <summary> /// Although the debugging info attached to DebuggerHidden method is not used by the debugger /// (the debugger doesn't ever stop in the method) Dev11 emits the info and so do we. /// /// StepThrough method needs the information if JustMyCode is disabled and a breakpoint is set within the method. /// NonUserCode method needs the information if JustMyCode is disabled. /// /// It's up to the tool that consumes the debugging information, not the compiler to decide whether to ignore the info or not. /// BTW, the information can actually be retrieved at runtime from the PDB file via Reflection StackTrace. /// </summary> [Fact] public void MethodsWithDebuggerAttributes() { var source = WithWindowsLineBreaks(@" using System; using System.Diagnostics; class Program { [DebuggerHidden] static void Hidden() { int x = 1; Console.WriteLine(x); } [DebuggerStepThrough] static void StepThrough() { int y = 1; Console.WriteLine(y); } [DebuggerNonUserCode] static void NonUserCode() { int z = 1; Console.WriteLine(z); } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Hidden""> <customDebugInfo> <using> <namespace usingCount=""2"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""19"" document=""1"" /> <entry offset=""0x3"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""30"" document=""1"" /> <entry offset=""0xa"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb""> <namespace name=""System"" /> <namespace name=""System.Diagnostics"" /> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0xb"" attributes=""0"" /> </scope> </method> <method containingType=""Program"" name=""StepThrough""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Hidden"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""19"" document=""1"" /> <entry offset=""0x3"" startLine=""18"" startColumn=""9"" endLine=""18"" endColumn=""30"" document=""1"" /> <entry offset=""0xa"" startLine=""19"" startColumn=""5"" endLine=""19"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb""> <local name=""y"" il_index=""0"" il_start=""0x0"" il_end=""0xb"" attributes=""0"" /> </scope> </method> <method containingType=""Program"" name=""NonUserCode""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Hidden"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""23"" startColumn=""5"" endLine=""23"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""24"" startColumn=""9"" endLine=""24"" endColumn=""19"" document=""1"" /> <entry offset=""0x3"" startLine=""25"" startColumn=""9"" endLine=""25"" endColumn=""30"" document=""1"" /> <entry offset=""0xa"" startLine=""26"" startColumn=""5"" endLine=""26"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb""> <local name=""z"" il_index=""0"" il_start=""0x0"" il_end=""0xb"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } /// <summary> /// If a synthesized method contains any user code, /// the method must have a sequence point at /// offset 0 for correct stepping behavior. /// </summary> [WorkItem(804681, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/804681")] [Fact] public void SequencePointAtOffset0() { string source = WithWindowsLineBreaks( @"using System; class C { static Func<object, int> F = x => { Func<object, int> f = o => 1; Func<Func<object, int>, Func<object, int>> g = h => y => h(y); return g(f)(null); }; }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".cctor""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLambdaMap> <methodOrdinal>2</methodOrdinal> <closure offset=""-45"" /> <lambda offset=""-147"" /> <lambda offset=""-109"" /> <lambda offset=""-45"" /> <lambda offset=""-40"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""9"" endColumn=""7"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x16""> <namespace name=""System"" /> </scope> </method> <method containingType=""C+&lt;&gt;c__DisplayClass2_0"" name=""&lt;.cctor&gt;b__3"" parameterNames=""y""> <customDebugInfo> <forward declaringType=""C"" methodName="".cctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""66"" endLine=""7"" endColumn=""70"" document=""1"" /> </sequencePoints> </method> <method containingType=""C+&lt;&gt;c"" name=""&lt;.cctor&gt;b__2_0"" parameterNames=""x""> <customDebugInfo> <forward declaringType=""C"" methodName="".cctor"" /> <encLocalSlotMap> <slot kind=""0"" offset=""-118"" /> <slot kind=""0"" offset=""-54"" /> <slot kind=""21"" offset=""-147"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""38"" document=""1"" /> <entry offset=""0x21"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""71"" document=""1"" /> <entry offset=""0x41"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""27"" document=""1"" /> <entry offset=""0x51"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x53""> <local name=""f"" il_index=""0"" il_start=""0x0"" il_end=""0x53"" attributes=""0"" /> <local name=""g"" il_index=""1"" il_start=""0x0"" il_end=""0x53"" attributes=""0"" /> </scope> </method> <method containingType=""C+&lt;&gt;c"" name=""&lt;.cctor&gt;b__2_1"" parameterNames=""o""> <customDebugInfo> <forward declaringType=""C"" methodName="".cctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""36"" endLine=""6"" endColumn=""37"" document=""1"" /> </sequencePoints> </method> <method containingType=""C+&lt;&gt;c"" name=""&lt;.cctor&gt;b__2_2"" parameterNames=""h""> <customDebugInfo> <forward declaringType=""C"" methodName="".cctor"" /> <encLocalSlotMap> <slot kind=""30"" offset=""-45"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""7"" startColumn=""61"" endLine=""7"" endColumn=""70"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1a""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x1a"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } /// <summary> /// Leading trivia is not included in the syntax offset. /// </summary> [Fact] public void SyntaxOffsetInPresenceOfTrivia_Methods() { string source = @" class C { public static void Main1() /*Comment1*/{/*Comment2*/int a = 1;/*Comment3*/}/*Comment4*/ public static void Main2() {/*Comment2*/int a = 2;/*Comment3*/}/*Comment4*/ }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); // verify that both syntax offsets are the same c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main1""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""17"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""44"" endLine=""4"" endColumn=""45"" document=""1"" /> <entry offset=""0x1"" startLine=""4"" startColumn=""57"" endLine=""4"" endColumn=""67"" document=""1"" /> <entry offset=""0x3"" startLine=""4"" startColumn=""79"" endLine=""4"" endColumn=""80"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x4""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0x4"" attributes=""0"" /> </scope> </method> <method containingType=""C"" name=""Main2""> <customDebugInfo> <forward declaringType=""C"" methodName=""Main1"" /> <encLocalSlotMap> <slot kind=""0"" offset=""17"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""32"" endLine=""5"" endColumn=""33"" document=""1"" /> <entry offset=""0x1"" startLine=""5"" startColumn=""45"" endLine=""5"" endColumn=""55"" document=""1"" /> <entry offset=""0x3"" startLine=""5"" startColumn=""67"" endLine=""5"" endColumn=""68"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x4""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0x4"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } /// <summary> /// Leading and trailing trivia are not included in the syntax offset. /// </summary> [Fact] public void SyntaxOffsetInPresenceOfTrivia_Initializers() { string source = @" using System; class C1 { public static Func<int> e=() => 0; public static Func<int> f/*Comment0*/=/*Comment1*/() => 1;/*Comment2*/ public static Func<int> g=() => 2; } class C2 { public static Func<int> e=() => 0; public static Func<int> f=/*Comment1*/() => 1; public static Func<int> g=() => 2; } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); // verify that syntax offsets of both .cctor's are the same c.VerifyPdb("C1..cctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C1"" name="".cctor""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLambdaMap> <methodOrdinal>4</methodOrdinal> <lambda offset=""-29"" /> <lambda offset=""-9"" /> <lambda offset=""-1"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""39"" document=""1"" /> <entry offset=""0x15"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""63"" document=""1"" /> <entry offset=""0x2a"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""39"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x40""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); c.VerifyPdb("C2..cctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C2"" name="".cctor""> <customDebugInfo> <forward declaringType=""C1"" methodName="".cctor"" /> <encLambdaMap> <methodOrdinal>4</methodOrdinal> <lambda offset=""-29"" /> <lambda offset=""-9"" /> <lambda offset=""-1"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""39"" document=""1"" /> <entry offset=""0x15"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""51"" document=""1"" /> <entry offset=""0x2a"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""39"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region ReturnStatement [Fact] public void Return_Method1() { var source = WithWindowsLineBreaks(@" class Program { static int Main() { return 1; } } "); var v = CompileAndVerify(source, options: TestOptions.DebugDll); // In order to place a breakpoint on the closing brace we need to save the return expression value to // a local and then load it again (since sequence point needs an empty stack). This variable has to be marked as long-lived. v.VerifyIL("Program.Main", @" { // Code size 7 (0x7) .maxstack 1 .locals init (int V_0) -IL_0000: nop -IL_0001: ldc.i4.1 IL_0002: stloc.0 IL_0003: br.s IL_0005 -IL_0005: ldloc.0 IL_0006: ret }", sequencePoints: "Program.Main"); v.VerifyPdb("Program.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""18"" document=""1"" /> <entry offset=""0x5"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void Return_Property1() { var source = WithWindowsLineBreaks(@" class C { static int P { get { return 1; } } } "); var v = CompileAndVerify(source, options: TestOptions.DebugDll); // In order to place a breakpoint on the closing brace we need to save the return expression value to // a local and then load it again (since sequence point needs an empty stack). This variable has to be marked as long-lived. v.VerifyIL("C.P.get", @" { // Code size 7 (0x7) .maxstack 1 .locals init (int V_0) -IL_0000: nop -IL_0001: ldc.i4.1 IL_0002: stloc.0 IL_0003: br.s IL_0005 -IL_0005: ldloc.0 IL_0006: ret }", sequencePoints: "C.get_P"); v.VerifyPdb("C.get_P", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""get_P""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""13"" endLine=""6"" endColumn=""14"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""15"" endLine=""6"" endColumn=""24"" document=""1"" /> <entry offset=""0x5"" startLine=""6"" startColumn=""25"" endLine=""6"" endColumn=""26"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void Return_Void1() { var source = @" class Program { static void Main() { return; } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.Main", @" { // Code size 4 (0x4) .maxstack 0 -IL_0000: nop -IL_0001: br.s IL_0003 -IL_0003: ret }", sequencePoints: "Program.Main"); } [Fact] public void Return_ExpressionBodied1() { var source = @" class Program { static int Main() => 1; } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.Main", @" { // Code size 2 (0x2) .maxstack 1 -IL_0000: ldc.i4.1 IL_0001: ret }", sequencePoints: "Program.Main"); } [Fact] public void Return_FromExceptionHandler1() { var source = WithWindowsLineBreaks(@" using System; class Program { static int Main() { try { Console.WriteLine(); return 1; } catch (Exception) { return 2; } } } "); var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.Main", @" { // Code size 20 (0x14) .maxstack 1 .locals init (int V_0) -IL_0000: nop .try { -IL_0001: nop -IL_0002: call ""void System.Console.WriteLine()"" IL_0007: nop -IL_0008: ldc.i4.1 IL_0009: stloc.0 IL_000a: leave.s IL_0012 } catch System.Exception { -IL_000c: pop -IL_000d: nop -IL_000e: ldc.i4.2 IL_000f: stloc.0 IL_0010: leave.s IL_0012 } -IL_0012: ldloc.0 IL_0013: ret }", sequencePoints: "Program.Main"); v.VerifyPdb("Program.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x2"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""33"" document=""1"" /> <entry offset=""0x8"" startLine=""11"" startColumn=""13"" endLine=""11"" endColumn=""22"" document=""1"" /> <entry offset=""0xc"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""26"" document=""1"" /> <entry offset=""0xd"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0xe"" startLine=""15"" startColumn=""13"" endLine=""15"" endColumn=""22"" document=""1"" /> <entry offset=""0x12"" startLine=""17"" startColumn=""5"" endLine=""17"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x14""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } #endregion #region IfStatement [Fact] public void IfStatement() { var source = WithWindowsLineBreaks(@" class C { void Method() { bool b = true; if (b) { string s = ""true""; System.Console.WriteLine(s); } else { string s = ""false""; int i = 1; while (i < 100) { int j = i, k = 1; System.Console.WriteLine(j); i = j + k; } i = i + 1; } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Method", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Method""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""19"" /> <slot kind=""1"" offset=""38"" /> <slot kind=""0"" offset=""76"" /> <slot kind=""0"" offset=""188"" /> <slot kind=""0"" offset=""218"" /> <slot kind=""0"" offset=""292"" /> <slot kind=""0"" offset=""299"" /> <slot kind=""1"" offset=""240"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""23"" document=""1"" /> <entry offset=""0x3"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""15"" document=""1"" /> <entry offset=""0x5"" hidden=""true"" document=""1"" /> <entry offset=""0x8"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""10"" document=""1"" /> <entry offset=""0x9"" startLine=""9"" startColumn=""13"" endLine=""9"" endColumn=""31"" document=""1"" /> <entry offset=""0xf"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""41"" document=""1"" /> <entry offset=""0x16"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0x17"" hidden=""true"" document=""1"" /> <entry offset=""0x19"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x1a"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""32"" document=""1"" /> <entry offset=""0x20"" startLine=""15"" startColumn=""13"" endLine=""15"" endColumn=""23"" document=""1"" /> <entry offset=""0x23"" hidden=""true"" document=""1"" /> <entry offset=""0x25"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""14"" document=""1"" /> <entry offset=""0x26"" startLine=""19"" startColumn=""17"" endLine=""19"" endColumn=""26"" document=""1"" /> <entry offset=""0x2a"" startLine=""19"" startColumn=""28"" endLine=""19"" endColumn=""33"" document=""1"" /> <entry offset=""0x2d"" startLine=""20"" startColumn=""17"" endLine=""20"" endColumn=""45"" document=""1"" /> <entry offset=""0x35"" startLine=""21"" startColumn=""17"" endLine=""21"" endColumn=""27"" document=""1"" /> <entry offset=""0x3c"" startLine=""22"" startColumn=""13"" endLine=""22"" endColumn=""14"" document=""1"" /> <entry offset=""0x3d"" startLine=""17"" startColumn=""13"" endLine=""17"" endColumn=""28"" document=""1"" /> <entry offset=""0x45"" hidden=""true"" document=""1"" /> <entry offset=""0x49"" startLine=""24"" startColumn=""13"" endLine=""24"" endColumn=""23"" document=""1"" /> <entry offset=""0x4f"" startLine=""25"" startColumn=""9"" endLine=""25"" endColumn=""10"" document=""1"" /> <entry offset=""0x50"" startLine=""26"" startColumn=""5"" endLine=""26"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x51""> <local name=""b"" il_index=""0"" il_start=""0x0"" il_end=""0x51"" attributes=""0"" /> <scope startOffset=""0x8"" endOffset=""0x17""> <local name=""s"" il_index=""2"" il_start=""0x8"" il_end=""0x17"" attributes=""0"" /> </scope> <scope startOffset=""0x19"" endOffset=""0x50""> <local name=""s"" il_index=""3"" il_start=""0x19"" il_end=""0x50"" attributes=""0"" /> <local name=""i"" il_index=""4"" il_start=""0x19"" il_end=""0x50"" attributes=""0"" /> <scope startOffset=""0x25"" endOffset=""0x3d""> <local name=""j"" il_index=""5"" il_start=""0x25"" il_end=""0x3d"" attributes=""0"" /> <local name=""k"" il_index=""6"" il_start=""0x25"" il_end=""0x3d"" attributes=""0"" /> </scope> </scope> </scope> </method> </methods> </symbols>"); } #endregion #region WhileStatement [WorkItem(538299, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538299")] [Fact] public void WhileStatement() { var source = @"using System; public class SeqPointForWhile { public static void Main() { SeqPointForWhile obj = new SeqPointForWhile(); obj.While(234); } int field; public void While(int p) { while (p > 0) // SeqPt should be generated at the end of loop { p = (int)(p / 2); if (p > 100) { continue; } else if (p > 10) { int x = p; field = x; } else { int x = p; Console.WriteLine(x); break; } } field = -1; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); // Offset 0x01 should be: // <entry offset=""0x1"" hidden=""true"" document=""1"" /> // Move original offset 0x01 to 0x33 // <entry offset=""0x33"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""22"" document=""1"" /> // // Note: 16707566 == 0x00FEEFEE c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""SeqPointForWhile"" methodName=""Main"" /> <methods> <method containingType=""SeqPointForWhile"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""55"" document=""1"" /> <entry offset=""0x5"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""24"" document=""1"" /> <entry offset=""0xf"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x10""> <namespace name=""System"" /> </scope> </method> <method containingType=""SeqPointForWhile"" name=""While"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""SeqPointForWhile"" methodName=""Main"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x2"" startLine=""16"" startColumn=""13"" endLine=""16"" endColumn=""30"" document=""1"" /> <entry offset=""0x7"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""25"" document=""1"" /> <entry offset=""0xc"" startLine=""22"" startColumn=""18"" endLine=""22"" endColumn=""29"" document=""1"" /> <entry offset=""0x11"" startLine=""24"" startColumn=""17"" endLine=""24"" endColumn=""27"" document=""1"" /> <entry offset=""0x13"" startLine=""25"" startColumn=""17"" endLine=""25"" endColumn=""27"" document=""1"" /> <entry offset=""0x1a"" hidden=""true"" document=""1"" /> <entry offset=""0x1c"" startLine=""29"" startColumn=""17"" endLine=""29"" endColumn=""27"" document=""1"" /> <entry offset=""0x1d"" startLine=""30"" startColumn=""17"" endLine=""30"" endColumn=""38"" document=""1"" /> <entry offset=""0x22"" startLine=""31"" startColumn=""17"" endLine=""31"" endColumn=""23"" document=""1"" /> <entry offset=""0x24"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""22"" document=""1"" /> <entry offset=""0x28"" startLine=""34"" startColumn=""9"" endLine=""34"" endColumn=""20"" document=""1"" /> <entry offset=""0x2f"" startLine=""35"" startColumn=""5"" endLine=""35"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x30""> <scope startOffset=""0x11"" endOffset=""0x1a""> <local name=""x"" il_index=""0"" il_start=""0x11"" il_end=""0x1a"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } #endregion #region ForStatement [Fact] public void ForStatement1() { var source = WithWindowsLineBreaks(@" class C { static bool F(int i) { return true; } static void G(int i) { } static void M() { for (int i = 1; F(i); G(i)) { System.Console.WriteLine(1); } } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <forward declaringType=""C"" methodName=""F"" parameterNames=""i"" /> <encLocalSlotMap> <slot kind=""0"" offset=""20"" /> <slot kind=""1"" offset=""11"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""14"" endLine=""9"" endColumn=""23"" document=""1"" /> <entry offset=""0x3"" hidden=""true"" document=""1"" /> <entry offset=""0x5"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""10"" document=""1"" /> <entry offset=""0x6"" startLine=""11"" startColumn=""13"" endLine=""11"" endColumn=""41"" document=""1"" /> <entry offset=""0xd"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""10"" document=""1"" /> <entry offset=""0xe"" startLine=""9"" startColumn=""31"" endLine=""9"" endColumn=""35"" document=""1"" /> <entry offset=""0x15"" startLine=""9"" startColumn=""25"" endLine=""9"" endColumn=""29"" document=""1"" /> <entry offset=""0x1c"" hidden=""true"" document=""1"" /> <entry offset=""0x1f"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x20""> <scope startOffset=""0x1"" endOffset=""0x1f""> <local name=""i"" il_index=""0"" il_start=""0x1"" il_end=""0x1f"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void ForStatement2() { var source = @" class C { static void M() { for (;;) { System.Console.WriteLine(1); } } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" hidden=""true"" document=""1"" /> <entry offset=""0x3"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""10"" document=""1"" /> <entry offset=""0x4"" startLine=""8"" startColumn=""13"" endLine=""8"" endColumn=""41"" document=""1"" /> <entry offset=""0xb"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0xc"" hidden=""true"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void ForStatement3() { var source = WithWindowsLineBreaks(@" class C { static void M() { int i = 0; for (;;i++) { System.Console.WriteLine(i); } } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.M", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""19"" document=""1"" /> <entry offset=""0x3"" hidden=""true"" document=""1"" /> <entry offset=""0x5"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""10"" document=""1"" /> <entry offset=""0x6"" startLine=""9"" startColumn=""13"" endLine=""9"" endColumn=""41"" document=""1"" /> <entry offset=""0xd"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""10"" document=""1"" /> <entry offset=""0xe"" startLine=""7"" startColumn=""16"" endLine=""7"" endColumn=""19"" document=""1"" /> <entry offset=""0x12"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x14""> <local name=""i"" il_index=""0"" il_start=""0x0"" il_end=""0x14"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } #endregion #region ForEachStatement [Fact] public void ForEachStatement_String() { var source = @" public class C { public static void Main() { foreach (var c in ""hello"") { System.Console.WriteLine(c); } } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); // Sequence points: // 1) Open brace at start of method // 2) 'foreach' // 3) '"hello"' // 4) Hidden initial jump (of for loop) // 5) 'var c' // 6) Open brace of loop // 7) Loop body // 8) Close brace of loop // 9) Hidden index increment. // 10) 'in' // 11) Close brace at end of method c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""27"" endLine=""6"" endColumn=""34"" document=""1"" /> <entry offset=""0x8"" hidden=""true"" document=""1"" /> <entry offset=""0xa"" startLine=""6"" startColumn=""18"" endLine=""6"" endColumn=""23"" document=""1"" /> <entry offset=""0x11"" startLine=""8"" startColumn=""13"" endLine=""8"" endColumn=""41"" document=""1"" /> <entry offset=""0x16"" hidden=""true"" document=""1"" /> <entry offset=""0x1a"" startLine=""6"" startColumn=""24"" endLine=""6"" endColumn=""26"" document=""1"" /> <entry offset=""0x23"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void ForEachStatement_Array() { var source = WithWindowsLineBreaks(@" public class C { public static void Main() { foreach (var x in new int[2]) { System.Console.WriteLine(x); } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); // Sequence points: // 1) Open brace at start of method // 2) 'foreach' // 3) 'new int[2]' // 4) Hidden initial jump (of for loop) // 5) 'var c' // 6) Open brace of loop // 7) Loop body // 8) Close brace of loop // 9) Hidden index increment. // 10) 'in' // 11) Close brace at end of method c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""6"" offset=""11"" /> <slot kind=""8"" offset=""11"" /> <slot kind=""0"" offset=""11"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""16"" document=""1"" /> <entry offset=""0x2"" startLine=""6"" startColumn=""27"" endLine=""6"" endColumn=""37"" document=""1"" /> <entry offset=""0xb"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""6"" startColumn=""18"" endLine=""6"" endColumn=""23"" document=""1"" /> <entry offset=""0x11"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""10"" document=""1"" /> <entry offset=""0x12"" startLine=""8"" startColumn=""13"" endLine=""8"" endColumn=""41"" document=""1"" /> <entry offset=""0x19"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x1a"" hidden=""true"" document=""1"" /> <entry offset=""0x1e"" startLine=""6"" startColumn=""24"" endLine=""6"" endColumn=""26"" document=""1"" /> <entry offset=""0x24"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x25""> <scope startOffset=""0xd"" endOffset=""0x1a""> <local name=""x"" il_index=""2"" il_start=""0xd"" il_end=""0x1a"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(544937, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544937")] [Fact] public void ForEachStatement_MultiDimensionalArray() { var source = @" public class C { public static void Main() { foreach (var x in new int[2, 3]) { System.Console.WriteLine(x); } } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); // Sequence points: // 1) Open brace at start of method // 2) 'foreach' // 3) 'new int[2, 3]' // 4) Hidden initial jump (of for loop) // 5) 'var c' // 6) Open brace of loop // 7) Loop body // 8) Close brace of loop // 9) 'in' // 10) Close brace at end of method v.VerifyIL("C.Main", @" { // Code size 88 (0x58) .maxstack 3 .locals init (int[,] V_0, int V_1, int V_2, int V_3, int V_4, int V_5) //x -IL_0000: nop -IL_0001: nop -IL_0002: ldc.i4.2 IL_0003: ldc.i4.3 IL_0004: newobj ""int[*,*]..ctor"" IL_0009: stloc.0 IL_000a: ldloc.0 IL_000b: ldc.i4.0 IL_000c: callvirt ""int System.Array.GetUpperBound(int)"" IL_0011: stloc.1 IL_0012: ldloc.0 IL_0013: ldc.i4.1 IL_0014: callvirt ""int System.Array.GetUpperBound(int)"" IL_0019: stloc.2 IL_001a: ldloc.0 IL_001b: ldc.i4.0 IL_001c: callvirt ""int System.Array.GetLowerBound(int)"" IL_0021: stloc.3 ~IL_0022: br.s IL_0053 IL_0024: ldloc.0 IL_0025: ldc.i4.1 IL_0026: callvirt ""int System.Array.GetLowerBound(int)"" IL_002b: stloc.s V_4 ~IL_002d: br.s IL_004a -IL_002f: ldloc.0 IL_0030: ldloc.3 IL_0031: ldloc.s V_4 IL_0033: call ""int[*,*].Get"" IL_0038: stloc.s V_5 -IL_003a: nop -IL_003b: ldloc.s V_5 IL_003d: call ""void System.Console.WriteLine(int)"" IL_0042: nop -IL_0043: nop ~IL_0044: ldloc.s V_4 IL_0046: ldc.i4.1 IL_0047: add IL_0048: stloc.s V_4 -IL_004a: ldloc.s V_4 IL_004c: ldloc.2 IL_004d: ble.s IL_002f ~IL_004f: ldloc.3 IL_0050: ldc.i4.1 IL_0051: add IL_0052: stloc.3 -IL_0053: ldloc.3 IL_0054: ldloc.1 IL_0055: ble.s IL_0024 -IL_0057: ret } ", sequencePoints: "C.Main"); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ConditionalInAsyncMethod() { var source = WithWindowsLineBreaks(@" using System; class Program { public static async void Test() { int i = 0; if (i != 0) Console .WriteLine(); } } "); var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 81 (0x51) .maxstack 2 .locals init (int V_0, bool V_1, System.Exception V_2) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = 0; IL_0008: ldarg.0 IL_0009: ldc.i4.0 IL_000a: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: if (i != 0) IL_000f: ldarg.0 IL_0010: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_0015: ldc.i4.0 IL_0016: cgt.un IL_0018: stloc.1 // sequence point: <hidden> IL_0019: ldloc.1 IL_001a: brfalse.s IL_0022 // sequence point: Console ... .WriteLine() IL_001c: call ""void System.Console.WriteLine()"" IL_0021: nop // sequence point: <hidden> IL_0022: leave.s IL_003c } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_0024: stloc.2 IL_0025: ldarg.0 IL_0026: ldc.i4.s -2 IL_0028: stfld ""int Program.<Test>d__0.<>1__state"" IL_002d: ldarg.0 IL_002e: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0033: ldloc.2 IL_0034: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_0039: nop IL_003a: leave.s IL_0050 } // sequence point: } IL_003c: ldarg.0 IL_003d: ldc.i4.s -2 IL_003f: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_0044: ldarg.0 IL_0045: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_004a: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_004f: nop IL_0050: ret } ", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); v.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Test""> <customDebugInfo> <forwardIterator name=""&lt;Test&gt;d__0"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> </method> <method containingType=""Program+&lt;Test&gt;d__0"" name=""MoveNext""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <hoistedLocalScopes> <slot startOffset=""0x0"" endOffset=""0x51"" /> </hoistedLocalScopes> <encLocalSlotMap> <slot kind=""27"" offset=""0"" /> <slot kind=""1"" offset=""33"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""19"" document=""1"" /> <entry offset=""0xf"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""20"" document=""1"" /> <entry offset=""0x19"" hidden=""true"" document=""1"" /> <entry offset=""0x1c"" startLine=""11"" startColumn=""13"" endLine=""12"" endColumn=""30"" document=""1"" /> <entry offset=""0x22"" hidden=""true"" document=""1"" /> <entry offset=""0x24"" hidden=""true"" document=""1"" /> <entry offset=""0x3c"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> <entry offset=""0x44"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x51""> <namespace name=""System"" /> </scope> <asyncInfo> <catchHandler offset=""0x24"" /> <kickoffMethod declaringType=""Program"" methodName=""Test"" /> </asyncInfo> </method> </methods> </symbols>"); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ConditionalBeforeLocalFunction() { var source = @" class C { void M() { int i = 0; if (i != 0) { return; } string local() { throw null; } System.Console.Write(1); } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("C.M", @" { // Code size 23 (0x17) .maxstack 2 .locals init (int V_0, //i bool V_1) // sequence point: { IL_0000: nop // sequence point: int i = 0; IL_0001: ldc.i4.0 IL_0002: stloc.0 // sequence point: if (i != 0) IL_0003: ldloc.0 IL_0004: ldc.i4.0 IL_0005: cgt.un IL_0007: stloc.1 // sequence point: <hidden> IL_0008: ldloc.1 IL_0009: brfalse.s IL_000e // sequence point: { IL_000b: nop // sequence point: return; IL_000c: br.s IL_0016 // sequence point: <hidden> IL_000e: nop // sequence point: System.Console.Write(1); IL_000f: ldc.i4.1 IL_0010: call ""void System.Console.Write(int)"" IL_0015: nop // sequence point: } IL_0016: ret } ", sequencePoints: "C.M", source: source); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ConditionalInAsyncMethodWithExplicitReturn() { var source = @" using System; class Program { public static async void Test() { int i = 0; if (i != 0) Console .WriteLine(); return; } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 81 (0x51) .maxstack 2 .locals init (int V_0, bool V_1, System.Exception V_2) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = 0; IL_0008: ldarg.0 IL_0009: ldc.i4.0 IL_000a: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: if (i != 0) IL_000f: ldarg.0 IL_0010: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_0015: ldc.i4.0 IL_0016: cgt.un IL_0018: stloc.1 // sequence point: <hidden> IL_0019: ldloc.1 IL_001a: brfalse.s IL_0022 // sequence point: Console ... .WriteLine() IL_001c: call ""void System.Console.WriteLine()"" IL_0021: nop // sequence point: return; IL_0022: leave.s IL_003c } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_0024: stloc.2 IL_0025: ldarg.0 IL_0026: ldc.i4.s -2 IL_0028: stfld ""int Program.<Test>d__0.<>1__state"" IL_002d: ldarg.0 IL_002e: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0033: ldloc.2 IL_0034: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_0039: nop IL_003a: leave.s IL_0050 } // sequence point: } IL_003c: ldarg.0 IL_003d: ldc.i4.s -2 IL_003f: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_0044: ldarg.0 IL_0045: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_004a: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_004f: nop IL_0050: ret } ", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ConditionalInSimpleMethod() { var source = @" using System; class Program { public static void Test() { int i = 0; if (i != 0) Console.WriteLine(); } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.Test()", @" { // Code size 18 (0x12) .maxstack 2 .locals init (int V_0, //i bool V_1) // sequence point: { IL_0000: nop // sequence point: int i = 0; IL_0001: ldc.i4.0 IL_0002: stloc.0 // sequence point: if (i != 0) IL_0003: ldloc.0 IL_0004: ldc.i4.0 IL_0005: cgt.un IL_0007: stloc.1 // sequence point: <hidden> IL_0008: ldloc.1 IL_0009: brfalse.s IL_0011 // sequence point: Console.WriteLine(); IL_000b: call ""void System.Console.WriteLine()"" IL_0010: nop // sequence point: } IL_0011: ret } ", sequencePoints: "Program.Test", source: source); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ElseConditionalInAsyncMethod() { var source = WithWindowsLineBreaks(@" using System; class Program { public static async void Test() { int i = 0; if (i != 0) Console.WriteLine(""one""); else Console.WriteLine(""other""); } } "); var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 99 (0x63) .maxstack 2 .locals init (int V_0, bool V_1, System.Exception V_2) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = 0; IL_0008: ldarg.0 IL_0009: ldc.i4.0 IL_000a: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: if (i != 0) IL_000f: ldarg.0 IL_0010: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_0015: ldc.i4.0 IL_0016: cgt.un IL_0018: stloc.1 // sequence point: <hidden> IL_0019: ldloc.1 IL_001a: brfalse.s IL_0029 // sequence point: Console.WriteLine(""one""); IL_001c: ldstr ""one"" IL_0021: call ""void System.Console.WriteLine(string)"" IL_0026: nop // sequence point: <hidden> IL_0027: br.s IL_0034 // sequence point: Console.WriteLine(""other""); IL_0029: ldstr ""other"" IL_002e: call ""void System.Console.WriteLine(string)"" IL_0033: nop // sequence point: <hidden> IL_0034: leave.s IL_004e } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_0036: stloc.2 IL_0037: ldarg.0 IL_0038: ldc.i4.s -2 IL_003a: stfld ""int Program.<Test>d__0.<>1__state"" IL_003f: ldarg.0 IL_0040: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0045: ldloc.2 IL_0046: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_004b: nop IL_004c: leave.s IL_0062 } // sequence point: } IL_004e: ldarg.0 IL_004f: ldc.i4.s -2 IL_0051: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_0056: ldarg.0 IL_0057: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_005c: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_0061: nop IL_0062: ret } ", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); v.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Test""> <customDebugInfo> <forwardIterator name=""&lt;Test&gt;d__0"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> </method> <method containingType=""Program+&lt;Test&gt;d__0"" name=""MoveNext""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <hoistedLocalScopes> <slot startOffset=""0x0"" endOffset=""0x63"" /> </hoistedLocalScopes> <encLocalSlotMap> <slot kind=""27"" offset=""0"" /> <slot kind=""1"" offset=""33"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""19"" document=""1"" /> <entry offset=""0xf"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""20"" document=""1"" /> <entry offset=""0x19"" hidden=""true"" document=""1"" /> <entry offset=""0x1c"" startLine=""11"" startColumn=""13"" endLine=""11"" endColumn=""38"" document=""1"" /> <entry offset=""0x27"" hidden=""true"" document=""1"" /> <entry offset=""0x29"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""40"" document=""1"" /> <entry offset=""0x34"" hidden=""true"" document=""1"" /> <entry offset=""0x36"" hidden=""true"" document=""1"" /> <entry offset=""0x4e"" startLine=""14"" startColumn=""5"" endLine=""14"" endColumn=""6"" document=""1"" /> <entry offset=""0x56"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x63""> <namespace name=""System"" /> </scope> <asyncInfo> <catchHandler offset=""0x36"" /> <kickoffMethod declaringType=""Program"" methodName=""Test"" /> </asyncInfo> </method> </methods> </symbols>"); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ConditionalInTry() { var source = WithWindowsLineBreaks(@" using System; class Program { public static void Test() { try { int i = 0; if (i != 0) Console.WriteLine(); } catch { } } } "); var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.Test", @" { // Code size 27 (0x1b) .maxstack 2 .locals init (int V_0, //i bool V_1) // sequence point: { IL_0000: nop .try { // sequence point: { IL_0001: nop // sequence point: int i = 0; IL_0002: ldc.i4.0 IL_0003: stloc.0 // sequence point: if (i != 0) IL_0004: ldloc.0 IL_0005: ldc.i4.0 IL_0006: cgt.un IL_0008: stloc.1 // sequence point: <hidden> IL_0009: ldloc.1 IL_000a: brfalse.s IL_0012 // sequence point: Console.WriteLine(); IL_000c: call ""void System.Console.WriteLine()"" IL_0011: nop // sequence point: } IL_0012: nop IL_0013: leave.s IL_001a } catch object { // sequence point: catch IL_0015: pop // sequence point: { IL_0016: nop // sequence point: } IL_0017: nop IL_0018: leave.s IL_001a } // sequence point: } IL_001a: ret } ", sequencePoints: "Program.Test", source: source); v.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Test""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""43"" /> <slot kind=""1"" offset=""65"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x2"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""23"" document=""1"" /> <entry offset=""0x4"" startLine=""12"" startColumn=""13"" endLine=""12"" endColumn=""24"" document=""1"" /> <entry offset=""0x9"" hidden=""true"" document=""1"" /> <entry offset=""0xc"" startLine=""13"" startColumn=""17"" endLine=""13"" endColumn=""37"" document=""1"" /> <entry offset=""0x12"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0x15"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""14"" document=""1"" /> <entry offset=""0x16"" startLine=""15"" startColumn=""15"" endLine=""15"" endColumn=""16"" document=""1"" /> <entry offset=""0x17"" startLine=""15"" startColumn=""17"" endLine=""15"" endColumn=""18"" document=""1"" /> <entry offset=""0x1a"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1b""> <namespace name=""System"" /> <scope startOffset=""0x1"" endOffset=""0x13""> <local name=""i"" il_index=""0"" il_start=""0x1"" il_end=""0x13"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(544937, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544937")] [Fact] public void ForEachStatement_MultiDimensionalArrayBreakAndContinue() { var source = @" using System; class C { static void Main() { int[, ,] array = new[,,] { { {1, 2}, {3, 4} }, { {5, 6}, {7, 8} }, }; foreach (int i in array) { if (i % 2 == 1) continue; if (i > 4) break; Console.WriteLine(i); } } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll.WithModuleName("MODULE")); // Stepping: // After "continue", step to "in". // After "break", step to first sequence point following loop body (in this case, method close brace). v.VerifyIL("C.Main", @" { // Code size 169 (0xa9) .maxstack 4 .locals init (int[,,] V_0, //array int[,,] V_1, int V_2, int V_3, int V_4, int V_5, int V_6, int V_7, int V_8, //i bool V_9, bool V_10) -IL_0000: nop -IL_0001: ldc.i4.2 IL_0002: ldc.i4.2 IL_0003: ldc.i4.2 IL_0004: newobj ""int[*,*,*]..ctor"" IL_0009: dup IL_000a: ldtoken ""<PrivateImplementationDetails>.__StaticArrayInitTypeSize=32 <PrivateImplementationDetails>.8B4B2444E57AED8C2D05A1293255DA1B048C63224317D4666230760935FA4A18"" IL_000f: call ""void System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray(System.Array, System.RuntimeFieldHandle)"" IL_0014: stloc.0 -IL_0015: nop -IL_0016: ldloc.0 IL_0017: stloc.1 IL_0018: ldloc.1 IL_0019: ldc.i4.0 IL_001a: callvirt ""int System.Array.GetUpperBound(int)"" IL_001f: stloc.2 IL_0020: ldloc.1 IL_0021: ldc.i4.1 IL_0022: callvirt ""int System.Array.GetUpperBound(int)"" IL_0027: stloc.3 IL_0028: ldloc.1 IL_0029: ldc.i4.2 IL_002a: callvirt ""int System.Array.GetUpperBound(int)"" IL_002f: stloc.s V_4 IL_0031: ldloc.1 IL_0032: ldc.i4.0 IL_0033: callvirt ""int System.Array.GetLowerBound(int)"" IL_0038: stloc.s V_5 ~IL_003a: br.s IL_00a3 IL_003c: ldloc.1 IL_003d: ldc.i4.1 IL_003e: callvirt ""int System.Array.GetLowerBound(int)"" IL_0043: stloc.s V_6 ~IL_0045: br.s IL_0098 IL_0047: ldloc.1 IL_0048: ldc.i4.2 IL_0049: callvirt ""int System.Array.GetLowerBound(int)"" IL_004e: stloc.s V_7 ~IL_0050: br.s IL_008c -IL_0052: ldloc.1 IL_0053: ldloc.s V_5 IL_0055: ldloc.s V_6 IL_0057: ldloc.s V_7 IL_0059: call ""int[*,*,*].Get"" IL_005e: stloc.s V_8 -IL_0060: nop -IL_0061: ldloc.s V_8 IL_0063: ldc.i4.2 IL_0064: rem IL_0065: ldc.i4.1 IL_0066: ceq IL_0068: stloc.s V_9 ~IL_006a: ldloc.s V_9 IL_006c: brfalse.s IL_0070 -IL_006e: br.s IL_0086 -IL_0070: ldloc.s V_8 IL_0072: ldc.i4.4 IL_0073: cgt IL_0075: stloc.s V_10 ~IL_0077: ldloc.s V_10 IL_0079: brfalse.s IL_007d -IL_007b: br.s IL_00a8 -IL_007d: ldloc.s V_8 IL_007f: call ""void System.Console.WriteLine(int)"" IL_0084: nop -IL_0085: nop ~IL_0086: ldloc.s V_7 IL_0088: ldc.i4.1 IL_0089: add IL_008a: stloc.s V_7 -IL_008c: ldloc.s V_7 IL_008e: ldloc.s V_4 IL_0090: ble.s IL_0052 ~IL_0092: ldloc.s V_6 IL_0094: ldc.i4.1 IL_0095: add IL_0096: stloc.s V_6 -IL_0098: ldloc.s V_6 IL_009a: ldloc.3 IL_009b: ble.s IL_0047 ~IL_009d: ldloc.s V_5 IL_009f: ldc.i4.1 IL_00a0: add IL_00a1: stloc.s V_5 -IL_00a3: ldloc.s V_5 IL_00a5: ldloc.2 IL_00a6: ble.s IL_003c -IL_00a8: ret } ", sequencePoints: "C.Main"); } [Fact] public void ForEachStatement_Enumerator() { var source = @" public class C { public static void Main() { foreach (var x in new System.Collections.Generic.List<int>()) { System.Console.WriteLine(x); } } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); // Sequence points: // 1) Open brace at start of method // 2) 'foreach' // 3) 'new System.Collections.Generic.List<int>()' // 4) Hidden initial jump (of while loop) // 5) 'var c' // 6) Open brace of loop // 7) Loop body // 8) Close brace of loop // 9) 'in' // 10) hidden point in Finally // 11) Close brace at end of method v.VerifyIL("C.Main", @" { // Code size 59 (0x3b) .maxstack 1 .locals init (System.Collections.Generic.List<int>.Enumerator V_0, int V_1) //x -IL_0000: nop -IL_0001: nop -IL_0002: newobj ""System.Collections.Generic.List<int>..ctor()"" IL_0007: call ""System.Collections.Generic.List<int>.Enumerator System.Collections.Generic.List<int>.GetEnumerator()"" IL_000c: stloc.0 .try { ~IL_000d: br.s IL_0020 -IL_000f: ldloca.s V_0 IL_0011: call ""int System.Collections.Generic.List<int>.Enumerator.Current.get"" IL_0016: stloc.1 -IL_0017: nop -IL_0018: ldloc.1 IL_0019: call ""void System.Console.WriteLine(int)"" IL_001e: nop -IL_001f: nop -IL_0020: ldloca.s V_0 IL_0022: call ""bool System.Collections.Generic.List<int>.Enumerator.MoveNext()"" IL_0027: brtrue.s IL_000f IL_0029: leave.s IL_003a } finally { ~IL_002b: ldloca.s V_0 IL_002d: constrained. ""System.Collections.Generic.List<int>.Enumerator"" IL_0033: callvirt ""void System.IDisposable.Dispose()"" IL_0038: nop IL_0039: endfinally } -IL_003a: ret } ", sequencePoints: "C.Main"); } [WorkItem(718501, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/718501")] [Fact] public void ForEachNops() { string source = WithWindowsLineBreaks(@" using System; using System.Collections.Generic; using System.Linq; class Program { private static List<List<int>> l = new List<List<int>>(); static void Main(string[] args) { foreach (var i in l.AsEnumerable()) { switch (i.Count) { case 1: break; default: if (i.Count != 0) { } break; } } } } "); // we just want this to compile without crashing/asserting var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("Program.Main", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main"" parameterNames=""args""> <customDebugInfo> <using> <namespace usingCount=""3"" /> </using> <encLocalSlotMap> <slot kind=""5"" offset=""15"" /> <slot kind=""0"" offset=""15"" /> <slot kind=""35"" offset=""83"" /> <slot kind=""1"" offset=""83"" /> <slot kind=""1"" offset=""237"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0x1"" startLine=""12"" startColumn=""13"" endLine=""12"" endColumn=""20"" document=""1"" /> <entry offset=""0x2"" startLine=""12"" startColumn=""31"" endLine=""12"" endColumn=""47"" document=""1"" /> <entry offset=""0x12"" hidden=""true"" document=""1"" /> <entry offset=""0x14"" startLine=""12"" startColumn=""22"" endLine=""12"" endColumn=""27"" document=""1"" /> <entry offset=""0x1b"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""14"" document=""1"" /> <entry offset=""0x1c"" startLine=""14"" startColumn=""17"" endLine=""14"" endColumn=""33"" document=""1"" /> <entry offset=""0x23"" hidden=""true"" document=""1"" /> <entry offset=""0x25"" hidden=""true"" document=""1"" /> <entry offset=""0x2b"" startLine=""17"" startColumn=""25"" endLine=""17"" endColumn=""31"" document=""1"" /> <entry offset=""0x2d"" startLine=""20"" startColumn=""25"" endLine=""20"" endColumn=""42"" document=""1"" /> <entry offset=""0x38"" hidden=""true"" document=""1"" /> <entry offset=""0x3c"" startLine=""21"" startColumn=""25"" endLine=""21"" endColumn=""26"" document=""1"" /> <entry offset=""0x3d"" startLine=""22"" startColumn=""25"" endLine=""22"" endColumn=""26"" document=""1"" /> <entry offset=""0x3e"" startLine=""24"" startColumn=""25"" endLine=""24"" endColumn=""31"" document=""1"" /> <entry offset=""0x40"" startLine=""26"" startColumn=""13"" endLine=""26"" endColumn=""14"" document=""1"" /> <entry offset=""0x41"" startLine=""12"" startColumn=""28"" endLine=""12"" endColumn=""30"" document=""1"" /> <entry offset=""0x4b"" hidden=""true"" document=""1"" /> <entry offset=""0x55"" hidden=""true"" document=""1"" /> <entry offset=""0x56"" startLine=""27"" startColumn=""9"" endLine=""27"" endColumn=""10"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x57""> <namespace name=""System"" /> <namespace name=""System.Collections.Generic"" /> <namespace name=""System.Linq"" /> <scope startOffset=""0x14"" endOffset=""0x41""> <local name=""i"" il_index=""1"" il_start=""0x14"" il_end=""0x41"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>" ); } [Fact] public void ForEachStatement_Deconstruction() { var source = WithWindowsLineBreaks(@" public class C { public static (int, (bool, double))[] F() => new[] { (1, (true, 2.0)) }; public static void Main() { foreach (var (c, (d, e)) in F()) { System.Console.WriteLine(c); } } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.Main", @" { // Code size 70 (0x46) .maxstack 2 .locals init (System.ValueTuple<int, System.ValueTuple<bool, double>>[] V_0, int V_1, int V_2, //c bool V_3, //d double V_4, //e System.ValueTuple<bool, double> V_5) // sequence point: { IL_0000: nop // sequence point: foreach IL_0001: nop // sequence point: F() IL_0002: call ""System.ValueTuple<int, System.ValueTuple<bool, double>>[] C.F()"" IL_0007: stloc.0 IL_0008: ldc.i4.0 IL_0009: stloc.1 // sequence point: <hidden> IL_000a: br.s IL_003f // sequence point: var (c, (d, e)) IL_000c: ldloc.0 IL_000d: ldloc.1 IL_000e: ldelem ""System.ValueTuple<int, System.ValueTuple<bool, double>>"" IL_0013: dup IL_0014: ldfld ""System.ValueTuple<bool, double> System.ValueTuple<int, System.ValueTuple<bool, double>>.Item2"" IL_0019: stloc.s V_5 IL_001b: ldfld ""int System.ValueTuple<int, System.ValueTuple<bool, double>>.Item1"" IL_0020: stloc.2 IL_0021: ldloc.s V_5 IL_0023: ldfld ""bool System.ValueTuple<bool, double>.Item1"" IL_0028: stloc.3 IL_0029: ldloc.s V_5 IL_002b: ldfld ""double System.ValueTuple<bool, double>.Item2"" IL_0030: stloc.s V_4 // sequence point: { IL_0032: nop // sequence point: System.Console.WriteLine(c); IL_0033: ldloc.2 IL_0034: call ""void System.Console.WriteLine(int)"" IL_0039: nop // sequence point: } IL_003a: nop // sequence point: <hidden> IL_003b: ldloc.1 IL_003c: ldc.i4.1 IL_003d: add IL_003e: stloc.1 // sequence point: in IL_003f: ldloc.1 IL_0040: ldloc.0 IL_0041: ldlen IL_0042: conv.i4 IL_0043: blt.s IL_000c // sequence point: } IL_0045: ret } ", sequencePoints: "C.Main", source: source); v.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""50"" endLine=""4"" endColumn=""76"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""Main""> <customDebugInfo> <forward declaringType=""C"" methodName=""F"" /> <encLocalSlotMap> <slot kind=""6"" offset=""11"" /> <slot kind=""8"" offset=""11"" /> <slot kind=""0"" offset=""25"" /> <slot kind=""0"" offset=""29"" /> <slot kind=""0"" offset=""32"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""16"" document=""1"" /> <entry offset=""0x2"" startLine=""8"" startColumn=""37"" endLine=""8"" endColumn=""40"" document=""1"" /> <entry offset=""0xa"" hidden=""true"" document=""1"" /> <entry offset=""0xc"" startLine=""8"" startColumn=""18"" endLine=""8"" endColumn=""33"" document=""1"" /> <entry offset=""0x32"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x33"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""41"" document=""1"" /> <entry offset=""0x3a"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0x3b"" hidden=""true"" document=""1"" /> <entry offset=""0x3f"" startLine=""8"" startColumn=""34"" endLine=""8"" endColumn=""36"" document=""1"" /> <entry offset=""0x45"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x46""> <scope startOffset=""0xc"" endOffset=""0x3b""> <local name=""c"" il_index=""2"" il_start=""0xc"" il_end=""0x3b"" attributes=""0"" /> <local name=""d"" il_index=""3"" il_start=""0xc"" il_end=""0x3b"" attributes=""0"" /> <local name=""e"" il_index=""4"" il_start=""0xc"" il_end=""0x3b"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } #endregion #region Switch [Fact] public void SwitchWithPattern_01() { string source = WithWindowsLineBreaks(@" using System; using System.Collections.Generic; using System.Linq; class Program { private static List<List<int>> l = new List<List<int>>(); static void Main(string[] args) { Student s = new Student(); s.Name = ""Bozo""; s.GPA = 2.3; Operate(s); } static string Operate(Person p) { switch (p) { case Student s when s.GPA > 3.5: return $""Student {s.Name} ({s.GPA:N1})""; case Student s: return $""Student {s.Name} ({s.GPA:N1})""; case Teacher t: return $""Teacher {t.Name} of {t.Subject}""; default: return $""Person {p.Name}""; } } } class Person { public string Name; } class Teacher : Person { public string Subject; } class Student : Person { public double GPA; } "); // we just want this to compile without crashing/asserting var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("Program.Operate", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Operate"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Main"" parameterNames=""args"" /> <encLocalSlotMap> <slot kind=""0"" offset=""59"" /> <slot kind=""0"" offset=""163"" /> <slot kind=""0"" offset=""250"" /> <slot kind=""35"" offset=""11"" /> <slot kind=""1"" offset=""11"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""19"" startColumn=""5"" endLine=""19"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""19"" document=""1"" /> <entry offset=""0x4"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" hidden=""true"" document=""1"" /> <entry offset=""0x1d"" startLine=""22"" startColumn=""28"" endLine=""22"" endColumn=""44"" document=""1"" /> <entry offset=""0x2e"" hidden=""true"" document=""1"" /> <entry offset=""0x30"" startLine=""23"" startColumn=""17"" endLine=""23"" endColumn=""57"" document=""1"" /> <entry offset=""0x4f"" hidden=""true"" document=""1"" /> <entry offset=""0x53"" startLine=""25"" startColumn=""17"" endLine=""25"" endColumn=""57"" document=""1"" /> <entry offset=""0x72"" hidden=""true"" document=""1"" /> <entry offset=""0x74"" startLine=""27"" startColumn=""17"" endLine=""27"" endColumn=""59"" document=""1"" /> <entry offset=""0x93"" startLine=""29"" startColumn=""17"" endLine=""29"" endColumn=""43"" document=""1"" /> <entry offset=""0xa7"" startLine=""31"" startColumn=""5"" endLine=""31"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xaa""> <scope startOffset=""0x1d"" endOffset=""0x4f""> <local name=""s"" il_index=""0"" il_start=""0x1d"" il_end=""0x4f"" attributes=""0"" /> </scope> <scope startOffset=""0x4f"" endOffset=""0x72""> <local name=""s"" il_index=""1"" il_start=""0x4f"" il_end=""0x72"" attributes=""0"" /> </scope> <scope startOffset=""0x72"" endOffset=""0x93""> <local name=""t"" il_index=""2"" il_start=""0x72"" il_end=""0x93"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void SwitchWithPattern_02() { string source = WithWindowsLineBreaks(@" using System; using System.Collections.Generic; using System.Linq; class Program { private static List<List<int>> l = new List<List<int>>(); static void Main(string[] args) { Student s = new Student(); s.Name = ""Bozo""; s.GPA = 2.3; Operate(s); } static System.Func<string> Operate(Person p) { switch (p) { case Student s when s.GPA > 3.5: return () => $""Student {s.Name} ({s.GPA:N1})""; case Student s: return () => $""Student {s.Name} ({s.GPA:N1})""; case Teacher t: return () => $""Teacher {t.Name} of {t.Subject}""; default: return () => $""Person {p.Name}""; } } } class Person { public string Name; } class Teacher : Person { public string Subject; } class Student : Person { public double GPA; } "); // we just want this to compile without crashing/asserting var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("Program.Operate", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Operate"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Main"" parameterNames=""args"" /> <encLocalSlotMap> <slot kind=""30"" offset=""0"" /> <slot kind=""30"" offset=""11"" /> <slot kind=""35"" offset=""11"" /> <slot kind=""1"" offset=""11"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>2</methodOrdinal> <closure offset=""0"" /> <closure offset=""11"" /> <lambda offset=""109"" closure=""1"" /> <lambda offset=""202"" closure=""1"" /> <lambda offset=""295"" closure=""1"" /> <lambda offset=""383"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""19"" startColumn=""5"" endLine=""19"" endColumn=""6"" document=""1"" /> <entry offset=""0xe"" hidden=""true"" document=""1"" /> <entry offset=""0x1b"" hidden=""true"" document=""1"" /> <entry offset=""0x1d"" hidden=""true"" document=""1"" /> <entry offset=""0x47"" startLine=""22"" startColumn=""28"" endLine=""22"" endColumn=""44"" document=""1"" /> <entry offset=""0x5d"" hidden=""true"" document=""1"" /> <entry offset=""0x5f"" startLine=""23"" startColumn=""17"" endLine=""23"" endColumn=""63"" document=""1"" /> <entry offset=""0x6f"" hidden=""true"" document=""1"" /> <entry offset=""0x7d"" startLine=""25"" startColumn=""17"" endLine=""25"" endColumn=""63"" document=""1"" /> <entry offset=""0x8d"" hidden=""true"" document=""1"" /> <entry offset=""0x8f"" startLine=""27"" startColumn=""17"" endLine=""27"" endColumn=""65"" document=""1"" /> <entry offset=""0x9f"" startLine=""29"" startColumn=""17"" endLine=""29"" endColumn=""49"" document=""1"" /> <entry offset=""0xaf"" startLine=""31"" startColumn=""5"" endLine=""31"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb2""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0xb2"" attributes=""0"" /> <scope startOffset=""0xe"" endOffset=""0xaf""> <local name=""CS$&lt;&gt;8__locals1"" il_index=""1"" il_start=""0xe"" il_end=""0xaf"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void SwitchWithPatternAndLocalFunctions() { string source = WithWindowsLineBreaks(@" using System; using System.Collections.Generic; using System.Linq; class Program { private static List<List<int>> l = new List<List<int>>(); static void Main(string[] args) { Student s = new Student(); s.Name = ""Bozo""; s.GPA = 2.3; Operate(s); } static System.Func<string> Operate(Person p) { switch (p) { case Student s when s.GPA > 3.5: string f1() => $""Student {s.Name} ({s.GPA:N1})""; return f1; case Student s: string f2() => $""Student {s.Name} ({s.GPA:N1})""; return f2; case Teacher t: string f3() => $""Teacher {t.Name} of {t.Subject}""; return f3; default: string f4() => $""Person {p.Name}""; return f4; } } } class Person { public string Name; } class Teacher : Person { public string Subject; } class Student : Person { public double GPA; } "); // we just want this to compile without crashing/asserting var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("Program.Operate", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Operate"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Main"" parameterNames=""args"" /> <encLocalSlotMap> <slot kind=""30"" offset=""0"" /> <slot kind=""30"" offset=""11"" /> <slot kind=""35"" offset=""11"" /> <slot kind=""1"" offset=""11"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>2</methodOrdinal> <closure offset=""0"" /> <closure offset=""11"" /> <lambda offset=""111"" closure=""1"" /> <lambda offset=""234"" closure=""1"" /> <lambda offset=""357"" closure=""1"" /> <lambda offset=""475"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""19"" startColumn=""5"" endLine=""19"" endColumn=""6"" document=""1"" /> <entry offset=""0xe"" hidden=""true"" document=""1"" /> <entry offset=""0x1b"" hidden=""true"" document=""1"" /> <entry offset=""0x1d"" hidden=""true"" document=""1"" /> <entry offset=""0x47"" startLine=""22"" startColumn=""28"" endLine=""22"" endColumn=""44"" document=""1"" /> <entry offset=""0x5d"" hidden=""true"" document=""1"" /> <entry offset=""0x60"" startLine=""24"" startColumn=""17"" endLine=""24"" endColumn=""27"" document=""1"" /> <entry offset=""0x70"" hidden=""true"" document=""1"" /> <entry offset=""0x7f"" startLine=""27"" startColumn=""17"" endLine=""27"" endColumn=""27"" document=""1"" /> <entry offset=""0x8f"" hidden=""true"" document=""1"" /> <entry offset=""0x92"" startLine=""30"" startColumn=""17"" endLine=""30"" endColumn=""27"" document=""1"" /> <entry offset=""0xa2"" hidden=""true"" document=""1"" /> <entry offset=""0xa3"" startLine=""33"" startColumn=""17"" endLine=""33"" endColumn=""27"" document=""1"" /> <entry offset=""0xb3"" startLine=""35"" startColumn=""5"" endLine=""35"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb6""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0xb6"" attributes=""0"" /> <scope startOffset=""0xe"" endOffset=""0xb3""> <local name=""CS$&lt;&gt;8__locals1"" il_index=""1"" il_start=""0xe"" il_end=""0xb3"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(17090, "https://github.com/dotnet/roslyn/issues/17090"), WorkItem(19731, "https://github.com/dotnet/roslyn/issues/19731")] [Fact] public void SwitchWithConstantPattern() { string source = @" using System; class Program { static void Main(string[] args) { M1(); M2(); } static void M1() { switch (1) { case 0 when true: ; case 1: Console.Write(1); break; case 2: ; } } static void M2() { switch (nameof(M2)) { case nameof(M1) when true: ; case nameof(M2): Console.Write(nameof(M2)); break; case nameof(Main): ; } } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe); c.VerifyDiagnostics(); var verifier = CompileAndVerify(c, expectedOutput: "1M2"); verifier.VerifyIL(qualifiedMethodName: "Program.M1", sequencePoints: "Program.M1", source: source, expectedIL: @"{ // Code size 17 (0x11) .maxstack 1 .locals init (int V_0, int V_1) // sequence point: { IL_0000: nop // sequence point: switch ... (1 IL_0001: ldc.i4.1 IL_0002: stloc.1 IL_0003: ldc.i4.1 IL_0004: stloc.0 // sequence point: <hidden> IL_0005: br.s IL_0007 // sequence point: Console.Write(1); IL_0007: ldc.i4.1 IL_0008: call ""void System.Console.Write(int)"" IL_000d: nop // sequence point: break; IL_000e: br.s IL_0010 // sequence point: } IL_0010: ret }"); verifier.VerifyIL(qualifiedMethodName: "Program.M2", sequencePoints: "Program.M2", source: source, expectedIL: @"{ // Code size 29 (0x1d) .maxstack 1 .locals init (string V_0, string V_1) // sequence point: { IL_0000: nop // sequence point: switch ... (nameof(M2) IL_0001: ldstr ""M2"" IL_0006: stloc.1 IL_0007: ldstr ""M2"" IL_000c: stloc.0 // sequence point: <hidden> IL_000d: br.s IL_000f // sequence point: Console.Write(nameof(M2)); IL_000f: ldstr ""M2"" IL_0014: call ""void System.Console.Write(string)"" IL_0019: nop // sequence point: break; IL_001a: br.s IL_001c // sequence point: } IL_001c: ret }"); // Check the release code generation too. c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe); c.VerifyDiagnostics(); verifier = CompileAndVerify(c, expectedOutput: "1M2"); verifier.VerifyIL("Program.M1", @"{ // Code size 7 (0x7) .maxstack 1 IL_0000: ldc.i4.1 IL_0001: call ""void System.Console.Write(int)"" IL_0006: ret }"); verifier.VerifyIL("Program.M2", @"{ // Code size 11 (0xb) .maxstack 1 IL_0000: ldstr ""M2"" IL_0005: call ""void System.Console.Write(string)"" IL_000a: ret }"); } [WorkItem(19734, "https://github.com/dotnet/roslyn/issues/19734")] [Fact] public void SwitchWithConstantGenericPattern_01() { string source = @" using System; class Program { static void Main(string[] args) { M1<int>(); // 1 M1<long>(); // 2 M2<string>(); // 3 M2<int>(); // 4 } static void M1<T>() { switch (1) { case T t: Console.Write(1); break; case int i: Console.Write(2); break; } } static void M2<T>() { switch (nameof(M2)) { case T t: Console.Write(3); break; case string s: Console.Write(4); break; case null: ; } } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); c.VerifyDiagnostics(); var verifier = CompileAndVerify(c, expectedOutput: "1234"); verifier.VerifyIL(qualifiedMethodName: "Program.M1<T>", sequencePoints: "Program.M1", source: source, expectedIL: @"{ // Code size 60 (0x3c) .maxstack 1 .locals init (T V_0, //t int V_1, //i int V_2) // sequence point: { IL_0000: nop // sequence point: switch (1) IL_0001: ldc.i4.1 IL_0002: stloc.2 IL_0003: ldc.i4.1 IL_0004: stloc.1 // sequence point: <hidden> IL_0005: ldloc.1 IL_0006: box ""int"" IL_000b: isinst ""T"" IL_0010: brfalse.s IL_0030 IL_0012: ldloc.1 IL_0013: box ""int"" IL_0018: isinst ""T"" IL_001d: unbox.any ""T"" IL_0022: stloc.0 // sequence point: <hidden> IL_0023: br.s IL_0025 // sequence point: <hidden> IL_0025: br.s IL_0027 // sequence point: Console.Write(1); IL_0027: ldc.i4.1 IL_0028: call ""void System.Console.Write(int)"" IL_002d: nop // sequence point: break; IL_002e: br.s IL_003b // sequence point: <hidden> IL_0030: br.s IL_0032 // sequence point: Console.Write(2); IL_0032: ldc.i4.2 IL_0033: call ""void System.Console.Write(int)"" IL_0038: nop // sequence point: break; IL_0039: br.s IL_003b // sequence point: } IL_003b: ret }"); verifier.VerifyIL(qualifiedMethodName: "Program.M2<T>", sequencePoints: "Program.M2", source: source, expectedIL: @"{ // Code size 58 (0x3a) .maxstack 1 .locals init (T V_0, //t string V_1, //s string V_2) // sequence point: { IL_0000: nop // sequence point: switch (nameof(M2)) IL_0001: ldstr ""M2"" IL_0006: stloc.2 IL_0007: ldstr ""M2"" IL_000c: stloc.1 // sequence point: <hidden> IL_000d: ldloc.1 IL_000e: isinst ""T"" IL_0013: brfalse.s IL_002e IL_0015: ldloc.1 IL_0016: isinst ""T"" IL_001b: unbox.any ""T"" IL_0020: stloc.0 // sequence point: <hidden> IL_0021: br.s IL_0023 // sequence point: <hidden> IL_0023: br.s IL_0025 // sequence point: Console.Write(3); IL_0025: ldc.i4.3 IL_0026: call ""void System.Console.Write(int)"" IL_002b: nop // sequence point: break; IL_002c: br.s IL_0039 // sequence point: <hidden> IL_002e: br.s IL_0030 // sequence point: Console.Write(4); IL_0030: ldc.i4.4 IL_0031: call ""void System.Console.Write(int)"" IL_0036: nop // sequence point: break; IL_0037: br.s IL_0039 // sequence point: } IL_0039: ret }"); // Check the release code generation too. c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); c.VerifyDiagnostics(); verifier = CompileAndVerify(c, expectedOutput: "1234"); verifier.VerifyIL("Program.M1<T>", @"{ // Code size 29 (0x1d) .maxstack 1 .locals init (int V_0) //i IL_0000: ldc.i4.1 IL_0001: stloc.0 IL_0002: ldloc.0 IL_0003: box ""int"" IL_0008: isinst ""T"" IL_000d: brfalse.s IL_0016 IL_000f: ldc.i4.1 IL_0010: call ""void System.Console.Write(int)"" IL_0015: ret IL_0016: ldc.i4.2 IL_0017: call ""void System.Console.Write(int)"" IL_001c: ret }"); verifier.VerifyIL("Program.M2<T>", @"{ // Code size 28 (0x1c) .maxstack 1 .locals init (string V_0) //s IL_0000: ldstr ""M2"" IL_0005: stloc.0 IL_0006: ldloc.0 IL_0007: isinst ""T"" IL_000c: brfalse.s IL_0015 IL_000e: ldc.i4.3 IL_000f: call ""void System.Console.Write(int)"" IL_0014: ret IL_0015: ldc.i4.4 IL_0016: call ""void System.Console.Write(int)"" IL_001b: ret }"); } [WorkItem(19734, "https://github.com/dotnet/roslyn/issues/19734")] [Fact] public void SwitchWithConstantGenericPattern_02() { string source = @" using System; class Program { static void Main(string[] args) { M2<string>(); // 6 M2<int>(); // 6 } static void M2<T>() { const string x = null; switch (x) { case T t: ; case string s: ; case null: Console.Write(6); break; } } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular7_1); c.VerifyDiagnostics(); var verifier = CompileAndVerify(c, expectedOutput: "66"); verifier.VerifyIL(qualifiedMethodName: "Program.M2<T>", sequencePoints: "Program.M2", source: source, expectedIL: @"{ // Code size 17 (0x11) .maxstack 1 .locals init (T V_0, //t string V_1, //s string V_2, string V_3) // sequence point: { IL_0000: nop // sequence point: switch (x) IL_0001: ldnull IL_0002: stloc.3 IL_0003: ldnull IL_0004: stloc.2 // sequence point: <hidden> IL_0005: br.s IL_0007 // sequence point: Console.Write(6); IL_0007: ldc.i4.6 IL_0008: call ""void System.Console.Write(int)"" IL_000d: nop // sequence point: break; IL_000e: br.s IL_0010 // sequence point: } IL_0010: ret }"); // Check the release code generation too. c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular7_1); c.VerifyDiagnostics(); verifier = CompileAndVerify(c, expectedOutput: "66"); verifier.VerifyIL("Program.M2<T>", @"{ // Code size 7 (0x7) .maxstack 1 IL_0000: ldc.i4.6 IL_0001: call ""void System.Console.Write(int)"" IL_0006: ret }"); } [Fact] [WorkItem(31665, "https://github.com/dotnet/roslyn/issues/31665")] public void TestSequencePoints_31665() { var source = @" using System; internal class Program { private static void Main(string[] args) { var s = ""1""; if (true) switch (s) { case ""1"": Console.Out.WriteLine(""Input was 1""); break; default: throw new Exception(""Default case""); } else Console.Out.WriteLine(""Too many inputs""); } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.Main(string[])", @" { // Code size 60 (0x3c) .maxstack 2 .locals init (string V_0, //s bool V_1, string V_2, string V_3) // sequence point: { IL_0000: nop // sequence point: var s = ""1""; IL_0001: ldstr ""1"" IL_0006: stloc.0 // sequence point: if (true) IL_0007: ldc.i4.1 IL_0008: stloc.1 // sequence point: switch (s) IL_0009: ldloc.0 IL_000a: stloc.3 // sequence point: <hidden> IL_000b: ldloc.3 IL_000c: stloc.2 // sequence point: <hidden> IL_000d: ldloc.2 IL_000e: ldstr ""1"" IL_0013: call ""bool string.op_Equality(string, string)"" IL_0018: brtrue.s IL_001c IL_001a: br.s IL_002e // sequence point: Console.Out.WriteLine(""Input was 1""); IL_001c: call ""System.IO.TextWriter System.Console.Out.get"" IL_0021: ldstr ""Input was 1"" IL_0026: callvirt ""void System.IO.TextWriter.WriteLine(string)"" IL_002b: nop // sequence point: break; IL_002c: br.s IL_0039 // sequence point: throw new Exception(""Default case""); IL_002e: ldstr ""Default case"" IL_0033: newobj ""System.Exception..ctor(string)"" IL_0038: throw // sequence point: <hidden> IL_0039: br.s IL_003b // sequence point: } IL_003b: ret } ", sequencePoints: "Program.Main", source: source); } [Fact] [WorkItem(17076, "https://github.com/dotnet/roslyn/issues/17076")] public void TestSequencePoints_17076() { var source = @" using System.Threading.Tasks; internal class Program { private static void Main(string[] args) { M(new Node()).GetAwaiter().GetResult(); } static async Task M(Node node) { while (node != null) { if (node is A a) { await Task.Yield(); return; } else if (node is B b) { await Task.Yield(); return; } node = node.Parent; } } } class Node { public Node Parent = null; } class A : Node { } class B : Node { } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<M>d__1.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 403 (0x193) .maxstack 3 .locals init (int V_0, bool V_1, System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter V_2, System.Runtime.CompilerServices.YieldAwaitable V_3, Program.<M>d__1 V_4, bool V_5, System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter V_6, bool V_7, System.Exception V_8) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<M>d__1.<>1__state"" IL_0006: stloc.0 .try { // sequence point: <hidden> IL_0007: ldloc.0 IL_0008: brfalse.s IL_0012 IL_000a: br.s IL_000c IL_000c: ldloc.0 IL_000d: ldc.i4.1 IL_000e: beq.s IL_0014 IL_0010: br.s IL_0019 IL_0012: br.s IL_007e IL_0014: br IL_0109 // sequence point: { IL_0019: nop // sequence point: <hidden> IL_001a: br IL_0150 // sequence point: { IL_001f: nop // sequence point: if (node is A a) IL_0020: ldarg.0 IL_0021: ldarg.0 IL_0022: ldfld ""Node Program.<M>d__1.node"" IL_0027: isinst ""A"" IL_002c: stfld ""A Program.<M>d__1.<a>5__1"" IL_0031: ldarg.0 IL_0032: ldfld ""A Program.<M>d__1.<a>5__1"" IL_0037: ldnull IL_0038: cgt.un IL_003a: stloc.1 // sequence point: <hidden> IL_003b: ldloc.1 IL_003c: brfalse.s IL_00a7 // sequence point: { IL_003e: nop // sequence point: await Task.Yield(); IL_003f: call ""System.Runtime.CompilerServices.YieldAwaitable System.Threading.Tasks.Task.Yield()"" IL_0044: stloc.3 IL_0045: ldloca.s V_3 IL_0047: call ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter System.Runtime.CompilerServices.YieldAwaitable.GetAwaiter()"" IL_004c: stloc.2 // sequence point: <hidden> IL_004d: ldloca.s V_2 IL_004f: call ""bool System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.IsCompleted.get"" IL_0054: brtrue.s IL_009a IL_0056: ldarg.0 IL_0057: ldc.i4.0 IL_0058: dup IL_0059: stloc.0 IL_005a: stfld ""int Program.<M>d__1.<>1__state"" // async: yield IL_005f: ldarg.0 IL_0060: ldloc.2 IL_0061: stfld ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter Program.<M>d__1.<>u__1"" IL_0066: ldarg.0 IL_0067: stloc.s V_4 IL_0069: ldarg.0 IL_006a: ldflda ""System.Runtime.CompilerServices.AsyncTaskMethodBuilder Program.<M>d__1.<>t__builder"" IL_006f: ldloca.s V_2 IL_0071: ldloca.s V_4 IL_0073: call ""void System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AwaitUnsafeOnCompleted<System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter, Program.<M>d__1>(ref System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter, ref Program.<M>d__1)"" IL_0078: nop IL_0079: leave IL_0192 // async: resume IL_007e: ldarg.0 IL_007f: ldfld ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter Program.<M>d__1.<>u__1"" IL_0084: stloc.2 IL_0085: ldarg.0 IL_0086: ldflda ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter Program.<M>d__1.<>u__1"" IL_008b: initobj ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter"" IL_0091: ldarg.0 IL_0092: ldc.i4.m1 IL_0093: dup IL_0094: stloc.0 IL_0095: stfld ""int Program.<M>d__1.<>1__state"" IL_009a: ldloca.s V_2 IL_009c: call ""void System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.GetResult()"" IL_00a1: nop // sequence point: return; IL_00a2: leave IL_017e // sequence point: if (node is B b) IL_00a7: ldarg.0 IL_00a8: ldarg.0 IL_00a9: ldfld ""Node Program.<M>d__1.node"" IL_00ae: isinst ""B"" IL_00b3: stfld ""B Program.<M>d__1.<b>5__2"" IL_00b8: ldarg.0 IL_00b9: ldfld ""B Program.<M>d__1.<b>5__2"" IL_00be: ldnull IL_00bf: cgt.un IL_00c1: stloc.s V_5 // sequence point: <hidden> IL_00c3: ldloc.s V_5 IL_00c5: brfalse.s IL_0130 // sequence point: { IL_00c7: nop // sequence point: await Task.Yield(); IL_00c8: call ""System.Runtime.CompilerServices.YieldAwaitable System.Threading.Tasks.Task.Yield()"" IL_00cd: stloc.3 IL_00ce: ldloca.s V_3 IL_00d0: call ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter System.Runtime.CompilerServices.YieldAwaitable.GetAwaiter()"" IL_00d5: stloc.s V_6 // sequence point: <hidden> IL_00d7: ldloca.s V_6 IL_00d9: call ""bool System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.IsCompleted.get"" IL_00de: brtrue.s IL_0126 IL_00e0: ldarg.0 IL_00e1: ldc.i4.1 IL_00e2: dup IL_00e3: stloc.0 IL_00e4: stfld ""int Program.<M>d__1.<>1__state"" // async: yield IL_00e9: ldarg.0 IL_00ea: ldloc.s V_6 IL_00ec: stfld ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter Program.<M>d__1.<>u__1"" IL_00f1: ldarg.0 IL_00f2: stloc.s V_4 IL_00f4: ldarg.0 IL_00f5: ldflda ""System.Runtime.CompilerServices.AsyncTaskMethodBuilder Program.<M>d__1.<>t__builder"" IL_00fa: ldloca.s V_6 IL_00fc: ldloca.s V_4 IL_00fe: call ""void System.Runtime.CompilerServices.AsyncTaskMethodBuilder.AwaitUnsafeOnCompleted<System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter, Program.<M>d__1>(ref System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter, ref Program.<M>d__1)"" IL_0103: nop IL_0104: leave IL_0192 // async: resume IL_0109: ldarg.0 IL_010a: ldfld ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter Program.<M>d__1.<>u__1"" IL_010f: stloc.s V_6 IL_0111: ldarg.0 IL_0112: ldflda ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter Program.<M>d__1.<>u__1"" IL_0117: initobj ""System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter"" IL_011d: ldarg.0 IL_011e: ldc.i4.m1 IL_011f: dup IL_0120: stloc.0 IL_0121: stfld ""int Program.<M>d__1.<>1__state"" IL_0126: ldloca.s V_6 IL_0128: call ""void System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.GetResult()"" IL_012d: nop // sequence point: return; IL_012e: leave.s IL_017e // sequence point: <hidden> IL_0130: ldarg.0 IL_0131: ldnull IL_0132: stfld ""B Program.<M>d__1.<b>5__2"" // sequence point: node = node.Parent; IL_0137: ldarg.0 IL_0138: ldarg.0 IL_0139: ldfld ""Node Program.<M>d__1.node"" IL_013e: ldfld ""Node Node.Parent"" IL_0143: stfld ""Node Program.<M>d__1.node"" // sequence point: } IL_0148: nop IL_0149: ldarg.0 IL_014a: ldnull IL_014b: stfld ""A Program.<M>d__1.<a>5__1"" // sequence point: while (node != null) IL_0150: ldarg.0 IL_0151: ldfld ""Node Program.<M>d__1.node"" IL_0156: ldnull IL_0157: cgt.un IL_0159: stloc.s V_7 // sequence point: <hidden> IL_015b: ldloc.s V_7 IL_015d: brtrue IL_001f IL_0162: leave.s IL_017e } catch System.Exception { // sequence point: <hidden> IL_0164: stloc.s V_8 IL_0166: ldarg.0 IL_0167: ldc.i4.s -2 IL_0169: stfld ""int Program.<M>d__1.<>1__state"" IL_016e: ldarg.0 IL_016f: ldflda ""System.Runtime.CompilerServices.AsyncTaskMethodBuilder Program.<M>d__1.<>t__builder"" IL_0174: ldloc.s V_8 IL_0176: call ""void System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetException(System.Exception)"" IL_017b: nop IL_017c: leave.s IL_0192 } // sequence point: } IL_017e: ldarg.0 IL_017f: ldc.i4.s -2 IL_0181: stfld ""int Program.<M>d__1.<>1__state"" // sequence point: <hidden> IL_0186: ldarg.0 IL_0187: ldflda ""System.Runtime.CompilerServices.AsyncTaskMethodBuilder Program.<M>d__1.<>t__builder"" IL_018c: call ""void System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult()"" IL_0191: nop IL_0192: ret } ", sequencePoints: "Program+<M>d__1.MoveNext", source: source); } [Fact] [WorkItem(28288, "https://github.com/dotnet/roslyn/issues/28288")] public void TestSequencePoints_28288() { var source = @" using System.Threading.Tasks; public class C { public static async Task Main() { object o = new C(); switch (o) { case C c: System.Console.Write(1); break; default: return; } if (M() != null) { } } private static object M() { return new C(); } }"; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("C.<Main>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 162 (0xa2) .maxstack 2 .locals init (int V_0, object V_1, bool V_2, System.Exception V_3) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int C.<Main>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: object o = new C(); IL_0008: ldarg.0 IL_0009: newobj ""C..ctor()"" IL_000e: stfld ""object C.<Main>d__0.<o>5__1"" // sequence point: switch (o) IL_0013: ldarg.0 IL_0014: ldarg.0 IL_0015: ldfld ""object C.<Main>d__0.<o>5__1"" IL_001a: stloc.1 // sequence point: <hidden> IL_001b: ldloc.1 IL_001c: stfld ""object C.<Main>d__0.<>s__3"" // sequence point: <hidden> IL_0021: ldarg.0 IL_0022: ldarg.0 IL_0023: ldfld ""object C.<Main>d__0.<>s__3"" IL_0028: isinst ""C"" IL_002d: stfld ""C C.<Main>d__0.<c>5__2"" IL_0032: ldarg.0 IL_0033: ldfld ""C C.<Main>d__0.<c>5__2"" IL_0038: brtrue.s IL_003c IL_003a: br.s IL_0047 // sequence point: <hidden> IL_003c: br.s IL_003e // sequence point: System.Console.Write(1); IL_003e: ldc.i4.1 IL_003f: call ""void System.Console.Write(int)"" IL_0044: nop // sequence point: break; IL_0045: br.s IL_0049 // sequence point: return; IL_0047: leave.s IL_0086 // sequence point: <hidden> IL_0049: ldarg.0 IL_004a: ldnull IL_004b: stfld ""C C.<Main>d__0.<c>5__2"" IL_0050: ldarg.0 IL_0051: ldnull IL_0052: stfld ""object C.<Main>d__0.<>s__3"" // sequence point: if (M() != null) IL_0057: call ""object C.M()"" IL_005c: ldnull IL_005d: cgt.un IL_005f: stloc.2 // sequence point: <hidden> IL_0060: ldloc.2 IL_0061: brfalse.s IL_0065 // sequence point: { IL_0063: nop // sequence point: } IL_0064: nop // sequence point: <hidden> IL_0065: leave.s IL_0086 } catch System.Exception { // sequence point: <hidden> IL_0067: stloc.3 IL_0068: ldarg.0 IL_0069: ldc.i4.s -2 IL_006b: stfld ""int C.<Main>d__0.<>1__state"" IL_0070: ldarg.0 IL_0071: ldnull IL_0072: stfld ""object C.<Main>d__0.<o>5__1"" IL_0077: ldarg.0 IL_0078: ldflda ""System.Runtime.CompilerServices.AsyncTaskMethodBuilder C.<Main>d__0.<>t__builder"" IL_007d: ldloc.3 IL_007e: call ""void System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetException(System.Exception)"" IL_0083: nop IL_0084: leave.s IL_00a1 } // sequence point: } IL_0086: ldarg.0 IL_0087: ldc.i4.s -2 IL_0089: stfld ""int C.<Main>d__0.<>1__state"" // sequence point: <hidden> IL_008e: ldarg.0 IL_008f: ldnull IL_0090: stfld ""object C.<Main>d__0.<o>5__1"" IL_0095: ldarg.0 IL_0096: ldflda ""System.Runtime.CompilerServices.AsyncTaskMethodBuilder C.<Main>d__0.<>t__builder"" IL_009b: call ""void System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetResult()"" IL_00a0: nop IL_00a1: ret } ", sequencePoints: "C+<Main>d__0.MoveNext", source: source); } [Fact] public void SwitchExpressionWithPattern() { string source = WithWindowsLineBreaks(@" class C { static string M(object o) { return o switch { int i => $""Number: {i}"", _ => ""Don't know"" }; } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.M", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M"" parameterNames=""o""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""55"" /> <slot kind=""temp"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""10"" endColumn=""11"" document=""1"" /> <entry offset=""0x4"" startLine=""6"" startColumn=""18"" endLine=""10"" endColumn=""10"" document=""1"" /> <entry offset=""0x5"" hidden=""true"" document=""1"" /> <entry offset=""0x14"" hidden=""true"" document=""1"" /> <entry offset=""0x16"" hidden=""true"" document=""1"" /> <entry offset=""0x18"" startLine=""8"" startColumn=""22"" endLine=""8"" endColumn=""36"" document=""1"" /> <entry offset=""0x2b"" startLine=""9"" startColumn=""18"" endLine=""9"" endColumn=""30"" document=""1"" /> <entry offset=""0x33"" hidden=""true"" document=""1"" /> <entry offset=""0x36"" startLine=""6"" startColumn=""9"" endLine=""10"" endColumn=""11"" document=""1"" /> <entry offset=""0x37"" hidden=""true"" document=""1"" /> <entry offset=""0x3b"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x3d""> <scope startOffset=""0x16"" endOffset=""0x2b""> <local name=""i"" il_index=""0"" il_start=""0x16"" il_end=""0x2b"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } #endregion #region DoStatement [Fact] public void DoStatement() { var source = WithWindowsLineBreaks( @"using System; public class SeqPointForWhile { public static void Main() { SeqPointForWhile obj = new SeqPointForWhile(); obj.While(234); } int field; public void While(int p) { do { p = (int)(p / 2); if (p > 100) { continue; } else if (p > 10) { field = 1; } else { break; } } while (p > 0); // SeqPt should be generated for [while (p > 0);] field = -1; } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""SeqPointForWhile"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""28"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""55"" document=""1"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""24"" document=""1"" /> <entry offset=""0x13"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x14""> <namespace name=""System"" /> <local name=""obj"" il_index=""0"" il_start=""0x0"" il_end=""0x14"" attributes=""0"" /> </scope> </method> <method containingType=""SeqPointForWhile"" name=""While"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""SeqPointForWhile"" methodName=""Main"" /> <encLocalSlotMap> <slot kind=""1"" offset=""71"" /> <slot kind=""1"" offset=""159"" /> <slot kind=""1"" offset=""11"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x2"" startLine=""16"" startColumn=""13"" endLine=""16"" endColumn=""30"" document=""1"" /> <entry offset=""0x7"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""25"" document=""1"" /> <entry offset=""0xd"" hidden=""true"" document=""1"" /> <entry offset=""0x10"" startLine=""19"" startColumn=""13"" endLine=""19"" endColumn=""14"" document=""1"" /> <entry offset=""0x11"" startLine=""20"" startColumn=""17"" endLine=""20"" endColumn=""26"" document=""1"" /> <entry offset=""0x13"" startLine=""22"" startColumn=""18"" endLine=""22"" endColumn=""29"" document=""1"" /> <entry offset=""0x19"" hidden=""true"" document=""1"" /> <entry offset=""0x1c"" startLine=""23"" startColumn=""13"" endLine=""23"" endColumn=""14"" document=""1"" /> <entry offset=""0x1d"" startLine=""24"" startColumn=""17"" endLine=""24"" endColumn=""27"" document=""1"" /> <entry offset=""0x24"" startLine=""25"" startColumn=""13"" endLine=""25"" endColumn=""14"" document=""1"" /> <entry offset=""0x25"" hidden=""true"" document=""1"" /> <entry offset=""0x27"" startLine=""27"" startColumn=""13"" endLine=""27"" endColumn=""14"" document=""1"" /> <entry offset=""0x28"" startLine=""28"" startColumn=""17"" endLine=""28"" endColumn=""23"" document=""1"" /> <entry offset=""0x2a"" startLine=""30"" startColumn=""9"" endLine=""30"" endColumn=""10"" document=""1"" /> <entry offset=""0x2b"" startLine=""30"" startColumn=""11"" endLine=""30"" endColumn=""25"" document=""1"" /> <entry offset=""0x30"" hidden=""true"" document=""1"" /> <entry offset=""0x33"" startLine=""32"" startColumn=""9"" endLine=""32"" endColumn=""20"" document=""1"" /> <entry offset=""0x3a"" startLine=""33"" startColumn=""5"" endLine=""33"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region Constructor [WorkItem(538317, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538317")] [Fact] public void ConstructorSequencePoints1() { var source = WithWindowsLineBreaks( @"namespace NS { public class MyClass { int intTest; public MyClass() { intTest = 123; } public MyClass(params int[] values) { intTest = values[0] + values[1] + values[2]; } public static int Main() { int intI = 1, intJ = 8; int intK = 3; // Can't step into Ctor MyClass mc = new MyClass(); // Can't step into Ctor mc = new MyClass(intI, intJ, intK); return mc.intTest - 12; } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); // Dev10 vs. Roslyn // // Default Ctor (no param) // Dev10 Roslyn // ====================================================================================== // Code size 18 (0x12) // Code size 16 (0x10) // .maxstack 8 .maxstack 8 //* IL_0000: ldarg.0 *IL_0000: ldarg.0 // IL_0001: call IL_0001: callvirt // instance void [mscorlib]System.Object::.ctor() instance void [mscorlib]System.Object::.ctor() // IL_0006: nop *IL_0006: nop //* IL_0007: nop //* IL_0008: ldarg.0 *IL_0007: ldarg.0 // IL_0009: ldc.i4.s 123 IL_0008: ldc.i4.s 123 // IL_000b: stfld int32 NS.MyClass::intTest IL_000a: stfld int32 NS.MyClass::intTest // IL_0010: nop //* IL_0011: ret *IL_000f: ret // ----------------------------------------------------------------------------------------- // SeqPoint: 0, 7 ,8, 0x10 0, 6, 7, 0xf c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""NS.MyClass"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""25"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""10"" document=""1"" /> <entry offset=""0x8"" startLine=""8"" startColumn=""13"" endLine=""8"" endColumn=""27"" document=""1"" /> <entry offset=""0x10"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> </sequencePoints> </method> <method containingType=""NS.MyClass"" name="".ctor"" parameterNames=""values""> <customDebugInfo> <forward declaringType=""NS.MyClass"" methodName="".ctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""44"" document=""1"" /> <entry offset=""0x7"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""10"" document=""1"" /> <entry offset=""0x8"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""57"" document=""1"" /> <entry offset=""0x19"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""10"" document=""1"" /> </sequencePoints> </method> <method containingType=""NS.MyClass"" name=""Main""> <customDebugInfo> <forward declaringType=""NS.MyClass"" methodName="".ctor"" /> <encLocalSlotMap> <slot kind=""0"" offset=""19"" /> <slot kind=""0"" offset=""29"" /> <slot kind=""0"" offset=""56"" /> <slot kind=""0"" offset=""126"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""10"" document=""1"" /> <entry offset=""0x1"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""25"" document=""1"" /> <entry offset=""0x3"" startLine=""18"" startColumn=""27"" endLine=""18"" endColumn=""35"" document=""1"" /> <entry offset=""0x5"" startLine=""19"" startColumn=""13"" endLine=""19"" endColumn=""26"" document=""1"" /> <entry offset=""0x7"" startLine=""22"" startColumn=""13"" endLine=""22"" endColumn=""40"" document=""1"" /> <entry offset=""0xd"" startLine=""25"" startColumn=""13"" endLine=""25"" endColumn=""48"" document=""1"" /> <entry offset=""0x25"" startLine=""27"" startColumn=""13"" endLine=""27"" endColumn=""36"" document=""1"" /> <entry offset=""0x32"" startLine=""28"" startColumn=""9"" endLine=""28"" endColumn=""10"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x35""> <local name=""intI"" il_index=""0"" il_start=""0x0"" il_end=""0x35"" attributes=""0"" /> <local name=""intJ"" il_index=""1"" il_start=""0x0"" il_end=""0x35"" attributes=""0"" /> <local name=""intK"" il_index=""2"" il_start=""0x0"" il_end=""0x35"" attributes=""0"" /> <local name=""mc"" il_index=""3"" il_start=""0x0"" il_end=""0x35"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void ConstructorSequencePoints2() { TestSequencePoints( @"using System; class D { public D() : [|base()|] { } }", TestOptions.DebugDll); TestSequencePoints( @"using System; class D { static D() [|{|] } }", TestOptions.DebugDll); TestSequencePoints( @"using System; class A : Attribute {} class D { [A] public D() : [|base()|] { } }", TestOptions.DebugDll); TestSequencePoints( @"using System; class A : Attribute {} class D { [A] public D() : [|base()|] { } }", TestOptions.DebugDll); TestSequencePoints( @"using System; class A : Attribute {} class C { } class D { [A] [|public D()|] { } }", TestOptions.DebugDll); } #endregion #region Destructor [Fact] public void Destructors() { var source = @" using System; public class Base { ~Base() { Console.WriteLine(); } } public class Derived : Base { ~Derived() { Console.WriteLine(); } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Base"" name=""Finalize""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x2"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""29"" document=""1"" /> <entry offset=""0xa"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x12"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x13""> <namespace name=""System"" /> </scope> </method> <method containingType=""Derived"" name=""Finalize""> <customDebugInfo> <forward declaringType=""Base"" methodName=""Finalize"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> <entry offset=""0x2"" startLine=""16"" startColumn=""9"" endLine=""16"" endColumn=""29"" document=""1"" /> <entry offset=""0xa"" startLine=""17"" startColumn=""5"" endLine=""17"" endColumn=""6"" document=""1"" /> <entry offset=""0x12"" startLine=""17"" startColumn=""5"" endLine=""17"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region Field and Property Initializers [Fact] [WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")] public void TestPartialClassFieldInitializers() { var text1 = WithWindowsLineBreaks(@" public partial class C { int x = 1; } "); var text2 = WithWindowsLineBreaks(@" public partial class C { int y = 1; static void Main() { C c = new C(); } } "); // Having a unique name here may be important. The infrastructure of the pdb to xml conversion // loads the assembly into the ReflectionOnlyLoadFrom context. // So it's probably a good idea to have a new name for each assembly. var compilation = CreateCompilation(new SyntaxTree[] { Parse(text1, "a.cs"), Parse(text2, "b.cs") }); compilation.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name=""b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""BB-7A-A6-D2-B2-32-59-43-8C-98-7F-E1-98-8D-F0-94-68-E9-EB-80"" /> <file id=""2"" name=""a.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""B4-EA-18-73-D2-0E-7F-15-51-4C-68-86-40-DF-E3-C3-97-9D-F6-B7"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""Main"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""15"" document=""2"" /> <entry offset=""0x7"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""15"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.Pdb); compilation.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name=""a.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""B4-EA-18-73-D2-0E-7F-15-51-4C-68-86-40-DF-E3-C3-97-9D-F6-B7"" /> <file id=""2"" name=""b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""BB-7A-A6-D2-B2-32-59-43-8C-98-7F-E1-98-8D-F0-94-68-E9-EB-80"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""15"" document=""1"" /> <entry offset=""0x7"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""15"" document=""2"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.PortablePdb); } [Fact] [WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")] public void TestPartialClassFieldInitializersWithLineDirectives() { var text1 = WithWindowsLineBreaks(@" using System; public partial class C { int x = 1; #line 12 ""foo.cs"" int z = Math.Abs(-3); int w = Math.Abs(4); #line 17 ""bar.cs"" double zed = Math.Sin(5); } #pragma checksum ""mah.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" "); var text2 = WithWindowsLineBreaks(@" using System; public partial class C { int y = 1; int x2 = 1; #line 12 ""foo2.cs"" int z2 = Math.Abs(-3); int w2 = Math.Abs(4); } "); var text3 = WithWindowsLineBreaks(@" using System; public partial class C { #line 112 ""mah.cs"" int y3 = 1; int x3 = 1; int z3 = Math.Abs(-3); #line default int w3 = Math.Abs(4); double zed3 = Math.Sin(5); C() { Console.WriteLine(""hi""); } static void Main() { C c = new C(); } } "); //Having a unique name here may be important. The infrastructure of the pdb to xml conversion //loads the assembly into the ReflectionOnlyLoadFrom context. //So it's probably a good idea to have a new name for each assembly. var compilation = CreateCompilation(new[] { Parse(text1, "a.cs"), Parse(text2, "b.cs"), Parse(text3, "a.cs") }, options: TestOptions.DebugDll); compilation.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name=""a.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""E2-3B-47-02-DC-E4-8D-B4-FF-00-67-90-31-68-74-C0-06-D7-39-0E"" /> <file id=""2"" name=""b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""DB-CE-E5-E9-CB-53-E5-EF-C1-7F-2C-53-EC-02-FE-5C-34-2C-EF-94"" /> <file id=""3"" name=""foo.cs"" language=""C#"" /> <file id=""4"" name=""bar.cs"" language=""C#"" /> <file id=""5"" name=""foo2.cs"" language=""C#"" /> <file id=""6"" name=""mah.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D9"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""15"" document=""1"" /> <entry offset=""0x7"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""26"" document=""3"" /> <entry offset=""0x14"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""25"" document=""3"" /> <entry offset=""0x20"" startLine=""17"" startColumn=""5"" endLine=""17"" endColumn=""30"" document=""4"" /> <entry offset=""0x34"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""15"" document=""2"" /> <entry offset=""0x3b"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""16"" document=""2"" /> <entry offset=""0x42"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""27"" document=""5"" /> <entry offset=""0x4f"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""26"" document=""5"" /> <entry offset=""0x5b"" startLine=""112"" startColumn=""5"" endLine=""112"" endColumn=""16"" document=""6"" /> <entry offset=""0x62"" startLine=""113"" startColumn=""5"" endLine=""113"" endColumn=""16"" document=""6"" /> <entry offset=""0x69"" startLine=""114"" startColumn=""5"" endLine=""114"" endColumn=""27"" document=""6"" /> <entry offset=""0x76"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""26"" document=""1"" /> <entry offset=""0x82"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""31"" document=""1"" /> <entry offset=""0x96"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""8"" document=""1"" /> <entry offset=""0x9d"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x9e"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""33"" document=""1"" /> <entry offset=""0xa9"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.PortablePdb); } [WorkItem(543313, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543313")] [Fact] public void TestFieldInitializerExpressionLambda() { var source = @" class C { int x = ((System.Func<int, int>)(z => z))(1); } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLambdaMap> <methodOrdinal>1</methodOrdinal> <lambda offset=""-6"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""50"" document=""1"" /> </sequencePoints> </method> <method containingType=""C+&lt;&gt;c"" name=""&lt;.ctor&gt;b__1_0"" parameterNames=""z""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""43"" endLine=""4"" endColumn=""44"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void FieldInitializerSequencePointSpans() { var source = @" class C { int x = 1, y = 2; } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""14"" document=""1"" /> <entry offset=""0x7"" startLine=""4"" startColumn=""16"" endLine=""4"" endColumn=""21"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region Auto-Property [WorkItem(820806, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/820806")] [Fact] public void BreakpointForAutoImplementedProperty() { var source = @" public class C { public static int AutoProp1 { get; private set; } internal string AutoProp2 { get; set; } internal protected C AutoProp3 { internal get; set; } } "; var comp = CreateCompilation(source, options: TestOptions.DebugDll); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""get_AutoProp1""> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""35"" endLine=""4"" endColumn=""39"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""set_AutoProp1"" parameterNames=""value""> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""40"" endLine=""4"" endColumn=""52"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""get_AutoProp2""> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""33"" endLine=""5"" endColumn=""37"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""set_AutoProp2"" parameterNames=""value""> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""38"" endLine=""5"" endColumn=""42"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""get_AutoProp3""> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""38"" endLine=""6"" endColumn=""51"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""set_AutoProp3"" parameterNames=""value""> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""52"" endLine=""6"" endColumn=""56"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void PropertyDeclaration() { TestSequencePoints( @"using System; public class C { int P { [|get;|] set; } }", TestOptions.DebugDll); TestSequencePoints( @"using System; public class C { int P { get; [|set;|] } }", TestOptions.DebugDll); TestSequencePoints( @"using System; public class C { int P { get [|{|] return 0; } } }", TestOptions.DebugDll); TestSequencePoints( @"using System; public class C { int P { get; } = [|int.Parse(""42"")|]; }", TestOptions.DebugDll, TestOptions.Regular); } #endregion #region ReturnStatement [Fact] public void Return_Implicit() { var source = @"class C { static void Main() { } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void Return_Explicit() { var source = @"class C { static void Main() { return; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""5"" startColumn=""9"" endLine=""5"" endColumn=""16"" document=""1"" /> <entry offset=""0x3"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(538298, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538298")] [Fact] public void RegressSeqPtEndOfMethodAfterReturn() { var source = WithWindowsLineBreaks( @"using System; public class SeqPointAfterReturn { public static int Main() { int ret = 0; ReturnVoid(100); if (field != ""Even"") ret = 1; ReturnVoid(99); if (field != ""Odd"") ret = ret + 1; string rets = ReturnValue(101); if (rets != ""Odd"") ret = ret + 1; rets = ReturnValue(102); if (rets != ""Even"") ret = ret + 1; return ret; } static string field; public static void ReturnVoid(int p) { int x = (int)(p % 2); if (x == 0) { field = ""Even""; } else { field = ""Odd""; } } public static string ReturnValue(int p) { int x = (int)(p % 2); if (x == 0) { return ""Even""; } else { return ""Odd""; } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); // Expected are current actual output plus Two extra expected SeqPt: // <entry offset=""0x73"" startLine=""25"" startColumn=""5"" endLine=""25"" endColumn=""6"" document=""1"" /> // <entry offset=""0x22"" startLine=""52"" startColumn=""5"" endLine=""52"" endColumn=""6"" document=""1"" /> // // Note: NOT include other differences between Roslyn and Dev10, as they are filed in separated bugs c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""SeqPointAfterReturn"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> <slot kind=""0"" offset=""204"" /> <slot kind=""1"" offset=""59"" /> <slot kind=""1"" offset=""138"" /> <slot kind=""1"" offset=""238"" /> <slot kind=""1"" offset=""330"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""21"" document=""1"" /> <entry offset=""0x3"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""25"" document=""1"" /> <entry offset=""0xb"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""29"" document=""1"" /> <entry offset=""0x1b"" hidden=""true"" document=""1"" /> <entry offset=""0x1e"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""21"" document=""1"" /> <entry offset=""0x20"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""24"" document=""1"" /> <entry offset=""0x28"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""28"" document=""1"" /> <entry offset=""0x38"" hidden=""true"" document=""1"" /> <entry offset=""0x3b"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""27"" document=""1"" /> <entry offset=""0x3f"" startLine=""16"" startColumn=""9"" endLine=""16"" endColumn=""40"" document=""1"" /> <entry offset=""0x47"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""27"" document=""1"" /> <entry offset=""0x54"" hidden=""true"" document=""1"" /> <entry offset=""0x58"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""27"" document=""1"" /> <entry offset=""0x5c"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""33"" document=""1"" /> <entry offset=""0x64"" startLine=""21"" startColumn=""9"" endLine=""21"" endColumn=""28"" document=""1"" /> <entry offset=""0x71"" hidden=""true"" document=""1"" /> <entry offset=""0x75"" startLine=""22"" startColumn=""13"" endLine=""22"" endColumn=""27"" document=""1"" /> <entry offset=""0x79"" startLine=""24"" startColumn=""9"" endLine=""24"" endColumn=""20"" document=""1"" /> <entry offset=""0x7e"" startLine=""25"" startColumn=""5"" endLine=""25"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x81""> <namespace name=""System"" /> <local name=""ret"" il_index=""0"" il_start=""0x0"" il_end=""0x81"" attributes=""0"" /> <local name=""rets"" il_index=""1"" il_start=""0x0"" il_end=""0x81"" attributes=""0"" /> </scope> </method> <method containingType=""SeqPointAfterReturn"" name=""ReturnVoid"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""SeqPointAfterReturn"" methodName=""Main"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> <slot kind=""1"" offset=""42"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""29"" startColumn=""5"" endLine=""29"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""30"" startColumn=""9"" endLine=""30"" endColumn=""30"" document=""1"" /> <entry offset=""0x5"" startLine=""31"" startColumn=""9"" endLine=""31"" endColumn=""20"" document=""1"" /> <entry offset=""0xa"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""32"" startColumn=""9"" endLine=""32"" endColumn=""10"" document=""1"" /> <entry offset=""0xe"" startLine=""33"" startColumn=""13"" endLine=""33"" endColumn=""28"" document=""1"" /> <entry offset=""0x18"" startLine=""34"" startColumn=""9"" endLine=""34"" endColumn=""10"" document=""1"" /> <entry offset=""0x19"" hidden=""true"" document=""1"" /> <entry offset=""0x1b"" startLine=""36"" startColumn=""9"" endLine=""36"" endColumn=""10"" document=""1"" /> <entry offset=""0x1c"" startLine=""37"" startColumn=""13"" endLine=""37"" endColumn=""27"" document=""1"" /> <entry offset=""0x26"" startLine=""38"" startColumn=""9"" endLine=""38"" endColumn=""10"" document=""1"" /> <entry offset=""0x27"" startLine=""39"" startColumn=""5"" endLine=""39"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x28""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x28"" attributes=""0"" /> </scope> </method> <method containingType=""SeqPointAfterReturn"" name=""ReturnValue"" parameterNames=""p""> <customDebugInfo> <forward declaringType=""SeqPointAfterReturn"" methodName=""Main"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> <slot kind=""1"" offset=""42"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""42"" startColumn=""5"" endLine=""42"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""43"" startColumn=""9"" endLine=""43"" endColumn=""30"" document=""1"" /> <entry offset=""0x5"" startLine=""44"" startColumn=""9"" endLine=""44"" endColumn=""20"" document=""1"" /> <entry offset=""0xa"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""45"" startColumn=""9"" endLine=""45"" endColumn=""10"" document=""1"" /> <entry offset=""0xe"" startLine=""46"" startColumn=""13"" endLine=""46"" endColumn=""27"" document=""1"" /> <entry offset=""0x16"" startLine=""49"" startColumn=""9"" endLine=""49"" endColumn=""10"" document=""1"" /> <entry offset=""0x17"" startLine=""50"" startColumn=""13"" endLine=""50"" endColumn=""26"" document=""1"" /> <entry offset=""0x1f"" startLine=""52"" startColumn=""5"" endLine=""52"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x21""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x21"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } #endregion #region Exception Handling [WorkItem(542064, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542064")] [Fact] public void ExceptionHandling() { var source = WithWindowsLineBreaks(@" class Test { static int Main() { int ret = 0; // stop 1 try { // stop 2 throw new System.Exception(); // stop 3 } catch (System.Exception e) // stop 4 { // stop 5 ret = 1; // stop 6 } try { // stop 7 throw new System.Exception(); // stop 8 } catch // stop 9 { // stop 10 return ret; // stop 11 } } } "); // Dev12 inserts an additional sequence point on catch clause, just before // the exception object is assigned to the variable. We don't place that sequence point. // Also the scope of he exception variable is different. var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("Test.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Test"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> <slot kind=""0"" offset=""147"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""21"" document=""1"" /> <entry offset=""0x3"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""10"" document=""1"" /> <entry offset=""0x4"" startLine=""9"" startColumn=""13"" endLine=""9"" endColumn=""42"" document=""1"" /> <entry offset=""0xa"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""35"" document=""1"" /> <entry offset=""0xb"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""10"" document=""1"" /> <entry offset=""0xc"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""21"" document=""1"" /> <entry offset=""0xe"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0x11"" hidden=""true"" document=""1"" /> <entry offset=""0x12"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""10"" document=""1"" /> <entry offset=""0x13"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""42"" document=""1"" /> <entry offset=""0x19"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""14"" document=""1"" /> <entry offset=""0x1a"" startLine=""21"" startColumn=""9"" endLine=""21"" endColumn=""10"" document=""1"" /> <entry offset=""0x1b"" startLine=""22"" startColumn=""13"" endLine=""22"" endColumn=""24"" document=""1"" /> <entry offset=""0x1f"" startLine=""25"" startColumn=""5"" endLine=""25"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x21""> <local name=""ret"" il_index=""0"" il_start=""0x0"" il_end=""0x21"" attributes=""0"" /> <scope startOffset=""0xa"" endOffset=""0x11""> <local name=""e"" il_index=""1"" il_start=""0xa"" il_end=""0x11"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(2911, "https://github.com/dotnet/roslyn/issues/2911")] [Fact] public void ExceptionHandling_Filter_Debug1() { var source = WithWindowsLineBreaks(@" using System; using System.IO; class Test { static string filter(Exception e) { return null; } static void Main() { try { throw new InvalidOperationException(); } catch (IOException e) when (filter(e) != null) { Console.WriteLine(); } catch (Exception e) when (filter(e) != null) { Console.WriteLine(); } } } "); var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); v.VerifyIL("Test.Main", @" { // Code size 89 (0x59) .maxstack 2 .locals init (System.IO.IOException V_0, //e bool V_1, System.Exception V_2, //e bool V_3) -IL_0000: nop .try { -IL_0001: nop -IL_0002: newobj ""System.InvalidOperationException..ctor()"" IL_0007: throw } filter { ~IL_0008: isinst ""System.IO.IOException"" IL_000d: dup IL_000e: brtrue.s IL_0014 IL_0010: pop IL_0011: ldc.i4.0 IL_0012: br.s IL_0023 IL_0014: stloc.0 -IL_0015: ldloc.0 IL_0016: call ""string Test.filter(System.Exception)"" IL_001b: ldnull IL_001c: cgt.un IL_001e: stloc.1 ~IL_001f: ldloc.1 IL_0020: ldc.i4.0 IL_0021: cgt.un IL_0023: endfilter } // end filter { // handler ~IL_0025: pop -IL_0026: nop -IL_0027: call ""void System.Console.WriteLine()"" IL_002c: nop -IL_002d: nop IL_002e: leave.s IL_0058 } filter { ~IL_0030: isinst ""System.Exception"" IL_0035: dup IL_0036: brtrue.s IL_003c IL_0038: pop IL_0039: ldc.i4.0 IL_003a: br.s IL_004b IL_003c: stloc.2 -IL_003d: ldloc.2 IL_003e: call ""string Test.filter(System.Exception)"" IL_0043: ldnull IL_0044: cgt.un IL_0046: stloc.3 ~IL_0047: ldloc.3 IL_0048: ldc.i4.0 IL_0049: cgt.un IL_004b: endfilter } // end filter { // handler ~IL_004d: pop -IL_004e: nop -IL_004f: call ""void System.Console.WriteLine()"" IL_0054: nop -IL_0055: nop IL_0056: leave.s IL_0058 } -IL_0058: ret } ", sequencePoints: "Test.Main"); v.VerifyPdb("Test.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Test"" name=""Main""> <customDebugInfo> <forward declaringType=""Test"" methodName=""filter"" parameterNames=""e"" /> <encLocalSlotMap> <slot kind=""0"" offset=""104"" /> <slot kind=""1"" offset=""120"" /> <slot kind=""0"" offset=""216"" /> <slot kind=""1"" offset=""230"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x2"" startLine=""16"" startColumn=""13"" endLine=""16"" endColumn=""51"" document=""1"" /> <entry offset=""0x8"" hidden=""true"" document=""1"" /> <entry offset=""0x15"" startLine=""18"" startColumn=""31"" endLine=""18"" endColumn=""55"" document=""1"" /> <entry offset=""0x1f"" hidden=""true"" document=""1"" /> <entry offset=""0x25"" hidden=""true"" document=""1"" /> <entry offset=""0x26"" startLine=""19"" startColumn=""9"" endLine=""19"" endColumn=""10"" document=""1"" /> <entry offset=""0x27"" startLine=""20"" startColumn=""13"" endLine=""20"" endColumn=""33"" document=""1"" /> <entry offset=""0x2d"" startLine=""21"" startColumn=""9"" endLine=""21"" endColumn=""10"" document=""1"" /> <entry offset=""0x30"" hidden=""true"" document=""1"" /> <entry offset=""0x3d"" startLine=""22"" startColumn=""29"" endLine=""22"" endColumn=""53"" document=""1"" /> <entry offset=""0x47"" hidden=""true"" document=""1"" /> <entry offset=""0x4d"" hidden=""true"" document=""1"" /> <entry offset=""0x4e"" startLine=""23"" startColumn=""9"" endLine=""23"" endColumn=""10"" document=""1"" /> <entry offset=""0x4f"" startLine=""24"" startColumn=""13"" endLine=""24"" endColumn=""33"" document=""1"" /> <entry offset=""0x55"" startLine=""25"" startColumn=""9"" endLine=""25"" endColumn=""10"" document=""1"" /> <entry offset=""0x58"" startLine=""26"" startColumn=""5"" endLine=""26"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x59""> <scope startOffset=""0x8"" endOffset=""0x30""> <local name=""e"" il_index=""0"" il_start=""0x8"" il_end=""0x30"" attributes=""0"" /> </scope> <scope startOffset=""0x30"" endOffset=""0x58""> <local name=""e"" il_index=""2"" il_start=""0x30"" il_end=""0x58"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(2911, "https://github.com/dotnet/roslyn/issues/2911")] [Fact] public void ExceptionHandling_Filter_Debug2() { var source = WithWindowsLineBreaks(@" class Test { static void Main() { try { throw new System.Exception(); } catch when (F()) { System.Console.WriteLine(); } } private static bool F() { return true; } } "); var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); v.VerifyIL("Test.Main", @" { // Code size 33 (0x21) .maxstack 2 .locals init (bool V_0) -IL_0000: nop .try { -IL_0001: nop -IL_0002: newobj ""System.Exception..ctor()"" IL_0007: throw } filter { ~IL_0008: pop -IL_0009: call ""bool Test.F()"" IL_000e: stloc.0 ~IL_000f: ldloc.0 IL_0010: ldc.i4.0 IL_0011: cgt.un IL_0013: endfilter } // end filter { // handler ~IL_0015: pop -IL_0016: nop -IL_0017: call ""void System.Console.WriteLine()"" IL_001c: nop -IL_001d: nop IL_001e: leave.s IL_0020 } -IL_0020: ret } ", sequencePoints: "Test.Main"); v.VerifyPdb("Test.Main", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Test"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""1"" offset=""95"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""10"" document=""1"" /> <entry offset=""0x2"" startLine=""8"" startColumn=""13"" endLine=""8"" endColumn=""42"" document=""1"" /> <entry offset=""0x8"" hidden=""true"" document=""1"" /> <entry offset=""0x9"" startLine=""10"" startColumn=""15"" endLine=""10"" endColumn=""25"" document=""1"" /> <entry offset=""0xf"" hidden=""true"" document=""1"" /> <entry offset=""0x15"" hidden=""true"" document=""1"" /> <entry offset=""0x16"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0x17"" startLine=""12"" startColumn=""13"" endLine=""12"" endColumn=""40"" document=""1"" /> <entry offset=""0x1d"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x20"" startLine=""14"" startColumn=""5"" endLine=""14"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(2911, "https://github.com/dotnet/roslyn/issues/2911")] [Fact] public void ExceptionHandling_Filter_Debug3() { var source = WithWindowsLineBreaks(@" class Test { static bool a = true; static void Main() { try { throw new System.Exception(); } catch when (a) { System.Console.WriteLine(); } } } "); var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll)); v.VerifyIL("Test.Main", @" { // Code size 33 (0x21) .maxstack 2 .locals init (bool V_0) -IL_0000: nop .try { -IL_0001: nop -IL_0002: newobj ""System.Exception..ctor()"" IL_0007: throw } filter { ~IL_0008: pop -IL_0009: ldsfld ""bool Test.a"" IL_000e: stloc.0 ~IL_000f: ldloc.0 IL_0010: ldc.i4.0 IL_0011: cgt.un IL_0013: endfilter } // end filter { // handler ~IL_0015: pop -IL_0016: nop -IL_0017: call ""void System.Console.WriteLine()"" IL_001c: nop -IL_001d: nop IL_001e: leave.s IL_0020 } -IL_0020: ret } ", sequencePoints: "Test.Main"); v.VerifyPdb("Test.Main", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Test"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""1"" offset=""95"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x2"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""42"" document=""1"" /> <entry offset=""0x8"" hidden=""true"" document=""1"" /> <entry offset=""0x9"" startLine=""12"" startColumn=""15"" endLine=""12"" endColumn=""23"" document=""1"" /> <entry offset=""0xf"" hidden=""true"" document=""1"" /> <entry offset=""0x15"" hidden=""true"" document=""1"" /> <entry offset=""0x16"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x17"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""40"" document=""1"" /> <entry offset=""0x1d"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x20"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(2911, "https://github.com/dotnet/roslyn/issues/2911")] [Fact] public void ExceptionHandling_Filter_Release3() { var source = @" class Test { static bool a = true; static void Main() { try { throw new System.Exception(); } catch when (a) { System.Console.WriteLine(); } } } "; var v = CompileAndVerify(CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.ReleaseDll)); v.VerifyIL("Test.Main", @" { // Code size 26 (0x1a) .maxstack 2 .try { -IL_0000: newobj ""System.Exception..ctor()"" IL_0005: throw } filter { ~IL_0006: pop -IL_0007: ldsfld ""bool Test.a"" IL_000c: ldc.i4.0 IL_000d: cgt.un IL_000f: endfilter } // end filter { // handler ~IL_0011: pop -IL_0012: call ""void System.Console.WriteLine()"" -IL_0017: leave.s IL_0019 } -IL_0019: ret } ", sequencePoints: "Test.Main"); v.VerifyPdb("Test.Main", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Test"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""42"" document=""1"" /> <entry offset=""0x6"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" startLine=""12"" startColumn=""15"" endLine=""12"" endColumn=""23"" document=""1"" /> <entry offset=""0x11"" hidden=""true"" document=""1"" /> <entry offset=""0x12"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""40"" document=""1"" /> <entry offset=""0x17"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x19"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(778655, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/778655")] [Fact] public void BranchToStartOfTry() { string source = WithWindowsLineBreaks(@" using System; using System.Collections.Generic; class Program { static void Main(string[] args) { string str = null; bool isEmpty = string.IsNullOrEmpty(str); // isEmpty is always true here, so it should never go thru this if statement. if (!isEmpty) { throw new Exception(); } try { Console.WriteLine(); } catch { } } } "); // Note the hidden sequence point @IL_0019. var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main"" parameterNames=""args""> <customDebugInfo> <using> <namespace usingCount=""2"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""18"" /> <slot kind=""0"" offset=""44"" /> <slot kind=""1"" offset=""177"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""27"" document=""1"" /> <entry offset=""0x3"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""50"" document=""1"" /> <entry offset=""0xa"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""22"" document=""1"" /> <entry offset=""0xf"" hidden=""true"" document=""1"" /> <entry offset=""0x12"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x13"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""35"" document=""1"" /> <entry offset=""0x19"" hidden=""true"" document=""1"" /> <entry offset=""0x1a"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""10"" document=""1"" /> <entry offset=""0x1b"" startLine=""18"" startColumn=""13"" endLine=""18"" endColumn=""33"" document=""1"" /> <entry offset=""0x21"" startLine=""19"" startColumn=""9"" endLine=""19"" endColumn=""10"" document=""1"" /> <entry offset=""0x24"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""14"" document=""1"" /> <entry offset=""0x25"" startLine=""21"" startColumn=""9"" endLine=""21"" endColumn=""10"" document=""1"" /> <entry offset=""0x26"" startLine=""22"" startColumn=""9"" endLine=""22"" endColumn=""10"" document=""1"" /> <entry offset=""0x29"" startLine=""23"" startColumn=""5"" endLine=""23"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2a""> <namespace name=""System"" /> <namespace name=""System.Collections.Generic"" /> <local name=""str"" il_index=""0"" il_start=""0x0"" il_end=""0x2a"" attributes=""0"" /> <local name=""isEmpty"" il_index=""1"" il_start=""0x0"" il_end=""0x2a"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } #endregion #region UsingStatement [Fact] public void UsingStatement_EmbeddedStatement() { var source = WithWindowsLineBreaks(@" public class DisposableClass : System.IDisposable { public DisposableClass(int a) { } public void Dispose() { } } class C { static void Main() { using (DisposableClass a = new DisposableClass(1), b = new DisposableClass(2)) System.Console.WriteLine(""First""); } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.Main", sequencePoints: "C.Main", source: source, expectedIL: @" { // Code size 53 (0x35) .maxstack 1 .locals init (DisposableClass V_0, //a DisposableClass V_1) //b // sequence point: { IL_0000: nop // sequence point: DisposableClass a = new DisposableClass(1) IL_0001: ldc.i4.1 IL_0002: newobj ""DisposableClass..ctor(int)"" IL_0007: stloc.0 .try { // sequence point: b = new DisposableClass(2) IL_0008: ldc.i4.2 IL_0009: newobj ""DisposableClass..ctor(int)"" IL_000e: stloc.1 .try { // sequence point: System.Console.WriteLine(""First""); IL_000f: ldstr ""First"" IL_0014: call ""void System.Console.WriteLine(string)"" IL_0019: nop IL_001a: leave.s IL_0027 } finally { // sequence point: <hidden> IL_001c: ldloc.1 IL_001d: brfalse.s IL_0026 IL_001f: ldloc.1 IL_0020: callvirt ""void System.IDisposable.Dispose()"" IL_0025: nop // sequence point: <hidden> IL_0026: endfinally } // sequence point: <hidden> IL_0027: leave.s IL_0034 } finally { // sequence point: <hidden> IL_0029: ldloc.0 IL_002a: brfalse.s IL_0033 IL_002c: ldloc.0 IL_002d: callvirt ""void System.IDisposable.Dispose()"" IL_0032: nop // sequence point: <hidden> IL_0033: endfinally } // sequence point: } IL_0034: ret } "); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <forward declaringType=""DisposableClass"" methodName="".ctor"" parameterNames=""a"" /> <encLocalSlotMap> <slot kind=""0"" offset=""34"" /> <slot kind=""0"" offset=""62"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""12"" startColumn=""16"" endLine=""12"" endColumn=""58"" document=""1"" /> <entry offset=""0x8"" startLine=""12"" startColumn=""60"" endLine=""12"" endColumn=""86"" document=""1"" /> <entry offset=""0xf"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""47"" document=""1"" /> <entry offset=""0x1c"" hidden=""true"" document=""1"" /> <entry offset=""0x26"" hidden=""true"" document=""1"" /> <entry offset=""0x27"" hidden=""true"" document=""1"" /> <entry offset=""0x29"" hidden=""true"" document=""1"" /> <entry offset=""0x33"" hidden=""true"" document=""1"" /> <entry offset=""0x34"" startLine=""14"" startColumn=""5"" endLine=""14"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x35""> <scope startOffset=""0x1"" endOffset=""0x34""> <local name=""a"" il_index=""0"" il_start=""0x1"" il_end=""0x34"" attributes=""0"" /> <local name=""b"" il_index=""1"" il_start=""0x1"" il_end=""0x34"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void UsingStatement_Block() { var source = WithWindowsLineBreaks(@" public class DisposableClass : System.IDisposable { public DisposableClass(int a) { } public void Dispose() { } } class C { static void Main() { using (DisposableClass c = new DisposableClass(3), d = new DisposableClass(4)) { System.Console.WriteLine(""Second""); } } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.Main", sequencePoints: "C.Main", source: source, expectedIL: @" { // Code size 55 (0x37) .maxstack 1 .locals init (DisposableClass V_0, //c DisposableClass V_1) //d // sequence point: { IL_0000: nop // sequence point: DisposableClass c = new DisposableClass(3) IL_0001: ldc.i4.3 IL_0002: newobj ""DisposableClass..ctor(int)"" IL_0007: stloc.0 .try { // sequence point: d = new DisposableClass(4) IL_0008: ldc.i4.4 IL_0009: newobj ""DisposableClass..ctor(int)"" IL_000e: stloc.1 .try { // sequence point: { IL_000f: nop // sequence point: System.Console.WriteLine(""Second""); IL_0010: ldstr ""Second"" IL_0015: call ""void System.Console.WriteLine(string)"" IL_001a: nop // sequence point: } IL_001b: nop IL_001c: leave.s IL_0029 } finally { // sequence point: <hidden> IL_001e: ldloc.1 IL_001f: brfalse.s IL_0028 IL_0021: ldloc.1 IL_0022: callvirt ""void System.IDisposable.Dispose()"" IL_0027: nop // sequence point: <hidden> IL_0028: endfinally } // sequence point: <hidden> IL_0029: leave.s IL_0036 } finally { // sequence point: <hidden> IL_002b: ldloc.0 IL_002c: brfalse.s IL_0035 IL_002e: ldloc.0 IL_002f: callvirt ""void System.IDisposable.Dispose()"" IL_0034: nop // sequence point: <hidden> IL_0035: endfinally } // sequence point: } IL_0036: ret } " ); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <forward declaringType=""DisposableClass"" methodName="".ctor"" parameterNames=""a"" /> <encLocalSlotMap> <slot kind=""0"" offset=""34"" /> <slot kind=""0"" offset=""62"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""12"" startColumn=""16"" endLine=""12"" endColumn=""58"" document=""1"" /> <entry offset=""0x8"" startLine=""12"" startColumn=""60"" endLine=""12"" endColumn=""86"" document=""1"" /> <entry offset=""0xf"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x10"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""48"" document=""1"" /> <entry offset=""0x1b"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x1e"" hidden=""true"" document=""1"" /> <entry offset=""0x28"" hidden=""true"" document=""1"" /> <entry offset=""0x29"" hidden=""true"" document=""1"" /> <entry offset=""0x2b"" hidden=""true"" document=""1"" /> <entry offset=""0x35"" hidden=""true"" document=""1"" /> <entry offset=""0x36"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x37""> <scope startOffset=""0x1"" endOffset=""0x36""> <local name=""c"" il_index=""0"" il_start=""0x1"" il_end=""0x36"" attributes=""0"" /> <local name=""d"" il_index=""1"" il_start=""0x1"" il_end=""0x36"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [WorkItem(18844, "https://github.com/dotnet/roslyn/issues/18844")] [Fact] public void UsingStatement_EmbeddedConditional() { var source = @" class C { bool F() { bool x = true; bool value = false; using (var stream = new System.IO.MemoryStream()) if (x) { value = true; } else value = false; return value; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.F", @" { // Code size 45 (0x2d) .maxstack 1 .locals init (bool V_0, //x bool V_1, //value System.IO.MemoryStream V_2, //stream bool V_3, bool V_4) // sequence point: { IL_0000: nop // sequence point: bool x = true; IL_0001: ldc.i4.1 IL_0002: stloc.0 // sequence point: bool value = false; IL_0003: ldc.i4.0 IL_0004: stloc.1 // sequence point: var stream = new System.IO.MemoryStream() IL_0005: newobj ""System.IO.MemoryStream..ctor()"" IL_000a: stloc.2 .try { // sequence point: if (x) IL_000b: ldloc.0 IL_000c: stloc.3 // sequence point: <hidden> IL_000d: ldloc.3 IL_000e: brfalse.s IL_0016 // sequence point: { IL_0010: nop // sequence point: value = true; IL_0011: ldc.i4.1 IL_0012: stloc.1 // sequence point: } IL_0013: nop // sequence point: <hidden> IL_0014: br.s IL_0018 // sequence point: value = false; IL_0016: ldc.i4.0 IL_0017: stloc.1 // sequence point: <hidden> IL_0018: leave.s IL_0025 } finally { // sequence point: <hidden> IL_001a: ldloc.2 IL_001b: brfalse.s IL_0024 IL_001d: ldloc.2 IL_001e: callvirt ""void System.IDisposable.Dispose()"" IL_0023: nop // sequence point: <hidden> IL_0024: endfinally } // sequence point: return value; IL_0025: ldloc.1 IL_0026: stloc.s V_4 IL_0028: br.s IL_002a // sequence point: } IL_002a: ldloc.s V_4 IL_002c: ret } ", sequencePoints: "C.F", source: source); } [WorkItem(18844, "https://github.com/dotnet/roslyn/issues/18844")] [Fact] public void UsingStatement_EmbeddedConditional2() { var source = @" class C { bool F() { bool x = true; bool value = false; using (var stream = new System.IO.MemoryStream()) if (x) { value = true; } else { value = false; } return value; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.F", @" { // Code size 47 (0x2f) .maxstack 1 .locals init (bool V_0, //x bool V_1, //value System.IO.MemoryStream V_2, //stream bool V_3, bool V_4) // sequence point: { IL_0000: nop // sequence point: bool x = true; IL_0001: ldc.i4.1 IL_0002: stloc.0 // sequence point: bool value = false; IL_0003: ldc.i4.0 IL_0004: stloc.1 // sequence point: var stream = new System.IO.MemoryStream() IL_0005: newobj ""System.IO.MemoryStream..ctor()"" IL_000a: stloc.2 .try { // sequence point: if (x) IL_000b: ldloc.0 IL_000c: stloc.3 // sequence point: <hidden> IL_000d: ldloc.3 IL_000e: brfalse.s IL_0016 // sequence point: { IL_0010: nop // sequence point: value = true; IL_0011: ldc.i4.1 IL_0012: stloc.1 // sequence point: } IL_0013: nop // sequence point: <hidden> IL_0014: br.s IL_001a // sequence point: { IL_0016: nop // sequence point: value = false; IL_0017: ldc.i4.0 IL_0018: stloc.1 // sequence point: } IL_0019: nop // sequence point: <hidden> IL_001a: leave.s IL_0027 } finally { // sequence point: <hidden> IL_001c: ldloc.2 IL_001d: brfalse.s IL_0026 IL_001f: ldloc.2 IL_0020: callvirt ""void System.IDisposable.Dispose()"" IL_0025: nop // sequence point: <hidden> IL_0026: endfinally } // sequence point: return value; IL_0027: ldloc.1 IL_0028: stloc.s V_4 IL_002a: br.s IL_002c // sequence point: } IL_002c: ldloc.s V_4 IL_002e: ret } ", sequencePoints: "C.F", source: source); } [WorkItem(18844, "https://github.com/dotnet/roslyn/issues/18844")] [Fact] public void UsingStatement_EmbeddedWhile() { var source = @" class C { void F(bool x) { using (var stream = new System.IO.MemoryStream()) while (x) x = false; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.F", @" { // Code size 31 (0x1f) .maxstack 1 .locals init (System.IO.MemoryStream V_0, //stream bool V_1) // sequence point: { IL_0000: nop // sequence point: var stream = new System.IO.MemoryStream() IL_0001: newobj ""System.IO.MemoryStream..ctor()"" IL_0006: stloc.0 .try { // sequence point: <hidden> IL_0007: br.s IL_000c // sequence point: x = false; IL_0009: ldc.i4.0 IL_000a: starg.s V_1 // sequence point: while (x) IL_000c: ldarg.1 IL_000d: stloc.1 // sequence point: <hidden> IL_000e: ldloc.1 IL_000f: brtrue.s IL_0009 IL_0011: leave.s IL_001e } finally { // sequence point: <hidden> IL_0013: ldloc.0 IL_0014: brfalse.s IL_001d IL_0016: ldloc.0 IL_0017: callvirt ""void System.IDisposable.Dispose()"" IL_001c: nop // sequence point: <hidden> IL_001d: endfinally } // sequence point: } IL_001e: ret } ", sequencePoints: "C.F", source: source); } [WorkItem(18844, "https://github.com/dotnet/roslyn/issues/18844")] [Fact] public void UsingStatement_EmbeddedFor() { var source = @" class C { void F(bool x) { using (var stream = new System.IO.MemoryStream()) for ( ; x == true; ) x = false; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.F", @" { // Code size 31 (0x1f) .maxstack 1 .locals init (System.IO.MemoryStream V_0, //stream bool V_1) // sequence point: { IL_0000: nop // sequence point: var stream = new System.IO.MemoryStream() IL_0001: newobj ""System.IO.MemoryStream..ctor()"" IL_0006: stloc.0 .try { // sequence point: <hidden> IL_0007: br.s IL_000c // sequence point: x = false; IL_0009: ldc.i4.0 IL_000a: starg.s V_1 // sequence point: x == true IL_000c: ldarg.1 IL_000d: stloc.1 // sequence point: <hidden> IL_000e: ldloc.1 IL_000f: brtrue.s IL_0009 IL_0011: leave.s IL_001e } finally { // sequence point: <hidden> IL_0013: ldloc.0 IL_0014: brfalse.s IL_001d IL_0016: ldloc.0 IL_0017: callvirt ""void System.IDisposable.Dispose()"" IL_001c: nop // sequence point: <hidden> IL_001d: endfinally } // sequence point: } IL_001e: ret } ", sequencePoints: "C.F", source: source); } [WorkItem(18844, "https://github.com/dotnet/roslyn/issues/18844")] [Fact] public void LockStatement_EmbeddedIf() { var source = @" class C { void F(bool x) { string y = """"; lock (y) if (!x) System.Console.Write(1); else System.Console.Write(2); } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.F", @" { // Code size 58 (0x3a) .maxstack 2 .locals init (string V_0, //y string V_1, bool V_2, bool V_3) // sequence point: { IL_0000: nop // sequence point: string y = """"; IL_0001: ldstr """" IL_0006: stloc.0 // sequence point: lock (y) IL_0007: ldloc.0 IL_0008: stloc.1 IL_0009: ldc.i4.0 IL_000a: stloc.2 .try { IL_000b: ldloc.1 IL_000c: ldloca.s V_2 IL_000e: call ""void System.Threading.Monitor.Enter(object, ref bool)"" IL_0013: nop // sequence point: if (!x) IL_0014: ldarg.1 IL_0015: ldc.i4.0 IL_0016: ceq IL_0018: stloc.3 // sequence point: <hidden> IL_0019: ldloc.3 IL_001a: brfalse.s IL_0025 // sequence point: System.Console.Write(1); IL_001c: ldc.i4.1 IL_001d: call ""void System.Console.Write(int)"" IL_0022: nop // sequence point: <hidden> IL_0023: br.s IL_002c // sequence point: System.Console.Write(2); IL_0025: ldc.i4.2 IL_0026: call ""void System.Console.Write(int)"" IL_002b: nop // sequence point: <hidden> IL_002c: leave.s IL_0039 } finally { // sequence point: <hidden> IL_002e: ldloc.2 IL_002f: brfalse.s IL_0038 IL_0031: ldloc.1 IL_0032: call ""void System.Threading.Monitor.Exit(object)"" IL_0037: nop // sequence point: <hidden> IL_0038: endfinally } // sequence point: } IL_0039: ret } ", sequencePoints: "C.F", source: source); } #endregion #region Using Declaration [WorkItem(37417, "https://github.com/dotnet/roslyn/issues/37417")] [Fact] public void UsingDeclaration_BodyBlockScope() { var source = WithWindowsLineBreaks(@" using System; using System.IO; class C { static void Main() { using MemoryStream m = new MemoryStream(), n = new MemoryStream(); Console.WriteLine(1); } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); // TODO: https://github.com/dotnet/roslyn/issues/37417 // Duplicate sequence point at `}` v.VerifyIL("C.Main", sequencePoints: "C.Main", source: source, expectedIL: @" { // Code size 45 (0x2d) .maxstack 1 .locals init (System.IO.MemoryStream V_0, //m System.IO.MemoryStream V_1) //n // sequence point: { IL_0000: nop // sequence point: using MemoryStream m = new MemoryStream() IL_0001: newobj ""System.IO.MemoryStream..ctor()"" IL_0006: stloc.0 .try { // sequence point: n = new MemoryStream() IL_0007: newobj ""System.IO.MemoryStream..ctor()"" IL_000c: stloc.1 .try { // sequence point: Console.WriteLine(1); IL_000d: ldc.i4.1 IL_000e: call ""void System.Console.WriteLine(int)"" IL_0013: nop // sequence point: } IL_0014: leave.s IL_002c } finally { // sequence point: <hidden> IL_0016: ldloc.1 IL_0017: brfalse.s IL_0020 IL_0019: ldloc.1 IL_001a: callvirt ""void System.IDisposable.Dispose()"" IL_001f: nop // sequence point: <hidden> IL_0020: endfinally } } finally { // sequence point: <hidden> IL_0021: ldloc.0 IL_0022: brfalse.s IL_002b IL_0024: ldloc.0 IL_0025: callvirt ""void System.IDisposable.Dispose()"" IL_002a: nop // sequence point: <hidden> IL_002b: endfinally } // sequence point: } IL_002c: ret } "); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""2"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""30"" /> <slot kind=""0"" offset=""54"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""50"" document=""1"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""52"" endLine=""8"" endColumn=""74"" document=""1"" /> <entry offset=""0xd"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""30"" document=""1"" /> <entry offset=""0x14"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0x16"" hidden=""true"" document=""1"" /> <entry offset=""0x20"" hidden=""true"" document=""1"" /> <entry offset=""0x21"" hidden=""true"" document=""1"" /> <entry offset=""0x2b"" hidden=""true"" document=""1"" /> <entry offset=""0x2c"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2d""> <namespace name=""System"" /> <namespace name=""System.IO"" /> <local name=""m"" il_index=""0"" il_start=""0x0"" il_end=""0x2d"" attributes=""0"" /> <local name=""n"" il_index=""1"" il_start=""0x0"" il_end=""0x2d"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [WorkItem(37417, "https://github.com/dotnet/roslyn/issues/37417")] [Fact] public void UsingDeclaration_BodyBlockScopeWithReturn() { var source = WithWindowsLineBreaks(@" using System; using System.IO; class C { static int Main() { using MemoryStream m = new MemoryStream(); Console.WriteLine(1); return 1; } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); // TODO: https://github.com/dotnet/roslyn/issues/37417 // Duplicate sequence point at `}` v.VerifyIL("C.Main", sequencePoints: "C.Main", source: source, expectedIL: @" { // Code size 31 (0x1f) .maxstack 1 .locals init (System.IO.MemoryStream V_0, //m int V_1) // sequence point: { IL_0000: nop // sequence point: using MemoryStream m = new MemoryStream(); IL_0001: newobj ""System.IO.MemoryStream..ctor()"" IL_0006: stloc.0 .try { // sequence point: Console.WriteLine(1); IL_0007: ldc.i4.1 IL_0008: call ""void System.Console.WriteLine(int)"" IL_000d: nop // sequence point: return 1; IL_000e: ldc.i4.1 IL_000f: stloc.1 IL_0010: leave.s IL_001d } finally { // sequence point: <hidden> IL_0012: ldloc.0 IL_0013: brfalse.s IL_001c IL_0015: ldloc.0 IL_0016: callvirt ""void System.IDisposable.Dispose()"" IL_001b: nop // sequence point: <hidden> IL_001c: endfinally } // sequence point: } IL_001d: ldloc.1 IL_001e: ret } "); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""2"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""30"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""51"" document=""1"" /> <entry offset=""0x7"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""30"" document=""1"" /> <entry offset=""0xe"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""18"" document=""1"" /> <entry offset=""0x12"" hidden=""true"" document=""1"" /> <entry offset=""0x1c"" hidden=""true"" document=""1"" /> <entry offset=""0x1d"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1f""> <namespace name=""System"" /> <namespace name=""System.IO"" /> <local name=""m"" il_index=""0"" il_start=""0x0"" il_end=""0x1f"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [WorkItem(37417, "https://github.com/dotnet/roslyn/issues/37417")] [Fact] public void UsingDeclaration_IfBodyScope() { var source = WithWindowsLineBreaks(@" using System; using System.IO; class C { public static bool G() => true; static void Main() { if (G()) { using var m = new MemoryStream(); Console.WriteLine(1); } Console.WriteLine(2); } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); // TODO: https://github.com/dotnet/roslyn/issues/37417 // In this case the sequence point `}` is not emitted on the leave instruction, // but to a nop instruction following the disposal. v.VerifyIL("C.Main", sequencePoints: "C.Main", source: source, expectedIL: @" { // Code size 46 (0x2e) .maxstack 1 .locals init (bool V_0, System.IO.MemoryStream V_1) //m // sequence point: { IL_0000: nop // sequence point: if (G()) IL_0001: call ""bool C.G()"" IL_0006: stloc.0 // sequence point: <hidden> IL_0007: ldloc.0 IL_0008: brfalse.s IL_0026 // sequence point: { IL_000a: nop // sequence point: using var m = new MemoryStream(); IL_000b: newobj ""System.IO.MemoryStream..ctor()"" IL_0010: stloc.1 .try { // sequence point: Console.WriteLine(1); IL_0011: ldc.i4.1 IL_0012: call ""void System.Console.WriteLine(int)"" IL_0017: nop IL_0018: leave.s IL_0025 } finally { // sequence point: <hidden> IL_001a: ldloc.1 IL_001b: brfalse.s IL_0024 IL_001d: ldloc.1 IL_001e: callvirt ""void System.IDisposable.Dispose()"" IL_0023: nop // sequence point: <hidden> IL_0024: endfinally } // sequence point: } IL_0025: nop // sequence point: Console.WriteLine(2); IL_0026: ldc.i4.2 IL_0027: call ""void System.Console.WriteLine(int)"" IL_002c: nop // sequence point: } IL_002d: ret } "); c.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" /> <encLocalSlotMap> <slot kind=""1"" offset=""11"" /> <slot kind=""0"" offset=""55"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""17"" document=""1"" /> <entry offset=""0x7"" hidden=""true"" document=""1"" /> <entry offset=""0xa"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0xb"" startLine=""12"" startColumn=""13"" endLine=""12"" endColumn=""46"" document=""1"" /> <entry offset=""0x11"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""34"" document=""1"" /> <entry offset=""0x1a"" hidden=""true"" document=""1"" /> <entry offset=""0x24"" hidden=""true"" document=""1"" /> <entry offset=""0x25"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0x26"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""30"" document=""1"" /> <entry offset=""0x2d"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2e""> <scope startOffset=""0xa"" endOffset=""0x26""> <local name=""m"" il_index=""1"" il_start=""0xa"" il_end=""0x26"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } #endregion // LockStatement tested in CodeGenLock #region Anonymous Type [Fact] public void AnonymousType_Empty() { var source = WithWindowsLineBreaks(@" class Program { static void Main(string[] args) { var o = new {}; } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main"" parameterNames=""args""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""24"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x8""> <local name=""o"" il_index=""0"" il_start=""0x0"" il_end=""0x8"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void AnonymousType_NonEmpty() { var source = WithWindowsLineBreaks(@" class Program { static void Main(string[] args) { var o = new { a = 1 }; } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main"" parameterNames=""args""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""31"" document=""1"" /> <entry offset=""0x8"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x9""> <local name=""o"" il_index=""0"" il_start=""0x0"" il_end=""0x9"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } #endregion #region FixedStatement [Fact] public void FixedStatementSingleAddress() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { int x; static void Main() { C c = new C(); fixed (int* p = &c.x) { *p = 1; } Console.WriteLine(c.x); } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""13"" /> <slot kind=""0"" offset=""47"" /> <slot kind=""9"" offset=""47"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""23"" document=""1"" /> <entry offset=""0xe"" startLine=""11"" startColumn=""16"" endLine=""11"" endColumn=""29"" document=""1"" /> <entry offset=""0x11"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""10"" document=""1"" /> <entry offset=""0x12"" startLine=""13"" startColumn=""13"" endLine=""13"" endColumn=""20"" document=""1"" /> <entry offset=""0x15"" startLine=""14"" startColumn=""9"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0x16"" hidden=""true"" document=""1"" /> <entry offset=""0x19"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""32"" document=""1"" /> <entry offset=""0x25"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x26""> <namespace name=""System"" /> <local name=""c"" il_index=""0"" il_start=""0x0"" il_end=""0x26"" attributes=""0"" /> <scope startOffset=""0x7"" endOffset=""0x19""> <local name=""p"" il_index=""1"" il_start=""0x7"" il_end=""0x19"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void FixedStatementSingleString() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { static void Main() { fixed (char* p = ""hello"") { Console.WriteLine(*p); } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""24"" /> <slot kind=""9"" offset=""24"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""16"" endLine=""8"" endColumn=""33"" document=""1"" /> <entry offset=""0x15"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x16"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""35"" document=""1"" /> <entry offset=""0x1e"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0x1f"" hidden=""true"" document=""1"" /> <entry offset=""0x21"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x22""> <namespace name=""System"" /> <scope startOffset=""0x1"" endOffset=""0x21""> <local name=""p"" il_index=""0"" il_start=""0x1"" il_end=""0x21"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void FixedStatementSingleArray() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { int[] a = new int[1]; static void Main() { C c = new C(); Console.Write(c.a[0]); fixed (int* p = c.a) { (*p)++; } Console.Write(c.a[0]); } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""13"" /> <slot kind=""0"" offset=""79"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""23"" document=""1"" /> <entry offset=""0x7"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""31"" document=""1"" /> <entry offset=""0x15"" startLine=""12"" startColumn=""16"" endLine=""12"" endColumn=""28"" document=""1"" /> <entry offset=""0x32"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x33"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""20"" document=""1"" /> <entry offset=""0x39"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x3a"" hidden=""true"" document=""1"" /> <entry offset=""0x3c"" startLine=""16"" startColumn=""9"" endLine=""16"" endColumn=""31"" document=""1"" /> <entry offset=""0x4a"" startLine=""17"" startColumn=""5"" endLine=""17"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x4b""> <namespace name=""System"" /> <local name=""c"" il_index=""0"" il_start=""0x0"" il_end=""0x4b"" attributes=""0"" /> <scope startOffset=""0x15"" endOffset=""0x3c""> <local name=""p"" il_index=""1"" il_start=""0x15"" il_end=""0x3c"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""Main"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""26"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void FixedStatementMultipleAddresses() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { int x; int y; static void Main() { C c = new C(); fixed (int* p = &c.x, q = &c.y) { *p = 1; *q = 2; } Console.WriteLine(c.x + c.y); } } "); // NOTE: stop on each declarator. var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""13"" /> <slot kind=""0"" offset=""47"" /> <slot kind=""0"" offset=""57"" /> <slot kind=""9"" offset=""47"" /> <slot kind=""9"" offset=""57"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""23"" document=""1"" /> <entry offset=""0xe"" startLine=""12"" startColumn=""16"" endLine=""12"" endColumn=""29"" document=""1"" /> <entry offset=""0x19"" startLine=""12"" startColumn=""31"" endLine=""12"" endColumn=""39"" document=""1"" /> <entry offset=""0x1d"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x1e"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""20"" document=""1"" /> <entry offset=""0x21"" startLine=""15"" startColumn=""13"" endLine=""15"" endColumn=""20"" document=""1"" /> <entry offset=""0x24"" startLine=""16"" startColumn=""9"" endLine=""16"" endColumn=""10"" document=""1"" /> <entry offset=""0x25"" hidden=""true"" document=""1"" /> <entry offset=""0x2c"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""38"" document=""1"" /> <entry offset=""0x3f"" startLine=""18"" startColumn=""5"" endLine=""18"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x40""> <namespace name=""System"" /> <local name=""c"" il_index=""0"" il_start=""0x0"" il_end=""0x40"" attributes=""0"" /> <scope startOffset=""0x7"" endOffset=""0x2c""> <local name=""p"" il_index=""1"" il_start=""0x7"" il_end=""0x2c"" attributes=""0"" /> <local name=""q"" il_index=""2"" il_start=""0x7"" il_end=""0x2c"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void FixedStatementMultipleStrings() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { static void Main() { fixed (char* p = ""hello"", q = ""goodbye"") { Console.Write(*p); Console.Write(*q); } } } "); // NOTE: stop on each declarator. var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""24"" /> <slot kind=""0"" offset=""37"" /> <slot kind=""9"" offset=""24"" /> <slot kind=""9"" offset=""37"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""16"" endLine=""8"" endColumn=""33"" document=""1"" /> <entry offset=""0x1b"" startLine=""8"" startColumn=""35"" endLine=""8"" endColumn=""48"" document=""1"" /> <entry offset=""0x29"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x2a"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""31"" document=""1"" /> <entry offset=""0x32"" startLine=""11"" startColumn=""13"" endLine=""11"" endColumn=""31"" document=""1"" /> <entry offset=""0x3a"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""10"" document=""1"" /> <entry offset=""0x3b"" hidden=""true"" document=""1"" /> <entry offset=""0x3f"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x40""> <namespace name=""System"" /> <scope startOffset=""0x1"" endOffset=""0x3f""> <local name=""p"" il_index=""0"" il_start=""0x1"" il_end=""0x3f"" attributes=""0"" /> <local name=""q"" il_index=""1"" il_start=""0x1"" il_end=""0x3f"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void FixedStatementMultipleArrays() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { int[] a = new int[1]; int[] b = new int[1]; static void Main() { C c = new C(); Console.Write(c.a[0]); Console.Write(c.b[0]); fixed (int* p = c.a, q = c.b) { *p = 1; *q = 2; } Console.Write(c.a[0]); Console.Write(c.b[0]); } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""13"" /> <slot kind=""0"" offset=""111"" /> <slot kind=""0"" offset=""120"" /> <slot kind=""temp"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""23"" document=""1"" /> <entry offset=""0x7"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""31"" document=""1"" /> <entry offset=""0x15"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""31"" document=""1"" /> <entry offset=""0x23"" startLine=""14"" startColumn=""16"" endLine=""14"" endColumn=""28"" document=""1"" /> <entry offset=""0x40"" startLine=""14"" startColumn=""30"" endLine=""14"" endColumn=""37"" document=""1"" /> <entry offset=""0x60"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""10"" document=""1"" /> <entry offset=""0x61"" startLine=""16"" startColumn=""13"" endLine=""16"" endColumn=""20"" document=""1"" /> <entry offset=""0x64"" startLine=""17"" startColumn=""13"" endLine=""17"" endColumn=""20"" document=""1"" /> <entry offset=""0x67"" startLine=""18"" startColumn=""9"" endLine=""18"" endColumn=""10"" document=""1"" /> <entry offset=""0x68"" hidden=""true"" document=""1"" /> <entry offset=""0x6d"" startLine=""19"" startColumn=""9"" endLine=""19"" endColumn=""31"" document=""1"" /> <entry offset=""0x7b"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""31"" document=""1"" /> <entry offset=""0x89"" startLine=""21"" startColumn=""5"" endLine=""21"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x8a""> <namespace name=""System"" /> <local name=""c"" il_index=""0"" il_start=""0x0"" il_end=""0x8a"" attributes=""0"" /> <scope startOffset=""0x23"" endOffset=""0x6d""> <local name=""p"" il_index=""1"" il_start=""0x23"" il_end=""0x6d"" attributes=""0"" /> <local name=""q"" il_index=""2"" il_start=""0x23"" il_end=""0x6d"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""Main"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""26"" document=""1"" /> <entry offset=""0xc"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""26"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void FixedStatementMultipleMixed() { var source = WithWindowsLineBreaks(@" using System; unsafe class C { char c = 'a'; char[] a = new char[1]; static void Main() { C c = new C(); fixed (char* p = &c.c, q = c.a, r = ""hello"") { Console.Write((int)*p); Console.Write((int)*q); Console.Write((int)*r); } } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugDll); c.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""13"" /> <slot kind=""0"" offset=""48"" /> <slot kind=""0"" offset=""58"" /> <slot kind=""0"" offset=""67"" /> <slot kind=""9"" offset=""48"" /> <slot kind=""temp"" /> <slot kind=""9"" offset=""67"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""23"" document=""1"" /> <entry offset=""0xf"" startLine=""12"" startColumn=""16"" endLine=""12"" endColumn=""30"" document=""1"" /> <entry offset=""0x13"" startLine=""12"" startColumn=""32"" endLine=""12"" endColumn=""39"" document=""1"" /> <entry offset=""0x3a"" startLine=""12"" startColumn=""41"" endLine=""12"" endColumn=""52"" document=""1"" /> <entry offset=""0x49"" startLine=""13"" startColumn=""9"" endLine=""13"" endColumn=""10"" document=""1"" /> <entry offset=""0x4a"" startLine=""14"" startColumn=""13"" endLine=""14"" endColumn=""36"" document=""1"" /> <entry offset=""0x52"" startLine=""15"" startColumn=""13"" endLine=""15"" endColumn=""36"" document=""1"" /> <entry offset=""0x5a"" startLine=""16"" startColumn=""13"" endLine=""16"" endColumn=""36"" document=""1"" /> <entry offset=""0x62"" startLine=""17"" startColumn=""9"" endLine=""17"" endColumn=""10"" document=""1"" /> <entry offset=""0x63"" hidden=""true"" document=""1"" /> <entry offset=""0x6d"" startLine=""18"" startColumn=""5"" endLine=""18"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x6e""> <namespace name=""System"" /> <local name=""c"" il_index=""0"" il_start=""0x0"" il_end=""0x6e"" attributes=""0"" /> <scope startOffset=""0x7"" endOffset=""0x6d""> <local name=""p"" il_index=""1"" il_start=""0x7"" il_end=""0x6d"" attributes=""0"" /> <local name=""q"" il_index=""2"" il_start=""0x7"" il_end=""0x6d"" attributes=""0"" /> <local name=""r"" il_index=""3"" il_start=""0x7"" il_end=""0x6d"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""Main"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""18"" document=""1"" /> <entry offset=""0x8"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""28"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region Line Directives [Fact] public void LineDirective() { var source = @" #line 50 ""foo.cs"" using System; unsafe class C { static void Main() { Console.Write(1); } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""foo.cs"" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""56"" startColumn=""5"" endLine=""56"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""57"" startColumn=""9"" endLine=""57"" endColumn=""26"" document=""1"" /> <entry offset=""0x8"" startLine=""58"" startColumn=""5"" endLine=""58"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x9""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } [WorkItem(544917, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544917")] [Fact] public void DisabledLineDirective() { var source = @" #if false #line 50 ""foo.cs"" #endif using System; unsafe class C { static void Main() { Console.Write(1); } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.UnsafeDebugExe); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""26"" document=""1"" /> <entry offset=""0x8"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x9""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void TestLineDirectivesHidden() { var text1 = WithWindowsLineBreaks(@" using System; public class C { public void Foo() { foreach (var x in new int[] { 1, 2, 3, 4 }) { Console.WriteLine(x); } #line hidden foreach (var x in new int[] { 1, 2, 3, 4 }) { Console.WriteLine(x); } #line default foreach (var x in new int[] { 1, 2, 3, 4 }) { Console.WriteLine(x); } } } "); var compilation = CreateCompilation(text1, options: TestOptions.DebugDll); compilation.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Foo""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""6"" offset=""11"" /> <slot kind=""8"" offset=""11"" /> <slot kind=""0"" offset=""11"" /> <slot kind=""6"" offset=""137"" /> <slot kind=""8"" offset=""137"" /> <slot kind=""0"" offset=""137"" /> <slot kind=""6"" offset=""264"" /> <slot kind=""8"" offset=""264"" /> <slot kind=""0"" offset=""264"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""16"" document=""1"" /> <entry offset=""0x2"" startLine=""7"" startColumn=""27"" endLine=""7"" endColumn=""51"" document=""1"" /> <entry offset=""0x16"" hidden=""true"" document=""1"" /> <entry offset=""0x18"" startLine=""7"" startColumn=""18"" endLine=""7"" endColumn=""23"" document=""1"" /> <entry offset=""0x1c"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""10"" document=""1"" /> <entry offset=""0x1d"" startLine=""9"" startColumn=""13"" endLine=""9"" endColumn=""34"" document=""1"" /> <entry offset=""0x24"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""10"" document=""1"" /> <entry offset=""0x25"" hidden=""true"" document=""1"" /> <entry offset=""0x29"" startLine=""7"" startColumn=""24"" endLine=""7"" endColumn=""26"" document=""1"" /> <entry offset=""0x2f"" hidden=""true"" document=""1"" /> <entry offset=""0x30"" hidden=""true"" document=""1"" /> <entry offset=""0x45"" hidden=""true"" document=""1"" /> <entry offset=""0x47"" hidden=""true"" document=""1"" /> <entry offset=""0x4d"" hidden=""true"" document=""1"" /> <entry offset=""0x4e"" hidden=""true"" document=""1"" /> <entry offset=""0x56"" hidden=""true"" document=""1"" /> <entry offset=""0x57"" hidden=""true"" document=""1"" /> <entry offset=""0x5d"" hidden=""true"" document=""1"" /> <entry offset=""0x64"" startLine=""19"" startColumn=""9"" endLine=""19"" endColumn=""16"" document=""1"" /> <entry offset=""0x65"" startLine=""19"" startColumn=""27"" endLine=""19"" endColumn=""51"" document=""1"" /> <entry offset=""0x7b"" hidden=""true"" document=""1"" /> <entry offset=""0x7d"" startLine=""19"" startColumn=""18"" endLine=""19"" endColumn=""23"" document=""1"" /> <entry offset=""0x84"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""10"" document=""1"" /> <entry offset=""0x85"" startLine=""21"" startColumn=""13"" endLine=""21"" endColumn=""34"" document=""1"" /> <entry offset=""0x8d"" startLine=""22"" startColumn=""9"" endLine=""22"" endColumn=""10"" document=""1"" /> <entry offset=""0x8e"" hidden=""true"" document=""1"" /> <entry offset=""0x94"" startLine=""19"" startColumn=""24"" endLine=""19"" endColumn=""26"" document=""1"" /> <entry offset=""0x9c"" startLine=""23"" startColumn=""5"" endLine=""23"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x9d""> <namespace name=""System"" /> <scope startOffset=""0x18"" endOffset=""0x25""> <local name=""x"" il_index=""2"" il_start=""0x18"" il_end=""0x25"" attributes=""0"" /> </scope> <scope startOffset=""0x47"" endOffset=""0x57""> <local name=""x"" il_index=""5"" il_start=""0x47"" il_end=""0x57"" attributes=""0"" /> </scope> <scope startOffset=""0x7d"" endOffset=""0x8e""> <local name=""x"" il_index=""8"" il_start=""0x7d"" il_end=""0x8e"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols>"); } [Fact] public void HiddenMethods() { var src = WithWindowsLineBreaks(@" using System; class C { #line hidden public static void H() { F(); } #line default public static void G() { F(); } #line hidden public static void F() { { const int z = 1; var (x, y) = (1,2); Console.WriteLine(x + z); } { dynamic x = 1; Console.WriteLine(x); } } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""G""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""14"" startColumn=""5"" endLine=""14"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""15"" startColumn=""9"" endLine=""15"" endColumn=""13"" document=""1"" /> <entry offset=""0x7"" startLine=""16"" startColumn=""5"" endLine=""16"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x8""> <namespace name=""System"" /> </scope> </method> <method containingType=""C"" name=""F""> <customDebugInfo> <encLocalSlotMap> <slot kind=""0"" offset=""61"" /> <slot kind=""0"" offset=""64"" /> <slot kind=""0"" offset=""158"" /> </encLocalSlotMap> </customDebugInfo> </method> </methods> </symbols>"); } [Fact] public void HiddenEntryPoint() { var src = @" class C { #line hidden public static void Main() { } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugExe); // Note: Dev10 emitted a hidden sequence point to #line hidden method, // which enabled the debugger to locate the first user visible sequence point starting from the entry point. // Roslyn does not emit such sequence point. We could potentially synthesize one but that would defeat the purpose of // #line hidden directive. c.VerifyPdb(@" <symbols> <entryPoint declaringType=""C"" methodName=""Main"" /> <methods> <method containingType=""C"" name=""Main"" format=""windows""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> </method> </methods> </symbols>", // When converting from Portable to Windows the PDB writer doesn't create an entry for the Main method // and thus there is no entry point record either. options: PdbValidationOptions.SkipConversionValidation); } [Fact] public void HiddenIterator() { var src = WithWindowsLineBreaks(@" using System; using System.Collections.Generic; class C { public static void Main() { F(); } #line hidden public static IEnumerable<int> F() { { const int z = 1; var (x, y) = (1,2); Console.WriteLine(x + z); } { dynamic x = 1; Console.WriteLine(x); } yield return 1; } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(src, references: new[] { CSharpRef, ValueTupleRef, SystemRuntimeFacadeRef }, options: TestOptions.DebugDll); // We don't really need the debug info for kickoff method when the entire iterator method is hidden, // but it doesn't hurt and removing it would need extra effort that's unnecessary. c.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""2"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""13"" document=""1"" /> <entry offset=""0x7"" startLine=""10"" startColumn=""5"" endLine=""10"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x8""> <namespace name=""System"" /> <namespace name=""System.Collections.Generic"" /> </scope> </method> <method containingType=""C"" name=""F""> <customDebugInfo> <forwardIterator name=""&lt;F&gt;d__1"" /> <encLocalSlotMap> <slot kind=""0"" offset=""61"" /> <slot kind=""0"" offset=""64"" /> <slot kind=""0"" offset=""158"" /> </encLocalSlotMap> </customDebugInfo> </method> <method containingType=""C+&lt;F&gt;d__1"" name=""MoveNext""> <customDebugInfo> <encLocalSlotMap> <slot kind=""27"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> </method> </methods> </symbols>"); } #endregion #region Nested Types [Fact] public void NestedTypes() { string source = WithWindowsLineBreaks(@" using System; namespace N { public class C { public class D<T> { public class E { public static void f(int a) { Console.WriteLine(); } } } } } "); var c = CreateCompilation(Parse(source, filename: "file.cs")); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""file.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""F7-03-46-2C-11-16-DE-85-F9-DD-5C-76-F6-55-D9-13-E0-95-DE-14"" /> </files> <methods> <method containingType=""N.C+D`1+E"" name=""f"" parameterNames=""a""> <customDebugInfo> <using> <namespace usingCount=""0"" /> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""14"" startColumn=""6"" endLine=""14"" endColumn=""26"" document=""1"" /> <entry offset=""0x5"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x6""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } #endregion #region Expression Bodied Members [Fact] public void ExpressionBodiedProperty() { var source = WithWindowsLineBreaks(@" class C { public int P => M(); public int M() { return 2; } }"); var comp = CreateCompilationWithMscorlib45(source); comp.VerifyDiagnostics(); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""get_P""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""21"" endLine=""4"" endColumn=""24"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""M""> <customDebugInfo> <forward declaringType=""C"" methodName=""get_P"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""18"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void ExpressionBodiedIndexer() { var comp = CreateCompilationWithMscorlib45(@" using System; class C { public int this[Int32 i] => M(); public int M() { return 2; } }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""get_Item"" parameterNames=""i""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""33"" endLine=""6"" endColumn=""36"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x7""> <namespace name=""System"" /> </scope> </method> <method containingType=""C"" name=""M""> <customDebugInfo> <forward declaringType=""C"" methodName=""get_Item"" parameterNames=""i"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""18"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void ExpressionBodiedMethod() { var comp = CreateCompilationWithMscorlib45(@" using System; class C { public Int32 P => 2; }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""get_P""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""23"" endLine=""6"" endColumn=""24"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void ExpressionBodiedOperator() { var comp = CreateCompilationWithMscorlib45(@" class C { public static C operator ++(C c) => c; }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""op_Increment"" parameterNames=""c""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""41"" endLine=""4"" endColumn=""42"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void ExpressionBodiedConversion() { var comp = CreateCompilationWithMscorlib45(@" using System; class C { public static explicit operator C(Int32 i) => new C(); }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""op_Explicit"" parameterNames=""i""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""51"" endLine=""6"" endColumn=""58"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x6""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } [WorkItem(14438, "https://github.com/dotnet/roslyn/issues/14438")] [Fact] public void ExpressionBodiedConstructor() { var comp = CreateCompilationWithMscorlib45(@" using System; class C { public int X; public C(Int32 x) => X = x; }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor"" parameterNames=""x""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""22"" document=""1"" /> <entry offset=""0x6"" startLine=""7"" startColumn=""26"" endLine=""7"" endColumn=""31"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xe""> <namespace name=""System"" /> </scope> </method> </methods> </symbols>"); } [WorkItem(14438, "https://github.com/dotnet/roslyn/issues/14438")] [Fact] public void ExpressionBodiedDestructor() { var comp = CreateCompilationWithMscorlib45(@" class C { public int X; ~C() => X = 0; }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""Finalize""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""13"" endLine=""5"" endColumn=""18"" document=""1"" /> <entry offset=""0x9"" hidden=""true"" document=""1"" /> <entry offset=""0x10"" hidden=""true"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(14438, "https://github.com/dotnet/roslyn/issues/14438")] [Fact] public void ExpressionBodiedAccessor() { var comp = CreateCompilationWithMscorlib45(@" class C { public int x; public int X { get => x; set => x = value; } public event System.Action E { add => x = 1; remove => x = 0; } }"); comp.VerifyDiagnostics(); comp.VerifyPdb(@"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""get_X""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""16"" endLine=""7"" endColumn=""17"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""set_X"" parameterNames=""value""> <customDebugInfo> <forward declaringType=""C"" methodName=""get_X"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""16"" endLine=""8"" endColumn=""25"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""add_E"" parameterNames=""value""> <customDebugInfo> <forward declaringType=""C"" methodName=""get_X"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""12"" startColumn=""16"" endLine=""12"" endColumn=""21"" document=""1"" /> </sequencePoints> </method> <method containingType=""C"" name=""remove_E"" parameterNames=""value""> <customDebugInfo> <forward declaringType=""C"" methodName=""get_X"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""13"" startColumn=""19"" endLine=""13"" endColumn=""24"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region Synthesized Methods [Fact] public void ImportsInLambda() { var source = WithWindowsLineBreaks( @"using System.Collections.Generic; using System.Linq; class C { static void M() { System.Action f = () => { var c = new[] { 1, 2, 3 }; c.Select(i => i); }; f(); } }"); var c = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); c.VerifyPdb("C+<>c.<M>b__0_0", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c"" name=""&lt;M&gt;b__0_0""> <customDebugInfo> <forward declaringType=""C"" methodName=""M"" /> <encLocalSlotMap> <slot kind=""0"" offset=""63"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""10"" document=""1"" /> <entry offset=""0x1"" startLine=""9"" startColumn=""13"" endLine=""9"" endColumn=""39"" document=""1"" /> <entry offset=""0x13"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""30"" document=""1"" /> <entry offset=""0x39"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x3a""> <local name=""c"" il_index=""0"" il_start=""0x0"" il_end=""0x3a"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void ImportsInIterator() { var source = WithWindowsLineBreaks( @"using System.Collections.Generic; using System.Linq; class C { static IEnumerable<object> F() { var c = new[] { 1, 2, 3 }; foreach (var i in c.Select(i => i)) { yield return i; } } }"); var c = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); c.VerifyPdb("C+<F>d__0.MoveNext", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;F&gt;d__0"" name=""MoveNext""> <customDebugInfo> <forward declaringType=""C+&lt;&gt;c"" methodName=""&lt;F&gt;b__0_0"" parameterNames=""i"" /> <hoistedLocalScopes> <slot startOffset=""0x27"" endOffset=""0xd5"" /> <slot /> <slot startOffset=""0x7f"" endOffset=""0xb6"" /> </hoistedLocalScopes> <encLocalSlotMap> <slot kind=""temp"" /> <slot kind=""27"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x27"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x28"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""35"" document=""1"" /> <entry offset=""0x3f"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""16"" document=""1"" /> <entry offset=""0x40"" startLine=""8"" startColumn=""27"" endLine=""8"" endColumn=""43"" document=""1"" /> <entry offset=""0x7d"" hidden=""true"" document=""1"" /> <entry offset=""0x7f"" startLine=""8"" startColumn=""18"" endLine=""8"" endColumn=""23"" document=""1"" /> <entry offset=""0x90"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x91"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""28"" document=""1"" /> <entry offset=""0xad"" hidden=""true"" document=""1"" /> <entry offset=""0xb5"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> <entry offset=""0xb6"" startLine=""8"" startColumn=""24"" endLine=""8"" endColumn=""26"" document=""1"" /> <entry offset=""0xd1"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> <entry offset=""0xd5"" hidden=""true"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void ImportsInAsync() { var source = WithWindowsLineBreaks( @"using System.Linq; using System.Threading.Tasks; class C { static async Task F() { var c = new[] { 1, 2, 3 }; c.Select(i => i); } }"); var c = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); c.VerifyPdb("C+<F>d__0.MoveNext", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;F&gt;d__0"" name=""MoveNext""> <customDebugInfo> <forward declaringType=""C+&lt;&gt;c"" methodName=""&lt;F&gt;b__0_0"" parameterNames=""i"" /> <hoistedLocalScopes> <slot startOffset=""0x0"" endOffset=""0x87"" /> </hoistedLocalScopes> <encLocalSlotMap> <slot kind=""27"" offset=""0"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""35"" document=""1"" /> <entry offset=""0x1f"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""26"" document=""1"" /> <entry offset=""0x4c"" hidden=""true"" document=""1"" /> <entry offset=""0x6b"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x73"" hidden=""true"" document=""1"" /> </sequencePoints> <asyncInfo> <kickoffMethod declaringType=""C"" methodName=""F"" /> </asyncInfo> </method> </methods> </symbols>"); } [WorkItem(2501, "https://github.com/dotnet/roslyn/issues/2501")] [Fact] public void ImportsInAsyncLambda() { var source = WithWindowsLineBreaks( @"using System.Linq; class C { static void M() { System.Action f = async () => { var c = new[] { 1, 2, 3 }; c.Select(i => i); }; } }"); var c = CreateCompilationWithMscorlib45(source, options: TestOptions.DebugDll, references: new[] { SystemCoreRef }); c.VerifyPdb("C+<>c.<M>b__0_0", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c"" name=""&lt;M&gt;b__0_0""> <customDebugInfo> <forwardIterator name=""&lt;&lt;M&gt;b__0_0&gt;d"" /> <encLocalSlotMap> <slot kind=""0"" offset=""69"" /> </encLocalSlotMap> </customDebugInfo> </method> </methods> </symbols>"); c.VerifyPdb("C+<>c+<<M>b__0_0>d.MoveNext", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c+&lt;&lt;M&gt;b__0_0&gt;d"" name=""MoveNext""> <customDebugInfo> <forward declaringType=""C"" methodName=""M"" /> <hoistedLocalScopes> <slot startOffset=""0x0"" endOffset=""0x87"" /> </hoistedLocalScopes> <encLocalSlotMap> <slot kind=""27"" offset=""50"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""10"" document=""1"" /> <entry offset=""0x8"" startLine=""8"" startColumn=""13"" endLine=""8"" endColumn=""39"" document=""1"" /> <entry offset=""0x1f"" startLine=""9"" startColumn=""13"" endLine=""9"" endColumn=""30"" document=""1"" /> <entry offset=""0x4c"" hidden=""true"" document=""1"" /> <entry offset=""0x6b"" startLine=""10"" startColumn=""9"" endLine=""10"" endColumn=""10"" document=""1"" /> <entry offset=""0x73"" hidden=""true"" document=""1"" /> </sequencePoints> <asyncInfo> <catchHandler offset=""0x4c"" /> <kickoffMethod declaringType=""C+&lt;&gt;c"" methodName=""&lt;M&gt;b__0_0"" /> </asyncInfo> </method> </methods> </symbols>"); } #endregion #region Patterns [Fact] public void SyntaxOffset_IsPattern() { var source = @"class C { bool F(object o) => o is int i && o is 3 && o is bool; }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.F", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F"" parameterNames=""o""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""12"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""31"" endLine=""1"" endColumn=""64"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2d""> <local name=""i"" il_index=""0"" il_start=""0x0"" il_end=""0x2d"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [WorkItem(37172, "https://github.com/dotnet/roslyn/issues/37172")] [Fact] public void Patterns_SwitchStatement() { string source = WithWindowsLineBreaks(@" class C { public void Deconstruct() { } public void Deconstruct(out int x) { x = 1; } public void Deconstruct(out int x, out object y) { x = 2; y = new C(); } } class D { public int P { get; set; } public D Q { get; set; } public C R { get; set; } } class Program { static object F() => new C(); static bool B() => true; static int G(int x) => x; static int Main() { switch (F()) { // declaration pattern case int x when G(x) > 10: return 1; // discard pattern case bool _: return 2; // var pattern case var (y, z): return 3; // constant pattern case 4.0: return 4; // positional patterns case C() when B(): return 5; case (): return 6; case C(int p, C(int q)): return 7; case C(x: int p): return 8; // property pattern case D { P: 1, Q: D { P: 2 }, R: C(int z) }: return 9; default: return 10; }; } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); var verifier = CompileAndVerify(c, verify: Verification.Skipped); verifier.VerifyIL("Program.Main", sequencePoints: "Program.Main", expectedIL: @" { // Code size 432 (0x1b0) .maxstack 3 .locals init (int V_0, //x object V_1, //y object V_2, //z int V_3, //p int V_4, //q int V_5, //p int V_6, //z object V_7, System.Runtime.CompilerServices.ITuple V_8, int V_9, double V_10, C V_11, object V_12, C V_13, D V_14, int V_15, D V_16, int V_17, C V_18, object V_19, int V_20) // sequence point: { IL_0000: nop // sequence point: switch (F()) IL_0001: call ""object Program.F()"" IL_0006: stloc.s V_19 // sequence point: <hidden> IL_0008: ldloc.s V_19 IL_000a: stloc.s V_7 // sequence point: <hidden> IL_000c: ldloc.s V_7 IL_000e: isinst ""int"" IL_0013: brfalse.s IL_0022 IL_0015: ldloc.s V_7 IL_0017: unbox.any ""int"" IL_001c: stloc.0 // sequence point: <hidden> IL_001d: br IL_014d IL_0022: ldloc.s V_7 IL_0024: isinst ""bool"" IL_0029: brtrue IL_015e IL_002e: ldloc.s V_7 IL_0030: isinst ""System.Runtime.CompilerServices.ITuple"" IL_0035: stloc.s V_8 IL_0037: ldloc.s V_8 IL_0039: brfalse.s IL_0080 IL_003b: ldloc.s V_8 IL_003d: callvirt ""int System.Runtime.CompilerServices.ITuple.Length.get"" IL_0042: stloc.s V_9 // sequence point: <hidden> IL_0044: ldloc.s V_9 IL_0046: ldc.i4.2 IL_0047: bne.un.s IL_0060 IL_0049: ldloc.s V_8 IL_004b: ldc.i4.0 IL_004c: callvirt ""object System.Runtime.CompilerServices.ITuple.this[int].get"" IL_0051: stloc.1 // sequence point: <hidden> IL_0052: ldloc.s V_8 IL_0054: ldc.i4.1 IL_0055: callvirt ""object System.Runtime.CompilerServices.ITuple.this[int].get"" IL_005a: stloc.2 // sequence point: <hidden> IL_005b: br IL_0163 IL_0060: ldloc.s V_7 IL_0062: isinst ""C"" IL_0067: brtrue IL_016f IL_006c: br.s IL_0077 IL_006e: ldloc.s V_9 IL_0070: brfalse IL_018c IL_0075: br.s IL_00b5 IL_0077: ldloc.s V_9 IL_0079: brfalse IL_018c IL_007e: br.s IL_00f5 IL_0080: ldloc.s V_7 IL_0082: isinst ""double"" IL_0087: brfalse.s IL_00a7 IL_0089: ldloc.s V_7 IL_008b: unbox.any ""double"" IL_0090: stloc.s V_10 // sequence point: <hidden> IL_0092: ldloc.s V_10 IL_0094: ldc.r8 4 IL_009d: beq IL_016a IL_00a2: br IL_01a7 IL_00a7: ldloc.s V_7 IL_00a9: isinst ""C"" IL_00ae: brtrue IL_017b IL_00b3: br.s IL_00f5 IL_00b5: ldloc.s V_7 IL_00b7: castclass ""C"" IL_00bc: stloc.s V_11 // sequence point: <hidden> IL_00be: ldloc.s V_11 IL_00c0: ldloca.s V_3 IL_00c2: ldloca.s V_12 IL_00c4: callvirt ""void C.Deconstruct(out int, out object)"" IL_00c9: nop // sequence point: <hidden> IL_00ca: ldloc.s V_12 IL_00cc: isinst ""C"" IL_00d1: stloc.s V_13 IL_00d3: ldloc.s V_13 IL_00d5: brfalse.s IL_00e6 IL_00d7: ldloc.s V_13 IL_00d9: ldloca.s V_4 IL_00db: callvirt ""void C.Deconstruct(out int)"" IL_00e0: nop // sequence point: <hidden> IL_00e1: br IL_0191 IL_00e6: ldloc.s V_11 IL_00e8: ldloca.s V_5 IL_00ea: callvirt ""void C.Deconstruct(out int)"" IL_00ef: nop // sequence point: <hidden> IL_00f0: br IL_0198 IL_00f5: ldloc.s V_7 IL_00f7: isinst ""D"" IL_00fc: stloc.s V_14 IL_00fe: ldloc.s V_14 IL_0100: brfalse IL_01a7 IL_0105: ldloc.s V_14 IL_0107: callvirt ""int D.P.get"" IL_010c: stloc.s V_15 // sequence point: <hidden> IL_010e: ldloc.s V_15 IL_0110: ldc.i4.1 IL_0111: bne.un IL_01a7 IL_0116: ldloc.s V_14 IL_0118: callvirt ""D D.Q.get"" IL_011d: stloc.s V_16 // sequence point: <hidden> IL_011f: ldloc.s V_16 IL_0121: brfalse IL_01a7 IL_0126: ldloc.s V_16 IL_0128: callvirt ""int D.P.get"" IL_012d: stloc.s V_17 // sequence point: <hidden> IL_012f: ldloc.s V_17 IL_0131: ldc.i4.2 IL_0132: bne.un.s IL_01a7 IL_0134: ldloc.s V_14 IL_0136: callvirt ""C D.R.get"" IL_013b: stloc.s V_18 // sequence point: <hidden> IL_013d: ldloc.s V_18 IL_013f: brfalse.s IL_01a7 IL_0141: ldloc.s V_18 IL_0143: ldloca.s V_6 IL_0145: callvirt ""void C.Deconstruct(out int)"" IL_014a: nop // sequence point: <hidden> IL_014b: br.s IL_019f // sequence point: when G(x) > 10 IL_014d: ldloc.0 IL_014e: call ""int Program.G(int)"" IL_0153: ldc.i4.s 10 IL_0155: bgt.s IL_0159 // sequence point: <hidden> IL_0157: br.s IL_01a7 // sequence point: return 1; IL_0159: ldc.i4.1 IL_015a: stloc.s V_20 IL_015c: br.s IL_01ad // sequence point: return 2; IL_015e: ldc.i4.2 IL_015f: stloc.s V_20 IL_0161: br.s IL_01ad // sequence point: <hidden> IL_0163: br.s IL_0165 // sequence point: return 3; IL_0165: ldc.i4.3 IL_0166: stloc.s V_20 IL_0168: br.s IL_01ad // sequence point: return 4; IL_016a: ldc.i4.4 IL_016b: stloc.s V_20 IL_016d: br.s IL_01ad // sequence point: when B() IL_016f: call ""bool Program.B()"" IL_0174: brtrue.s IL_0187 // sequence point: <hidden> IL_0176: br IL_006e // sequence point: when B() IL_017b: call ""bool Program.B()"" IL_0180: brtrue.s IL_0187 // sequence point: <hidden> IL_0182: br IL_00b5 // sequence point: return 5; IL_0187: ldc.i4.5 IL_0188: stloc.s V_20 IL_018a: br.s IL_01ad // sequence point: return 6; IL_018c: ldc.i4.6 IL_018d: stloc.s V_20 IL_018f: br.s IL_01ad // sequence point: <hidden> IL_0191: br.s IL_0193 // sequence point: return 7; IL_0193: ldc.i4.7 IL_0194: stloc.s V_20 IL_0196: br.s IL_01ad // sequence point: <hidden> IL_0198: br.s IL_019a // sequence point: return 8; IL_019a: ldc.i4.8 IL_019b: stloc.s V_20 IL_019d: br.s IL_01ad // sequence point: <hidden> IL_019f: br.s IL_01a1 // sequence point: return 9; IL_01a1: ldc.i4.s 9 IL_01a3: stloc.s V_20 IL_01a5: br.s IL_01ad // sequence point: return 10; IL_01a7: ldc.i4.s 10 IL_01a9: stloc.s V_20 IL_01ab: br.s IL_01ad // sequence point: } IL_01ad: ldloc.s V_20 IL_01af: ret } ", source: source); verifier.VerifyPdb("Program.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main""> <customDebugInfo> <forward declaringType=""C"" methodName=""Deconstruct"" /> <encLocalSlotMap> <slot kind=""0"" offset=""93"" /> <slot kind=""0"" offset=""244"" /> <slot kind=""0"" offset=""247"" /> <slot kind=""0"" offset=""465"" /> <slot kind=""0"" offset=""474"" /> <slot kind=""0"" offset=""516"" /> <slot kind=""0"" offset=""617"" /> <slot kind=""35"" offset=""11"" /> <slot kind=""35"" offset=""11"" ordinal=""1"" /> <slot kind=""35"" offset=""11"" ordinal=""2"" /> <slot kind=""35"" offset=""11"" ordinal=""3"" /> <slot kind=""35"" offset=""11"" ordinal=""4"" /> <slot kind=""35"" offset=""11"" ordinal=""5"" /> <slot kind=""35"" offset=""11"" ordinal=""6"" /> <slot kind=""35"" offset=""11"" ordinal=""7"" /> <slot kind=""35"" offset=""11"" ordinal=""8"" /> <slot kind=""35"" offset=""11"" ordinal=""9"" /> <slot kind=""35"" offset=""11"" ordinal=""10"" /> <slot kind=""35"" offset=""11"" ordinal=""11"" /> <slot kind=""1"" offset=""11"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""23"" startColumn=""5"" endLine=""23"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""24"" startColumn=""9"" endLine=""24"" endColumn=""21"" document=""1"" /> <entry offset=""0x8"" hidden=""true"" document=""1"" /> <entry offset=""0xc"" hidden=""true"" document=""1"" /> <entry offset=""0x1d"" hidden=""true"" document=""1"" /> <entry offset=""0x44"" hidden=""true"" document=""1"" /> <entry offset=""0x52"" hidden=""true"" document=""1"" /> <entry offset=""0x5b"" hidden=""true"" document=""1"" /> <entry offset=""0x92"" hidden=""true"" document=""1"" /> <entry offset=""0xbe"" hidden=""true"" document=""1"" /> <entry offset=""0xca"" hidden=""true"" document=""1"" /> <entry offset=""0xe1"" hidden=""true"" document=""1"" /> <entry offset=""0xf0"" hidden=""true"" document=""1"" /> <entry offset=""0x10e"" hidden=""true"" document=""1"" /> <entry offset=""0x11f"" hidden=""true"" document=""1"" /> <entry offset=""0x12f"" hidden=""true"" document=""1"" /> <entry offset=""0x13d"" hidden=""true"" document=""1"" /> <entry offset=""0x14b"" hidden=""true"" document=""1"" /> <entry offset=""0x14d"" startLine=""27"" startColumn=""24"" endLine=""27"" endColumn=""38"" document=""1"" /> <entry offset=""0x157"" hidden=""true"" document=""1"" /> <entry offset=""0x159"" startLine=""27"" startColumn=""40"" endLine=""27"" endColumn=""49"" document=""1"" /> <entry offset=""0x15e"" startLine=""30"" startColumn=""26"" endLine=""30"" endColumn=""35"" document=""1"" /> <entry offset=""0x163"" hidden=""true"" document=""1"" /> <entry offset=""0x165"" startLine=""33"" startColumn=""30"" endLine=""33"" endColumn=""39"" document=""1"" /> <entry offset=""0x16a"" startLine=""36"" startColumn=""23"" endLine=""36"" endColumn=""32"" document=""1"" /> <entry offset=""0x16f"" startLine=""39"" startColumn=""22"" endLine=""39"" endColumn=""30"" document=""1"" /> <entry offset=""0x176"" hidden=""true"" document=""1"" /> <entry offset=""0x17b"" startLine=""39"" startColumn=""22"" endLine=""39"" endColumn=""30"" document=""1"" /> <entry offset=""0x182"" hidden=""true"" document=""1"" /> <entry offset=""0x187"" startLine=""39"" startColumn=""32"" endLine=""39"" endColumn=""41"" document=""1"" /> <entry offset=""0x18c"" startLine=""40"" startColumn=""22"" endLine=""40"" endColumn=""31"" document=""1"" /> <entry offset=""0x191"" hidden=""true"" document=""1"" /> <entry offset=""0x193"" startLine=""41"" startColumn=""38"" endLine=""41"" endColumn=""47"" document=""1"" /> <entry offset=""0x198"" hidden=""true"" document=""1"" /> <entry offset=""0x19a"" startLine=""42"" startColumn=""31"" endLine=""42"" endColumn=""40"" document=""1"" /> <entry offset=""0x19f"" hidden=""true"" document=""1"" /> <entry offset=""0x1a1"" startLine=""45"" startColumn=""58"" endLine=""45"" endColumn=""67"" document=""1"" /> <entry offset=""0x1a7"" startLine=""47"" startColumn=""22"" endLine=""47"" endColumn=""32"" document=""1"" /> <entry offset=""0x1ad"" startLine=""49"" startColumn=""5"" endLine=""49"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1b0""> <scope startOffset=""0x14d"" endOffset=""0x15e""> <local name=""x"" il_index=""0"" il_start=""0x14d"" il_end=""0x15e"" attributes=""0"" /> </scope> <scope startOffset=""0x163"" endOffset=""0x16a""> <local name=""y"" il_index=""1"" il_start=""0x163"" il_end=""0x16a"" attributes=""0"" /> <local name=""z"" il_index=""2"" il_start=""0x163"" il_end=""0x16a"" attributes=""0"" /> </scope> <scope startOffset=""0x191"" endOffset=""0x198""> <local name=""p"" il_index=""3"" il_start=""0x191"" il_end=""0x198"" attributes=""0"" /> <local name=""q"" il_index=""4"" il_start=""0x191"" il_end=""0x198"" attributes=""0"" /> </scope> <scope startOffset=""0x198"" endOffset=""0x19f""> <local name=""p"" il_index=""5"" il_start=""0x198"" il_end=""0x19f"" attributes=""0"" /> </scope> <scope startOffset=""0x19f"" endOffset=""0x1a7""> <local name=""z"" il_index=""6"" il_start=""0x19f"" il_end=""0x1a7"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } [WorkItem(37172, "https://github.com/dotnet/roslyn/issues/37172")] [Fact] public void Patterns_SwitchExpression() { string source = WithWindowsLineBreaks(@" class C { public void Deconstruct() { } public void Deconstruct(out int x) { x = 1; } public void Deconstruct(out int x, out object y) { x = 2; y = new C(); } } class D { public int P { get; set; } public D Q { get; set; } public C R { get; set; } } class Program { static object F() => new C(); static bool B() => true; static int G(int x) => x; static void Main() { var a = F() switch { // declaration pattern int x when G(x) > 10 => 1, // discard pattern bool _ => 2, // var pattern var (y, z) => 3, // constant pattern 4.0 => 4, // positional patterns C() when B() => 5, () => 6, C(int p, C(int q)) => 7, C(x: int p) => 8, // property pattern D { P: 1, Q: D { P: 2 }, R: C (int z) } => 9, _ => 10, }; } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); var verifier = CompileAndVerify(c, verify: Verification.Skipped); // note no sequence points emitted within the switch expression verifier.VerifyIL("Program.Main", sequencePoints: "Program.Main", expectedIL: @" { // Code size 437 (0x1b5) .maxstack 3 .locals init (int V_0, //a int V_1, //x object V_2, //y object V_3, //z int V_4, //p int V_5, //q int V_6, //p int V_7, //z int V_8, object V_9, System.Runtime.CompilerServices.ITuple V_10, int V_11, double V_12, C V_13, object V_14, C V_15, D V_16, int V_17, D V_18, int V_19, C V_20) -IL_0000: nop -IL_0001: call ""object Program.F()"" IL_0006: stloc.s V_9 IL_0008: ldc.i4.1 IL_0009: brtrue.s IL_000c -IL_000b: nop ~IL_000c: ldloc.s V_9 IL_000e: isinst ""int"" IL_0013: brfalse.s IL_0022 IL_0015: ldloc.s V_9 IL_0017: unbox.any ""int"" IL_001c: stloc.1 ~IL_001d: br IL_014d IL_0022: ldloc.s V_9 IL_0024: isinst ""bool"" IL_0029: brtrue IL_015e IL_002e: ldloc.s V_9 IL_0030: isinst ""System.Runtime.CompilerServices.ITuple"" IL_0035: stloc.s V_10 IL_0037: ldloc.s V_10 IL_0039: brfalse.s IL_0080 IL_003b: ldloc.s V_10 IL_003d: callvirt ""int System.Runtime.CompilerServices.ITuple.Length.get"" IL_0042: stloc.s V_11 ~IL_0044: ldloc.s V_11 IL_0046: ldc.i4.2 IL_0047: bne.un.s IL_0060 IL_0049: ldloc.s V_10 IL_004b: ldc.i4.0 IL_004c: callvirt ""object System.Runtime.CompilerServices.ITuple.this[int].get"" IL_0051: stloc.2 ~IL_0052: ldloc.s V_10 IL_0054: ldc.i4.1 IL_0055: callvirt ""object System.Runtime.CompilerServices.ITuple.this[int].get"" IL_005a: stloc.3 ~IL_005b: br IL_0163 IL_0060: ldloc.s V_9 IL_0062: isinst ""C"" IL_0067: brtrue IL_016f IL_006c: br.s IL_0077 IL_006e: ldloc.s V_11 IL_0070: brfalse IL_018c IL_0075: br.s IL_00b5 IL_0077: ldloc.s V_11 IL_0079: brfalse IL_018c IL_007e: br.s IL_00f5 IL_0080: ldloc.s V_9 IL_0082: isinst ""double"" IL_0087: brfalse.s IL_00a7 IL_0089: ldloc.s V_9 IL_008b: unbox.any ""double"" IL_0090: stloc.s V_12 ~IL_0092: ldloc.s V_12 IL_0094: ldc.r8 4 IL_009d: beq IL_016a IL_00a2: br IL_01a7 IL_00a7: ldloc.s V_9 IL_00a9: isinst ""C"" IL_00ae: brtrue IL_017b IL_00b3: br.s IL_00f5 IL_00b5: ldloc.s V_9 IL_00b7: castclass ""C"" IL_00bc: stloc.s V_13 ~IL_00be: ldloc.s V_13 IL_00c0: ldloca.s V_4 IL_00c2: ldloca.s V_14 IL_00c4: callvirt ""void C.Deconstruct(out int, out object)"" IL_00c9: nop ~IL_00ca: ldloc.s V_14 IL_00cc: isinst ""C"" IL_00d1: stloc.s V_15 IL_00d3: ldloc.s V_15 IL_00d5: brfalse.s IL_00e6 IL_00d7: ldloc.s V_15 IL_00d9: ldloca.s V_5 IL_00db: callvirt ""void C.Deconstruct(out int)"" IL_00e0: nop ~IL_00e1: br IL_0191 IL_00e6: ldloc.s V_13 IL_00e8: ldloca.s V_6 IL_00ea: callvirt ""void C.Deconstruct(out int)"" IL_00ef: nop ~IL_00f0: br IL_0198 IL_00f5: ldloc.s V_9 IL_00f7: isinst ""D"" IL_00fc: stloc.s V_16 IL_00fe: ldloc.s V_16 IL_0100: brfalse IL_01a7 IL_0105: ldloc.s V_16 IL_0107: callvirt ""int D.P.get"" IL_010c: stloc.s V_17 ~IL_010e: ldloc.s V_17 IL_0110: ldc.i4.1 IL_0111: bne.un IL_01a7 IL_0116: ldloc.s V_16 IL_0118: callvirt ""D D.Q.get"" IL_011d: stloc.s V_18 ~IL_011f: ldloc.s V_18 IL_0121: brfalse IL_01a7 IL_0126: ldloc.s V_18 IL_0128: callvirt ""int D.P.get"" IL_012d: stloc.s V_19 ~IL_012f: ldloc.s V_19 IL_0131: ldc.i4.2 IL_0132: bne.un.s IL_01a7 IL_0134: ldloc.s V_16 IL_0136: callvirt ""C D.R.get"" IL_013b: stloc.s V_20 ~IL_013d: ldloc.s V_20 IL_013f: brfalse.s IL_01a7 IL_0141: ldloc.s V_20 IL_0143: ldloca.s V_7 IL_0145: callvirt ""void C.Deconstruct(out int)"" IL_014a: nop ~IL_014b: br.s IL_019f -IL_014d: ldloc.1 IL_014e: call ""int Program.G(int)"" IL_0153: ldc.i4.s 10 IL_0155: bgt.s IL_0159 ~IL_0157: br.s IL_01a7 -IL_0159: ldc.i4.1 IL_015a: stloc.s V_8 IL_015c: br.s IL_01ad -IL_015e: ldc.i4.2 IL_015f: stloc.s V_8 IL_0161: br.s IL_01ad ~IL_0163: br.s IL_0165 -IL_0165: ldc.i4.3 IL_0166: stloc.s V_8 IL_0168: br.s IL_01ad -IL_016a: ldc.i4.4 IL_016b: stloc.s V_8 IL_016d: br.s IL_01ad -IL_016f: call ""bool Program.B()"" IL_0174: brtrue.s IL_0187 ~IL_0176: br IL_006e -IL_017b: call ""bool Program.B()"" IL_0180: brtrue.s IL_0187 ~IL_0182: br IL_00b5 -IL_0187: ldc.i4.5 IL_0188: stloc.s V_8 IL_018a: br.s IL_01ad -IL_018c: ldc.i4.6 IL_018d: stloc.s V_8 IL_018f: br.s IL_01ad ~IL_0191: br.s IL_0193 -IL_0193: ldc.i4.7 IL_0194: stloc.s V_8 IL_0196: br.s IL_01ad ~IL_0198: br.s IL_019a -IL_019a: ldc.i4.8 IL_019b: stloc.s V_8 IL_019d: br.s IL_01ad ~IL_019f: br.s IL_01a1 -IL_01a1: ldc.i4.s 9 IL_01a3: stloc.s V_8 IL_01a5: br.s IL_01ad -IL_01a7: ldc.i4.s 10 IL_01a9: stloc.s V_8 IL_01ab: br.s IL_01ad ~IL_01ad: ldc.i4.1 IL_01ae: brtrue.s IL_01b1 -IL_01b0: nop ~IL_01b1: ldloc.s V_8 IL_01b3: stloc.0 -IL_01b4: ret } "); verifier.VerifyPdb("Program.Main", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main""> <customDebugInfo> <forward declaringType=""C"" methodName=""Deconstruct"" /> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> <slot kind=""0"" offset=""94"" /> <slot kind=""0"" offset=""225"" /> <slot kind=""0"" offset=""228"" /> <slot kind=""0"" offset=""406"" /> <slot kind=""0"" offset=""415"" /> <slot kind=""0"" offset=""447"" /> <slot kind=""0"" offset=""539"" /> <slot kind=""temp"" /> <slot kind=""35"" offset=""23"" /> <slot kind=""35"" offset=""23"" ordinal=""1"" /> <slot kind=""35"" offset=""23"" ordinal=""2"" /> <slot kind=""35"" offset=""23"" ordinal=""3"" /> <slot kind=""35"" offset=""23"" ordinal=""4"" /> <slot kind=""35"" offset=""23"" ordinal=""5"" /> <slot kind=""35"" offset=""23"" ordinal=""6"" /> <slot kind=""35"" offset=""23"" ordinal=""7"" /> <slot kind=""35"" offset=""23"" ordinal=""8"" /> <slot kind=""35"" offset=""23"" ordinal=""9"" /> <slot kind=""35"" offset=""23"" ordinal=""10"" /> <slot kind=""35"" offset=""23"" ordinal=""11"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""23"" startColumn=""5"" endLine=""23"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""24"" startColumn=""9"" endLine=""48"" endColumn=""11"" document=""1"" /> <entry offset=""0xb"" startLine=""24"" startColumn=""21"" endLine=""48"" endColumn=""10"" document=""1"" /> <entry offset=""0xc"" hidden=""true"" document=""1"" /> <entry offset=""0x1d"" hidden=""true"" document=""1"" /> <entry offset=""0x44"" hidden=""true"" document=""1"" /> <entry offset=""0x52"" hidden=""true"" document=""1"" /> <entry offset=""0x5b"" hidden=""true"" document=""1"" /> <entry offset=""0x92"" hidden=""true"" document=""1"" /> <entry offset=""0xbe"" hidden=""true"" document=""1"" /> <entry offset=""0xca"" hidden=""true"" document=""1"" /> <entry offset=""0xe1"" hidden=""true"" document=""1"" /> <entry offset=""0xf0"" hidden=""true"" document=""1"" /> <entry offset=""0x10e"" hidden=""true"" document=""1"" /> <entry offset=""0x11f"" hidden=""true"" document=""1"" /> <entry offset=""0x12f"" hidden=""true"" document=""1"" /> <entry offset=""0x13d"" hidden=""true"" document=""1"" /> <entry offset=""0x14b"" hidden=""true"" document=""1"" /> <entry offset=""0x14d"" startLine=""27"" startColumn=""19"" endLine=""27"" endColumn=""33"" document=""1"" /> <entry offset=""0x157"" hidden=""true"" document=""1"" /> <entry offset=""0x159"" startLine=""27"" startColumn=""37"" endLine=""27"" endColumn=""38"" document=""1"" /> <entry offset=""0x15e"" startLine=""30"" startColumn=""23"" endLine=""30"" endColumn=""24"" document=""1"" /> <entry offset=""0x163"" hidden=""true"" document=""1"" /> <entry offset=""0x165"" startLine=""33"" startColumn=""27"" endLine=""33"" endColumn=""28"" document=""1"" /> <entry offset=""0x16a"" startLine=""36"" startColumn=""20"" endLine=""36"" endColumn=""21"" document=""1"" /> <entry offset=""0x16f"" startLine=""39"" startColumn=""17"" endLine=""39"" endColumn=""25"" document=""1"" /> <entry offset=""0x176"" hidden=""true"" document=""1"" /> <entry offset=""0x17b"" startLine=""39"" startColumn=""17"" endLine=""39"" endColumn=""25"" document=""1"" /> <entry offset=""0x182"" hidden=""true"" document=""1"" /> <entry offset=""0x187"" startLine=""39"" startColumn=""29"" endLine=""39"" endColumn=""30"" document=""1"" /> <entry offset=""0x18c"" startLine=""40"" startColumn=""19"" endLine=""40"" endColumn=""20"" document=""1"" /> <entry offset=""0x191"" hidden=""true"" document=""1"" /> <entry offset=""0x193"" startLine=""41"" startColumn=""35"" endLine=""41"" endColumn=""36"" document=""1"" /> <entry offset=""0x198"" hidden=""true"" document=""1"" /> <entry offset=""0x19a"" startLine=""42"" startColumn=""28"" endLine=""42"" endColumn=""29"" document=""1"" /> <entry offset=""0x19f"" hidden=""true"" document=""1"" /> <entry offset=""0x1a1"" startLine=""45"" startColumn=""56"" endLine=""45"" endColumn=""57"" document=""1"" /> <entry offset=""0x1a7"" startLine=""47"" startColumn=""18"" endLine=""47"" endColumn=""20"" document=""1"" /> <entry offset=""0x1ad"" hidden=""true"" document=""1"" /> <entry offset=""0x1b0"" startLine=""24"" startColumn=""9"" endLine=""48"" endColumn=""11"" document=""1"" /> <entry offset=""0x1b1"" hidden=""true"" document=""1"" /> <entry offset=""0x1b4"" startLine=""49"" startColumn=""5"" endLine=""49"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1b5""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0x1b5"" attributes=""0"" /> <scope startOffset=""0x14d"" endOffset=""0x15e""> <local name=""x"" il_index=""1"" il_start=""0x14d"" il_end=""0x15e"" attributes=""0"" /> </scope> <scope startOffset=""0x163"" endOffset=""0x16a""> <local name=""y"" il_index=""2"" il_start=""0x163"" il_end=""0x16a"" attributes=""0"" /> <local name=""z"" il_index=""3"" il_start=""0x163"" il_end=""0x16a"" attributes=""0"" /> </scope> <scope startOffset=""0x191"" endOffset=""0x198""> <local name=""p"" il_index=""4"" il_start=""0x191"" il_end=""0x198"" attributes=""0"" /> <local name=""q"" il_index=""5"" il_start=""0x191"" il_end=""0x198"" attributes=""0"" /> </scope> <scope startOffset=""0x198"" endOffset=""0x19f""> <local name=""p"" il_index=""6"" il_start=""0x198"" il_end=""0x19f"" attributes=""0"" /> </scope> <scope startOffset=""0x19f"" endOffset=""0x1a7""> <local name=""z"" il_index=""7"" il_start=""0x19f"" il_end=""0x1a7"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } [WorkItem(37172, "https://github.com/dotnet/roslyn/issues/37172")] [Fact] public void Patterns_IsPattern() { string source = WithWindowsLineBreaks(@" class C { public void Deconstruct() { } public void Deconstruct(out int x) { x = 1; } public void Deconstruct(out int x, out object y) { x = 2; y = new C(); } } class D { public int P { get; set; } public D Q { get; set; } public C R { get; set; } } class Program { static object F() => new C(); static bool B() => true; static int G(int x) => x; static bool M() { object obj = F(); return // declaration pattern obj is int x || // discard pattern obj is bool _ || // var pattern obj is var (y, z1) || // constant pattern obj is 4.0 || // positional patterns obj is C() || obj is () || obj is C(int p1, C(int q)) || obj is C(x: int p2) || // property pattern obj is D { P: 1, Q: D { P: 2 }, R: C(int z2) }; } } "); var c = CreateCompilation(source, options: TestOptions.DebugDll, targetFramework: TargetFramework.NetCoreApp); var verifier = CompileAndVerify(c, verify: Verification.Skipped); verifier.VerifyIL("Program.M", sequencePoints: "Program.M", expectedIL: @" { // Code size 301 (0x12d) .maxstack 3 .locals init (object V_0, //obj int V_1, //x object V_2, //y object V_3, //z1 int V_4, //p1 int V_5, //q int V_6, //p2 int V_7, //z2 System.Runtime.CompilerServices.ITuple V_8, C V_9, object V_10, C V_11, D V_12, D V_13, bool V_14) -IL_0000: nop -IL_0001: call ""object Program.F()"" IL_0006: stloc.0 -IL_0007: ldloc.0 IL_0008: isinst ""int"" IL_000d: brfalse.s IL_001b IL_000f: ldloc.0 IL_0010: unbox.any ""int"" IL_0015: stloc.1 IL_0016: br IL_0125 IL_001b: ldloc.0 IL_001c: isinst ""bool"" IL_0021: brtrue IL_0125 IL_0026: ldloc.0 IL_0027: isinst ""System.Runtime.CompilerServices.ITuple"" IL_002c: stloc.s V_8 IL_002e: ldloc.s V_8 IL_0030: brfalse.s IL_0053 IL_0032: ldloc.s V_8 IL_0034: callvirt ""int System.Runtime.CompilerServices.ITuple.Length.get"" IL_0039: ldc.i4.2 IL_003a: bne.un.s IL_0053 IL_003c: ldloc.s V_8 IL_003e: ldc.i4.0 IL_003f: callvirt ""object System.Runtime.CompilerServices.ITuple.this[int].get"" IL_0044: stloc.2 IL_0045: ldloc.s V_8 IL_0047: ldc.i4.1 IL_0048: callvirt ""object System.Runtime.CompilerServices.ITuple.this[int].get"" IL_004d: stloc.3 IL_004e: br IL_0125 IL_0053: ldloc.0 IL_0054: isinst ""double"" IL_0059: brfalse.s IL_006f IL_005b: ldloc.0 IL_005c: unbox.any ""double"" IL_0061: ldc.r8 4 IL_006a: beq IL_0125 IL_006f: ldloc.0 IL_0070: isinst ""C"" IL_0075: brtrue IL_0125 IL_007a: ldloc.0 IL_007b: isinst ""System.Runtime.CompilerServices.ITuple"" IL_0080: stloc.s V_8 IL_0082: ldloc.s V_8 IL_0084: brfalse.s IL_0092 IL_0086: ldloc.s V_8 IL_0088: callvirt ""int System.Runtime.CompilerServices.ITuple.Length.get"" IL_008d: brfalse IL_0125 IL_0092: ldloc.0 IL_0093: isinst ""C"" IL_0098: stloc.s V_9 IL_009a: ldloc.s V_9 IL_009c: brfalse.s IL_00c3 IL_009e: ldloc.s V_9 IL_00a0: ldloca.s V_4 IL_00a2: ldloca.s V_10 IL_00a4: callvirt ""void C.Deconstruct(out int, out object)"" IL_00a9: nop IL_00aa: ldloc.s V_10 IL_00ac: isinst ""C"" IL_00b1: stloc.s V_11 IL_00b3: ldloc.s V_11 IL_00b5: brfalse.s IL_00c3 IL_00b7: ldloc.s V_11 IL_00b9: ldloca.s V_5 IL_00bb: callvirt ""void C.Deconstruct(out int)"" IL_00c0: nop IL_00c1: br.s IL_0125 IL_00c3: ldloc.0 IL_00c4: isinst ""C"" IL_00c9: stloc.s V_11 IL_00cb: ldloc.s V_11 IL_00cd: brfalse.s IL_00db IL_00cf: ldloc.s V_11 IL_00d1: ldloca.s V_6 IL_00d3: callvirt ""void C.Deconstruct(out int)"" IL_00d8: nop IL_00d9: br.s IL_0125 IL_00db: ldloc.0 IL_00dc: isinst ""D"" IL_00e1: stloc.s V_12 IL_00e3: ldloc.s V_12 IL_00e5: brfalse.s IL_0122 IL_00e7: ldloc.s V_12 IL_00e9: callvirt ""int D.P.get"" IL_00ee: ldc.i4.1 IL_00ef: bne.un.s IL_0122 IL_00f1: ldloc.s V_12 IL_00f3: callvirt ""D D.Q.get"" IL_00f8: stloc.s V_13 IL_00fa: ldloc.s V_13 IL_00fc: brfalse.s IL_0122 IL_00fe: ldloc.s V_13 IL_0100: callvirt ""int D.P.get"" IL_0105: ldc.i4.2 IL_0106: bne.un.s IL_0122 IL_0108: ldloc.s V_12 IL_010a: callvirt ""C D.R.get"" IL_010f: stloc.s V_11 IL_0111: ldloc.s V_11 IL_0113: brfalse.s IL_0122 IL_0115: ldloc.s V_11 IL_0117: ldloca.s V_7 IL_0119: callvirt ""void C.Deconstruct(out int)"" IL_011e: nop IL_011f: ldc.i4.1 IL_0120: br.s IL_0123 IL_0122: ldc.i4.0 IL_0123: br.s IL_0126 IL_0125: ldc.i4.1 IL_0126: stloc.s V_14 IL_0128: br.s IL_012a -IL_012a: ldloc.s V_14 IL_012c: ret } "); verifier.VerifyPdb("Program.M", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""M""> <customDebugInfo> <forward declaringType=""C"" methodName=""Deconstruct"" /> <encLocalSlotMap> <slot kind=""0"" offset=""18"" /> <slot kind=""0"" offset=""106"" /> <slot kind=""0"" offset=""230"" /> <slot kind=""0"" offset=""233"" /> <slot kind=""0"" offset=""419"" /> <slot kind=""0"" offset=""429"" /> <slot kind=""0"" offset=""465"" /> <slot kind=""0"" offset=""561"" /> <slot kind=""temp"" /> <slot kind=""temp"" /> <slot kind=""temp"" /> <slot kind=""temp"" /> <slot kind=""temp"" /> <slot kind=""temp"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""23"" startColumn=""5"" endLine=""23"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""24"" startColumn=""9"" endLine=""24"" endColumn=""26"" document=""1"" /> <entry offset=""0x7"" startLine=""25"" startColumn=""9"" endLine=""45"" endColumn=""60"" document=""1"" /> <entry offset=""0x12a"" startLine=""46"" startColumn=""5"" endLine=""46"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x12d""> <local name=""obj"" il_index=""0"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""x"" il_index=""1"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""y"" il_index=""2"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""z1"" il_index=""3"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""p1"" il_index=""4"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""q"" il_index=""5"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""p2"" il_index=""6"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> <local name=""z2"" il_index=""7"" il_start=""0x0"" il_end=""0x12d"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } [WorkItem(37172, "https://github.com/dotnet/roslyn/issues/37172")] [WorkItem(37232, "https://github.com/dotnet/roslyn/issues/37232")] [WorkItem(37237, "https://github.com/dotnet/roslyn/issues/37237")] [Fact] public void Patterns_SwitchExpression_Closures() { string source = WithWindowsLineBreaks(@" using System; public class C { static int M() { return F() switch { 1 => F() switch { C { P: int p, Q: C { P: int q } } => G(() => p + q), _ => 10 }, 2 => F() switch { C { P: int r } => G(() => r), _ => 20 }, C { Q: int s } => G(() => s), _ => 0 } switch { var t when t > 0 => G(() => t), _ => 0 }; } object P { get; set; } object Q { get; set; } static object F() => null; static int G(Func<int> f) => 0; } "); var c = CreateCompilation(source, options: TestOptions.DebugDll); var verifier = CompileAndVerify(c); verifier.VerifyIL("C.M", sequencePoints: "C.M", source: source, expectedIL: @" { // Code size 472 (0x1d8) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0, //CS$<>8__locals0 int V_1, C.<>c__DisplayClass0_1 V_2, //CS$<>8__locals1 int V_3, object V_4, int V_5, C V_6, object V_7, C.<>c__DisplayClass0_2 V_8, //CS$<>8__locals2 int V_9, object V_10, C V_11, object V_12, object V_13, C V_14, object V_15, C.<>c__DisplayClass0_3 V_16, //CS$<>8__locals3 object V_17, C V_18, object V_19, int V_20) // sequence point: { IL_0000: nop // sequence point: <hidden> IL_0001: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0006: stloc.0 // sequence point: <hidden> IL_0007: newobj ""C.<>c__DisplayClass0_1..ctor()"" IL_000c: stloc.2 IL_000d: call ""object C.F()"" IL_0012: stloc.s V_4 IL_0014: ldc.i4.1 IL_0015: brtrue.s IL_0018 // sequence point: switch ... } IL_0017: nop // sequence point: <hidden> IL_0018: ldloc.s V_4 IL_001a: isinst ""int"" IL_001f: brfalse.s IL_003e IL_0021: ldloc.s V_4 IL_0023: unbox.any ""int"" IL_0028: stloc.s V_5 // sequence point: <hidden> IL_002a: ldloc.s V_5 IL_002c: ldc.i4.1 IL_002d: beq.s IL_0075 IL_002f: br.s IL_0031 IL_0031: ldloc.s V_5 IL_0033: ldc.i4.2 IL_0034: beq IL_0116 IL_0039: br IL_0194 IL_003e: ldloc.s V_4 IL_0040: isinst ""C"" IL_0045: stloc.s V_6 IL_0047: ldloc.s V_6 IL_0049: brfalse IL_0194 IL_004e: ldloc.s V_6 IL_0050: callvirt ""object C.Q.get"" IL_0055: stloc.s V_7 // sequence point: <hidden> IL_0057: ldloc.s V_7 IL_0059: isinst ""int"" IL_005e: brfalse IL_0194 IL_0063: ldloc.2 IL_0064: ldloc.s V_7 IL_0066: unbox.any ""int"" IL_006b: stfld ""int C.<>c__DisplayClass0_1.<s>5__3"" // sequence point: <hidden> IL_0070: br IL_017e // sequence point: <hidden> IL_0075: newobj ""C.<>c__DisplayClass0_2..ctor()"" IL_007a: stloc.s V_8 IL_007c: call ""object C.F()"" IL_0081: stloc.s V_10 IL_0083: ldc.i4.1 IL_0084: brtrue.s IL_0087 // sequence point: switch ... IL_0086: nop // sequence point: <hidden> IL_0087: ldloc.s V_10 IL_0089: isinst ""C"" IL_008e: stloc.s V_11 IL_0090: ldloc.s V_11 IL_0092: brfalse.s IL_0104 IL_0094: ldloc.s V_11 IL_0096: callvirt ""object C.P.get"" IL_009b: stloc.s V_12 // sequence point: <hidden> IL_009d: ldloc.s V_12 IL_009f: isinst ""int"" IL_00a4: brfalse.s IL_0104 IL_00a6: ldloc.s V_8 IL_00a8: ldloc.s V_12 IL_00aa: unbox.any ""int"" IL_00af: stfld ""int C.<>c__DisplayClass0_2.<p>5__4"" // sequence point: <hidden> IL_00b4: ldloc.s V_11 IL_00b6: callvirt ""object C.Q.get"" IL_00bb: stloc.s V_13 // sequence point: <hidden> IL_00bd: ldloc.s V_13 IL_00bf: isinst ""C"" IL_00c4: stloc.s V_14 IL_00c6: ldloc.s V_14 IL_00c8: brfalse.s IL_0104 IL_00ca: ldloc.s V_14 IL_00cc: callvirt ""object C.P.get"" IL_00d1: stloc.s V_15 // sequence point: <hidden> IL_00d3: ldloc.s V_15 IL_00d5: isinst ""int"" IL_00da: brfalse.s IL_0104 IL_00dc: ldloc.s V_8 IL_00de: ldloc.s V_15 IL_00e0: unbox.any ""int"" IL_00e5: stfld ""int C.<>c__DisplayClass0_2.<q>5__5"" // sequence point: <hidden> IL_00ea: br.s IL_00ec // sequence point: <hidden> IL_00ec: br.s IL_00ee // sequence point: G(() => p + q) IL_00ee: ldloc.s V_8 IL_00f0: ldftn ""int C.<>c__DisplayClass0_2.<M>b__2()"" IL_00f6: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_00fb: call ""int C.G(System.Func<int>)"" IL_0100: stloc.s V_9 IL_0102: br.s IL_010a // sequence point: 10 IL_0104: ldc.i4.s 10 IL_0106: stloc.s V_9 IL_0108: br.s IL_010a // sequence point: <hidden> IL_010a: ldc.i4.1 IL_010b: brtrue.s IL_010e // sequence point: switch ... } IL_010d: nop // sequence point: F() switch ... IL_010e: ldloc.s V_9 IL_0110: stloc.3 IL_0111: br IL_0198 // sequence point: <hidden> IL_0116: newobj ""C.<>c__DisplayClass0_3..ctor()"" IL_011b: stloc.s V_16 IL_011d: call ""object C.F()"" IL_0122: stloc.s V_17 IL_0124: ldc.i4.1 IL_0125: brtrue.s IL_0128 // sequence point: switch ... IL_0127: nop // sequence point: <hidden> IL_0128: ldloc.s V_17 IL_012a: isinst ""C"" IL_012f: stloc.s V_18 IL_0131: ldloc.s V_18 IL_0133: brfalse.s IL_016f IL_0135: ldloc.s V_18 IL_0137: callvirt ""object C.P.get"" IL_013c: stloc.s V_19 // sequence point: <hidden> IL_013e: ldloc.s V_19 IL_0140: isinst ""int"" IL_0145: brfalse.s IL_016f IL_0147: ldloc.s V_16 IL_0149: ldloc.s V_19 IL_014b: unbox.any ""int"" IL_0150: stfld ""int C.<>c__DisplayClass0_3.<r>5__6"" // sequence point: <hidden> IL_0155: br.s IL_0157 // sequence point: <hidden> IL_0157: br.s IL_0159 // sequence point: G(() => r) IL_0159: ldloc.s V_16 IL_015b: ldftn ""int C.<>c__DisplayClass0_3.<M>b__3()"" IL_0161: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_0166: call ""int C.G(System.Func<int>)"" IL_016b: stloc.s V_9 IL_016d: br.s IL_0175 // sequence point: 20 IL_016f: ldc.i4.s 20 IL_0171: stloc.s V_9 IL_0173: br.s IL_0175 // sequence point: <hidden> IL_0175: ldc.i4.1 IL_0176: brtrue.s IL_0179 // sequence point: F() switch ... IL_0178: nop // sequence point: F() switch ... IL_0179: ldloc.s V_9 IL_017b: stloc.3 IL_017c: br.s IL_0198 // sequence point: <hidden> IL_017e: br.s IL_0180 // sequence point: G(() => s) IL_0180: ldloc.2 IL_0181: ldftn ""int C.<>c__DisplayClass0_1.<M>b__1()"" IL_0187: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_018c: call ""int C.G(System.Func<int>)"" IL_0191: stloc.3 IL_0192: br.s IL_0198 // sequence point: 0 IL_0194: ldc.i4.0 IL_0195: stloc.3 IL_0196: br.s IL_0198 // sequence point: <hidden> IL_0198: ldc.i4.1 IL_0199: brtrue.s IL_019c // sequence point: return F() s ... }; IL_019b: nop // sequence point: <hidden> IL_019c: ldloc.0 IL_019d: ldloc.3 IL_019e: stfld ""int C.<>c__DisplayClass0_0.<t>5__2"" IL_01a3: ldc.i4.1 IL_01a4: brtrue.s IL_01a7 // sequence point: switch ... } IL_01a6: nop // sequence point: <hidden> IL_01a7: br.s IL_01a9 // sequence point: when t > 0 IL_01a9: ldloc.0 IL_01aa: ldfld ""int C.<>c__DisplayClass0_0.<t>5__2"" IL_01af: ldc.i4.0 IL_01b0: bgt.s IL_01b4 // sequence point: <hidden> IL_01b2: br.s IL_01c8 // sequence point: G(() => t) IL_01b4: ldloc.0 IL_01b5: ldftn ""int C.<>c__DisplayClass0_0.<M>b__0()"" IL_01bb: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_01c0: call ""int C.G(System.Func<int>)"" IL_01c5: stloc.1 IL_01c6: br.s IL_01cc // sequence point: 0 IL_01c8: ldc.i4.0 IL_01c9: stloc.1 IL_01ca: br.s IL_01cc // sequence point: <hidden> IL_01cc: ldc.i4.1 IL_01cd: brtrue.s IL_01d0 // sequence point: return F() s ... }; IL_01cf: nop // sequence point: <hidden> IL_01d0: ldloc.1 IL_01d1: stloc.s V_20 IL_01d3: br.s IL_01d5 // sequence point: } IL_01d5: ldloc.s V_20 IL_01d7: ret } "); verifier.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""30"" offset=""11"" /> <slot kind=""temp"" /> <slot kind=""30"" offset=""22"" /> <slot kind=""temp"" /> <slot kind=""35"" offset=""22"" /> <slot kind=""35"" offset=""22"" ordinal=""1"" /> <slot kind=""35"" offset=""22"" ordinal=""2"" /> <slot kind=""35"" offset=""22"" ordinal=""3"" /> <slot kind=""30"" offset=""63"" /> <slot kind=""temp"" /> <slot kind=""35"" offset=""63"" /> <slot kind=""35"" offset=""63"" ordinal=""1"" /> <slot kind=""35"" offset=""63"" ordinal=""2"" /> <slot kind=""35"" offset=""63"" ordinal=""3"" /> <slot kind=""35"" offset=""63"" ordinal=""4"" /> <slot kind=""35"" offset=""63"" ordinal=""5"" /> <slot kind=""30"" offset=""238"" /> <slot kind=""35"" offset=""238"" /> <slot kind=""35"" offset=""238"" ordinal=""1"" /> <slot kind=""35"" offset=""238"" ordinal=""2"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""11"" /> <closure offset=""22"" /> <closure offset=""63"" /> <closure offset=""238"" /> <lambda offset=""511"" closure=""0"" /> <lambda offset=""407"" closure=""1"" /> <lambda offset=""157"" closure=""2"" /> <lambda offset=""313"" closure=""3"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" hidden=""true"" document=""1"" /> <entry offset=""0x17"" startLine=""7"" startColumn=""20"" endLine=""21"" endColumn=""10"" document=""1"" /> <entry offset=""0x18"" hidden=""true"" document=""1"" /> <entry offset=""0x2a"" hidden=""true"" document=""1"" /> <entry offset=""0x57"" hidden=""true"" document=""1"" /> <entry offset=""0x70"" hidden=""true"" document=""1"" /> <entry offset=""0x75"" hidden=""true"" document=""1"" /> <entry offset=""0x86"" startLine=""9"" startColumn=""22"" endLine=""13"" endColumn=""19"" document=""1"" /> <entry offset=""0x87"" hidden=""true"" document=""1"" /> <entry offset=""0x9d"" hidden=""true"" document=""1"" /> <entry offset=""0xb4"" hidden=""true"" document=""1"" /> <entry offset=""0xbd"" hidden=""true"" document=""1"" /> <entry offset=""0xd3"" hidden=""true"" document=""1"" /> <entry offset=""0xea"" hidden=""true"" document=""1"" /> <entry offset=""0xec"" hidden=""true"" document=""1"" /> <entry offset=""0xee"" startLine=""11"" startColumn=""59"" endLine=""11"" endColumn=""73"" document=""1"" /> <entry offset=""0x104"" startLine=""12"" startColumn=""27"" endLine=""12"" endColumn=""29"" document=""1"" /> <entry offset=""0x10a"" hidden=""true"" document=""1"" /> <entry offset=""0x10d"" startLine=""7"" startColumn=""20"" endLine=""21"" endColumn=""10"" document=""1"" /> <entry offset=""0x10e"" startLine=""9"" startColumn=""18"" endLine=""13"" endColumn=""19"" document=""1"" /> <entry offset=""0x116"" hidden=""true"" document=""1"" /> <entry offset=""0x127"" startLine=""14"" startColumn=""22"" endLine=""18"" endColumn=""19"" document=""1"" /> <entry offset=""0x128"" hidden=""true"" document=""1"" /> <entry offset=""0x13e"" hidden=""true"" document=""1"" /> <entry offset=""0x155"" hidden=""true"" document=""1"" /> <entry offset=""0x157"" hidden=""true"" document=""1"" /> <entry offset=""0x159"" startLine=""16"" startColumn=""40"" endLine=""16"" endColumn=""50"" document=""1"" /> <entry offset=""0x16f"" startLine=""17"" startColumn=""27"" endLine=""17"" endColumn=""29"" document=""1"" /> <entry offset=""0x175"" hidden=""true"" document=""1"" /> <entry offset=""0x178"" startLine=""9"" startColumn=""18"" endLine=""13"" endColumn=""19"" document=""1"" /> <entry offset=""0x179"" startLine=""14"" startColumn=""18"" endLine=""18"" endColumn=""19"" document=""1"" /> <entry offset=""0x17e"" hidden=""true"" document=""1"" /> <entry offset=""0x180"" startLine=""19"" startColumn=""31"" endLine=""19"" endColumn=""41"" document=""1"" /> <entry offset=""0x194"" startLine=""20"" startColumn=""18"" endLine=""20"" endColumn=""19"" document=""1"" /> <entry offset=""0x198"" hidden=""true"" document=""1"" /> <entry offset=""0x19b"" startLine=""7"" startColumn=""9"" endLine=""26"" endColumn=""11"" document=""1"" /> <entry offset=""0x19c"" hidden=""true"" document=""1"" /> <entry offset=""0x1a6"" startLine=""22"" startColumn=""9"" endLine=""26"" endColumn=""10"" document=""1"" /> <entry offset=""0x1a7"" hidden=""true"" document=""1"" /> <entry offset=""0x1a9"" startLine=""24"" startColumn=""19"" endLine=""24"" endColumn=""29"" document=""1"" /> <entry offset=""0x1b2"" hidden=""true"" document=""1"" /> <entry offset=""0x1b4"" startLine=""24"" startColumn=""33"" endLine=""24"" endColumn=""43"" document=""1"" /> <entry offset=""0x1c8"" startLine=""25"" startColumn=""18"" endLine=""25"" endColumn=""19"" document=""1"" /> <entry offset=""0x1cc"" hidden=""true"" document=""1"" /> <entry offset=""0x1cf"" startLine=""7"" startColumn=""9"" endLine=""26"" endColumn=""11"" document=""1"" /> <entry offset=""0x1d0"" hidden=""true"" document=""1"" /> <entry offset=""0x1d5"" startLine=""27"" startColumn=""5"" endLine=""27"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1d8""> <namespace name=""System"" /> <scope startOffset=""0x1"" endOffset=""0x1d5""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x1"" il_end=""0x1d5"" attributes=""0"" /> <scope startOffset=""0x7"" endOffset=""0x1a3""> <local name=""CS$&lt;&gt;8__locals1"" il_index=""2"" il_start=""0x7"" il_end=""0x1a3"" attributes=""0"" /> <scope startOffset=""0x75"" endOffset=""0x111""> <local name=""CS$&lt;&gt;8__locals2"" il_index=""8"" il_start=""0x75"" il_end=""0x111"" attributes=""0"" /> </scope> <scope startOffset=""0x116"" endOffset=""0x17c""> <local name=""CS$&lt;&gt;8__locals3"" il_index=""16"" il_start=""0x116"" il_end=""0x17c"" attributes=""0"" /> </scope> </scope> </scope> </scope> </method> </methods> </symbols> "); } [WorkItem(50321, "https://github.com/dotnet/roslyn/issues/50321")] [ConditionalFact(typeof(CoreClrOnly))] public void NestedSwitchExpressions_Closures_01() { string source = WithWindowsLineBreaks( @"using System; class C { static int F(object o) { return o switch { int i => new Func<int>(() => i + i switch { 1 => 2, _ => 3 })(), _ => 4 }; } }"); var verifier = CompileAndVerify(source, options: TestOptions.DebugDll); verifier.VerifyTypeIL("C", @".class private auto ansi beforefieldinit C extends [netstandard]System.Object { // Nested Types .class nested private auto ansi sealed beforefieldinit '<>c__DisplayClass0_0' extends [netstandard]System.Object { .custom instance void [netstandard]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Fields .field public int32 '<i>5__2' // Methods .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { // Method begins at RVA 0x20a1 // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [netstandard]System.Object::.ctor() IL_0006: nop IL_0007: ret } // end of method '<>c__DisplayClass0_0'::.ctor .method assembly hidebysig instance int32 '<F>b__0' () cil managed { // Method begins at RVA 0x20ac // Code size 38 (0x26) .maxstack 2 .locals init ( [0] int32, [1] int32 ) IL_0000: ldarg.0 IL_0001: ldfld int32 C/'<>c__DisplayClass0_0'::'<i>5__2' IL_0006: stloc.0 IL_0007: ldc.i4.1 IL_0008: brtrue.s IL_000b IL_000a: nop IL_000b: ldarg.0 IL_000c: ldfld int32 C/'<>c__DisplayClass0_0'::'<i>5__2' IL_0011: ldc.i4.1 IL_0012: beq.s IL_0016 IL_0014: br.s IL_001a IL_0016: ldc.i4.2 IL_0017: stloc.1 IL_0018: br.s IL_001e IL_001a: ldc.i4.3 IL_001b: stloc.1 IL_001c: br.s IL_001e IL_001e: ldc.i4.1 IL_001f: brtrue.s IL_0022 IL_0021: nop IL_0022: ldloc.0 IL_0023: ldloc.1 IL_0024: add IL_0025: ret } // end of method '<>c__DisplayClass0_0'::'<F>b__0' } // end of class <>c__DisplayClass0_0 // Methods .method private hidebysig static int32 F ( object o ) cil managed { // Method begins at RVA 0x2050 // Code size 69 (0x45) .maxstack 2 .locals init ( [0] class C/'<>c__DisplayClass0_0', [1] int32, [2] int32 ) IL_0000: nop IL_0001: newobj instance void C/'<>c__DisplayClass0_0'::.ctor() IL_0006: stloc.0 IL_0007: ldc.i4.1 IL_0008: brtrue.s IL_000b IL_000a: nop IL_000b: ldarg.0 IL_000c: isinst [netstandard]System.Int32 IL_0011: brfalse.s IL_0037 IL_0013: ldloc.0 IL_0014: ldarg.0 IL_0015: unbox.any [netstandard]System.Int32 IL_001a: stfld int32 C/'<>c__DisplayClass0_0'::'<i>5__2' IL_001f: br.s IL_0021 IL_0021: br.s IL_0023 IL_0023: ldloc.0 IL_0024: ldftn instance int32 C/'<>c__DisplayClass0_0'::'<F>b__0'() IL_002a: newobj instance void class [netstandard]System.Func`1<int32>::.ctor(object, native int) IL_002f: callvirt instance !0 class [netstandard]System.Func`1<int32>::Invoke() IL_0034: stloc.1 IL_0035: br.s IL_003b IL_0037: ldc.i4.4 IL_0038: stloc.1 IL_0039: br.s IL_003b IL_003b: ldc.i4.1 IL_003c: brtrue.s IL_003f IL_003e: nop IL_003f: ldloc.1 IL_0040: stloc.2 IL_0041: br.s IL_0043 IL_0043: ldloc.2 IL_0044: ret } // end of method C::F .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { // Method begins at RVA 0x20a1 // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [netstandard]System.Object::.ctor() IL_0006: nop IL_0007: ret } // end of method C::.ctor } // end of class C "); verifier.VerifyPdb( @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F"" parameterNames=""o""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""30"" offset=""11"" /> <slot kind=""temp"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""11"" /> <lambda offset=""80"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" hidden=""true"" document=""1"" /> <entry offset=""0xa"" startLine=""6"" startColumn=""18"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0xb"" hidden=""true"" document=""1"" /> <entry offset=""0x1f"" hidden=""true"" document=""1"" /> <entry offset=""0x21"" hidden=""true"" document=""1"" /> <entry offset=""0x23"" startLine=""8"" startColumn=""22"" endLine=""12"" endColumn=""17"" document=""1"" /> <entry offset=""0x37"" startLine=""13"" startColumn=""18"" endLine=""13"" endColumn=""19"" document=""1"" /> <entry offset=""0x3b"" hidden=""true"" document=""1"" /> <entry offset=""0x3e"" startLine=""6"" startColumn=""9"" endLine=""14"" endColumn=""11"" document=""1"" /> <entry offset=""0x3f"" hidden=""true"" document=""1"" /> <entry offset=""0x43"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x45""> <namespace name=""System"" /> <scope startOffset=""0x1"" endOffset=""0x43""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x1"" il_end=""0x43"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C+&lt;&gt;c__DisplayClass0_0"" name=""&lt;F&gt;b__0""> <customDebugInfo> <forward declaringType=""C"" methodName=""F"" parameterNames=""o"" /> <encLocalSlotMap> <slot kind=""28"" offset=""86"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""42"" endLine=""12"" endColumn=""14"" document=""1"" /> <entry offset=""0xa"" startLine=""8"" startColumn=""48"" endLine=""12"" endColumn=""14"" document=""1"" /> <entry offset=""0xb"" hidden=""true"" document=""1"" /> <entry offset=""0x16"" startLine=""10"" startColumn=""22"" endLine=""10"" endColumn=""23"" document=""1"" /> <entry offset=""0x1a"" startLine=""11"" startColumn=""22"" endLine=""11"" endColumn=""23"" document=""1"" /> <entry offset=""0x1e"" hidden=""true"" document=""1"" /> <entry offset=""0x21"" startLine=""8"" startColumn=""42"" endLine=""12"" endColumn=""14"" document=""1"" /> <entry offset=""0x22"" hidden=""true"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(50321, "https://github.com/dotnet/roslyn/issues/50321")] [ConditionalFact(typeof(CoreClrOnly))] public void NestedSwitchExpressions_Closures_02() { string source = WithWindowsLineBreaks( @"using System; class C { static string F(object o) { return o switch { int i => new Func<string>(() => ""1"" + i switch { 1 => new Func<string>(() => ""2"" + i)(), _ => ""3"" })(), _ => ""4"" }; } }"); var verifier = CompileAndVerify(source, options: TestOptions.DebugDll); verifier.VerifyTypeIL("C", @".class private auto ansi beforefieldinit C extends [netstandard]System.Object { // Nested Types .class nested private auto ansi sealed beforefieldinit '<>c__DisplayClass0_0' extends [netstandard]System.Object { .custom instance void [netstandard]System.Runtime.CompilerServices.CompilerGeneratedAttribute::.ctor() = ( 01 00 00 00 ) // Fields .field public int32 '<i>5__2' .field public class [netstandard]System.Func`1<string> '<>9__1' // Methods .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { // Method begins at RVA 0x20a5 // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [netstandard]System.Object::.ctor() IL_0006: nop IL_0007: ret } // end of method '<>c__DisplayClass0_0'::.ctor .method assembly hidebysig instance string '<F>b__0' () cil managed { // Method begins at RVA 0x20b0 // Code size 78 (0x4e) .maxstack 3 .locals init ( [0] string, [1] class [netstandard]System.Func`1<string> ) IL_0000: ldc.i4.1 IL_0001: brtrue.s IL_0004 IL_0003: nop IL_0004: ldarg.0 IL_0005: ldfld int32 C/'<>c__DisplayClass0_0'::'<i>5__2' IL_000a: ldc.i4.1 IL_000b: beq.s IL_000f IL_000d: br.s IL_0036 IL_000f: ldarg.0 IL_0010: ldfld class [netstandard]System.Func`1<string> C/'<>c__DisplayClass0_0'::'<>9__1' IL_0015: dup IL_0016: brtrue.s IL_002e IL_0018: pop IL_0019: ldarg.0 IL_001a: ldarg.0 IL_001b: ldftn instance string C/'<>c__DisplayClass0_0'::'<F>b__1'() IL_0021: newobj instance void class [netstandard]System.Func`1<string>::.ctor(object, native int) IL_0026: dup IL_0027: stloc.1 IL_0028: stfld class [netstandard]System.Func`1<string> C/'<>c__DisplayClass0_0'::'<>9__1' IL_002d: ldloc.1 IL_002e: callvirt instance !0 class [netstandard]System.Func`1<string>::Invoke() IL_0033: stloc.0 IL_0034: br.s IL_003e IL_0036: ldstr ""3"" IL_003b: stloc.0 IL_003c: br.s IL_003e IL_003e: ldc.i4.1 IL_003f: brtrue.s IL_0042 IL_0041: nop IL_0042: ldstr ""1"" IL_0047: ldloc.0 IL_0048: call string [netstandard]System.String::Concat(string, string) IL_004d: ret } // end of method '<>c__DisplayClass0_0'::'<F>b__0' .method assembly hidebysig instance string '<F>b__1' () cil managed { // Method begins at RVA 0x210a // Code size 22 (0x16) .maxstack 8 IL_0000: ldstr ""2"" IL_0005: ldarg.0 IL_0006: ldflda int32 C/'<>c__DisplayClass0_0'::'<i>5__2' IL_000b: call instance string [netstandard]System.Int32::ToString() IL_0010: call string [netstandard]System.String::Concat(string, string) IL_0015: ret } // end of method '<>c__DisplayClass0_0'::'<F>b__1' } // end of class <>c__DisplayClass0_0 // Methods .method private hidebysig static string F ( object o ) cil managed { // Method begins at RVA 0x2050 // Code size 73 (0x49) .maxstack 2 .locals init ( [0] class C/'<>c__DisplayClass0_0', [1] string, [2] string ) IL_0000: nop IL_0001: newobj instance void C/'<>c__DisplayClass0_0'::.ctor() IL_0006: stloc.0 IL_0007: ldc.i4.1 IL_0008: brtrue.s IL_000b IL_000a: nop IL_000b: ldarg.0 IL_000c: isinst [netstandard]System.Int32 IL_0011: brfalse.s IL_0037 IL_0013: ldloc.0 IL_0014: ldarg.0 IL_0015: unbox.any [netstandard]System.Int32 IL_001a: stfld int32 C/'<>c__DisplayClass0_0'::'<i>5__2' IL_001f: br.s IL_0021 IL_0021: br.s IL_0023 IL_0023: ldloc.0 IL_0024: ldftn instance string C/'<>c__DisplayClass0_0'::'<F>b__0'() IL_002a: newobj instance void class [netstandard]System.Func`1<string>::.ctor(object, native int) IL_002f: callvirt instance !0 class [netstandard]System.Func`1<string>::Invoke() IL_0034: stloc.1 IL_0035: br.s IL_003f IL_0037: ldstr ""4"" IL_003c: stloc.1 IL_003d: br.s IL_003f IL_003f: ldc.i4.1 IL_0040: brtrue.s IL_0043 IL_0042: nop IL_0043: ldloc.1 IL_0044: stloc.2 IL_0045: br.s IL_0047 IL_0047: ldloc.2 IL_0048: ret } // end of method C::F .method public hidebysig specialname rtspecialname instance void .ctor () cil managed { // Method begins at RVA 0x20a5 // Code size 8 (0x8) .maxstack 8 IL_0000: ldarg.0 IL_0001: call instance void [netstandard]System.Object::.ctor() IL_0006: nop IL_0007: ret } // end of method C::.ctor } // end of class C "); verifier.VerifyPdb( @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F"" parameterNames=""o""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""30"" offset=""11"" /> <slot kind=""temp"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""11"" /> <lambda offset=""83"" closure=""0"" /> <lambda offset=""158"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" hidden=""true"" document=""1"" /> <entry offset=""0xa"" startLine=""6"" startColumn=""18"" endLine=""14"" endColumn=""10"" document=""1"" /> <entry offset=""0xb"" hidden=""true"" document=""1"" /> <entry offset=""0x1f"" hidden=""true"" document=""1"" /> <entry offset=""0x21"" hidden=""true"" document=""1"" /> <entry offset=""0x23"" startLine=""8"" startColumn=""22"" endLine=""12"" endColumn=""17"" document=""1"" /> <entry offset=""0x37"" startLine=""13"" startColumn=""18"" endLine=""13"" endColumn=""21"" document=""1"" /> <entry offset=""0x3f"" hidden=""true"" document=""1"" /> <entry offset=""0x42"" startLine=""6"" startColumn=""9"" endLine=""14"" endColumn=""11"" document=""1"" /> <entry offset=""0x43"" hidden=""true"" document=""1"" /> <entry offset=""0x47"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x49""> <namespace name=""System"" /> <scope startOffset=""0x1"" endOffset=""0x47""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x1"" il_end=""0x47"" attributes=""0"" /> </scope> </scope> </method> <method containingType=""C+&lt;&gt;c__DisplayClass0_0"" name=""&lt;F&gt;b__0""> <customDebugInfo> <forward declaringType=""C"" methodName=""F"" parameterNames=""o"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""8"" startColumn=""45"" endLine=""12"" endColumn=""14"" document=""1"" /> <entry offset=""0x3"" startLine=""8"" startColumn=""53"" endLine=""12"" endColumn=""14"" document=""1"" /> <entry offset=""0x4"" hidden=""true"" document=""1"" /> <entry offset=""0xf"" startLine=""10"" startColumn=""22"" endLine=""10"" endColumn=""55"" document=""1"" /> <entry offset=""0x36"" startLine=""11"" startColumn=""22"" endLine=""11"" endColumn=""25"" document=""1"" /> <entry offset=""0x3e"" hidden=""true"" document=""1"" /> <entry offset=""0x41"" startLine=""8"" startColumn=""45"" endLine=""12"" endColumn=""14"" document=""1"" /> <entry offset=""0x42"" hidden=""true"" document=""1"" /> </sequencePoints> </method> <method containingType=""C+&lt;&gt;c__DisplayClass0_0"" name=""&lt;F&gt;b__1""> <customDebugInfo> <forward declaringType=""C"" methodName=""F"" parameterNames=""o"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""45"" endLine=""10"" endColumn=""52"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(37261, "https://github.com/dotnet/roslyn/issues/37261")] [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SwitchExpression_MethodBody() { string source = @" using System; public class C { static int M() => F() switch { 1 => 1, C { P: int p, Q: C { P: int q } } => G(() => p + q), _ => 0 }; object P { get; set; } object Q { get; set; } static object F() => null; static int G(Func<int> f) => 0; } "; var c = CreateCompilation(source, options: TestOptions.DebugDll); var verifier = CompileAndVerify(c); verifier.VerifyIL("C.M", sequencePoints: "C.M", source: source, expectedIL: @" { // Code size 171 (0xab) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0, //CS$<>8__locals0 int V_1, object V_2, int V_3, C V_4, object V_5, object V_6, C V_7, object V_8) // sequence point: <hidden> IL_0000: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0005: stloc.0 IL_0006: call ""object C.F()"" IL_000b: stloc.2 IL_000c: ldc.i4.1 IL_000d: brtrue.s IL_0010 // sequence point: switch ... } IL_000f: nop // sequence point: <hidden> IL_0010: ldloc.2 IL_0011: isinst ""int"" IL_0016: brfalse.s IL_0025 IL_0018: ldloc.2 IL_0019: unbox.any ""int"" IL_001e: stloc.3 // sequence point: <hidden> IL_001f: ldloc.3 IL_0020: ldc.i4.1 IL_0021: beq.s IL_0087 IL_0023: br.s IL_00a1 IL_0025: ldloc.2 IL_0026: isinst ""C"" IL_002b: stloc.s V_4 IL_002d: ldloc.s V_4 IL_002f: brfalse.s IL_00a1 IL_0031: ldloc.s V_4 IL_0033: callvirt ""object C.P.get"" IL_0038: stloc.s V_5 // sequence point: <hidden> IL_003a: ldloc.s V_5 IL_003c: isinst ""int"" IL_0041: brfalse.s IL_00a1 IL_0043: ldloc.0 IL_0044: ldloc.s V_5 IL_0046: unbox.any ""int"" IL_004b: stfld ""int C.<>c__DisplayClass0_0.<p>5__2"" // sequence point: <hidden> IL_0050: ldloc.s V_4 IL_0052: callvirt ""object C.Q.get"" IL_0057: stloc.s V_6 // sequence point: <hidden> IL_0059: ldloc.s V_6 IL_005b: isinst ""C"" IL_0060: stloc.s V_7 IL_0062: ldloc.s V_7 IL_0064: brfalse.s IL_00a1 IL_0066: ldloc.s V_7 IL_0068: callvirt ""object C.P.get"" IL_006d: stloc.s V_8 // sequence point: <hidden> IL_006f: ldloc.s V_8 IL_0071: isinst ""int"" IL_0076: brfalse.s IL_00a1 IL_0078: ldloc.0 IL_0079: ldloc.s V_8 IL_007b: unbox.any ""int"" IL_0080: stfld ""int C.<>c__DisplayClass0_0.<q>5__3"" // sequence point: <hidden> IL_0085: br.s IL_008b // sequence point: 1 IL_0087: ldc.i4.1 IL_0088: stloc.1 IL_0089: br.s IL_00a5 // sequence point: <hidden> IL_008b: br.s IL_008d // sequence point: G(() => p + q) IL_008d: ldloc.0 IL_008e: ldftn ""int C.<>c__DisplayClass0_0.<M>b__0()"" IL_0094: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_0099: call ""int C.G(System.Func<int>)"" IL_009e: stloc.1 IL_009f: br.s IL_00a5 // sequence point: 0 IL_00a1: ldc.i4.0 IL_00a2: stloc.1 IL_00a3: br.s IL_00a5 // sequence point: <hidden> IL_00a5: ldc.i4.1 IL_00a6: brtrue.s IL_00a9 // sequence point: F() switch ... } IL_00a8: nop // sequence point: <hidden> IL_00a9: ldloc.1 IL_00aa: ret } "); verifier.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""30"" offset=""7"" /> <slot kind=""temp"" /> <slot kind=""35"" offset=""7"" /> <slot kind=""35"" offset=""7"" ordinal=""1"" /> <slot kind=""35"" offset=""7"" ordinal=""2"" /> <slot kind=""35"" offset=""7"" ordinal=""3"" /> <slot kind=""35"" offset=""7"" ordinal=""4"" /> <slot kind=""35"" offset=""7"" ordinal=""5"" /> <slot kind=""35"" offset=""7"" ordinal=""6"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""7"" /> <lambda offset=""92"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0xf"" startLine=""5"" startColumn=""27"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0x10"" hidden=""true"" document=""1"" /> <entry offset=""0x1f"" hidden=""true"" document=""1"" /> <entry offset=""0x3a"" hidden=""true"" document=""1"" /> <entry offset=""0x50"" hidden=""true"" document=""1"" /> <entry offset=""0x59"" hidden=""true"" document=""1"" /> <entry offset=""0x6f"" hidden=""true"" document=""1"" /> <entry offset=""0x85"" hidden=""true"" document=""1"" /> <entry offset=""0x87"" startLine=""7"" startColumn=""14"" endLine=""7"" endColumn=""15"" document=""1"" /> <entry offset=""0x8b"" hidden=""true"" document=""1"" /> <entry offset=""0x8d"" startLine=""8"" startColumn=""46"" endLine=""8"" endColumn=""60"" document=""1"" /> <entry offset=""0xa1"" startLine=""9"" startColumn=""14"" endLine=""9"" endColumn=""15"" document=""1"" /> <entry offset=""0xa5"" hidden=""true"" document=""1"" /> <entry offset=""0xa8"" startLine=""5"" startColumn=""23"" endLine=""10"" endColumn=""6"" document=""1"" /> <entry offset=""0xa9"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xab""> <namespace name=""System"" /> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0xab"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } [WorkItem(37261, "https://github.com/dotnet/roslyn/issues/37261")] [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SwitchExpression_MethodBody_02() { string source = @" using System; public class C { static Action M1(int x) => () => { _ = x; }; static Action M2(int x) => x switch { _ => () => { _ = x; } }; } "; var c = CreateCompilation(source, options: TestOptions.DebugDll); var verifier = CompileAndVerify(c); verifier.VerifyIL("C.M1", sequencePoints: "C.M1", source: source, expectedIL: @" { // Code size 26 (0x1a) .maxstack 2 .locals init (C.<>c__DisplayClass0_0 V_0) //CS$<>8__locals0 // sequence point: <hidden> IL_0000: newobj ""C.<>c__DisplayClass0_0..ctor()"" IL_0005: stloc.0 IL_0006: ldloc.0 IL_0007: ldarg.0 IL_0008: stfld ""int C.<>c__DisplayClass0_0.x"" // sequence point: () => { _ = x; } IL_000d: ldloc.0 IL_000e: ldftn ""void C.<>c__DisplayClass0_0.<M1>b__0()"" IL_0014: newobj ""System.Action..ctor(object, System.IntPtr)"" IL_0019: ret } "); verifier.VerifyIL("C.M2", sequencePoints: "C.M2", source: source, expectedIL: @" { // Code size 40 (0x28) .maxstack 2 .locals init (C.<>c__DisplayClass1_0 V_0, //CS$<>8__locals0 System.Action V_1) // sequence point: <hidden> IL_0000: newobj ""C.<>c__DisplayClass1_0..ctor()"" IL_0005: stloc.0 IL_0006: ldloc.0 IL_0007: ldarg.0 IL_0008: stfld ""int C.<>c__DisplayClass1_0.x"" // sequence point: x switch { _ => () => { _ = x; } } IL_000d: ldc.i4.1 IL_000e: brtrue.s IL_0011 // sequence point: switch { _ => () => { _ = x; } } IL_0010: nop // sequence point: <hidden> IL_0011: br.s IL_0013 // sequence point: () => { _ = x; } IL_0013: ldloc.0 IL_0014: ldftn ""void C.<>c__DisplayClass1_0.<M2>b__0()"" IL_001a: newobj ""System.Action..ctor(object, System.IntPtr)"" IL_001f: stloc.1 IL_0020: br.s IL_0022 // sequence point: <hidden> IL_0022: ldc.i4.1 IL_0023: brtrue.s IL_0026 // sequence point: x switch { _ => () => { _ = x; } } IL_0025: nop // sequence point: <hidden> IL_0026: ldloc.1 IL_0027: ret } "); verifier.VerifyPdb("C.M1", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M1"" parameterNames=""x""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""30"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""0"" /> <lambda offset=""9"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""5"" startColumn=""32"" endLine=""5"" endColumn=""48"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1a""> <namespace name=""System"" /> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x1a"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); verifier.VerifyPdb("C.M2", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M2"" parameterNames=""x""> <customDebugInfo> <forward declaringType=""C"" methodName=""M1"" parameterNames=""x"" /> <encLocalSlotMap> <slot kind=""30"" offset=""0"" /> <slot kind=""temp"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>1</methodOrdinal> <closure offset=""0"" /> <lambda offset=""25"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0xd"" startLine=""6"" startColumn=""32"" endLine=""6"" endColumn=""66"" document=""1"" /> <entry offset=""0x10"" startLine=""6"" startColumn=""34"" endLine=""6"" endColumn=""66"" document=""1"" /> <entry offset=""0x11"" hidden=""true"" document=""1"" /> <entry offset=""0x13"" startLine=""6"" startColumn=""48"" endLine=""6"" endColumn=""64"" document=""1"" /> <entry offset=""0x22"" hidden=""true"" document=""1"" /> <entry offset=""0x25"" startLine=""6"" startColumn=""32"" endLine=""6"" endColumn=""66"" document=""1"" /> <entry offset=""0x26"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x28""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x28"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } [ConditionalFact(typeof(WindowsOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] public void SyntaxOffset_OutVarInInitializers_SwitchExpression() { var source = @"class C { static int G(out int x) => throw null; static int F(System.Func<int> x) => throw null; C() { } int y1 = G(out var z) switch { _ => F(() => z) }; // line 7 } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> <encLocalSlotMap> <slot kind=""30"" offset=""-26"" /> <slot kind=""temp"" /> <slot kind=""35"" offset=""-26"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>2</methodOrdinal> <closure offset=""-26"" /> <lambda offset=""-4"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x6"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""54"" document=""1"" /> <entry offset=""0x15"" startLine=""7"" startColumn=""27"" endLine=""7"" endColumn=""53"" document=""1"" /> <entry offset=""0x16"" hidden=""true"" document=""1"" /> <entry offset=""0x18"" startLine=""7"" startColumn=""41"" endLine=""7"" endColumn=""51"" document=""1"" /> <entry offset=""0x2c"" hidden=""true"" document=""1"" /> <entry offset=""0x2f"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""54"" document=""1"" /> <entry offset=""0x30"" hidden=""true"" document=""1"" /> <entry offset=""0x37"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""8"" document=""1"" /> <entry offset=""0x3e"" startLine=""5"" startColumn=""9"" endLine=""5"" endColumn=""10"" document=""1"" /> <entry offset=""0x3f"" startLine=""5"" startColumn=""11"" endLine=""5"" endColumn=""12"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x40""> <scope startOffset=""0x0"" endOffset=""0x37""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x37"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } [WorkItem(43468, "https://github.com/dotnet/roslyn/issues/43468")] [Fact] public void HiddenSequencePointAtSwitchExpressionFinalMergePoint() { var source = @"class C { static int M(int x) { var y = x switch { 1 => 2, _ => 3, }; return y; } } "; var c = CreateCompilation(source, options: TestOptions.DebugDll); var verifier = CompileAndVerify(c); verifier.VerifyIL("C.M", sequencePoints: "C.M", source: source, expectedIL: @" { // Code size 31 (0x1f) .maxstack 2 .locals init (int V_0, //y int V_1, int V_2) // sequence point: { IL_0000: nop // sequence point: var y = x sw ... }; IL_0001: ldc.i4.1 IL_0002: brtrue.s IL_0005 // sequence point: switch ... } IL_0004: nop // sequence point: <hidden> IL_0005: ldarg.0 IL_0006: ldc.i4.1 IL_0007: beq.s IL_000b IL_0009: br.s IL_000f // sequence point: 2 IL_000b: ldc.i4.2 IL_000c: stloc.1 IL_000d: br.s IL_0013 // sequence point: 3 IL_000f: ldc.i4.3 IL_0010: stloc.1 IL_0011: br.s IL_0013 // sequence point: <hidden> IL_0013: ldc.i4.1 IL_0014: brtrue.s IL_0017 // sequence point: var y = x sw ... }; IL_0016: nop // sequence point: <hidden> IL_0017: ldloc.1 IL_0018: stloc.0 // sequence point: return y; IL_0019: ldloc.0 IL_001a: stloc.2 IL_001b: br.s IL_001d // sequence point: } IL_001d: ldloc.2 IL_001e: ret } "); } [WorkItem(12378, "https://github.com/dotnet/roslyn/issues/12378")] [WorkItem(13971, "https://github.com/dotnet/roslyn/issues/13971")] [Fact] public void Patterns_SwitchStatement_Constant() { string source = WithWindowsLineBreaks( @"class Program { static void M(object o) { switch (o) { case 1 when o == null: case 4: case 2 when o == null: break; case 1 when o != null: case 5: case 3 when o != null: break; default: break; case 1: break; } switch (o) { case 1: break; default: break; } switch (o) { default: break; } } }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); CompileAndVerify(c).VerifyIL(qualifiedMethodName: "Program.M", sequencePoints: "Program.M", source: source, expectedIL: @"{ // Code size 123 (0x7b) .maxstack 2 .locals init (object V_0, int V_1, object V_2, object V_3, int V_4, object V_5, object V_6, object V_7) // sequence point: { IL_0000: nop // sequence point: switch (o) IL_0001: ldarg.0 IL_0002: stloc.2 // sequence point: <hidden> IL_0003: ldloc.2 IL_0004: stloc.0 // sequence point: <hidden> IL_0005: ldloc.0 IL_0006: isinst ""int"" IL_000b: brfalse.s IL_004a IL_000d: ldloc.0 IL_000e: unbox.any ""int"" IL_0013: stloc.1 // sequence point: <hidden> IL_0014: ldloc.1 IL_0015: ldc.i4.1 IL_0016: sub IL_0017: switch ( IL_0032, IL_0037, IL_0043, IL_003c, IL_0048) IL_0030: br.s IL_004a // sequence point: when o == null IL_0032: ldarg.0 IL_0033: brfalse.s IL_003c // sequence point: <hidden> IL_0035: br.s IL_003e // sequence point: when o == null IL_0037: ldarg.0 IL_0038: brfalse.s IL_003c // sequence point: <hidden> IL_003a: br.s IL_004a // sequence point: break; IL_003c: br.s IL_004e // sequence point: when o != null IL_003e: ldarg.0 IL_003f: brtrue.s IL_0048 // sequence point: <hidden> IL_0041: br.s IL_004c // sequence point: when o != null IL_0043: ldarg.0 IL_0044: brtrue.s IL_0048 // sequence point: <hidden> IL_0046: br.s IL_004a // sequence point: break; IL_0048: br.s IL_004e // sequence point: break; IL_004a: br.s IL_004e // sequence point: break; IL_004c: br.s IL_004e // sequence point: switch (o) IL_004e: ldarg.0 IL_004f: stloc.s V_5 // sequence point: <hidden> IL_0051: ldloc.s V_5 IL_0053: stloc.3 // sequence point: <hidden> IL_0054: ldloc.3 IL_0055: isinst ""int"" IL_005a: brfalse.s IL_006d IL_005c: ldloc.3 IL_005d: unbox.any ""int"" IL_0062: stloc.s V_4 // sequence point: <hidden> IL_0064: ldloc.s V_4 IL_0066: ldc.i4.1 IL_0067: beq.s IL_006b IL_0069: br.s IL_006d // sequence point: break; IL_006b: br.s IL_006f // sequence point: break; IL_006d: br.s IL_006f // sequence point: switch (o) IL_006f: ldarg.0 IL_0070: stloc.s V_7 // sequence point: <hidden> IL_0072: ldloc.s V_7 IL_0074: stloc.s V_6 // sequence point: <hidden> IL_0076: br.s IL_0078 // sequence point: break; IL_0078: br.s IL_007a // sequence point: } IL_007a: ret }"); c.VerifyPdb( @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""M"" parameterNames=""o""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""35"" offset=""11"" /> <slot kind=""35"" offset=""11"" ordinal=""1"" /> <slot kind=""1"" offset=""11"" /> <slot kind=""35"" offset=""378"" /> <slot kind=""35"" offset=""378"" ordinal=""1"" /> <slot kind=""1"" offset=""378"" /> <slot kind=""35"" offset=""511"" /> <slot kind=""1"" offset=""511"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""5"" startColumn=""9"" endLine=""5"" endColumn=""19"" document=""1"" /> <entry offset=""0x3"" hidden=""true"" document=""1"" /> <entry offset=""0x5"" hidden=""true"" document=""1"" /> <entry offset=""0x14"" hidden=""true"" document=""1"" /> <entry offset=""0x32"" startLine=""7"" startColumn=""20"" endLine=""7"" endColumn=""34"" document=""1"" /> <entry offset=""0x35"" hidden=""true"" document=""1"" /> <entry offset=""0x37"" startLine=""9"" startColumn=""20"" endLine=""9"" endColumn=""34"" document=""1"" /> <entry offset=""0x3a"" hidden=""true"" document=""1"" /> <entry offset=""0x3c"" startLine=""10"" startColumn=""17"" endLine=""10"" endColumn=""23"" document=""1"" /> <entry offset=""0x3e"" startLine=""11"" startColumn=""20"" endLine=""11"" endColumn=""34"" document=""1"" /> <entry offset=""0x41"" hidden=""true"" document=""1"" /> <entry offset=""0x43"" startLine=""13"" startColumn=""20"" endLine=""13"" endColumn=""34"" document=""1"" /> <entry offset=""0x46"" hidden=""true"" document=""1"" /> <entry offset=""0x48"" startLine=""14"" startColumn=""17"" endLine=""14"" endColumn=""23"" document=""1"" /> <entry offset=""0x4a"" startLine=""16"" startColumn=""17"" endLine=""16"" endColumn=""23"" document=""1"" /> <entry offset=""0x4c"" startLine=""18"" startColumn=""17"" endLine=""18"" endColumn=""23"" document=""1"" /> <entry offset=""0x4e"" startLine=""20"" startColumn=""9"" endLine=""20"" endColumn=""19"" document=""1"" /> <entry offset=""0x51"" hidden=""true"" document=""1"" /> <entry offset=""0x54"" hidden=""true"" document=""1"" /> <entry offset=""0x64"" hidden=""true"" document=""1"" /> <entry offset=""0x6b"" startLine=""23"" startColumn=""17"" endLine=""23"" endColumn=""23"" document=""1"" /> <entry offset=""0x6d"" startLine=""25"" startColumn=""17"" endLine=""25"" endColumn=""23"" document=""1"" /> <entry offset=""0x6f"" startLine=""27"" startColumn=""9"" endLine=""27"" endColumn=""19"" document=""1"" /> <entry offset=""0x72"" hidden=""true"" document=""1"" /> <entry offset=""0x76"" hidden=""true"" document=""1"" /> <entry offset=""0x78"" startLine=""30"" startColumn=""17"" endLine=""30"" endColumn=""23"" document=""1"" /> <entry offset=""0x7a"" startLine=""32"" startColumn=""5"" endLine=""32"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(37172, "https://github.com/dotnet/roslyn/issues/37172")] [Fact] public void Patterns_SwitchStatement_Tuple() { string source = WithWindowsLineBreaks(@" public class C { static int F(int i) { switch (G()) { case (1, 2): return 3; default: return 0; }; } static (object, object) G() => (2, 3); }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); var cv = CompileAndVerify(c); cv.VerifyIL("C.F", @" { // Code size 80 (0x50) .maxstack 2 .locals init (System.ValueTuple<object, object> V_0, object V_1, int V_2, object V_3, int V_4, System.ValueTuple<object, object> V_5, int V_6) IL_0000: nop IL_0001: call ""System.ValueTuple<object, object> C.G()"" IL_0006: stloc.s V_5 IL_0008: ldloc.s V_5 IL_000a: stloc.0 IL_000b: ldloc.0 IL_000c: ldfld ""object System.ValueTuple<object, object>.Item1"" IL_0011: stloc.1 IL_0012: ldloc.1 IL_0013: isinst ""int"" IL_0018: brfalse.s IL_0048 IL_001a: ldloc.1 IL_001b: unbox.any ""int"" IL_0020: stloc.2 IL_0021: ldloc.2 IL_0022: ldc.i4.1 IL_0023: bne.un.s IL_0048 IL_0025: ldloc.0 IL_0026: ldfld ""object System.ValueTuple<object, object>.Item2"" IL_002b: stloc.3 IL_002c: ldloc.3 IL_002d: isinst ""int"" IL_0032: brfalse.s IL_0048 IL_0034: ldloc.3 IL_0035: unbox.any ""int"" IL_003a: stloc.s V_4 IL_003c: ldloc.s V_4 IL_003e: ldc.i4.2 IL_003f: beq.s IL_0043 IL_0041: br.s IL_0048 IL_0043: ldc.i4.3 IL_0044: stloc.s V_6 IL_0046: br.s IL_004d IL_0048: ldc.i4.0 IL_0049: stloc.s V_6 IL_004b: br.s IL_004d IL_004d: ldloc.s V_6 IL_004f: ret } "); c.VerifyPdb("C.F", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F"" parameterNames=""i""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""35"" offset=""11"" /> <slot kind=""35"" offset=""11"" ordinal=""1"" /> <slot kind=""35"" offset=""11"" ordinal=""2"" /> <slot kind=""35"" offset=""11"" ordinal=""3"" /> <slot kind=""35"" offset=""11"" ordinal=""4"" /> <slot kind=""1"" offset=""11"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""21"" document=""1"" /> <entry offset=""0x8"" hidden=""true"" document=""1"" /> <entry offset=""0xb"" hidden=""true"" document=""1"" /> <entry offset=""0x12"" hidden=""true"" document=""1"" /> <entry offset=""0x21"" hidden=""true"" document=""1"" /> <entry offset=""0x2c"" hidden=""true"" document=""1"" /> <entry offset=""0x3c"" hidden=""true"" document=""1"" /> <entry offset=""0x43"" startLine=""8"" startColumn=""26"" endLine=""8"" endColumn=""35"" document=""1"" /> <entry offset=""0x48"" startLine=""9"" startColumn=""22"" endLine=""9"" endColumn=""31"" document=""1"" /> <entry offset=""0x4d"" startLine=""11"" startColumn=""5"" endLine=""11"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } #endregion #region Tuples [Fact] public void SyntaxOffset_TupleDeconstruction() { var source = @"class C { int F() { (int a, (_, int c)) = (1, (2, 3)); return a + c; } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); c.VerifyPdb("C.F", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""7"" /> <slot kind=""0"" offset=""18"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""19"" endLine=""1"" endColumn=""20"" document=""1"" /> <entry offset=""0x1"" startLine=""1"" startColumn=""21"" endLine=""1"" endColumn=""55"" document=""1"" /> <entry offset=""0x5"" startLine=""1"" startColumn=""56"" endLine=""1"" endColumn=""69"" document=""1"" /> <entry offset=""0xb"" startLine=""1"" startColumn=""70"" endLine=""1"" endColumn=""71"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xd""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0xd"" attributes=""0"" /> <local name=""c"" il_index=""1"" il_start=""0x0"" il_end=""0xd"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void TestDeconstruction() { var source = @" public class C { public static (int, int) F() => (1, 2); public static void Main() { int x, y; (x, y) = F(); System.Console.WriteLine(x + y); } } "; var c = CreateCompilation(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C.Main", @" { // Code size 29 (0x1d) .maxstack 2 .locals init (int V_0, //x int V_1) //y // sequence point: { IL_0000: nop // sequence point: (x, y) = F(); IL_0001: call ""System.ValueTuple<int, int> C.F()"" IL_0006: dup IL_0007: ldfld ""int System.ValueTuple<int, int>.Item1"" IL_000c: stloc.0 IL_000d: ldfld ""int System.ValueTuple<int, int>.Item2"" IL_0012: stloc.1 // sequence point: System.Console.WriteLine(x + y); IL_0013: ldloc.0 IL_0014: ldloc.1 IL_0015: add IL_0016: call ""void System.Console.WriteLine(int)"" IL_001b: nop // sequence point: } IL_001c: ret } ", sequencePoints: "C.Main", source: source); } [Fact] public void SyntaxOffset_TupleParenthesized() { var source = @"class C { int F() { (int, (int, int)) x = (1, (2, 3)); return x.Item1 + x.Item2.Item1 + x.Item2.Item2; } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); c.VerifyPdb("C.F", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""20"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""19"" endLine=""1"" endColumn=""20"" document=""1"" /> <entry offset=""0x1"" startLine=""1"" startColumn=""21"" endLine=""1"" endColumn=""55"" document=""1"" /> <entry offset=""0x10"" startLine=""1"" startColumn=""56"" endLine=""1"" endColumn=""103"" document=""1"" /> <entry offset=""0x31"" startLine=""1"" startColumn=""104"" endLine=""1"" endColumn=""105"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x33""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x33"" attributes=""0"" /> </scope> </method> </methods> </symbols>" ); } [Fact] public void SyntaxOffset_TupleVarDefined() { var source = @"class C { int F() { var x = (1, 2); return x.Item1 + x.Item2; } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); c.VerifyPdb("C.F", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""6"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""19"" endLine=""1"" endColumn=""20"" document=""1"" /> <entry offset=""0x1"" startLine=""1"" startColumn=""21"" endLine=""1"" endColumn=""36"" document=""1"" /> <entry offset=""0xa"" startLine=""1"" startColumn=""37"" endLine=""1"" endColumn=""62"" document=""1"" /> <entry offset=""0x1a"" startLine=""1"" startColumn=""63"" endLine=""1"" endColumn=""64"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1c""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x1c"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } [Fact] public void SyntaxOffset_TupleIgnoreDeconstructionIfVariableDeclared() { var source = @"class C { int F() { (int x, int y) a = (1, 2); return a.Item1 + a.Item2; } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll, references: s_valueTupleRefs); c.VerifyPdb("C.F", @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""F""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <tupleElementNames> <local elementNames=""|x|y"" slotIndex=""0"" localName=""a"" scopeStart=""0x0"" scopeEnd=""0x0"" /> </tupleElementNames> <encLocalSlotMap> <slot kind=""0"" offset=""17"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""19"" endLine=""1"" endColumn=""20"" document=""1"" /> <entry offset=""0x1"" startLine=""1"" startColumn=""21"" endLine=""1"" endColumn=""47"" document=""1"" /> <entry offset=""0x9"" startLine=""1"" startColumn=""48"" endLine=""1"" endColumn=""73"" document=""1"" /> <entry offset=""0x19"" startLine=""1"" startColumn=""74"" endLine=""1"" endColumn=""75"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x1b""> <local name=""a"" il_index=""0"" il_start=""0x0"" il_end=""0x1b"" attributes=""0"" /> </scope> </method> </methods> </symbols>"); } #endregion #region OutVar [Fact] public void SyntaxOffset_OutVarInConstructor() { var source = @" class B { B(out int z) { z = 2; } } class C { int F = G(out var v1); int P => G(out var v2); C() : base(out var v3) { G(out var v4); } int G(out int x) { x = 1; return 2; } } "; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyDiagnostics( // (9,13): error CS0236: A field initializer cannot reference the non-static field, method, or property 'C.G(out int)' // int F = G(out var v1); Diagnostic(ErrorCode.ERR_FieldInitRefNonstatic, "G").WithArguments("C.G(out int)").WithLocation(9, 13), // (13,7): error CS1729: 'object' does not contain a constructor that takes 1 arguments // : base(out var v3) Diagnostic(ErrorCode.ERR_BadCtorArgCount, "base").WithArguments("object", "1").WithLocation(13, 7)); } [Fact] public void SyntaxOffset_OutVarInMethod() { var source = @"class C { int G(out int x) { int z = 1; G(out var y); G(out var w); return x = y; } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.G", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""G"" parameterNames=""x""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""6"" /> <slot kind=""0"" offset=""23"" /> <slot kind=""0"" offset=""37"" /> <slot kind=""temp"" /> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""28"" endLine=""1"" endColumn=""29"" document=""1"" /> <entry offset=""0x1"" startLine=""1"" startColumn=""30"" endLine=""1"" endColumn=""40"" document=""1"" /> <entry offset=""0x3"" startLine=""1"" startColumn=""41"" endLine=""1"" endColumn=""54"" document=""1"" /> <entry offset=""0xc"" startLine=""1"" startColumn=""55"" endLine=""1"" endColumn=""68"" document=""1"" /> <entry offset=""0x15"" startLine=""1"" startColumn=""69"" endLine=""1"" endColumn=""82"" document=""1"" /> <entry offset=""0x1f"" startLine=""1"" startColumn=""83"" endLine=""1"" endColumn=""84"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x22""> <local name=""z"" il_index=""0"" il_start=""0x0"" il_end=""0x22"" attributes=""0"" /> <local name=""y"" il_index=""1"" il_start=""0x0"" il_end=""0x22"" attributes=""0"" /> <local name=""w"" il_index=""2"" il_start=""0x0"" il_end=""0x22"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_01() { var source = WithWindowsLineBreaks( @" class C : A { int x = G(out var x); int y {get;} = G(out var y); C() : base(G(out var z)) { } static int G(out int x) { throw null; } } class A { public A(int x) {} } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""-36"" /> <slot kind=""0"" offset=""-22"" /> <slot kind=""0"" offset=""-3"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""26"" document=""1"" /> <entry offset=""0xd"" startLine=""5"" startColumn=""20"" endLine=""5"" endColumn=""32"" document=""1"" /> <entry offset=""0x1a"" startLine=""7"" startColumn=""11"" endLine=""7"" endColumn=""29"" document=""1"" /> <entry offset=""0x28"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> <entry offset=""0x29"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2a""> <scope startOffset=""0x0"" endOffset=""0xd""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0xd"" attributes=""0"" /> </scope> <scope startOffset=""0xd"" endOffset=""0x1a""> <local name=""y"" il_index=""1"" il_start=""0xd"" il_end=""0x1a"" attributes=""0"" /> </scope> <scope startOffset=""0x1a"" endOffset=""0x2a""> <local name=""z"" il_index=""2"" il_start=""0x1a"" il_end=""0x2a"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_02() { var source = WithWindowsLineBreaks( @" class C : A { C() : base(G(out var x)) { int y = 1; y++; } static int G(out int x) { throw null; } } class A { public A(int x) {} } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""-3"" /> <slot kind=""0"" offset=""16"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""11"" endLine=""4"" endColumn=""29"" document=""1"" /> <entry offset=""0xe"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0xf"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""19"" document=""1"" /> <entry offset=""0x11"" startLine=""7"" startColumn=""9"" endLine=""7"" endColumn=""13"" document=""1"" /> <entry offset=""0x15"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x16""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x16"" attributes=""0"" /> <scope startOffset=""0xe"" endOffset=""0x16""> <local name=""y"" il_index=""1"" il_start=""0xe"" il_end=""0x16"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_03() { var source = WithWindowsLineBreaks( @" class C : A { C() : base(G(out var x)) => G(out var y); static int G(out int x) { throw null; } } class A { public A(int x) {} } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""-3"" /> <slot kind=""0"" offset=""13"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""11"" endLine=""4"" endColumn=""29"" document=""1"" /> <entry offset=""0xe"" startLine=""5"" startColumn=""8"" endLine=""5"" endColumn=""20"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x17""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x17"" attributes=""0"" /> <scope startOffset=""0xe"" endOffset=""0x17""> <local name=""y"" il_index=""1"" il_start=""0xe"" il_end=""0x17"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_04() { var source = WithWindowsLineBreaks( @" class C { static int G(out int x) { throw null; } static int F(System.Func<int> x) { throw null; } C() { } #line 2000 int y1 = G(out var z) + F(() => z); } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> <encLocalSlotMap> <slot kind=""30"" offset=""-25"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>2</methodOrdinal> <closure offset=""-25"" /> <lambda offset=""-2"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x6"" startLine=""2000"" startColumn=""5"" endLine=""2000"" endColumn=""40"" document=""1"" /> <entry offset=""0x29"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""8"" document=""1"" /> <entry offset=""0x30"" startLine=""14"" startColumn=""5"" endLine=""14"" endColumn=""6"" document=""1"" /> <entry offset=""0x31"" startLine=""15"" startColumn=""5"" endLine=""15"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x32""> <scope startOffset=""0x0"" endOffset=""0x29""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x29"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c__DisplayClass2_0.<.ctor>b__0", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c__DisplayClass2_0"" name=""&lt;.ctor&gt;b__0""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2000"" startColumn=""37"" endLine=""2000"" endColumn=""38"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_05() { var source = WithWindowsLineBreaks( @" class C { static int G(out int x) { throw null; } static int F(System.Func<int> x) { throw null; } #line 2000 int y1 { get; } = G(out var z) + F(() => z); } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> <encLocalSlotMap> <slot kind=""30"" offset=""-25"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>5</methodOrdinal> <closure offset=""-25"" /> <lambda offset=""-2"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x6"" startLine=""2000"" startColumn=""23"" endLine=""2000"" endColumn=""48"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x31""> <scope startOffset=""0x0"" endOffset=""0x29""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x29"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c__DisplayClass5_0.<.ctor>b__0", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c__DisplayClass5_0"" name=""&lt;.ctor&gt;b__0""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2000"" startColumn=""46"" endLine=""2000"" endColumn=""47"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_06() { var source = WithWindowsLineBreaks( @" class C { static int G(out int x) { throw null; } static int F(System.Func<int> x) { throw null; } #line 2000 int y1 = G(out var z) + F(() => z), y2 = G(out var u) + F(() => u); } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); var v = CompileAndVerify(c); v.VerifyIL("C..ctor", sequencePoints: "C..ctor", expectedIL: @" { // Code size 90 (0x5a) .maxstack 4 .locals init (C.<>c__DisplayClass4_0 V_0, //CS$<>8__locals0 C.<>c__DisplayClass4_1 V_1) //CS$<>8__locals1 ~IL_0000: newobj ""C.<>c__DisplayClass4_0..ctor()"" IL_0005: stloc.0 -IL_0006: ldarg.0 IL_0007: ldloc.0 IL_0008: ldflda ""int C.<>c__DisplayClass4_0.z"" IL_000d: call ""int C.G(out int)"" IL_0012: ldloc.0 IL_0013: ldftn ""int C.<>c__DisplayClass4_0.<.ctor>b__0()"" IL_0019: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_001e: call ""int C.F(System.Func<int>)"" IL_0023: add IL_0024: stfld ""int C.y1"" ~IL_0029: newobj ""C.<>c__DisplayClass4_1..ctor()"" IL_002e: stloc.1 -IL_002f: ldarg.0 IL_0030: ldloc.1 IL_0031: ldflda ""int C.<>c__DisplayClass4_1.u"" IL_0036: call ""int C.G(out int)"" IL_003b: ldloc.1 IL_003c: ldftn ""int C.<>c__DisplayClass4_1.<.ctor>b__1()"" IL_0042: newobj ""System.Func<int>..ctor(object, System.IntPtr)"" IL_0047: call ""int C.F(System.Func<int>)"" IL_004c: add IL_004d: stfld ""int C.y2"" IL_0052: ldarg.0 IL_0053: call ""object..ctor()"" IL_0058: nop IL_0059: ret } "); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> <encLocalSlotMap> <slot kind=""30"" offset=""-52"" /> <slot kind=""30"" offset=""-25"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>4</methodOrdinal> <closure offset=""-52"" /> <closure offset=""-25"" /> <lambda offset=""-29"" closure=""0"" /> <lambda offset=""-2"" closure=""1"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x6"" startLine=""2000"" startColumn=""5"" endLine=""2000"" endColumn=""39"" document=""1"" /> <entry offset=""0x29"" hidden=""true"" document=""1"" /> <entry offset=""0x2f"" startLine=""2000"" startColumn=""41"" endLine=""2000"" endColumn=""71"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x5a""> <scope startOffset=""0x0"" endOffset=""0x29""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x29"" attributes=""0"" /> </scope> <scope startOffset=""0x29"" endOffset=""0x52""> <local name=""CS$&lt;&gt;8__locals1"" il_index=""1"" il_start=""0x29"" il_end=""0x52"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c__DisplayClass4_0.<.ctor>b__0", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c__DisplayClass4_0"" name=""&lt;.ctor&gt;b__0""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2000"" startColumn=""37"" endLine=""2000"" endColumn=""38"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c__DisplayClass4_1.<.ctor>b__1", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c__DisplayClass4_1"" name=""&lt;.ctor&gt;b__1""> <customDebugInfo> <forward declaringType=""C"" methodName=""G"" parameterNames=""x"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2000"" startColumn=""69"" endLine=""2000"" endColumn=""70"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInInitializers_07() { var source = WithWindowsLineBreaks( @" class C : A { #line 2000 C() : base(G(out var z)+ F(() => z)) { } static int G(out int x) { throw null; } static int F(System.Func<int> x) { throw null; } } class A { public A(int x) {} } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""30"" offset=""-1"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""-1"" /> <lambda offset=""-3"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x6"" startLine=""2000"" startColumn=""11"" endLine=""2000"" endColumn=""41"" document=""1"" /> <entry offset=""0x2a"" startLine=""2001"" startColumn=""5"" endLine=""2001"" endColumn=""6"" document=""1"" /> <entry offset=""0x2b"" startLine=""2002"" startColumn=""5"" endLine=""2002"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x2c""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x2c"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c__DisplayClass0_0.<.ctor>b__0", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c__DisplayClass0_0"" name=""&lt;.ctor&gt;b__0""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2000"" startColumn=""38"" endLine=""2000"" endColumn=""39"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInQuery_01() { var source = WithWindowsLineBreaks( @" using System.Linq; class C { C() { var q = from a in new [] {1} where G(out var x1) > a select a; } static int G(out int x) { throw null; } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <lambda offset=""88"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""8"" document=""1"" /> <entry offset=""0x7"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""8"" startColumn=""9"" endLine=""11"" endColumn=""26"" document=""1"" /> <entry offset=""0x37"" startLine=""12"" startColumn=""5"" endLine=""12"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x38""> <namespace name=""System.Linq"" /> <scope startOffset=""0x7"" endOffset=""0x38""> <local name=""q"" il_index=""0"" il_start=""0x7"" il_end=""0x38"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c.<.ctor>b__0_0", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c"" name=""&lt;.ctor&gt;b__0_0"" parameterNames=""a""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> <encLocalSlotMap> <slot kind=""0"" offset=""98"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""23"" endLine=""10"" endColumn=""40"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0xb""> <local name=""x1"" il_index=""0"" il_start=""0x0"" il_end=""0xb"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInQuery_02() { var source = WithWindowsLineBreaks( @" using System.Linq; class C { C() #line 2000 { var q = from a in new [] {1} where G(out var x1) > F(() => x1) select a; } static int G(out int x) { throw null; } static int F(System.Func<int> x) { throw null; } } "); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C..ctor", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""15"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <closure offset=""88"" /> <lambda offset=""88"" /> <lambda offset=""112"" closure=""0"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""8"" document=""1"" /> <entry offset=""0x7"" startLine=""2000"" startColumn=""5"" endLine=""2000"" endColumn=""6"" document=""1"" /> <entry offset=""0x8"" startLine=""2001"" startColumn=""9"" endLine=""2004"" endColumn=""26"" document=""1"" /> <entry offset=""0x37"" startLine=""2005"" startColumn=""5"" endLine=""2005"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x38""> <namespace name=""System.Linq"" /> <scope startOffset=""0x7"" endOffset=""0x38""> <local name=""q"" il_index=""0"" il_start=""0x7"" il_end=""0x38"" attributes=""0"" /> </scope> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c.<.ctor>b__0_0", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c"" name=""&lt;.ctor&gt;b__0_0"" parameterNames=""a""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> <encLocalSlotMap> <slot kind=""30"" offset=""88"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x6"" startLine=""2003"" startColumn=""23"" endLine=""2003"" endColumn=""50"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x25""> <local name=""CS$&lt;&gt;8__locals0"" il_index=""0"" il_start=""0x0"" il_end=""0x25"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); c.VerifyPdb("C+<>c__DisplayClass0_0.<.ctor>b__1", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C+&lt;&gt;c__DisplayClass0_0"" name=""&lt;.ctor&gt;b__1""> <customDebugInfo> <forward declaringType=""C"" methodName="".ctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""2003"" startColumn=""47"" endLine=""2003"" endColumn=""49"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> "); } [Fact] public void SyntaxOffset_OutVarInSwitchExpression() { var source = @"class C { static object G() => N(out var x) switch { null => x switch {1 => 1, _ => 2 }, _ => 1 }; static object N(out int x) { x = 1; return null; } }"; var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb("C.G", @" <symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""G""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""0"" offset=""13"" /> <slot kind=""temp"" /> <slot kind=""35"" offset=""16"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""32"" endLine=""1"" endColumn=""99"" document=""1"" /> <entry offset=""0xb"" startLine=""1"" startColumn=""45"" endLine=""1"" endColumn=""99"" document=""1"" /> <entry offset=""0xc"" hidden=""true"" document=""1"" /> <entry offset=""0x11"" hidden=""true"" document=""1"" /> <entry offset=""0x14"" startLine=""1"" startColumn=""64"" endLine=""1"" endColumn=""89"" document=""1"" /> <entry offset=""0x15"" hidden=""true"" document=""1"" /> <entry offset=""0x1b"" startLine=""1"" startColumn=""78"" endLine=""1"" endColumn=""79"" document=""1"" /> <entry offset=""0x1f"" startLine=""1"" startColumn=""86"" endLine=""1"" endColumn=""87"" document=""1"" /> <entry offset=""0x23"" hidden=""true"" document=""1"" /> <entry offset=""0x26"" startLine=""1"" startColumn=""45"" endLine=""1"" endColumn=""99"" document=""1"" /> <entry offset=""0x27"" startLine=""1"" startColumn=""62"" endLine=""1"" endColumn=""89"" document=""1"" /> <entry offset=""0x2b"" startLine=""1"" startColumn=""96"" endLine=""1"" endColumn=""97"" document=""1"" /> <entry offset=""0x2f"" hidden=""true"" document=""1"" /> <entry offset=""0x32"" startLine=""1"" startColumn=""32"" endLine=""1"" endColumn=""99"" document=""1"" /> <entry offset=""0x33"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x3a""> <local name=""x"" il_index=""0"" il_start=""0x0"" il_end=""0x3a"" attributes=""0"" /> </scope> </method> </methods> </symbols> "); } #endregion [WorkItem(4370, "https://github.com/dotnet/roslyn/issues/4370")] [Fact] public void HeadingHiddenSequencePointsPickUpDocumentFromVisibleSequencePoint() { var source = WithWindowsLineBreaks( @"#line 1 ""C:\Async.cs"" #pragma checksum ""C:\Async.cs"" ""{ff1816ec-aa5e-4d10-87f7-6f4963833460}"" ""DBEB2A067B2F0E0D678A002C587A2806056C3DCE"" using System.Threading.Tasks; public class C { public async void M1() { } } "); var tree = SyntaxFactory.ParseSyntaxTree(source, encoding: Encoding.UTF8, path: "HIDDEN.cs"); var c = CSharpCompilation.Create("Compilation", new[] { tree }, new[] { MscorlibRef_v46 }, options: TestOptions.DebugDll.WithDebugPlusMode(true)); c.VerifyPdb( @"<symbols> <files> <file id=""1"" name=""C:\Async.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""DB-EB-2A-06-7B-2F-0E-0D-67-8A-00-2C-58-7A-28-06-05-6C-3D-CE"" /> <file id=""2"" name=""HIDDEN.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""8A-92-EE-2F-D6-6F-C0-69-F4-A8-54-CB-11-BE-A3-06-76-2C-9C-98"" /> </files> <methods> <method containingType=""C"" name=""M1""> <customDebugInfo> <forwardIterator name=""&lt;M1&gt;d__0"" /> </customDebugInfo> </method> <method containingType=""C+&lt;M1&gt;d__0"" name=""MoveNext""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> <encLocalSlotMap> <slot kind=""27"" offset=""0"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""1"" /> <entry offset=""0xa"" hidden=""true"" document=""1"" /> <entry offset=""0x22"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> <entry offset=""0x2a"" hidden=""true"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x37""> <namespace name=""System.Threading.Tasks"" /> </scope> <asyncInfo> <catchHandler offset=""0xa"" /> <kickoffMethod declaringType=""C"" methodName=""M1"" /> </asyncInfo> </method> </methods> </symbols> ", format: DebugInformationFormat.Pdb); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""HIDDEN.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""8A-92-EE-2F-D6-6F-C0-69-F4-A8-54-CB-11-BE-A3-06-76-2C-9C-98"" /> <file id=""2"" name=""C:\Async.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""DB-EB-2A-06-7B-2F-0E-0D-67-8A-00-2C-58-7A-28-06-05-6C-3D-CE"" /> </files> <methods> <method containingType=""C+&lt;M1&gt;d__0"" name=""MoveNext""> <customDebugInfo> <encLocalSlotMap> <slot kind=""27"" offset=""0"" /> <slot kind=""temp"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""2"" /> <entry offset=""0x7"" startLine=""8"" startColumn=""5"" endLine=""8"" endColumn=""6"" document=""2"" /> <entry offset=""0xa"" hidden=""true"" document=""2"" /> <entry offset=""0x22"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""2"" /> <entry offset=""0x2a"" hidden=""true"" document=""2"" /> </sequencePoints> <asyncInfo> <catchHandler offset=""0xa"" /> <kickoffMethod declaringType=""C"" methodName=""M1"" /> </asyncInfo> </method> </methods> </symbols>", format: DebugInformationFormat.PortablePdb); } [WorkItem(12923, "https://github.com/dotnet/roslyn/issues/12923")] [Fact] public void SequencePointsForConstructorWithHiddenInitializer() { string initializerSource = WithWindowsLineBreaks(@" #line hidden partial class C { int i = 42; } "); string constructorSource = WithWindowsLineBreaks(@" partial class C { C() { } } "); var c = CreateCompilation( new[] { Parse(initializerSource, "initializer.cs"), Parse(constructorSource, "constructor.cs") }, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""constructor.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""EA-D6-0A-16-6C-6A-BC-C1-5D-98-0F-B7-4B-78-13-93-FB-C7-C2-5A"" /> <file id=""2"" name=""initializer.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""84-32-24-D7-FE-32-63-BA-41-D5-17-A2-D5-90-23-B8-12-3C-AF-D5"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""1"" /> <entry offset=""0x8"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""8"" document=""1"" /> <entry offset=""0xf"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""1"" /> <entry offset=""0x10"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols> ", format: DebugInformationFormat.Pdb); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""initializer.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""84-32-24-D7-FE-32-63-BA-41-D5-17-A2-D5-90-23-B8-12-3C-AF-D5"" /> <file id=""2"" name=""constructor.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""EA-D6-0A-16-6C-6A-BC-C1-5D-98-0F-B7-4B-78-13-93-FB-C7-C2-5A"" /> </files> <methods> <method containingType=""C"" name="".ctor""> <sequencePoints> <entry offset=""0x0"" hidden=""true"" document=""2"" /> <entry offset=""0x8"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""8"" document=""2"" /> <entry offset=""0xf"" startLine=""5"" startColumn=""5"" endLine=""5"" endColumn=""6"" document=""2"" /> <entry offset=""0x10"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""2"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.PortablePdb); } [WorkItem(14437, "https://github.com/dotnet/roslyn/issues/14437")] [Fact] public void LocalFunctionSequencePoints() { string source = WithWindowsLineBreaks( @"class Program { static int Main(string[] args) { // 4 int Local1(string[] a) => a.Length; // 7 int Local2(string[] a) { // 9 return a.Length; // 10 } // 11 return Local1(args) + Local2(args); // 12 } // 13 }"); var c = CreateCompilationWithMscorlib40AndSystemCore(source, options: TestOptions.DebugDll); c.VerifyPdb( @"<symbols> <files> <file id=""1"" name="""" language=""C#"" /> </files> <methods> <method containingType=""Program"" name=""Main"" parameterNames=""args""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> <encLocalSlotMap> <slot kind=""21"" offset=""0"" /> </encLocalSlotMap> <encLambdaMap> <methodOrdinal>0</methodOrdinal> <lambda offset=""115"" /> <lambda offset=""202"" /> </encLambdaMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""4"" startColumn=""5"" endLine=""4"" endColumn=""6"" document=""1"" /> <entry offset=""0x3"" startLine=""12"" startColumn=""9"" endLine=""12"" endColumn=""44"" document=""1"" /> <entry offset=""0x13"" startLine=""13"" startColumn=""5"" endLine=""13"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> <method containingType=""Program"" name=""&lt;Main&gt;g__Local1|0_0"" parameterNames=""a""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Main"" parameterNames=""args"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""13"" endLine=""7"" endColumn=""21"" document=""1"" /> </sequencePoints> </method> <method containingType=""Program"" name=""&lt;Main&gt;g__Local2|0_1"" parameterNames=""a""> <customDebugInfo> <forward declaringType=""Program"" methodName=""Main"" parameterNames=""args"" /> <encLocalSlotMap> <slot kind=""21"" offset=""202"" /> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""9"" startColumn=""9"" endLine=""9"" endColumn=""10"" document=""1"" /> <entry offset=""0x1"" startLine=""10"" startColumn=""13"" endLine=""10"" endColumn=""29"" document=""1"" /> <entry offset=""0x7"" startLine=""11"" startColumn=""9"" endLine=""11"" endColumn=""10"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void SwitchInAsyncMethod() { var source = @" using System; class Program { public static async void Test() { int i = 0; switch (i) { case 1: break; } } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 89 (0x59) .maxstack 2 .locals init (int V_0, int V_1, System.Exception V_2) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = 0; IL_0008: ldarg.0 IL_0009: ldc.i4.0 IL_000a: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: switch (i) IL_000f: ldarg.0 IL_0010: ldarg.0 IL_0011: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_0016: stloc.1 // sequence point: <hidden> IL_0017: ldloc.1 IL_0018: stfld ""int Program.<Test>d__0.<>s__2"" // sequence point: <hidden> IL_001d: ldarg.0 IL_001e: ldfld ""int Program.<Test>d__0.<>s__2"" IL_0023: ldc.i4.1 IL_0024: beq.s IL_0028 IL_0026: br.s IL_002a // sequence point: break; IL_0028: br.s IL_002a // sequence point: <hidden> IL_002a: leave.s IL_0044 } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_002c: stloc.2 IL_002d: ldarg.0 IL_002e: ldc.i4.s -2 IL_0030: stfld ""int Program.<Test>d__0.<>1__state"" IL_0035: ldarg.0 IL_0036: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_003b: ldloc.2 IL_003c: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_0041: nop IL_0042: leave.s IL_0058 } // sequence point: } IL_0044: ldarg.0 IL_0045: ldc.i4.s -2 IL_0047: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_004c: ldarg.0 IL_004d: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0052: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_0057: nop IL_0058: ret }", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void WhileInAsyncMethod() { var source = @" using System; class Program { public static async void Test() { int i = 0; while (i == 1) Console.WriteLine(); } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 83 (0x53) .maxstack 2 .locals init (int V_0, bool V_1, System.Exception V_2) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = 0; IL_0008: ldarg.0 IL_0009: ldc.i4.0 IL_000a: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: <hidden> IL_000f: br.s IL_0017 // sequence point: Console.WriteLine(); IL_0011: call ""void System.Console.WriteLine()"" IL_0016: nop // sequence point: while (i == 1) IL_0017: ldarg.0 IL_0018: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_001d: ldc.i4.1 IL_001e: ceq IL_0020: stloc.1 // sequence point: <hidden> IL_0021: ldloc.1 IL_0022: brtrue.s IL_0011 IL_0024: leave.s IL_003e } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_0026: stloc.2 IL_0027: ldarg.0 IL_0028: ldc.i4.s -2 IL_002a: stfld ""int Program.<Test>d__0.<>1__state"" IL_002f: ldarg.0 IL_0030: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0035: ldloc.2 IL_0036: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_003b: nop IL_003c: leave.s IL_0052 } // sequence point: } IL_003e: ldarg.0 IL_003f: ldc.i4.s -2 IL_0041: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_0046: ldarg.0 IL_0047: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_004c: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_0051: nop IL_0052: ret } ", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ForInAsyncMethod() { var source = @" using System; class Program { public static async void Test() { for (int i = 0; i > 1; i--) Console.WriteLine(); } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 99 (0x63) .maxstack 3 .locals init (int V_0, int V_1, bool V_2, System.Exception V_3) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = 0 IL_0008: ldarg.0 IL_0009: ldc.i4.0 IL_000a: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: <hidden> IL_000f: br.s IL_0027 // sequence point: Console.WriteLine(); IL_0011: call ""void System.Console.WriteLine()"" IL_0016: nop // sequence point: i-- IL_0017: ldarg.0 IL_0018: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_001d: stloc.1 IL_001e: ldarg.0 IL_001f: ldloc.1 IL_0020: ldc.i4.1 IL_0021: sub IL_0022: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: i > 1 IL_0027: ldarg.0 IL_0028: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_002d: ldc.i4.1 IL_002e: cgt IL_0030: stloc.2 // sequence point: <hidden> IL_0031: ldloc.2 IL_0032: brtrue.s IL_0011 IL_0034: leave.s IL_004e } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_0036: stloc.3 IL_0037: ldarg.0 IL_0038: ldc.i4.s -2 IL_003a: stfld ""int Program.<Test>d__0.<>1__state"" IL_003f: ldarg.0 IL_0040: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0045: ldloc.3 IL_0046: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_004b: nop IL_004c: leave.s IL_0062 } // sequence point: } IL_004e: ldarg.0 IL_004f: ldc.i4.s -2 IL_0051: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_0056: ldarg.0 IL_0057: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_005c: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_0061: nop IL_0062: ret } ", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); } [Fact] [WorkItem(12564, "https://github.com/dotnet/roslyn/issues/12564")] public void ForWithInnerLocalsInAsyncMethod() { var source = @" using System; class Program { public static async void Test() { for (int i = M(out var x); i > 1; i--) Console.WriteLine(); } public static int M(out int x) { x = 0; return 0; } } "; var v = CompileAndVerify(source, options: TestOptions.DebugDll); v.VerifyIL("Program.<Test>d__0.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext()", @" { // Code size 109 (0x6d) .maxstack 3 .locals init (int V_0, int V_1, bool V_2, System.Exception V_3) // sequence point: <hidden> IL_0000: ldarg.0 IL_0001: ldfld ""int Program.<Test>d__0.<>1__state"" IL_0006: stloc.0 .try { // sequence point: { IL_0007: nop // sequence point: int i = M(out var x) IL_0008: ldarg.0 IL_0009: ldarg.0 IL_000a: ldflda ""int Program.<Test>d__0.<x>5__2"" IL_000f: call ""int Program.M(out int)"" IL_0014: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: <hidden> IL_0019: br.s IL_0031 // sequence point: Console.WriteLine(); IL_001b: call ""void System.Console.WriteLine()"" IL_0020: nop // sequence point: i-- IL_0021: ldarg.0 IL_0022: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_0027: stloc.1 IL_0028: ldarg.0 IL_0029: ldloc.1 IL_002a: ldc.i4.1 IL_002b: sub IL_002c: stfld ""int Program.<Test>d__0.<i>5__1"" // sequence point: i > 1 IL_0031: ldarg.0 IL_0032: ldfld ""int Program.<Test>d__0.<i>5__1"" IL_0037: ldc.i4.1 IL_0038: cgt IL_003a: stloc.2 // sequence point: <hidden> IL_003b: ldloc.2 IL_003c: brtrue.s IL_001b IL_003e: leave.s IL_0058 } catch System.Exception { // async: catch handler, sequence point: <hidden> IL_0040: stloc.3 IL_0041: ldarg.0 IL_0042: ldc.i4.s -2 IL_0044: stfld ""int Program.<Test>d__0.<>1__state"" IL_0049: ldarg.0 IL_004a: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_004f: ldloc.3 IL_0050: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetException(System.Exception)"" IL_0055: nop IL_0056: leave.s IL_006c } // sequence point: } IL_0058: ldarg.0 IL_0059: ldc.i4.s -2 IL_005b: stfld ""int Program.<Test>d__0.<>1__state"" // sequence point: <hidden> IL_0060: ldarg.0 IL_0061: ldflda ""System.Runtime.CompilerServices.AsyncVoidMethodBuilder Program.<Test>d__0.<>t__builder"" IL_0066: call ""void System.Runtime.CompilerServices.AsyncVoidMethodBuilder.SetResult()"" IL_006b: nop IL_006c: ret } ", sequencePoints: "Program+<Test>d__0.MoveNext", source: source); } [ConditionalFact(typeof(WindowsDesktopOnly), Reason = ConditionalSkipReason.NativePdbRequiresDesktop)] [WorkItem(23525, "https://github.com/dotnet/roslyn/issues/23525")] public void InvalidCharacterInPdbPath() { using (var outStream = Temp.CreateFile().Open()) { var compilation = CreateCompilation(""); var result = compilation.Emit(outStream, options: new EmitOptions(pdbFilePath: "test\\?.pdb", debugInformationFormat: DebugInformationFormat.Embedded)); // This is fine because EmitOptions just controls what is written into the PE file and it's // valid for this to be an illegal file name (path map can easily create these). Assert.True(result.Success); } } [Fact] [WorkItem(38954, "https://github.com/dotnet/roslyn/issues/38954")] public void FilesOneWithNoMethodBody() { string source1 = WithWindowsLineBreaks(@" using System; class C { public static void Main() { Console.WriteLine(); } } "); string source2 = WithWindowsLineBreaks(@" // no code "); var tree1 = Parse(source1, "f:/build/goo.cs"); var tree2 = Parse(source2, "f:/build/nocode.cs"); var c = CreateCompilation(new[] { tree1, tree2 }, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""f:/build/goo.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""5D-7D-CF-1B-79-12-0E-0A-80-13-E0-98-7E-5C-AA-3B-63-D8-7E-4F"" /> <file id=""2"" name=""f:/build/nocode.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""8B-1D-3F-75-E0-A8-8F-90-B2-D3-52-CF-71-9B-17-29-3C-70-7A-42"" /> </files> <methods> <method containingType=""C"" name=""Main""> <customDebugInfo> <using> <namespace usingCount=""1"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""7"" startColumn=""5"" endLine=""7"" endColumn=""6"" document=""1"" /> <entry offset=""0x1"" startLine=""8"" startColumn=""9"" endLine=""8"" endColumn=""29"" document=""1"" /> <entry offset=""0x7"" startLine=""9"" startColumn=""5"" endLine=""9"" endColumn=""6"" document=""1"" /> </sequencePoints> <scope startOffset=""0x0"" endOffset=""0x8""> <namespace name=""System"" /> </scope> </method> </methods> </symbols> "); } [Fact] [WorkItem(38954, "https://github.com/dotnet/roslyn/issues/38954")] public void SingleFileWithNoMethodBody() { string source = WithWindowsLineBreaks(@" // no code "); var tree = Parse(source, "f:/build/nocode.cs"); var c = CreateCompilation(new[] { tree }, options: TestOptions.DebugDll); c.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""f:/build/nocode.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""8B-1D-3F-75-E0-A8-8F-90-B2-D3-52-CF-71-9B-17-29-3C-70-7A-42"" /> </files> <methods /> </symbols> "); } } }
1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/Core/Portable/NativePdbWriter/PdbWriter.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Security.Cryptography; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.DiaSymReader; using Roslyn.Utilities; namespace Microsoft.Cci { internal sealed class PdbWriter : IDisposable { internal const uint Age = 1; private readonly HashAlgorithmName _hashAlgorithmNameOpt; private readonly string _fileName; private readonly Func<ISymWriterMetadataProvider, SymUnmanagedWriter> _symWriterFactory; private readonly Dictionary<DebugSourceDocument, int> _documentIndex; private MetadataWriter _metadataWriter; private SymUnmanagedWriter _symWriter; private SymUnmanagedSequencePointsWriter _sequencePointsWriter; // { INamespace or ITypeReference -> qualified name } private readonly Dictionary<object, string> _qualifiedNameCache; // in support of determinism private bool IsDeterministic { get => _hashAlgorithmNameOpt.Name != null; } public PdbWriter(string fileName, Func<ISymWriterMetadataProvider, SymUnmanagedWriter> symWriterFactory, HashAlgorithmName hashAlgorithmNameOpt) { _fileName = fileName; _symWriterFactory = symWriterFactory; _hashAlgorithmNameOpt = hashAlgorithmNameOpt; _documentIndex = new Dictionary<DebugSourceDocument, int>(); _qualifiedNameCache = new Dictionary<object, string>(ReferenceEqualityComparer.Instance); } public void WriteTo(Stream stream) { _symWriter.WriteTo(stream); } public void Dispose() { _symWriter?.Dispose(); } private CommonPEModuleBuilder Module => Context.Module; private EmitContext Context => _metadataWriter.Context; public void SerializeDebugInfo(IMethodBody methodBody, StandaloneSignatureHandle localSignatureHandleOpt, CustomDebugInfoWriter customDebugInfoWriter) { Debug.Assert(_metadataWriter != null); // A state machine kickoff method doesn't have sequence points as it only contains generated code. // We could avoid emitting debug info for it if the corresponding MoveNext method had no sequence points, // but there is no real need for such optimization. // // Special case a hidden entry point (#line hidden applied) that would otherwise have no debug info. // This is to accommodate for a requirement of Windows PDB writer that the entry point method must have some debug information. bool isKickoffMethod = methodBody.StateMachineTypeName != null; bool emitDebugInfo = isKickoffMethod || !methodBody.SequencePoints.IsEmpty || methodBody.MethodDefinition == (Context.Module.DebugEntryPoint ?? Context.Module.PEEntryPoint); if (!emitDebugInfo) { return; } var methodHandle = (MethodDefinitionHandle)_metadataWriter.GetMethodHandle(methodBody.MethodDefinition); int methodToken = MetadataTokens.GetToken(methodHandle); OpenMethod(methodToken, methodBody.MethodDefinition); var localScopes = methodBody.LocalScopes; // Define locals, constants and namespaces in the outermost local scope (opened in OpenMethod): if (localScopes.Length > 0) { this.DefineScopeLocals(localScopes[0], localSignatureHandleOpt); } if (!isKickoffMethod && methodBody.ImportScope != null) { IMethodDefinition forwardToMethod; if (customDebugInfoWriter.ShouldForwardNamespaceScopes(Context, methodBody, methodHandle, out forwardToMethod)) { if (forwardToMethod != null) { UsingNamespace("@" + MetadataTokens.GetToken(_metadataWriter.GetMethodHandle(forwardToMethod)), methodBody.MethodDefinition); } // otherwise, the forwarding is done via custom debug info } else { this.DefineNamespaceScopes(methodBody); } } DefineLocalScopes(localScopes, localSignatureHandleOpt); EmitSequencePoints(methodBody.SequencePoints); if (methodBody.MoveNextBodyInfo is AsyncMoveNextBodyDebugInfo asyncMoveNextInfo) { _symWriter.SetAsyncInfo( methodToken, MetadataTokens.GetToken(_metadataWriter.GetMethodHandle(asyncMoveNextInfo.KickoffMethod)), asyncMoveNextInfo.CatchHandlerOffset, asyncMoveNextInfo.YieldOffsets.AsSpan(), asyncMoveNextInfo.ResumeOffsets.AsSpan()); } var compilationOptions = Context.Module.CommonCompilation.Options; // We need to avoid emitting CDI DynamicLocals = 5 and EditAndContinueLocalSlotMap = 6 for files processed by WinMDExp until // bug #1067635 is fixed and available in SDK. bool suppressNewCustomDebugInfo = compilationOptions.OutputKind == OutputKind.WindowsRuntimeMetadata; // delta doesn't need this information - we use information recorded by previous generation emit bool emitEncInfo = compilationOptions.EnableEditAndContinue && _metadataWriter.IsFullMetadata; bool emitExternNamespaces; byte[] blob = customDebugInfoWriter.SerializeMethodDebugInfo(Context, methodBody, methodHandle, emitEncInfo, suppressNewCustomDebugInfo, out emitExternNamespaces); if (blob != null) { _symWriter.DefineCustomMetadata(blob); } if (emitExternNamespaces) { DefineAssemblyReferenceAliases(); } CloseMethod(methodBody.IL.Length); } private void DefineNamespaceScopes(IMethodBody methodBody) { var module = Module; bool isVisualBasic = module.GenerateVisualBasicStylePdb; IMethodDefinition method = methodBody.MethodDefinition; var namespaceScopes = methodBody.ImportScope; PooledHashSet<string> lazyDeclaredExternAliases = null; if (!isVisualBasic) { for (var scope = namespaceScopes; scope != null; scope = scope.Parent) { foreach (var import in scope.GetUsedNamespaces()) { if (import.TargetNamespaceOpt == null && import.TargetTypeOpt == null) { Debug.Assert(import.AliasOpt != null); Debug.Assert(import.TargetAssemblyOpt == null); if (lazyDeclaredExternAliases == null) { lazyDeclaredExternAliases = PooledHashSet<string>.GetInstance(); } lazyDeclaredExternAliases.Add(import.AliasOpt); } } } } // file and namespace level for (IImportScope scope = namespaceScopes; scope != null; scope = scope.Parent) { foreach (UsedNamespaceOrType import in scope.GetUsedNamespaces()) { var importString = TryEncodeImport(import, lazyDeclaredExternAliases, isProjectLevel: false); if (importString != null) { UsingNamespace(importString, method); } } } lazyDeclaredExternAliases?.Free(); // project level if (isVisualBasic) { string defaultNamespace = module.DefaultNamespace; if (!string.IsNullOrEmpty(defaultNamespace)) { // VB marks the default/root namespace with an asterisk UsingNamespace("*" + defaultNamespace, module); } foreach (string assemblyName in module.LinkedAssembliesDebugInfo) { UsingNamespace("&" + assemblyName, module); } foreach (UsedNamespaceOrType import in module.GetImports()) { var importString = TryEncodeImport(import, null, isProjectLevel: true); if (importString != null) { UsingNamespace(importString, method); } } // VB current namespace -- VB appends the namespace of the container without prefixes UsingNamespace(GetOrCreateSerializedNamespaceName(method.ContainingNamespace), method); } } private void DefineAssemblyReferenceAliases() { foreach (AssemblyReferenceAlias alias in Module.GetAssemblyReferenceAliases(Context)) { UsingNamespace("Z" + alias.Name + " " + alias.Assembly.Identity.GetDisplayName(), Module); } } private string TryEncodeImport(UsedNamespaceOrType import, HashSet<string> declaredExternAliasesOpt, bool isProjectLevel) { // NOTE: Dev12 has related cases "I" and "O" in EMITTER::ComputeDebugNamespace, // but they were probably implementation details that do not affect Roslyn. if (Module.GenerateVisualBasicStylePdb) { // VB doesn't support extern aliases Debug.Assert(import.TargetAssemblyOpt == null); Debug.Assert(declaredExternAliasesOpt == null); if (import.TargetTypeOpt != null) { Debug.Assert(import.TargetNamespaceOpt == null); Debug.Assert(import.TargetAssemblyOpt == null); // Native compiler doesn't write imports with generic types to PDB. if (import.TargetTypeOpt.IsTypeSpecification()) { return null; } string typeName = GetOrCreateSerializedTypeName(import.TargetTypeOpt); if (import.AliasOpt != null) { return (isProjectLevel ? "@PA:" : "@FA:") + import.AliasOpt + "=" + typeName; } else { return (isProjectLevel ? "@PT:" : "@FT:") + typeName; } } if (import.TargetNamespaceOpt != null) { string namespaceName = GetOrCreateSerializedNamespaceName(import.TargetNamespaceOpt); if (import.AliasOpt == null) { return (isProjectLevel ? "@P:" : "@F:") + namespaceName; } else { return (isProjectLevel ? "@PA:" : "@FA:") + import.AliasOpt + "=" + namespaceName; } } Debug.Assert(import.AliasOpt != null); Debug.Assert(import.TargetXmlNamespaceOpt != null); return (isProjectLevel ? "@PX:" : "@FX:") + import.AliasOpt + "=" + import.TargetXmlNamespaceOpt; } Debug.Assert(import.TargetXmlNamespaceOpt == null); if (import.TargetTypeOpt != null) { Debug.Assert(import.TargetNamespaceOpt == null); Debug.Assert(import.TargetAssemblyOpt == null); string typeName = GetOrCreateSerializedTypeName(import.TargetTypeOpt); return (import.AliasOpt != null) ? "A" + import.AliasOpt + " T" + typeName : "T" + typeName; } if (import.TargetNamespaceOpt != null) { string namespaceName = GetOrCreateSerializedNamespaceName(import.TargetNamespaceOpt); if (import.AliasOpt != null) { return (import.TargetAssemblyOpt != null) ? "A" + import.AliasOpt + " E" + namespaceName + " " + GetAssemblyReferenceAlias(import.TargetAssemblyOpt, declaredExternAliasesOpt) : "A" + import.AliasOpt + " U" + namespaceName; } else { return (import.TargetAssemblyOpt != null) ? "E" + namespaceName + " " + GetAssemblyReferenceAlias(import.TargetAssemblyOpt, declaredExternAliasesOpt) : "U" + namespaceName; } } Debug.Assert(import.AliasOpt != null); Debug.Assert(import.TargetAssemblyOpt == null); return "X" + import.AliasOpt; } internal string GetOrCreateSerializedNamespaceName(INamespace @namespace) { string result; if (!_qualifiedNameCache.TryGetValue(@namespace, out result)) { result = TypeNameSerializer.BuildQualifiedNamespaceName(@namespace); _qualifiedNameCache.Add(@namespace, result); } return result; } internal string GetOrCreateSerializedTypeName(ITypeReference typeReference) { string result; if (!_qualifiedNameCache.TryGetValue(typeReference, out result)) { if (Module.GenerateVisualBasicStylePdb) { result = SerializeVisualBasicImportTypeReference(typeReference); } else { result = typeReference.GetSerializedTypeName(Context); } _qualifiedNameCache.Add(typeReference, result); } return result; } private string SerializeVisualBasicImportTypeReference(ITypeReference typeReference) { Debug.Assert(!(typeReference is IArrayTypeReference)); Debug.Assert(!(typeReference is IPointerTypeReference)); Debug.Assert(!typeReference.IsTypeSpecification()); var result = PooledStringBuilder.GetInstance(); ArrayBuilder<string> nestedNamesReversed; INestedTypeReference nestedType = typeReference.AsNestedTypeReference; if (nestedType != null) { nestedNamesReversed = ArrayBuilder<string>.GetInstance(); while (nestedType != null) { nestedNamesReversed.Add(nestedType.Name); typeReference = nestedType.GetContainingType(_metadataWriter.Context); nestedType = typeReference.AsNestedTypeReference; } } else { nestedNamesReversed = null; } INamespaceTypeReference namespaceType = typeReference.AsNamespaceTypeReference; Debug.Assert(namespaceType != null); string namespaceName = namespaceType.NamespaceName; if (namespaceName.Length != 0) { result.Builder.Append(namespaceName); result.Builder.Append('.'); } result.Builder.Append(namespaceType.Name); if (nestedNamesReversed != null) { for (int i = nestedNamesReversed.Count - 1; i >= 0; i--) { result.Builder.Append('.'); result.Builder.Append(nestedNamesReversed[i]); } nestedNamesReversed.Free(); } return result.ToStringAndFree(); } private string GetAssemblyReferenceAlias(IAssemblyReference assembly, HashSet<string> declaredExternAliases) { // no extern alias defined in scope at all -> error in compiler Debug.Assert(declaredExternAliases != null); var allAliases = _metadataWriter.Context.Module.GetAssemblyReferenceAliases(_metadataWriter.Context); foreach (AssemblyReferenceAlias alias in allAliases) { // Multiple aliases may be given to an assembly reference. // We find one that is in scope (was imported via extern alias directive). // If multiple are in scope then use the first one. // NOTE: Dev12 uses the one that appeared in source, whereas we use // the first one that COULD have appeared in source. (DevDiv #913022) // The reason we're not just using the alias from the syntax is that // it is non-trivial to locate. In particular, since "." may be used in // place of "::", determining whether the first identifier in the name is // the alias requires binding. For example, "using A.B;" could refer to // either "A::B" or "global::A.B". if (assembly == alias.Assembly && declaredExternAliases.Contains(alias.Name)) { return alias.Name; } } // no alias defined in scope for given assembly -> error in compiler throw ExceptionUtilities.Unreachable; } private void DefineLocalScopes(ImmutableArray<LocalScope> scopes, StandaloneSignatureHandle localSignatureHandleOpt) { // VB scope ranges are end-inclusive bool endInclusive = this.Module.GenerateVisualBasicStylePdb; // The order of OpenScope and CloseScope calls must follow the scope nesting. var scopeStack = ArrayBuilder<LocalScope>.GetInstance(); for (int i = 1; i < scopes.Length; i++) { var currentScope = scopes[i]; // Close any scopes that have finished. while (scopeStack.Count > 0) { LocalScope topScope = scopeStack.Last(); if (currentScope.StartOffset < topScope.StartOffset + topScope.Length) { break; } scopeStack.RemoveLast(); _symWriter.CloseScope(endInclusive ? topScope.EndOffset - 1 : topScope.EndOffset); } // Open this scope. scopeStack.Add(currentScope); _symWriter.OpenScope(currentScope.StartOffset); DefineScopeLocals(currentScope, localSignatureHandleOpt); } // Close remaining scopes. for (int i = scopeStack.Count - 1; i >= 0; i--) { LocalScope scope = scopeStack[i]; _symWriter.CloseScope(endInclusive ? scope.EndOffset - 1 : scope.EndOffset); } scopeStack.Free(); } private void DefineScopeLocals(LocalScope currentScope, StandaloneSignatureHandle localSignatureHandleOpt) { foreach (ILocalDefinition scopeConstant in currentScope.Constants) { var signatureHandle = _metadataWriter.SerializeLocalConstantStandAloneSignature(scopeConstant); if (!_metadataWriter.IsLocalNameTooLong(scopeConstant)) { _symWriter.DefineLocalConstant( scopeConstant.Name, scopeConstant.CompileTimeValue.Value, MetadataTokens.GetToken(signatureHandle)); } } foreach (ILocalDefinition scopeLocal in currentScope.Variables) { if (!_metadataWriter.IsLocalNameTooLong(scopeLocal)) { Debug.Assert(scopeLocal.SlotIndex >= 0); _symWriter.DefineLocalVariable( scopeLocal.SlotIndex, scopeLocal.Name, (int)scopeLocal.PdbAttributes, localSignatureHandleOpt.IsNil ? 0 : MetadataTokens.GetToken(localSignatureHandleOpt)); } } } public void SetMetadataEmitter(MetadataWriter metadataWriter) { // Do not look for COM registered diasymreader when determinism is needed as it doesn't support it. var options = (IsDeterministic ? SymUnmanagedWriterCreationOptions.Deterministic : SymUnmanagedWriterCreationOptions.UseComRegistry) | SymUnmanagedWriterCreationOptions.UseAlternativeLoadPath; var metadataProvider = new SymWriterMetadataProvider(metadataWriter); SymUnmanagedWriter symWriter; try { symWriter = (_symWriterFactory != null) ? _symWriterFactory(metadataProvider) : SymUnmanagedWriterFactory.CreateWriter(metadataProvider, options); } catch (DllNotFoundException e) { throw new SymUnmanagedWriterException(e.Message); } catch (SymUnmanagedWriterException e) when (e.InnerException is NotSupportedException) { var message = IsDeterministic ? CodeAnalysisResources.SymWriterNotDeterministic : CodeAnalysisResources.SymWriterOlderVersionThanRequired; throw new SymUnmanagedWriterException(string.Format(message, e.ImplementationModuleName)); } _metadataWriter = metadataWriter; _symWriter = symWriter; _sequencePointsWriter = new SymUnmanagedSequencePointsWriter(symWriter, capacity: 64); } public BlobContentId GetContentId() { BlobContentId contentId; if (IsDeterministic) { // Calculate hash of the stream content. // Note: all bits of the signature currently stored in the PDB stream were initialized to 1 by InitializeDeterministic. contentId = BlobContentId.FromHash(CryptographicHashProvider.ComputeHash(_hashAlgorithmNameOpt, _symWriter.GetUnderlyingData())); _symWriter.UpdateSignature(contentId.Guid, contentId.Stamp, age: 1); } else { _symWriter.GetSignature(out Guid guid, out uint stamp, out int age); Debug.Assert(age == Age); contentId = new BlobContentId(guid, stamp); } // Once we calculate the content id we shall not write more data to the writer. // Note that the underlying stream is accessible for reading even after the writer is disposed. _symWriter.Dispose(); return contentId; } public void SetEntryPoint(int entryMethodToken) { _symWriter.SetEntryPoint(entryMethodToken); } private int GetDocumentIndex(DebugSourceDocument document) { if (_documentIndex.TryGetValue(document, out int documentIndex)) { return documentIndex; } return AddDocumentIndex(document); } private int AddDocumentIndex(DebugSourceDocument document) { Guid algorithmId; ReadOnlySpan<byte> checksum; ReadOnlySpan<byte> embeddedSource; DebugSourceInfo info = document.GetSourceInfo(); if (!info.Checksum.IsDefault) { algorithmId = info.ChecksumAlgorithmId; checksum = info.Checksum.AsSpan(); } else { algorithmId = default; checksum = null; } if (!info.EmbeddedTextBlob.IsDefault) { embeddedSource = info.EmbeddedTextBlob.AsSpan(); } else { embeddedSource = null; } int documentIndex = _symWriter.DefineDocument( document.Location, document.Language, document.LanguageVendor, document.DocumentType, algorithmId, checksum, embeddedSource); _documentIndex.Add(document, documentIndex); return documentIndex; } private void OpenMethod(int methodToken, IMethodDefinition method) { _symWriter.OpenMethod(methodToken); // open outermost scope: _symWriter.OpenScope(startOffset: 0); } private void CloseMethod(int ilLength) { // close the root scope: _symWriter.CloseScope(endOffset: ilLength); _symWriter.CloseMethod(); } private void UsingNamespace(string fullName, INamedEntity errorEntity) { if (!_metadataWriter.IsUsingStringTooLong(fullName, errorEntity)) { _symWriter.UsingNamespace(fullName); } } private void EmitSequencePoints(ImmutableArray<SequencePoint> sequencePoints) { int lastDocumentIndex = -1; DebugSourceDocument lastDocument = null; foreach (var sequencePoint in sequencePoints) { Debug.Assert(sequencePoint.Document != null); var document = sequencePoint.Document; int documentIndex; if (lastDocument == document) { documentIndex = lastDocumentIndex; } else { lastDocument = document; documentIndex = lastDocumentIndex = GetDocumentIndex(lastDocument); } _sequencePointsWriter.Add( documentIndex, sequencePoint.Offset, sequencePoint.StartLine, sequencePoint.StartColumn, sequencePoint.EndLine, sequencePoint.EndColumn); } _sequencePointsWriter.Flush(); } [Conditional("DEBUG")] // Used to catch cases where file2definitions contain nonwritable definitions early // If left unfixed, such scenarios will lead to crashes if happen in winmdobj projects public void AssertAllDefinitionsHaveTokens(MultiDictionary<DebugSourceDocument, DefinitionWithLocation> file2definitions) { foreach (var kvp in file2definitions) { foreach (var definition in kvp.Value) { EntityHandle handle = _metadataWriter.GetDefinitionHandle(definition.Definition); Debug.Assert(!handle.IsNil); } } } // Note: only used for WinMD public void WriteDefinitionLocations(MultiDictionary<DebugSourceDocument, DefinitionWithLocation> file2definitions) { // Only open and close the map if we have any mapping. bool open = false; foreach (var kvp in file2definitions) { foreach (var definition in kvp.Value) { if (!open) { _symWriter.OpenTokensToSourceSpansMap(); open = true; } int token = MetadataTokens.GetToken(_metadataWriter.GetDefinitionHandle(definition.Definition)); Debug.Assert(token != 0); _symWriter.MapTokenToSourceSpan( token, GetDocumentIndex(kvp.Key), definition.StartLine + 1, definition.StartColumn + 1, definition.EndLine + 1, definition.EndColumn + 1); } } if (open) { _symWriter.CloseTokensToSourceSpansMap(); } } public void EmbedSourceLink(Stream stream) { byte[] bytes; try { bytes = stream.ReadAllBytes(); } catch (Exception e) { throw new SymUnmanagedWriterException(e.Message, e); } try { _symWriter.SetSourceLinkData(bytes); } catch (SymUnmanagedWriterException e) when (e.InnerException is NotSupportedException) { throw new SymUnmanagedWriterException(string.Format(CodeAnalysisResources.SymWriterDoesNotSupportSourceLink, e.ImplementationModuleName)); } } /// <summary> /// Write document entries for all debug documents that do not yet have an entry. /// </summary> /// <remarks> /// This is done after serializing method debug info to ensure that we embed all requested /// text even if there are no corresponding sequence points. /// </remarks> public void WriteRemainingDebugDocuments(IReadOnlyDictionary<string, DebugSourceDocument> documents) { foreach (var kvp in documents .Where(kvp => !_documentIndex.ContainsKey(kvp.Value)) .OrderBy(kvp => kvp.Key)) { AddDocumentIndex(kvp.Value); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Security.Cryptography; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.DiaSymReader; using Roslyn.Utilities; namespace Microsoft.Cci { internal sealed class PdbWriter : IDisposable { internal const uint Age = 1; private readonly HashAlgorithmName _hashAlgorithmNameOpt; private readonly string _fileName; private readonly Func<ISymWriterMetadataProvider, SymUnmanagedWriter> _symWriterFactory; private readonly Dictionary<DebugSourceDocument, int> _documentIndex; private MetadataWriter _metadataWriter; private SymUnmanagedWriter _symWriter; private SymUnmanagedSequencePointsWriter _sequencePointsWriter; // { INamespace or ITypeReference -> qualified name } private readonly Dictionary<object, string> _qualifiedNameCache; // in support of determinism private bool IsDeterministic { get => _hashAlgorithmNameOpt.Name != null; } public PdbWriter(string fileName, Func<ISymWriterMetadataProvider, SymUnmanagedWriter> symWriterFactory, HashAlgorithmName hashAlgorithmNameOpt) { _fileName = fileName; _symWriterFactory = symWriterFactory; _hashAlgorithmNameOpt = hashAlgorithmNameOpt; _documentIndex = new Dictionary<DebugSourceDocument, int>(); _qualifiedNameCache = new Dictionary<object, string>(ReferenceEqualityComparer.Instance); } public void WriteTo(Stream stream) { _symWriter.WriteTo(stream); } public void Dispose() { _symWriter?.Dispose(); } private CommonPEModuleBuilder Module => Context.Module; private EmitContext Context => _metadataWriter.Context; public void SerializeDebugInfo(IMethodBody methodBody, StandaloneSignatureHandle localSignatureHandleOpt, CustomDebugInfoWriter customDebugInfoWriter) { Debug.Assert(_metadataWriter != null); var methodHandle = (MethodDefinitionHandle)_metadataWriter.GetMethodHandle(methodBody.MethodDefinition); // A state machine kickoff method doesn't have sequence points as it only contains generated code. // We could avoid emitting debug info for it if the corresponding MoveNext method had no sequence points, // but there is no real need for such optimization. // // Special case a hidden entry point (#line hidden applied) that would otherwise have no debug info. // This is to accommodate for a requirement of Windows PDB writer that the entry point method must have some debug information. bool isKickoffMethod = methodBody.StateMachineTypeName != null; bool emitAllDebugInfo = isKickoffMethod || !methodBody.SequencePoints.IsEmpty || methodBody.MethodDefinition == (Context.Module.DebugEntryPoint ?? Context.Module.PEEntryPoint); var compilationOptions = Context.Module.CommonCompilation.Options; // We need to avoid emitting CDI DynamicLocals = 5 and EditAndContinueLocalSlotMap = 6 for files processed by WinMDExp until // bug #1067635 is fixed and available in SDK. bool suppressNewCustomDebugInfo = compilationOptions.OutputKind == OutputKind.WindowsRuntimeMetadata; bool emitDynamicAndTupleInfo = emitAllDebugInfo && !suppressNewCustomDebugInfo; // Emit EnC info for all methods even if they do not have sequence points. // The information facilitates reusing lambdas and closures. The reuse is important for runtimes that can't add new members (e.g. Mono). bool emitEncInfo = compilationOptions.EnableEditAndContinue && _metadataWriter.IsFullMetadata && !suppressNewCustomDebugInfo; byte[] blob = customDebugInfoWriter.SerializeMethodDebugInfo(Context, methodBody, methodHandle, emitStateMachineInfo: emitAllDebugInfo, emitEncInfo, emitDynamicAndTupleInfo, out bool emitExternNamespaces); if (!emitAllDebugInfo && blob.Length == 0) { return; } int methodToken = MetadataTokens.GetToken(methodHandle); OpenMethod(methodToken, methodBody.MethodDefinition); if (emitAllDebugInfo) { var localScopes = methodBody.LocalScopes; // Define locals, constants and namespaces in the outermost local scope (opened in OpenMethod): if (localScopes.Length > 0) { DefineScopeLocals(localScopes[0], localSignatureHandleOpt); } if (!isKickoffMethod && methodBody.ImportScope != null) { if (customDebugInfoWriter.ShouldForwardNamespaceScopes(Context, methodBody, methodHandle, out IMethodDefinition forwardToMethod)) { if (forwardToMethod != null) { UsingNamespace("@" + MetadataTokens.GetToken(_metadataWriter.GetMethodHandle(forwardToMethod)), methodBody.MethodDefinition); } // otherwise, the forwarding is done via custom debug info } else { DefineNamespaceScopes(methodBody); } } DefineLocalScopes(localScopes, localSignatureHandleOpt); EmitSequencePoints(methodBody.SequencePoints); if (methodBody.MoveNextBodyInfo is AsyncMoveNextBodyDebugInfo asyncMoveNextInfo) { _symWriter.SetAsyncInfo( methodToken, MetadataTokens.GetToken(_metadataWriter.GetMethodHandle(asyncMoveNextInfo.KickoffMethod)), asyncMoveNextInfo.CatchHandlerOffset, asyncMoveNextInfo.YieldOffsets.AsSpan(), asyncMoveNextInfo.ResumeOffsets.AsSpan()); } if (emitExternNamespaces) { DefineAssemblyReferenceAliases(); } } if (blob.Length > 0) { _symWriter.DefineCustomMetadata(blob); } CloseMethod(methodBody.IL.Length); } private void DefineNamespaceScopes(IMethodBody methodBody) { var module = Module; bool isVisualBasic = module.GenerateVisualBasicStylePdb; IMethodDefinition method = methodBody.MethodDefinition; var namespaceScopes = methodBody.ImportScope; PooledHashSet<string> lazyDeclaredExternAliases = null; if (!isVisualBasic) { for (var scope = namespaceScopes; scope != null; scope = scope.Parent) { foreach (var import in scope.GetUsedNamespaces()) { if (import.TargetNamespaceOpt == null && import.TargetTypeOpt == null) { Debug.Assert(import.AliasOpt != null); Debug.Assert(import.TargetAssemblyOpt == null); if (lazyDeclaredExternAliases == null) { lazyDeclaredExternAliases = PooledHashSet<string>.GetInstance(); } lazyDeclaredExternAliases.Add(import.AliasOpt); } } } } // file and namespace level for (IImportScope scope = namespaceScopes; scope != null; scope = scope.Parent) { foreach (UsedNamespaceOrType import in scope.GetUsedNamespaces()) { var importString = TryEncodeImport(import, lazyDeclaredExternAliases, isProjectLevel: false); if (importString != null) { UsingNamespace(importString, method); } } } lazyDeclaredExternAliases?.Free(); // project level if (isVisualBasic) { string defaultNamespace = module.DefaultNamespace; if (!string.IsNullOrEmpty(defaultNamespace)) { // VB marks the default/root namespace with an asterisk UsingNamespace("*" + defaultNamespace, module); } foreach (string assemblyName in module.LinkedAssembliesDebugInfo) { UsingNamespace("&" + assemblyName, module); } foreach (UsedNamespaceOrType import in module.GetImports()) { var importString = TryEncodeImport(import, null, isProjectLevel: true); if (importString != null) { UsingNamespace(importString, method); } } // VB current namespace -- VB appends the namespace of the container without prefixes UsingNamespace(GetOrCreateSerializedNamespaceName(method.ContainingNamespace), method); } } private void DefineAssemblyReferenceAliases() { foreach (AssemblyReferenceAlias alias in Module.GetAssemblyReferenceAliases(Context)) { UsingNamespace("Z" + alias.Name + " " + alias.Assembly.Identity.GetDisplayName(), Module); } } private string TryEncodeImport(UsedNamespaceOrType import, HashSet<string> declaredExternAliasesOpt, bool isProjectLevel) { // NOTE: Dev12 has related cases "I" and "O" in EMITTER::ComputeDebugNamespace, // but they were probably implementation details that do not affect Roslyn. if (Module.GenerateVisualBasicStylePdb) { // VB doesn't support extern aliases Debug.Assert(import.TargetAssemblyOpt == null); Debug.Assert(declaredExternAliasesOpt == null); if (import.TargetTypeOpt != null) { Debug.Assert(import.TargetNamespaceOpt == null); Debug.Assert(import.TargetAssemblyOpt == null); // Native compiler doesn't write imports with generic types to PDB. if (import.TargetTypeOpt.IsTypeSpecification()) { return null; } string typeName = GetOrCreateSerializedTypeName(import.TargetTypeOpt); if (import.AliasOpt != null) { return (isProjectLevel ? "@PA:" : "@FA:") + import.AliasOpt + "=" + typeName; } else { return (isProjectLevel ? "@PT:" : "@FT:") + typeName; } } if (import.TargetNamespaceOpt != null) { string namespaceName = GetOrCreateSerializedNamespaceName(import.TargetNamespaceOpt); if (import.AliasOpt == null) { return (isProjectLevel ? "@P:" : "@F:") + namespaceName; } else { return (isProjectLevel ? "@PA:" : "@FA:") + import.AliasOpt + "=" + namespaceName; } } Debug.Assert(import.AliasOpt != null); Debug.Assert(import.TargetXmlNamespaceOpt != null); return (isProjectLevel ? "@PX:" : "@FX:") + import.AliasOpt + "=" + import.TargetXmlNamespaceOpt; } Debug.Assert(import.TargetXmlNamespaceOpt == null); if (import.TargetTypeOpt != null) { Debug.Assert(import.TargetNamespaceOpt == null); Debug.Assert(import.TargetAssemblyOpt == null); string typeName = GetOrCreateSerializedTypeName(import.TargetTypeOpt); return (import.AliasOpt != null) ? "A" + import.AliasOpt + " T" + typeName : "T" + typeName; } if (import.TargetNamespaceOpt != null) { string namespaceName = GetOrCreateSerializedNamespaceName(import.TargetNamespaceOpt); if (import.AliasOpt != null) { return (import.TargetAssemblyOpt != null) ? "A" + import.AliasOpt + " E" + namespaceName + " " + GetAssemblyReferenceAlias(import.TargetAssemblyOpt, declaredExternAliasesOpt) : "A" + import.AliasOpt + " U" + namespaceName; } else { return (import.TargetAssemblyOpt != null) ? "E" + namespaceName + " " + GetAssemblyReferenceAlias(import.TargetAssemblyOpt, declaredExternAliasesOpt) : "U" + namespaceName; } } Debug.Assert(import.AliasOpt != null); Debug.Assert(import.TargetAssemblyOpt == null); return "X" + import.AliasOpt; } internal string GetOrCreateSerializedNamespaceName(INamespace @namespace) { string result; if (!_qualifiedNameCache.TryGetValue(@namespace, out result)) { result = TypeNameSerializer.BuildQualifiedNamespaceName(@namespace); _qualifiedNameCache.Add(@namespace, result); } return result; } internal string GetOrCreateSerializedTypeName(ITypeReference typeReference) { string result; if (!_qualifiedNameCache.TryGetValue(typeReference, out result)) { if (Module.GenerateVisualBasicStylePdb) { result = SerializeVisualBasicImportTypeReference(typeReference); } else { result = typeReference.GetSerializedTypeName(Context); } _qualifiedNameCache.Add(typeReference, result); } return result; } private string SerializeVisualBasicImportTypeReference(ITypeReference typeReference) { Debug.Assert(!(typeReference is IArrayTypeReference)); Debug.Assert(!(typeReference is IPointerTypeReference)); Debug.Assert(!typeReference.IsTypeSpecification()); var result = PooledStringBuilder.GetInstance(); ArrayBuilder<string> nestedNamesReversed; INestedTypeReference nestedType = typeReference.AsNestedTypeReference; if (nestedType != null) { nestedNamesReversed = ArrayBuilder<string>.GetInstance(); while (nestedType != null) { nestedNamesReversed.Add(nestedType.Name); typeReference = nestedType.GetContainingType(_metadataWriter.Context); nestedType = typeReference.AsNestedTypeReference; } } else { nestedNamesReversed = null; } INamespaceTypeReference namespaceType = typeReference.AsNamespaceTypeReference; Debug.Assert(namespaceType != null); string namespaceName = namespaceType.NamespaceName; if (namespaceName.Length != 0) { result.Builder.Append(namespaceName); result.Builder.Append('.'); } result.Builder.Append(namespaceType.Name); if (nestedNamesReversed != null) { for (int i = nestedNamesReversed.Count - 1; i >= 0; i--) { result.Builder.Append('.'); result.Builder.Append(nestedNamesReversed[i]); } nestedNamesReversed.Free(); } return result.ToStringAndFree(); } private string GetAssemblyReferenceAlias(IAssemblyReference assembly, HashSet<string> declaredExternAliases) { // no extern alias defined in scope at all -> error in compiler Debug.Assert(declaredExternAliases != null); var allAliases = _metadataWriter.Context.Module.GetAssemblyReferenceAliases(_metadataWriter.Context); foreach (AssemblyReferenceAlias alias in allAliases) { // Multiple aliases may be given to an assembly reference. // We find one that is in scope (was imported via extern alias directive). // If multiple are in scope then use the first one. // NOTE: Dev12 uses the one that appeared in source, whereas we use // the first one that COULD have appeared in source. (DevDiv #913022) // The reason we're not just using the alias from the syntax is that // it is non-trivial to locate. In particular, since "." may be used in // place of "::", determining whether the first identifier in the name is // the alias requires binding. For example, "using A.B;" could refer to // either "A::B" or "global::A.B". if (assembly == alias.Assembly && declaredExternAliases.Contains(alias.Name)) { return alias.Name; } } // no alias defined in scope for given assembly -> error in compiler throw ExceptionUtilities.Unreachable; } private void DefineLocalScopes(ImmutableArray<LocalScope> scopes, StandaloneSignatureHandle localSignatureHandleOpt) { // VB scope ranges are end-inclusive bool endInclusive = this.Module.GenerateVisualBasicStylePdb; // The order of OpenScope and CloseScope calls must follow the scope nesting. var scopeStack = ArrayBuilder<LocalScope>.GetInstance(); for (int i = 1; i < scopes.Length; i++) { var currentScope = scopes[i]; // Close any scopes that have finished. while (scopeStack.Count > 0) { LocalScope topScope = scopeStack.Last(); if (currentScope.StartOffset < topScope.StartOffset + topScope.Length) { break; } scopeStack.RemoveLast(); _symWriter.CloseScope(endInclusive ? topScope.EndOffset - 1 : topScope.EndOffset); } // Open this scope. scopeStack.Add(currentScope); _symWriter.OpenScope(currentScope.StartOffset); DefineScopeLocals(currentScope, localSignatureHandleOpt); } // Close remaining scopes. for (int i = scopeStack.Count - 1; i >= 0; i--) { LocalScope scope = scopeStack[i]; _symWriter.CloseScope(endInclusive ? scope.EndOffset - 1 : scope.EndOffset); } scopeStack.Free(); } private void DefineScopeLocals(LocalScope currentScope, StandaloneSignatureHandle localSignatureHandleOpt) { foreach (ILocalDefinition scopeConstant in currentScope.Constants) { var signatureHandle = _metadataWriter.SerializeLocalConstantStandAloneSignature(scopeConstant); if (!_metadataWriter.IsLocalNameTooLong(scopeConstant)) { _symWriter.DefineLocalConstant( scopeConstant.Name, scopeConstant.CompileTimeValue.Value, MetadataTokens.GetToken(signatureHandle)); } } foreach (ILocalDefinition scopeLocal in currentScope.Variables) { if (!_metadataWriter.IsLocalNameTooLong(scopeLocal)) { Debug.Assert(scopeLocal.SlotIndex >= 0); _symWriter.DefineLocalVariable( scopeLocal.SlotIndex, scopeLocal.Name, (int)scopeLocal.PdbAttributes, localSignatureHandleOpt.IsNil ? 0 : MetadataTokens.GetToken(localSignatureHandleOpt)); } } } public void SetMetadataEmitter(MetadataWriter metadataWriter) { // Do not look for COM registered diasymreader when determinism is needed as it doesn't support it. var options = (IsDeterministic ? SymUnmanagedWriterCreationOptions.Deterministic : SymUnmanagedWriterCreationOptions.UseComRegistry) | SymUnmanagedWriterCreationOptions.UseAlternativeLoadPath; var metadataProvider = new SymWriterMetadataProvider(metadataWriter); SymUnmanagedWriter symWriter; try { symWriter = (_symWriterFactory != null) ? _symWriterFactory(metadataProvider) : SymUnmanagedWriterFactory.CreateWriter(metadataProvider, options); } catch (DllNotFoundException e) { throw new SymUnmanagedWriterException(e.Message); } catch (SymUnmanagedWriterException e) when (e.InnerException is NotSupportedException) { var message = IsDeterministic ? CodeAnalysisResources.SymWriterNotDeterministic : CodeAnalysisResources.SymWriterOlderVersionThanRequired; throw new SymUnmanagedWriterException(string.Format(message, e.ImplementationModuleName)); } _metadataWriter = metadataWriter; _symWriter = symWriter; _sequencePointsWriter = new SymUnmanagedSequencePointsWriter(symWriter, capacity: 64); } public BlobContentId GetContentId() { BlobContentId contentId; if (IsDeterministic) { // Calculate hash of the stream content. // Note: all bits of the signature currently stored in the PDB stream were initialized to 1 by InitializeDeterministic. contentId = BlobContentId.FromHash(CryptographicHashProvider.ComputeHash(_hashAlgorithmNameOpt, _symWriter.GetUnderlyingData())); _symWriter.UpdateSignature(contentId.Guid, contentId.Stamp, age: 1); } else { _symWriter.GetSignature(out Guid guid, out uint stamp, out int age); Debug.Assert(age == Age); contentId = new BlobContentId(guid, stamp); } // Once we calculate the content id we shall not write more data to the writer. // Note that the underlying stream is accessible for reading even after the writer is disposed. _symWriter.Dispose(); return contentId; } public void SetEntryPoint(int entryMethodToken) { _symWriter.SetEntryPoint(entryMethodToken); } private int GetDocumentIndex(DebugSourceDocument document) { if (_documentIndex.TryGetValue(document, out int documentIndex)) { return documentIndex; } return AddDocumentIndex(document); } private int AddDocumentIndex(DebugSourceDocument document) { Guid algorithmId; ReadOnlySpan<byte> checksum; ReadOnlySpan<byte> embeddedSource; DebugSourceInfo info = document.GetSourceInfo(); if (!info.Checksum.IsDefault) { algorithmId = info.ChecksumAlgorithmId; checksum = info.Checksum.AsSpan(); } else { algorithmId = default; checksum = null; } if (!info.EmbeddedTextBlob.IsDefault) { embeddedSource = info.EmbeddedTextBlob.AsSpan(); } else { embeddedSource = null; } int documentIndex = _symWriter.DefineDocument( document.Location, document.Language, document.LanguageVendor, document.DocumentType, algorithmId, checksum, embeddedSource); _documentIndex.Add(document, documentIndex); return documentIndex; } private void OpenMethod(int methodToken, IMethodDefinition method) { _symWriter.OpenMethod(methodToken); // open outermost scope: _symWriter.OpenScope(startOffset: 0); } private void CloseMethod(int ilLength) { // close the root scope: _symWriter.CloseScope(endOffset: ilLength); _symWriter.CloseMethod(); } private void UsingNamespace(string fullName, INamedEntity errorEntity) { if (!_metadataWriter.IsUsingStringTooLong(fullName, errorEntity)) { _symWriter.UsingNamespace(fullName); } } private void EmitSequencePoints(ImmutableArray<SequencePoint> sequencePoints) { int lastDocumentIndex = -1; DebugSourceDocument lastDocument = null; foreach (var sequencePoint in sequencePoints) { Debug.Assert(sequencePoint.Document != null); var document = sequencePoint.Document; int documentIndex; if (lastDocument == document) { documentIndex = lastDocumentIndex; } else { lastDocument = document; documentIndex = lastDocumentIndex = GetDocumentIndex(lastDocument); } _sequencePointsWriter.Add( documentIndex, sequencePoint.Offset, sequencePoint.StartLine, sequencePoint.StartColumn, sequencePoint.EndLine, sequencePoint.EndColumn); } _sequencePointsWriter.Flush(); } [Conditional("DEBUG")] // Used to catch cases where file2definitions contain nonwritable definitions early // If left unfixed, such scenarios will lead to crashes if happen in winmdobj projects public void AssertAllDefinitionsHaveTokens(MultiDictionary<DebugSourceDocument, DefinitionWithLocation> file2definitions) { foreach (var kvp in file2definitions) { foreach (var definition in kvp.Value) { EntityHandle handle = _metadataWriter.GetDefinitionHandle(definition.Definition); Debug.Assert(!handle.IsNil); } } } // Note: only used for WinMD public void WriteDefinitionLocations(MultiDictionary<DebugSourceDocument, DefinitionWithLocation> file2definitions) { // Only open and close the map if we have any mapping. bool open = false; foreach (var kvp in file2definitions) { foreach (var definition in kvp.Value) { if (!open) { _symWriter.OpenTokensToSourceSpansMap(); open = true; } int token = MetadataTokens.GetToken(_metadataWriter.GetDefinitionHandle(definition.Definition)); Debug.Assert(token != 0); _symWriter.MapTokenToSourceSpan( token, GetDocumentIndex(kvp.Key), definition.StartLine + 1, definition.StartColumn + 1, definition.EndLine + 1, definition.EndColumn + 1); } } if (open) { _symWriter.CloseTokensToSourceSpansMap(); } } public void EmbedSourceLink(Stream stream) { byte[] bytes; try { bytes = stream.ReadAllBytes(); } catch (Exception e) { throw new SymUnmanagedWriterException(e.Message, e); } try { _symWriter.SetSourceLinkData(bytes); } catch (SymUnmanagedWriterException e) when (e.InnerException is NotSupportedException) { throw new SymUnmanagedWriterException(string.Format(CodeAnalysisResources.SymWriterDoesNotSupportSourceLink, e.ImplementationModuleName)); } } /// <summary> /// Write document entries for all debug documents that do not yet have an entry. /// </summary> /// <remarks> /// This is done after serializing method debug info to ensure that we embed all requested /// text even if there are no corresponding sequence points. /// </remarks> public void WriteRemainingDebugDocuments(IReadOnlyDictionary<string, DebugSourceDocument> documents) { foreach (var kvp in documents .Where(kvp => !_documentIndex.ContainsKey(kvp.Value)) .OrderBy(kvp => kvp.Key)) { AddDocumentIndex(kvp.Value); } } } }
1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/Core/Portable/PEWriter/CustomDebugInfoWriter.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Debugging; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.PooledObjects; using Roslyn.Utilities; namespace Microsoft.Cci { internal sealed class CustomDebugInfoWriter { private MethodDefinitionHandle _methodWithModuleInfo; private IMethodBody _methodBodyWithModuleInfo; private MethodDefinitionHandle _previousMethodWithUsingInfo; private IMethodBody _previousMethodBodyWithUsingInfo; private readonly PdbWriter _pdbWriter; public CustomDebugInfoWriter(PdbWriter pdbWriter) { Debug.Assert(pdbWriter != null); _pdbWriter = pdbWriter; } /// <summary> /// Returns true if the namespace scope for this method should be forwarded to another method. /// Returns non-null <paramref name="forwardToMethod"/> if the forwarding should be done directly via UsingNamespace, /// null if the forwarding is done via custom debug info. /// </summary> public bool ShouldForwardNamespaceScopes(EmitContext context, IMethodBody methodBody, MethodDefinitionHandle methodHandle, out IMethodDefinition forwardToMethod) { if (ShouldForwardToPreviousMethodWithUsingInfo(context, methodBody)) { // SerializeNamespaceScopeMetadata will do the actual forwarding in case this is a CSharp method. // VB on the other hand adds a "@methodtoken" to the scopes instead. if (context.Module.GenerateVisualBasicStylePdb) { forwardToMethod = _previousMethodBodyWithUsingInfo.MethodDefinition; } else { forwardToMethod = null; } return true; } _previousMethodBodyWithUsingInfo = methodBody; _previousMethodWithUsingInfo = methodHandle; forwardToMethod = null; return false; } public byte[] SerializeMethodDebugInfo(EmitContext context, IMethodBody methodBody, MethodDefinitionHandle methodHandle, bool emitEncInfo, bool suppressNewCustomDebugInfo, out bool emitExternNamespaces) { emitExternNamespaces = false; // CONSIDER: this may not be the same "first" method as in Dev10, but // it shouldn't matter since all methods will still forward to a method // containing the appropriate information. if (_methodBodyWithModuleInfo == null) { // This module level information could go on every method (and does in // the edit-and-continue case), but - as an optimization - we'll just // put it on the first method we happen to encounter and then put a // reference to the first method's token in every other method (so they // can find the information). if (context.Module.GetAssemblyReferenceAliases(context).Any()) { _methodWithModuleInfo = methodHandle; _methodBodyWithModuleInfo = methodBody; emitExternNamespaces = true; } } var pooledBuilder = PooledBlobBuilder.GetInstance(); var encoder = new CustomDebugInfoEncoder(pooledBuilder); if (methodBody.StateMachineTypeName != null) { encoder.AddStateMachineTypeName(methodBody.StateMachineTypeName); } else { SerializeNamespaceScopeMetadata(ref encoder, context, methodBody); encoder.AddStateMachineHoistedLocalScopes(methodBody.StateMachineHoistedLocalScopes); } if (!suppressNewCustomDebugInfo) { SerializeDynamicLocalInfo(ref encoder, methodBody); SerializeTupleElementNames(ref encoder, methodBody); if (emitEncInfo) { var encMethodInfo = MetadataWriter.GetEncMethodDebugInfo(methodBody); SerializeCustomDebugInformation(ref encoder, encMethodInfo); } } byte[] result = encoder.ToArray(); pooledBuilder.Free(); return result; } // internal for testing internal static void SerializeCustomDebugInformation(ref CustomDebugInfoEncoder encoder, EditAndContinueMethodDebugInformation debugInfo) { // PERF: note that we pass debugInfo as explicit parameter // that is intentional to avoid capturing debugInfo as that // would result in a lot of delegate allocations here that are otherwise can be avoided. if (!debugInfo.LocalSlots.IsDefaultOrEmpty) { encoder.AddRecord( CustomDebugInfoKind.EditAndContinueLocalSlotMap, debugInfo, (info, builder) => info.SerializeLocalSlots(builder)); } if (!debugInfo.Lambdas.IsDefaultOrEmpty) { encoder.AddRecord( CustomDebugInfoKind.EditAndContinueLambdaMap, debugInfo, (info, builder) => info.SerializeLambdaMap(builder)); } } private static ArrayBuilder<T> GetLocalInfoToSerialize<T>( IMethodBody methodBody, Func<ILocalDefinition, bool> filter, Func<LocalScope, ILocalDefinition, T> getInfo) { ArrayBuilder<T> builder = null; foreach (var currentScope in methodBody.LocalScopes) { foreach (var local in currentScope.Variables) { Debug.Assert(local.SlotIndex >= 0); if (filter(local)) { if (builder == null) { builder = ArrayBuilder<T>.GetInstance(); } builder.Add(getInfo(default(LocalScope), local)); } } foreach (var localConstant in currentScope.Constants) { Debug.Assert(localConstant.SlotIndex < 0); if (filter(localConstant)) { if (builder == null) { builder = ArrayBuilder<T>.GetInstance(); } builder.Add(getInfo(currentScope, localConstant)); } } } return builder; } private static void SerializeDynamicLocalInfo(ref CustomDebugInfoEncoder encoder, IMethodBody methodBody) { if (!methodBody.HasDynamicLocalVariables) { return; } byte[] GetDynamicFlags(ILocalDefinition local) { var dynamicTransformFlags = local.DynamicTransformFlags; var flags = new byte[CustomDebugInfoEncoder.DynamicAttributeSize]; for (int k = 0; k < dynamicTransformFlags.Length; k++) { if (dynamicTransformFlags[k]) { flags[k] = 1; } } return flags; } var dynamicLocals = GetLocalInfoToSerialize( methodBody, local => { var dynamicTransformFlags = local.DynamicTransformFlags; return !dynamicTransformFlags.IsEmpty && dynamicTransformFlags.Length <= CustomDebugInfoEncoder.DynamicAttributeSize && local.Name.Length < CustomDebugInfoEncoder.IdentifierSize; }, (scope, local) => (local.Name, GetDynamicFlags(local), local.DynamicTransformFlags.Length, (local.SlotIndex < 0) ? 0 : local.SlotIndex)); if (dynamicLocals == null) { return; } encoder.AddDynamicLocals(dynamicLocals); dynamicLocals.Free(); } private static void SerializeTupleElementNames(ref CustomDebugInfoEncoder encoder, IMethodBody methodBody) { var locals = GetLocalInfoToSerialize( methodBody, local => !local.TupleElementNames.IsEmpty, (scope, local) => (local.Name, local.SlotIndex, scope.StartOffset, scope.EndOffset, local.TupleElementNames)); if (locals == null) { return; } encoder.AddTupleElementNames(locals); locals.Free(); } private void SerializeNamespaceScopeMetadata(ref CustomDebugInfoEncoder encoder, EmitContext context, IMethodBody methodBody) { if (context.Module.GenerateVisualBasicStylePdb) { return; } if (ShouldForwardToPreviousMethodWithUsingInfo(context, methodBody)) { Debug.Assert(!ReferenceEquals(_previousMethodBodyWithUsingInfo, methodBody)); encoder.AddForwardMethodInfo(_previousMethodWithUsingInfo); return; } var usingCounts = ArrayBuilder<int>.GetInstance(); for (IImportScope scope = methodBody.ImportScope; scope != null; scope = scope.Parent) { usingCounts.Add(scope.GetUsedNamespaces().Length); } encoder.AddUsingGroups(usingCounts); usingCounts.Free(); if (_methodBodyWithModuleInfo != null && !ReferenceEquals(_methodBodyWithModuleInfo, methodBody)) { encoder.AddForwardModuleInfo(_methodWithModuleInfo); } } private bool ShouldForwardToPreviousMethodWithUsingInfo(EmitContext context, IMethodBody methodBody) { if (_previousMethodBodyWithUsingInfo == null || ReferenceEquals(_previousMethodBodyWithUsingInfo, methodBody)) { return false; } // VB includes method namespace in namespace scopes: if (context.Module.GenerateVisualBasicStylePdb) { if (_pdbWriter.GetOrCreateSerializedNamespaceName(_previousMethodBodyWithUsingInfo.MethodDefinition.ContainingNamespace) != _pdbWriter.GetOrCreateSerializedNamespaceName(methodBody.MethodDefinition.ContainingNamespace)) { return false; } } var previousScopes = _previousMethodBodyWithUsingInfo.ImportScope; // methods share the same import scope (common case for methods declared in the same file) if (methodBody.ImportScope == previousScopes) { return true; } // If methods are in different files they don't share the same scopes, // but the imports might be the same nevertheless. // Note: not comparing project-level imports since those are the same for all method bodies. var s1 = methodBody.ImportScope; var s2 = previousScopes; while (s1 != null && s2 != null) { if (!s1.GetUsedNamespaces().SequenceEqual(s2.GetUsedNamespaces())) { return false; } s1 = s1.Parent; s2 = s2.Parent; } return s1 == s2; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Debugging; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.PooledObjects; using Roslyn.Utilities; namespace Microsoft.Cci { internal sealed class CustomDebugInfoWriter { private MethodDefinitionHandle _methodWithModuleInfo; private IMethodBody _methodBodyWithModuleInfo; private MethodDefinitionHandle _previousMethodWithUsingInfo; private IMethodBody _previousMethodBodyWithUsingInfo; private readonly PdbWriter _pdbWriter; public CustomDebugInfoWriter(PdbWriter pdbWriter) { Debug.Assert(pdbWriter != null); _pdbWriter = pdbWriter; } /// <summary> /// Returns true if the namespace scope for this method should be forwarded to another method. /// Returns non-null <paramref name="forwardToMethod"/> if the forwarding should be done directly via UsingNamespace, /// null if the forwarding is done via custom debug info. /// </summary> public bool ShouldForwardNamespaceScopes(EmitContext context, IMethodBody methodBody, MethodDefinitionHandle methodHandle, out IMethodDefinition forwardToMethod) { if (ShouldForwardToPreviousMethodWithUsingInfo(context, methodBody)) { // SerializeNamespaceScopeMetadata will do the actual forwarding in case this is a CSharp method. // VB on the other hand adds a "@methodtoken" to the scopes instead. if (context.Module.GenerateVisualBasicStylePdb) { forwardToMethod = _previousMethodBodyWithUsingInfo.MethodDefinition; } else { forwardToMethod = null; } return true; } _previousMethodBodyWithUsingInfo = methodBody; _previousMethodWithUsingInfo = methodHandle; forwardToMethod = null; return false; } public byte[] SerializeMethodDebugInfo( EmitContext context, IMethodBody methodBody, MethodDefinitionHandle methodHandle, bool emitStateMachineInfo, bool emitEncInfo, bool emitDynamicAndTupleInfo, out bool emitExternNamespaces) { emitExternNamespaces = false; // CONSIDER: this may not be the same "first" method as in Dev10, but // it shouldn't matter since all methods will still forward to a method // containing the appropriate information. if (_methodBodyWithModuleInfo == null) { // This module level information could go on every method (and does in // the edit-and-continue case), but - as an optimization - we'll just // put it on the first method we happen to encounter and then put a // reference to the first method's token in every other method (so they // can find the information). if (context.Module.GetAssemblyReferenceAliases(context).Any()) { _methodWithModuleInfo = methodHandle; _methodBodyWithModuleInfo = methodBody; emitExternNamespaces = true; } } var pooledBuilder = PooledBlobBuilder.GetInstance(); var encoder = new CustomDebugInfoEncoder(pooledBuilder); if (emitStateMachineInfo) { if (methodBody.StateMachineTypeName != null) { encoder.AddStateMachineTypeName(methodBody.StateMachineTypeName); } else { SerializeNamespaceScopeMetadata(ref encoder, context, methodBody); encoder.AddStateMachineHoistedLocalScopes(methodBody.StateMachineHoistedLocalScopes); } } if (emitDynamicAndTupleInfo) { SerializeDynamicLocalInfo(ref encoder, methodBody); SerializeTupleElementNames(ref encoder, methodBody); } if (emitEncInfo) { var encMethodInfo = MetadataWriter.GetEncMethodDebugInfo(methodBody); SerializeCustomDebugInformation(ref encoder, encMethodInfo); } byte[] result = encoder.ToArray() ?? Array.Empty<byte>(); pooledBuilder.Free(); return result; } // internal for testing internal static void SerializeCustomDebugInformation(ref CustomDebugInfoEncoder encoder, EditAndContinueMethodDebugInformation debugInfo) { // PERF: note that we pass debugInfo as explicit parameter // that is intentional to avoid capturing debugInfo as that // would result in a lot of delegate allocations here that are otherwise can be avoided. if (!debugInfo.LocalSlots.IsDefaultOrEmpty) { encoder.AddRecord( CustomDebugInfoKind.EditAndContinueLocalSlotMap, debugInfo, (info, builder) => info.SerializeLocalSlots(builder)); } if (!debugInfo.Lambdas.IsDefaultOrEmpty) { encoder.AddRecord( CustomDebugInfoKind.EditAndContinueLambdaMap, debugInfo, (info, builder) => info.SerializeLambdaMap(builder)); } } private static ArrayBuilder<T> GetLocalInfoToSerialize<T>( IMethodBody methodBody, Func<ILocalDefinition, bool> filter, Func<LocalScope, ILocalDefinition, T> getInfo) { ArrayBuilder<T> builder = null; foreach (var currentScope in methodBody.LocalScopes) { foreach (var local in currentScope.Variables) { Debug.Assert(local.SlotIndex >= 0); if (filter(local)) { if (builder == null) { builder = ArrayBuilder<T>.GetInstance(); } builder.Add(getInfo(default(LocalScope), local)); } } foreach (var localConstant in currentScope.Constants) { Debug.Assert(localConstant.SlotIndex < 0); if (filter(localConstant)) { if (builder == null) { builder = ArrayBuilder<T>.GetInstance(); } builder.Add(getInfo(currentScope, localConstant)); } } } return builder; } private static void SerializeDynamicLocalInfo(ref CustomDebugInfoEncoder encoder, IMethodBody methodBody) { if (!methodBody.HasDynamicLocalVariables) { return; } byte[] GetDynamicFlags(ILocalDefinition local) { var dynamicTransformFlags = local.DynamicTransformFlags; var flags = new byte[CustomDebugInfoEncoder.DynamicAttributeSize]; for (int k = 0; k < dynamicTransformFlags.Length; k++) { if (dynamicTransformFlags[k]) { flags[k] = 1; } } return flags; } var dynamicLocals = GetLocalInfoToSerialize( methodBody, local => { var dynamicTransformFlags = local.DynamicTransformFlags; return !dynamicTransformFlags.IsEmpty && dynamicTransformFlags.Length <= CustomDebugInfoEncoder.DynamicAttributeSize && local.Name.Length < CustomDebugInfoEncoder.IdentifierSize; }, (scope, local) => (local.Name, GetDynamicFlags(local), local.DynamicTransformFlags.Length, (local.SlotIndex < 0) ? 0 : local.SlotIndex)); if (dynamicLocals == null) { return; } encoder.AddDynamicLocals(dynamicLocals); dynamicLocals.Free(); } private static void SerializeTupleElementNames(ref CustomDebugInfoEncoder encoder, IMethodBody methodBody) { var locals = GetLocalInfoToSerialize( methodBody, local => !local.TupleElementNames.IsEmpty, (scope, local) => (local.Name, local.SlotIndex, scope.StartOffset, scope.EndOffset, local.TupleElementNames)); if (locals == null) { return; } encoder.AddTupleElementNames(locals); locals.Free(); } private void SerializeNamespaceScopeMetadata(ref CustomDebugInfoEncoder encoder, EmitContext context, IMethodBody methodBody) { if (context.Module.GenerateVisualBasicStylePdb) { return; } if (ShouldForwardToPreviousMethodWithUsingInfo(context, methodBody)) { Debug.Assert(!ReferenceEquals(_previousMethodBodyWithUsingInfo, methodBody)); encoder.AddForwardMethodInfo(_previousMethodWithUsingInfo); return; } var usingCounts = ArrayBuilder<int>.GetInstance(); for (IImportScope scope = methodBody.ImportScope; scope != null; scope = scope.Parent) { usingCounts.Add(scope.GetUsedNamespaces().Length); } encoder.AddUsingGroups(usingCounts); usingCounts.Free(); if (_methodBodyWithModuleInfo != null && !ReferenceEquals(_methodBodyWithModuleInfo, methodBody)) { encoder.AddForwardModuleInfo(_methodWithModuleInfo); } } private bool ShouldForwardToPreviousMethodWithUsingInfo(EmitContext context, IMethodBody methodBody) { if (_previousMethodBodyWithUsingInfo == null || ReferenceEquals(_previousMethodBodyWithUsingInfo, methodBody)) { return false; } // VB includes method namespace in namespace scopes: if (context.Module.GenerateVisualBasicStylePdb) { if (_pdbWriter.GetOrCreateSerializedNamespaceName(_previousMethodBodyWithUsingInfo.MethodDefinition.ContainingNamespace) != _pdbWriter.GetOrCreateSerializedNamespaceName(methodBody.MethodDefinition.ContainingNamespace)) { return false; } } var previousScopes = _previousMethodBodyWithUsingInfo.ImportScope; // methods share the same import scope (common case for methods declared in the same file) if (methodBody.ImportScope == previousScopes) { return true; } // If methods are in different files they don't share the same scopes, // but the imports might be the same nevertheless. // Note: not comparing project-level imports since those are the same for all method bodies. var s1 = methodBody.ImportScope; var s2 = previousScopes; while (s1 != null && s2 != null) { if (!s1.GetUsedNamespaces().SequenceEqual(s2.GetUsedNamespaces())) { return false; } s1 = s1.Parent; s2 = s2.Parent; } return s1 == s2; } } }
1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/Core/Portable/PEWriter/MetadataWriter.PortablePdb.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Reflection.PortableExecutable; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Debugging; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.DiaSymReader; using Roslyn.Utilities; namespace Microsoft.Cci { internal partial class MetadataWriter { /// <summary> /// Import scopes are associated with binders (in C#) and thus multiple instances might be created for a single set of imports. /// We consider scopes with the same parent and the same imports the same. /// Internal for testing. /// </summary> internal sealed class ImportScopeEqualityComparer : IEqualityComparer<IImportScope> { public static readonly ImportScopeEqualityComparer Instance = new ImportScopeEqualityComparer(); public bool Equals(IImportScope x, IImportScope y) { return (object)x == y || x != null && y != null && Equals(x.Parent, y.Parent) && x.GetUsedNamespaces().SequenceEqual(y.GetUsedNamespaces()); } public int GetHashCode(IImportScope obj) { return Hash.Combine(Hash.CombineValues(obj.GetUsedNamespaces()), obj.Parent != null ? GetHashCode(obj.Parent) : 0); } } private readonly Dictionary<DebugSourceDocument, DocumentHandle> _documentIndex = new Dictionary<DebugSourceDocument, DocumentHandle>(); private readonly Dictionary<IImportScope, ImportScopeHandle> _scopeIndex = new Dictionary<IImportScope, ImportScopeHandle>(ImportScopeEqualityComparer.Instance); private void SerializeMethodDebugInfo(IMethodBody bodyOpt, int methodRid, int aggregateMethodRid, StandaloneSignatureHandle localSignatureHandleOpt, ref LocalVariableHandle lastLocalVariableHandle, ref LocalConstantHandle lastLocalConstantHandle) { if (bodyOpt == null) { _debugMetadataOpt.AddMethodDebugInformation(default(DocumentHandle), default(BlobHandle)); return; } bool isKickoffMethod = bodyOpt.StateMachineTypeName != null; bool emitDebugInfo = isKickoffMethod || !bodyOpt.SequencePoints.IsEmpty; if (!emitDebugInfo) { _debugMetadataOpt.AddMethodDebugInformation(default(DocumentHandle), default(BlobHandle)); return; } var methodHandle = MetadataTokens.MethodDefinitionHandle(methodRid); var bodyImportScope = bodyOpt.ImportScope; var importScopeHandle = (bodyImportScope != null) ? GetImportScopeIndex(bodyImportScope, _scopeIndex) : default(ImportScopeHandle); // documents & sequence points: DocumentHandle singleDocumentHandle; BlobHandle sequencePointsBlob = SerializeSequencePoints(localSignatureHandleOpt, bodyOpt.SequencePoints, _documentIndex, out singleDocumentHandle); _debugMetadataOpt.AddMethodDebugInformation(document: singleDocumentHandle, sequencePoints: sequencePointsBlob); // Unlike native PDB we don't emit an empty root scope. // scopes are already ordered by StartOffset ascending then by EndOffset descending (the longest scope first). if (bodyOpt.LocalScopes.Length == 0) { // TODO: the compiler should produce a scope for each debuggable method _debugMetadataOpt.AddLocalScope( method: methodHandle, importScope: importScopeHandle, variableList: NextHandle(lastLocalVariableHandle), constantList: NextHandle(lastLocalConstantHandle), startOffset: 0, length: bodyOpt.IL.Length); } else { foreach (LocalScope scope in bodyOpt.LocalScopes) { _debugMetadataOpt.AddLocalScope( method: methodHandle, importScope: importScopeHandle, variableList: NextHandle(lastLocalVariableHandle), constantList: NextHandle(lastLocalConstantHandle), startOffset: scope.StartOffset, length: scope.Length); foreach (ILocalDefinition local in scope.Variables) { Debug.Assert(local.SlotIndex >= 0); lastLocalVariableHandle = _debugMetadataOpt.AddLocalVariable( attributes: local.PdbAttributes, index: local.SlotIndex, name: _debugMetadataOpt.GetOrAddString(local.Name)); SerializeLocalInfo(local, lastLocalVariableHandle); } foreach (ILocalDefinition constant in scope.Constants) { var mdConstant = constant.CompileTimeValue; Debug.Assert(mdConstant != null); lastLocalConstantHandle = _debugMetadataOpt.AddLocalConstant( name: _debugMetadataOpt.GetOrAddString(constant.Name), signature: SerializeLocalConstantSignature(constant)); SerializeLocalInfo(constant, lastLocalConstantHandle); } } } var moveNextBodyInfo = bodyOpt.MoveNextBodyInfo; if (moveNextBodyInfo != null) { _debugMetadataOpt.AddStateMachineMethod( moveNextMethod: methodHandle, kickoffMethod: GetMethodDefinitionHandle(moveNextBodyInfo.KickoffMethod)); if (moveNextBodyInfo is AsyncMoveNextBodyDebugInfo asyncInfo) { SerializeAsyncMethodSteppingInfo(asyncInfo, methodHandle, aggregateMethodRid); } } SerializeStateMachineLocalScopes(bodyOpt, methodHandle); // delta doesn't need this information - we use information recorded by previous generation emit if (Context.Module.CommonCompilation.Options.EnableEditAndContinue && IsFullMetadata) { SerializeEncMethodDebugInformation(bodyOpt, methodHandle); } } private static LocalVariableHandle NextHandle(LocalVariableHandle handle) => MetadataTokens.LocalVariableHandle(MetadataTokens.GetRowNumber(handle) + 1); private static LocalConstantHandle NextHandle(LocalConstantHandle handle) => MetadataTokens.LocalConstantHandle(MetadataTokens.GetRowNumber(handle) + 1); private BlobHandle SerializeLocalConstantSignature(ILocalDefinition localConstant) { var builder = new BlobBuilder(); // TODO: BlobEncoder.LocalConstantSignature // CustomMod* var encoder = new CustomModifiersEncoder(builder); SerializeCustomModifiers(encoder, localConstant.CustomModifiers); var type = localConstant.Type; var typeCode = type.TypeCode; object value = localConstant.CompileTimeValue.Value; // PrimitiveConstant or EnumConstant if (value is decimal) { builder.WriteByte((byte)SignatureTypeKind.ValueType); builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); builder.WriteDecimal((decimal)value); } else if (value is DateTime) { builder.WriteByte((byte)SignatureTypeKind.ValueType); builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); builder.WriteDateTime((DateTime)value); } else if (typeCode == PrimitiveTypeCode.String) { builder.WriteByte((byte)ConstantTypeCode.String); if (value == null) { builder.WriteByte(0xff); } else { builder.WriteUTF16((string)value); } } else if (value != null) { // TypeCode builder.WriteByte((byte)GetConstantTypeCode(value)); // Value builder.WriteConstant(value); // EnumType if (type.IsEnum) { builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); } } else if (this.module.IsPlatformType(type, PlatformType.SystemObject)) { builder.WriteByte((byte)SignatureTypeCode.Object); } else { builder.WriteByte((byte)(type.IsValueType ? SignatureTypeKind.ValueType : SignatureTypeKind.Class)); builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); } return _debugMetadataOpt.GetOrAddBlob(builder); } private static SignatureTypeCode GetConstantTypeCode(object value) { if (value == null) { // The encoding of Type for the nullref value for FieldInit is ELEMENT_TYPE_CLASS with a Value of a zero. return (SignatureTypeCode)SignatureTypeKind.Class; } Debug.Assert(!value.GetType().GetTypeInfo().IsEnum); // Perf: Note that JIT optimizes each expression val.GetType() == typeof(T) to a single register comparison. // Also the checks are sorted by commonality of the checked types. if (value.GetType() == typeof(int)) { return SignatureTypeCode.Int32; } if (value.GetType() == typeof(string)) { return SignatureTypeCode.String; } if (value.GetType() == typeof(bool)) { return SignatureTypeCode.Boolean; } if (value.GetType() == typeof(char)) { return SignatureTypeCode.Char; } if (value.GetType() == typeof(byte)) { return SignatureTypeCode.Byte; } if (value.GetType() == typeof(long)) { return SignatureTypeCode.Int64; } if (value.GetType() == typeof(double)) { return SignatureTypeCode.Double; } if (value.GetType() == typeof(short)) { return SignatureTypeCode.Int16; } if (value.GetType() == typeof(ushort)) { return SignatureTypeCode.UInt16; } if (value.GetType() == typeof(uint)) { return SignatureTypeCode.UInt32; } if (value.GetType() == typeof(sbyte)) { return SignatureTypeCode.SByte; } if (value.GetType() == typeof(ulong)) { return SignatureTypeCode.UInt64; } if (value.GetType() == typeof(float)) { return SignatureTypeCode.Single; } throw ExceptionUtilities.Unreachable; } #region ImportScope private static readonly ImportScopeHandle ModuleImportScopeHandle = MetadataTokens.ImportScopeHandle(1); private void SerializeImport(BlobBuilder writer, AssemblyReferenceAlias alias) { // <import> ::= AliasAssemblyReference <alias> <target-assembly> writer.WriteByte((byte)ImportDefinitionKind.AliasAssemblyReference); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(alias.Name))); writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(GetOrAddAssemblyReferenceHandle(alias.Assembly))); } private void SerializeImport(BlobBuilder writer, UsedNamespaceOrType import) { if (import.TargetXmlNamespaceOpt != null) { Debug.Assert(import.TargetNamespaceOpt == null); Debug.Assert(import.TargetAssemblyOpt == null); Debug.Assert(import.TargetTypeOpt == null); // <import> ::= ImportXmlNamespace <alias> <target-namespace> writer.WriteByte((byte)ImportDefinitionKind.ImportXmlNamespace); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.TargetXmlNamespaceOpt))); } else if (import.TargetTypeOpt != null) { Debug.Assert(import.TargetNamespaceOpt == null); Debug.Assert(import.TargetAssemblyOpt == null); if (import.AliasOpt != null) { // <import> ::= AliasType <alias> <target-type> writer.WriteByte((byte)ImportDefinitionKind.AliasType); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); } else { // <import> ::= ImportType <target-type> writer.WriteByte((byte)ImportDefinitionKind.ImportType); } writer.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(import.TargetTypeOpt))); // TODO: index in release build } else if (import.TargetNamespaceOpt != null) { if (import.TargetAssemblyOpt != null) { if (import.AliasOpt != null) { // <import> ::= AliasAssemblyNamespace <alias> <target-assembly> <target-namespace> writer.WriteByte((byte)ImportDefinitionKind.AliasAssemblyNamespace); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); } else { // <import> ::= ImportAssemblyNamespace <target-assembly> <target-namespace> writer.WriteByte((byte)ImportDefinitionKind.ImportAssemblyNamespace); } writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(GetAssemblyReferenceHandle(import.TargetAssemblyOpt))); } else { if (import.AliasOpt != null) { // <import> ::= AliasNamespace <alias> <target-namespace> writer.WriteByte((byte)ImportDefinitionKind.AliasNamespace); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); } else { // <import> ::= ImportNamespace <target-namespace> writer.WriteByte((byte)ImportDefinitionKind.ImportNamespace); } } // TODO: cache? string namespaceName = TypeNameSerializer.BuildQualifiedNamespaceName(import.TargetNamespaceOpt); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(namespaceName))); } else { // <import> ::= ImportReferenceAlias <alias> Debug.Assert(import.AliasOpt != null); Debug.Assert(import.TargetAssemblyOpt == null); writer.WriteByte((byte)ImportDefinitionKind.ImportAssemblyReferenceAlias); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); } } private void DefineModuleImportScope() { // module-level import scope: var writer = new BlobBuilder(); SerializeModuleDefaultNamespace(); foreach (AssemblyReferenceAlias alias in module.GetAssemblyReferenceAliases(Context)) { SerializeImport(writer, alias); } foreach (UsedNamespaceOrType import in module.GetImports()) { SerializeImport(writer, import); } var rid = _debugMetadataOpt.AddImportScope( parentScope: default(ImportScopeHandle), imports: _debugMetadataOpt.GetOrAddBlob(writer)); Debug.Assert(rid == ModuleImportScopeHandle); } private ImportScopeHandle GetImportScopeIndex(IImportScope scope, Dictionary<IImportScope, ImportScopeHandle> scopeIndex) { ImportScopeHandle scopeHandle; if (scopeIndex.TryGetValue(scope, out scopeHandle)) { // scope is already indexed: return scopeHandle; } var parent = scope.Parent; var parentScopeHandle = (parent != null) ? GetImportScopeIndex(scope.Parent, scopeIndex) : ModuleImportScopeHandle; var result = _debugMetadataOpt.AddImportScope( parentScope: parentScopeHandle, imports: SerializeImportsBlob(scope)); scopeIndex.Add(scope, result); return result; } private BlobHandle SerializeImportsBlob(IImportScope scope) { var writer = new BlobBuilder(); foreach (UsedNamespaceOrType import in scope.GetUsedNamespaces()) { SerializeImport(writer, import); } return _debugMetadataOpt.GetOrAddBlob(writer); } private void SerializeModuleDefaultNamespace() { // C#: DefaultNamespace is null. // VB: DefaultNamespace is non-null. if (module.DefaultNamespace == null) { return; } _debugMetadataOpt.AddCustomDebugInformation( parent: EntityHandle.ModuleDefinition, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.DefaultNamespace), value: _debugMetadataOpt.GetOrAddBlobUTF8(module.DefaultNamespace)); } #endregion #region Locals private void SerializeLocalInfo(ILocalDefinition local, EntityHandle parent) { var dynamicFlags = local.DynamicTransformFlags; if (!dynamicFlags.IsEmpty) { var value = SerializeBitVector(dynamicFlags); _debugMetadataOpt.AddCustomDebugInformation( parent: parent, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.DynamicLocalVariables), value: _debugMetadataOpt.GetOrAddBlob(value)); } var tupleElementNames = local.TupleElementNames; if (!tupleElementNames.IsEmpty) { var builder = new BlobBuilder(); SerializeTupleElementNames(builder, tupleElementNames); _debugMetadataOpt.AddCustomDebugInformation( parent: parent, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.TupleElementNames), value: _debugMetadataOpt.GetOrAddBlob(builder)); } } private static ImmutableArray<byte> SerializeBitVector(ImmutableArray<bool> vector) { var builder = ArrayBuilder<byte>.GetInstance(); int b = 0; int shift = 0; for (int i = 0; i < vector.Length; i++) { if (vector[i]) { b |= 1 << shift; } if (shift == 7) { builder.Add((byte)b); b = 0; shift = 0; } else { shift++; } } if (b != 0) { builder.Add((byte)b); } else { // trim trailing zeros: int lastNonZero = builder.Count - 1; while (builder[lastNonZero] == 0) { lastNonZero--; } builder.Clip(lastNonZero + 1); } return builder.ToImmutableAndFree(); } private static void SerializeTupleElementNames(BlobBuilder builder, ImmutableArray<string> names) { foreach (var name in names) { WriteUtf8String(builder, name ?? string.Empty); } } /// <summary> /// Write string as UTF8 with null terminator. /// </summary> private static void WriteUtf8String(BlobBuilder builder, string str) { builder.WriteUTF8(str); builder.WriteByte(0); } #endregion #region State Machines private void SerializeAsyncMethodSteppingInfo(AsyncMoveNextBodyDebugInfo asyncInfo, MethodDefinitionHandle moveNextMethod, int aggregateMethodDefRid) { Debug.Assert(asyncInfo.ResumeOffsets.Length == asyncInfo.YieldOffsets.Length); Debug.Assert(asyncInfo.CatchHandlerOffset >= -1); var writer = new BlobBuilder(); writer.WriteUInt32((uint)((long)asyncInfo.CatchHandlerOffset + 1)); for (int i = 0; i < asyncInfo.ResumeOffsets.Length; i++) { writer.WriteUInt32((uint)asyncInfo.YieldOffsets[i]); writer.WriteUInt32((uint)asyncInfo.ResumeOffsets[i]); writer.WriteCompressedInteger(aggregateMethodDefRid); } _debugMetadataOpt.AddCustomDebugInformation( parent: moveNextMethod, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.AsyncMethodSteppingInformationBlob), value: _debugMetadataOpt.GetOrAddBlob(writer)); } private void SerializeStateMachineLocalScopes(IMethodBody methodBody, MethodDefinitionHandle method) { var scopes = methodBody.StateMachineHoistedLocalScopes; if (scopes.IsDefaultOrEmpty) { return; } var writer = new BlobBuilder(); foreach (var scope in scopes) { writer.WriteUInt32((uint)scope.StartOffset); writer.WriteUInt32((uint)scope.Length); } _debugMetadataOpt.AddCustomDebugInformation( parent: method, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.StateMachineHoistedLocalScopes), value: _debugMetadataOpt.GetOrAddBlob(writer)); } #endregion #region Sequence Points private BlobHandle SerializeSequencePoints( StandaloneSignatureHandle localSignatureHandleOpt, ImmutableArray<SequencePoint> sequencePoints, Dictionary<DebugSourceDocument, DocumentHandle> documentIndex, out DocumentHandle singleDocumentHandle) { if (sequencePoints.Length == 0) { singleDocumentHandle = default(DocumentHandle); return default(BlobHandle); } var writer = new BlobBuilder(); int previousNonHiddenStartLine = -1; int previousNonHiddenStartColumn = -1; // header: writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(localSignatureHandleOpt)); var previousDocument = TryGetSingleDocument(sequencePoints); singleDocumentHandle = (previousDocument != null) ? GetOrAddDocument(previousDocument, documentIndex) : default(DocumentHandle); for (int i = 0; i < sequencePoints.Length; i++) { var currentDocument = sequencePoints[i].Document; if (previousDocument != currentDocument) { var documentHandle = GetOrAddDocument(currentDocument, documentIndex); // optional document in header or document record: if (previousDocument != null) { writer.WriteCompressedInteger(0); } writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(documentHandle)); previousDocument = currentDocument; } // delta IL offset: if (i > 0) { writer.WriteCompressedInteger(sequencePoints[i].Offset - sequencePoints[i - 1].Offset); } else { writer.WriteCompressedInteger(sequencePoints[i].Offset); } if (sequencePoints[i].IsHidden) { writer.WriteInt16(0); continue; } // Delta Lines & Columns: SerializeDeltaLinesAndColumns(writer, sequencePoints[i]); // delta Start Lines & Columns: if (previousNonHiddenStartLine < 0) { Debug.Assert(previousNonHiddenStartColumn < 0); writer.WriteCompressedInteger(sequencePoints[i].StartLine); writer.WriteCompressedInteger(sequencePoints[i].StartColumn); } else { writer.WriteCompressedSignedInteger(sequencePoints[i].StartLine - previousNonHiddenStartLine); writer.WriteCompressedSignedInteger(sequencePoints[i].StartColumn - previousNonHiddenStartColumn); } previousNonHiddenStartLine = sequencePoints[i].StartLine; previousNonHiddenStartColumn = sequencePoints[i].StartColumn; } return _debugMetadataOpt.GetOrAddBlob(writer); } private static DebugSourceDocument TryGetSingleDocument(ImmutableArray<SequencePoint> sequencePoints) { DebugSourceDocument singleDocument = sequencePoints[0].Document; for (int i = 1; i < sequencePoints.Length; i++) { if (sequencePoints[i].Document != singleDocument) { return null; } } return singleDocument; } private void SerializeDeltaLinesAndColumns(BlobBuilder writer, SequencePoint sequencePoint) { int deltaLines = sequencePoint.EndLine - sequencePoint.StartLine; int deltaColumns = sequencePoint.EndColumn - sequencePoint.StartColumn; // only hidden sequence points have zero width Debug.Assert(deltaLines != 0 || deltaColumns != 0 || sequencePoint.IsHidden); writer.WriteCompressedInteger(deltaLines); if (deltaLines == 0) { writer.WriteCompressedInteger(deltaColumns); } else { writer.WriteCompressedSignedInteger(deltaColumns); } } #endregion #region Documents private DocumentHandle GetOrAddDocument(DebugSourceDocument document, Dictionary<DebugSourceDocument, DocumentHandle> index) { if (index.TryGetValue(document, out var documentHandle)) { return documentHandle; } return AddDocument(document, index); } private DocumentHandle AddDocument(DebugSourceDocument document, Dictionary<DebugSourceDocument, DocumentHandle> index) { DocumentHandle documentHandle; DebugSourceInfo info = document.GetSourceInfo(); var name = document.Location; if (_usingNonSourceDocumentNameEnumerator) { var result = _nonSourceDocumentNameEnumerator.MoveNext(); Debug.Assert(result); name = _nonSourceDocumentNameEnumerator.Current; } documentHandle = _debugMetadataOpt.AddDocument( name: _debugMetadataOpt.GetOrAddDocumentName(name), hashAlgorithm: info.Checksum.IsDefault ? default(GuidHandle) : _debugMetadataOpt.GetOrAddGuid(info.ChecksumAlgorithmId), hash: info.Checksum.IsDefault ? default(BlobHandle) : _debugMetadataOpt.GetOrAddBlob(info.Checksum), language: _debugMetadataOpt.GetOrAddGuid(document.Language)); index.Add(document, documentHandle); if (info.EmbeddedTextBlob != null) { _debugMetadataOpt.AddCustomDebugInformation( parent: documentHandle, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.EmbeddedSource), value: _debugMetadataOpt.GetOrAddBlob(info.EmbeddedTextBlob)); } return documentHandle; } /// <summary> /// Add document entries for all debug documents that do not yet have an entry. /// </summary> /// <remarks> /// This is done after serializing method debug info to ensure that we embed all requested /// text even if there are no corresponding sequence points. /// </remarks> public void AddRemainingDebugDocuments(IReadOnlyDictionary<string, DebugSourceDocument> documents) { foreach (var kvp in documents .Where(kvp => !_documentIndex.ContainsKey(kvp.Value)) .OrderBy(kvp => kvp.Key)) { AddDocument(kvp.Value, _documentIndex); } } #endregion #region Edit and Continue private void SerializeEncMethodDebugInformation(IMethodBody methodBody, MethodDefinitionHandle method) { var encInfo = GetEncMethodDebugInfo(methodBody); if (!encInfo.LocalSlots.IsDefaultOrEmpty) { var writer = new BlobBuilder(); encInfo.SerializeLocalSlots(writer); _debugMetadataOpt.AddCustomDebugInformation( parent: method, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.EncLocalSlotMap), value: _debugMetadataOpt.GetOrAddBlob(writer)); } if (!encInfo.Lambdas.IsDefaultOrEmpty) { var writer = new BlobBuilder(); encInfo.SerializeLambdaMap(writer); _debugMetadataOpt.AddCustomDebugInformation( parent: method, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.EncLambdaAndClosureMap), value: _debugMetadataOpt.GetOrAddBlob(writer)); } } #endregion private void EmbedSourceLink(Stream stream) { byte[] bytes; try { bytes = stream.ReadAllBytes(); } catch (Exception e) when (!(e is OperationCanceledException)) { throw new SymUnmanagedWriterException(e.Message, e); } _debugMetadataOpt.AddCustomDebugInformation( parent: EntityHandle.ModuleDefinition, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.SourceLink), value: _debugMetadataOpt.GetOrAddBlob(bytes)); } ///<summary>The version of the compilation options schema to be written to the PDB.</summary> private const int CompilationOptionsSchemaVersion = 2; /// <summary> /// Capture the set of compilation options to allow a compilation /// to be reconstructed from the pdb /// </summary> private void EmbedCompilationOptions(CommonPEModuleBuilder module) { var builder = new BlobBuilder(); if (this.Context.RebuildData is { } rebuildData) { var reader = rebuildData.OptionsBlobReader; builder.WriteBytes(reader.ReadBytes(reader.RemainingBytes)); } else { var compilerVersion = typeof(Compilation).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion; WriteValue(CompilationOptionNames.CompilationOptionsVersion, CompilationOptionsSchemaVersion.ToString()); WriteValue(CompilationOptionNames.CompilerVersion, compilerVersion); WriteValue(CompilationOptionNames.Language, module.CommonCompilation.Options.Language); WriteValue(CompilationOptionNames.SourceFileCount, module.CommonCompilation.SyntaxTrees.Count().ToString()); WriteValue(CompilationOptionNames.OutputKind, module.OutputKind.ToString()); if (module.EmitOptions.FallbackSourceFileEncoding != null) { WriteValue(CompilationOptionNames.FallbackEncoding, module.EmitOptions.FallbackSourceFileEncoding.WebName); } if (module.EmitOptions.DefaultSourceFileEncoding != null) { WriteValue(CompilationOptionNames.DefaultEncoding, module.EmitOptions.DefaultSourceFileEncoding.WebName); } int portabilityPolicy = 0; if (module.CommonCompilation.Options.AssemblyIdentityComparer is DesktopAssemblyIdentityComparer identityComparer) { portabilityPolicy |= identityComparer.PortabilityPolicy.SuppressSilverlightLibraryAssembliesPortability ? 0b1 : 0; portabilityPolicy |= identityComparer.PortabilityPolicy.SuppressSilverlightPlatformAssembliesPortability ? 0b10 : 0; } if (portabilityPolicy != 0) { WriteValue(CompilationOptionNames.PortabilityPolicy, portabilityPolicy.ToString()); } var optimizationLevel = module.CommonCompilation.Options.OptimizationLevel; var debugPlusMode = module.CommonCompilation.Options.DebugPlusMode; if ((optimizationLevel, debugPlusMode) != OptimizationLevelFacts.DefaultValues) { WriteValue(CompilationOptionNames.Optimization, optimizationLevel.ToPdbSerializedString(debugPlusMode)); } var platform = module.CommonCompilation.Options.Platform; WriteValue(CompilationOptionNames.Platform, platform.ToString()); var runtimeVersion = typeof(object).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion; WriteValue(CompilationOptionNames.RuntimeVersion, runtimeVersion); module.CommonCompilation.SerializePdbEmbeddedCompilationOptions(builder); } _debugMetadataOpt.AddCustomDebugInformation( parent: EntityHandle.ModuleDefinition, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.CompilationOptions), value: _debugMetadataOpt.GetOrAddBlob(builder)); void WriteValue(string key, string value) { builder.WriteUTF8(key); builder.WriteByte(0); builder.WriteUTF8(value); builder.WriteByte(0); } } /// <summary> /// Writes information about metadata references to the pdb so the same /// reference can be found on sourcelink to create the compilation again /// </summary> private void EmbedMetadataReferenceInformation(CommonPEModuleBuilder module) { var builder = new BlobBuilder(); // Order of information // File name (null terminated string): A.exe // Extern Alias (null terminated string): a1,a2,a3 // MetadataImageKind (byte) // EmbedInteropTypes (boolean) // COFF header Timestamp field (4 byte int) // COFF header SizeOfImage field (4 byte int) // MVID (Guid, 24 bytes) var referenceManager = module.CommonCompilation.GetBoundReferenceManager(); foreach (var pair in referenceManager.GetReferencedAssemblyAliases()) { if (referenceManager.GetMetadataReference(pair.AssemblySymbol) is PortableExecutableReference { FilePath: { } } portableReference) { var fileName = PathUtilities.GetFileName(portableReference.FilePath); var peReader = pair.AssemblySymbol.GetISymbol() is IAssemblySymbol assemblySymbol ? assemblySymbol.GetMetadata().GetAssembly().ManifestModule.PEReaderOpt : null; // Don't write before checking that we can get a peReader for the metadata reference if (peReader is null) continue; // Write file name first builder.WriteUTF8(fileName); // Make sure to add null terminator builder.WriteByte(0); // Extern alias if (pair.Aliases.Length > 0) builder.WriteUTF8(string.Join(",", pair.Aliases.OrderBy(StringComparer.Ordinal))); // Always null terminate the extern alias list builder.WriteByte(0); byte kindAndEmbedInteropTypes = (byte)(portableReference.Properties.EmbedInteropTypes ? 0b10 : 0b0); kindAndEmbedInteropTypes |= portableReference.Properties.Kind switch { MetadataImageKind.Assembly => 1, MetadataImageKind.Module => 0, _ => throw ExceptionUtilities.UnexpectedValue(portableReference.Properties.Kind) }; builder.WriteByte(kindAndEmbedInteropTypes); builder.WriteInt32(peReader.PEHeaders.CoffHeader.TimeDateStamp); builder.WriteInt32(peReader.PEHeaders.PEHeader.SizeOfImage); var metadataReader = peReader.GetMetadataReader(); var moduleDefinition = metadataReader.GetModuleDefinition(); builder.WriteGuid(metadataReader.GetGuid(moduleDefinition.Mvid)); } } _debugMetadataOpt.AddCustomDebugInformation( parent: EntityHandle.ModuleDefinition, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.CompilationMetadataReferences), value: _debugMetadataOpt.GetOrAddBlob(builder)); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Reflection.PortableExecutable; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Debugging; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.DiaSymReader; using Roslyn.Utilities; namespace Microsoft.Cci { internal partial class MetadataWriter { /// <summary> /// Import scopes are associated with binders (in C#) and thus multiple instances might be created for a single set of imports. /// We consider scopes with the same parent and the same imports the same. /// Internal for testing. /// </summary> internal sealed class ImportScopeEqualityComparer : IEqualityComparer<IImportScope> { public static readonly ImportScopeEqualityComparer Instance = new ImportScopeEqualityComparer(); public bool Equals(IImportScope x, IImportScope y) { return (object)x == y || x != null && y != null && Equals(x.Parent, y.Parent) && x.GetUsedNamespaces().SequenceEqual(y.GetUsedNamespaces()); } public int GetHashCode(IImportScope obj) { return Hash.Combine(Hash.CombineValues(obj.GetUsedNamespaces()), obj.Parent != null ? GetHashCode(obj.Parent) : 0); } } private readonly Dictionary<DebugSourceDocument, DocumentHandle> _documentIndex = new Dictionary<DebugSourceDocument, DocumentHandle>(); private readonly Dictionary<IImportScope, ImportScopeHandle> _scopeIndex = new Dictionary<IImportScope, ImportScopeHandle>(ImportScopeEqualityComparer.Instance); private void SerializeMethodDebugInfo(IMethodBody bodyOpt, int methodRid, int aggregateMethodRid, StandaloneSignatureHandle localSignatureHandleOpt, ref LocalVariableHandle lastLocalVariableHandle, ref LocalConstantHandle lastLocalConstantHandle) { if (bodyOpt == null) { _debugMetadataOpt.AddMethodDebugInformation(document: default, sequencePoints: default); return; } bool isKickoffMethod = bodyOpt.StateMachineTypeName != null; bool emitAllDebugInfo = isKickoffMethod || !bodyOpt.SequencePoints.IsEmpty; var methodHandle = MetadataTokens.MethodDefinitionHandle(methodRid); // documents & sequence points: BlobHandle sequencePointsBlob = SerializeSequencePoints(localSignatureHandleOpt, bodyOpt.SequencePoints, _documentIndex, out var singleDocumentHandle); _debugMetadataOpt.AddMethodDebugInformation(document: singleDocumentHandle, sequencePoints: sequencePointsBlob); if (emitAllDebugInfo) { var bodyImportScope = bodyOpt.ImportScope; var importScopeHandle = (bodyImportScope != null) ? GetImportScopeIndex(bodyImportScope, _scopeIndex) : default; // Unlike native PDB we don't emit an empty root scope. // scopes are already ordered by StartOffset ascending then by EndOffset descending (the longest scope first). if (bodyOpt.LocalScopes.Length == 0) { // TODO: the compiler should produce a scope for each debuggable method rather then adding one here _debugMetadataOpt.AddLocalScope( method: methodHandle, importScope: importScopeHandle, variableList: NextHandle(lastLocalVariableHandle), constantList: NextHandle(lastLocalConstantHandle), startOffset: 0, length: bodyOpt.IL.Length); } else { foreach (LocalScope scope in bodyOpt.LocalScopes) { _debugMetadataOpt.AddLocalScope( method: methodHandle, importScope: importScopeHandle, variableList: NextHandle(lastLocalVariableHandle), constantList: NextHandle(lastLocalConstantHandle), startOffset: scope.StartOffset, length: scope.Length); foreach (ILocalDefinition local in scope.Variables) { Debug.Assert(local.SlotIndex >= 0); lastLocalVariableHandle = _debugMetadataOpt.AddLocalVariable( attributes: local.PdbAttributes, index: local.SlotIndex, name: _debugMetadataOpt.GetOrAddString(local.Name)); SerializeLocalInfo(local, lastLocalVariableHandle); } foreach (ILocalDefinition constant in scope.Constants) { var mdConstant = constant.CompileTimeValue; Debug.Assert(mdConstant != null); lastLocalConstantHandle = _debugMetadataOpt.AddLocalConstant( name: _debugMetadataOpt.GetOrAddString(constant.Name), signature: SerializeLocalConstantSignature(constant)); SerializeLocalInfo(constant, lastLocalConstantHandle); } } } var moveNextBodyInfo = bodyOpt.MoveNextBodyInfo; if (moveNextBodyInfo != null) { _debugMetadataOpt.AddStateMachineMethod( moveNextMethod: methodHandle, kickoffMethod: GetMethodDefinitionHandle(moveNextBodyInfo.KickoffMethod)); if (moveNextBodyInfo is AsyncMoveNextBodyDebugInfo asyncInfo) { SerializeAsyncMethodSteppingInfo(asyncInfo, methodHandle, aggregateMethodRid); } } SerializeStateMachineLocalScopes(bodyOpt, methodHandle); } // Emit EnC info for all methods even if they do not have sequence points. // The information facilitates reusing lambdas and closures. The reuse is important for runtimes that can't add new members (e.g. Mono). // EnC delta doesn't need this information - we use information recorded by previous generation emit. if (Context.Module.CommonCompilation.Options.EnableEditAndContinue && IsFullMetadata) { SerializeEncMethodDebugInformation(bodyOpt, methodHandle); } } private static LocalVariableHandle NextHandle(LocalVariableHandle handle) => MetadataTokens.LocalVariableHandle(MetadataTokens.GetRowNumber(handle) + 1); private static LocalConstantHandle NextHandle(LocalConstantHandle handle) => MetadataTokens.LocalConstantHandle(MetadataTokens.GetRowNumber(handle) + 1); private BlobHandle SerializeLocalConstantSignature(ILocalDefinition localConstant) { var builder = new BlobBuilder(); // TODO: BlobEncoder.LocalConstantSignature // CustomMod* var encoder = new CustomModifiersEncoder(builder); SerializeCustomModifiers(encoder, localConstant.CustomModifiers); var type = localConstant.Type; var typeCode = type.TypeCode; object value = localConstant.CompileTimeValue.Value; // PrimitiveConstant or EnumConstant if (value is decimal) { builder.WriteByte((byte)SignatureTypeKind.ValueType); builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); builder.WriteDecimal((decimal)value); } else if (value is DateTime) { builder.WriteByte((byte)SignatureTypeKind.ValueType); builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); builder.WriteDateTime((DateTime)value); } else if (typeCode == PrimitiveTypeCode.String) { builder.WriteByte((byte)ConstantTypeCode.String); if (value == null) { builder.WriteByte(0xff); } else { builder.WriteUTF16((string)value); } } else if (value != null) { // TypeCode builder.WriteByte((byte)GetConstantTypeCode(value)); // Value builder.WriteConstant(value); // EnumType if (type.IsEnum) { builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); } } else if (this.module.IsPlatformType(type, PlatformType.SystemObject)) { builder.WriteByte((byte)SignatureTypeCode.Object); } else { builder.WriteByte((byte)(type.IsValueType ? SignatureTypeKind.ValueType : SignatureTypeKind.Class)); builder.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(type))); } return _debugMetadataOpt.GetOrAddBlob(builder); } private static SignatureTypeCode GetConstantTypeCode(object value) { if (value == null) { // The encoding of Type for the nullref value for FieldInit is ELEMENT_TYPE_CLASS with a Value of a zero. return (SignatureTypeCode)SignatureTypeKind.Class; } Debug.Assert(!value.GetType().GetTypeInfo().IsEnum); // Perf: Note that JIT optimizes each expression val.GetType() == typeof(T) to a single register comparison. // Also the checks are sorted by commonality of the checked types. if (value.GetType() == typeof(int)) { return SignatureTypeCode.Int32; } if (value.GetType() == typeof(string)) { return SignatureTypeCode.String; } if (value.GetType() == typeof(bool)) { return SignatureTypeCode.Boolean; } if (value.GetType() == typeof(char)) { return SignatureTypeCode.Char; } if (value.GetType() == typeof(byte)) { return SignatureTypeCode.Byte; } if (value.GetType() == typeof(long)) { return SignatureTypeCode.Int64; } if (value.GetType() == typeof(double)) { return SignatureTypeCode.Double; } if (value.GetType() == typeof(short)) { return SignatureTypeCode.Int16; } if (value.GetType() == typeof(ushort)) { return SignatureTypeCode.UInt16; } if (value.GetType() == typeof(uint)) { return SignatureTypeCode.UInt32; } if (value.GetType() == typeof(sbyte)) { return SignatureTypeCode.SByte; } if (value.GetType() == typeof(ulong)) { return SignatureTypeCode.UInt64; } if (value.GetType() == typeof(float)) { return SignatureTypeCode.Single; } throw ExceptionUtilities.Unreachable; } #region ImportScope private static readonly ImportScopeHandle ModuleImportScopeHandle = MetadataTokens.ImportScopeHandle(1); private void SerializeImport(BlobBuilder writer, AssemblyReferenceAlias alias) { // <import> ::= AliasAssemblyReference <alias> <target-assembly> writer.WriteByte((byte)ImportDefinitionKind.AliasAssemblyReference); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(alias.Name))); writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(GetOrAddAssemblyReferenceHandle(alias.Assembly))); } private void SerializeImport(BlobBuilder writer, UsedNamespaceOrType import) { if (import.TargetXmlNamespaceOpt != null) { Debug.Assert(import.TargetNamespaceOpt == null); Debug.Assert(import.TargetAssemblyOpt == null); Debug.Assert(import.TargetTypeOpt == null); // <import> ::= ImportXmlNamespace <alias> <target-namespace> writer.WriteByte((byte)ImportDefinitionKind.ImportXmlNamespace); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.TargetXmlNamespaceOpt))); } else if (import.TargetTypeOpt != null) { Debug.Assert(import.TargetNamespaceOpt == null); Debug.Assert(import.TargetAssemblyOpt == null); if (import.AliasOpt != null) { // <import> ::= AliasType <alias> <target-type> writer.WriteByte((byte)ImportDefinitionKind.AliasType); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); } else { // <import> ::= ImportType <target-type> writer.WriteByte((byte)ImportDefinitionKind.ImportType); } writer.WriteCompressedInteger(CodedIndex.TypeDefOrRefOrSpec(GetTypeHandle(import.TargetTypeOpt))); // TODO: index in release build } else if (import.TargetNamespaceOpt != null) { if (import.TargetAssemblyOpt != null) { if (import.AliasOpt != null) { // <import> ::= AliasAssemblyNamespace <alias> <target-assembly> <target-namespace> writer.WriteByte((byte)ImportDefinitionKind.AliasAssemblyNamespace); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); } else { // <import> ::= ImportAssemblyNamespace <target-assembly> <target-namespace> writer.WriteByte((byte)ImportDefinitionKind.ImportAssemblyNamespace); } writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(GetAssemblyReferenceHandle(import.TargetAssemblyOpt))); } else { if (import.AliasOpt != null) { // <import> ::= AliasNamespace <alias> <target-namespace> writer.WriteByte((byte)ImportDefinitionKind.AliasNamespace); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); } else { // <import> ::= ImportNamespace <target-namespace> writer.WriteByte((byte)ImportDefinitionKind.ImportNamespace); } } // TODO: cache? string namespaceName = TypeNameSerializer.BuildQualifiedNamespaceName(import.TargetNamespaceOpt); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(namespaceName))); } else { // <import> ::= ImportReferenceAlias <alias> Debug.Assert(import.AliasOpt != null); Debug.Assert(import.TargetAssemblyOpt == null); writer.WriteByte((byte)ImportDefinitionKind.ImportAssemblyReferenceAlias); writer.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_debugMetadataOpt.GetOrAddBlobUTF8(import.AliasOpt))); } } private void DefineModuleImportScope() { // module-level import scope: var writer = new BlobBuilder(); SerializeModuleDefaultNamespace(); foreach (AssemblyReferenceAlias alias in module.GetAssemblyReferenceAliases(Context)) { SerializeImport(writer, alias); } foreach (UsedNamespaceOrType import in module.GetImports()) { SerializeImport(writer, import); } var rid = _debugMetadataOpt.AddImportScope( parentScope: default(ImportScopeHandle), imports: _debugMetadataOpt.GetOrAddBlob(writer)); Debug.Assert(rid == ModuleImportScopeHandle); } private ImportScopeHandle GetImportScopeIndex(IImportScope scope, Dictionary<IImportScope, ImportScopeHandle> scopeIndex) { ImportScopeHandle scopeHandle; if (scopeIndex.TryGetValue(scope, out scopeHandle)) { // scope is already indexed: return scopeHandle; } var parent = scope.Parent; var parentScopeHandle = (parent != null) ? GetImportScopeIndex(scope.Parent, scopeIndex) : ModuleImportScopeHandle; var result = _debugMetadataOpt.AddImportScope( parentScope: parentScopeHandle, imports: SerializeImportsBlob(scope)); scopeIndex.Add(scope, result); return result; } private BlobHandle SerializeImportsBlob(IImportScope scope) { var writer = new BlobBuilder(); foreach (UsedNamespaceOrType import in scope.GetUsedNamespaces()) { SerializeImport(writer, import); } return _debugMetadataOpt.GetOrAddBlob(writer); } private void SerializeModuleDefaultNamespace() { // C#: DefaultNamespace is null. // VB: DefaultNamespace is non-null. if (module.DefaultNamespace == null) { return; } _debugMetadataOpt.AddCustomDebugInformation( parent: EntityHandle.ModuleDefinition, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.DefaultNamespace), value: _debugMetadataOpt.GetOrAddBlobUTF8(module.DefaultNamespace)); } #endregion #region Locals private void SerializeLocalInfo(ILocalDefinition local, EntityHandle parent) { var dynamicFlags = local.DynamicTransformFlags; if (!dynamicFlags.IsEmpty) { var value = SerializeBitVector(dynamicFlags); _debugMetadataOpt.AddCustomDebugInformation( parent: parent, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.DynamicLocalVariables), value: _debugMetadataOpt.GetOrAddBlob(value)); } var tupleElementNames = local.TupleElementNames; if (!tupleElementNames.IsEmpty) { var builder = new BlobBuilder(); SerializeTupleElementNames(builder, tupleElementNames); _debugMetadataOpt.AddCustomDebugInformation( parent: parent, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.TupleElementNames), value: _debugMetadataOpt.GetOrAddBlob(builder)); } } private static ImmutableArray<byte> SerializeBitVector(ImmutableArray<bool> vector) { var builder = ArrayBuilder<byte>.GetInstance(); int b = 0; int shift = 0; for (int i = 0; i < vector.Length; i++) { if (vector[i]) { b |= 1 << shift; } if (shift == 7) { builder.Add((byte)b); b = 0; shift = 0; } else { shift++; } } if (b != 0) { builder.Add((byte)b); } else { // trim trailing zeros: int lastNonZero = builder.Count - 1; while (builder[lastNonZero] == 0) { lastNonZero--; } builder.Clip(lastNonZero + 1); } return builder.ToImmutableAndFree(); } private static void SerializeTupleElementNames(BlobBuilder builder, ImmutableArray<string> names) { foreach (var name in names) { WriteUtf8String(builder, name ?? string.Empty); } } /// <summary> /// Write string as UTF8 with null terminator. /// </summary> private static void WriteUtf8String(BlobBuilder builder, string str) { builder.WriteUTF8(str); builder.WriteByte(0); } #endregion #region State Machines private void SerializeAsyncMethodSteppingInfo(AsyncMoveNextBodyDebugInfo asyncInfo, MethodDefinitionHandle moveNextMethod, int aggregateMethodDefRid) { Debug.Assert(asyncInfo.ResumeOffsets.Length == asyncInfo.YieldOffsets.Length); Debug.Assert(asyncInfo.CatchHandlerOffset >= -1); var writer = new BlobBuilder(); writer.WriteUInt32((uint)((long)asyncInfo.CatchHandlerOffset + 1)); for (int i = 0; i < asyncInfo.ResumeOffsets.Length; i++) { writer.WriteUInt32((uint)asyncInfo.YieldOffsets[i]); writer.WriteUInt32((uint)asyncInfo.ResumeOffsets[i]); writer.WriteCompressedInteger(aggregateMethodDefRid); } _debugMetadataOpt.AddCustomDebugInformation( parent: moveNextMethod, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.AsyncMethodSteppingInformationBlob), value: _debugMetadataOpt.GetOrAddBlob(writer)); } private void SerializeStateMachineLocalScopes(IMethodBody methodBody, MethodDefinitionHandle method) { var scopes = methodBody.StateMachineHoistedLocalScopes; if (scopes.IsDefaultOrEmpty) { return; } var writer = new BlobBuilder(); foreach (var scope in scopes) { writer.WriteUInt32((uint)scope.StartOffset); writer.WriteUInt32((uint)scope.Length); } _debugMetadataOpt.AddCustomDebugInformation( parent: method, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.StateMachineHoistedLocalScopes), value: _debugMetadataOpt.GetOrAddBlob(writer)); } #endregion #region Sequence Points private BlobHandle SerializeSequencePoints( StandaloneSignatureHandle localSignatureHandleOpt, ImmutableArray<SequencePoint> sequencePoints, Dictionary<DebugSourceDocument, DocumentHandle> documentIndex, out DocumentHandle singleDocumentHandle) { if (sequencePoints.Length == 0) { singleDocumentHandle = default(DocumentHandle); return default(BlobHandle); } var writer = new BlobBuilder(); int previousNonHiddenStartLine = -1; int previousNonHiddenStartColumn = -1; // header: writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(localSignatureHandleOpt)); var previousDocument = TryGetSingleDocument(sequencePoints); singleDocumentHandle = (previousDocument != null) ? GetOrAddDocument(previousDocument, documentIndex) : default(DocumentHandle); for (int i = 0; i < sequencePoints.Length; i++) { var currentDocument = sequencePoints[i].Document; if (previousDocument != currentDocument) { var documentHandle = GetOrAddDocument(currentDocument, documentIndex); // optional document in header or document record: if (previousDocument != null) { writer.WriteCompressedInteger(0); } writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(documentHandle)); previousDocument = currentDocument; } // delta IL offset: if (i > 0) { writer.WriteCompressedInteger(sequencePoints[i].Offset - sequencePoints[i - 1].Offset); } else { writer.WriteCompressedInteger(sequencePoints[i].Offset); } if (sequencePoints[i].IsHidden) { writer.WriteInt16(0); continue; } // Delta Lines & Columns: SerializeDeltaLinesAndColumns(writer, sequencePoints[i]); // delta Start Lines & Columns: if (previousNonHiddenStartLine < 0) { Debug.Assert(previousNonHiddenStartColumn < 0); writer.WriteCompressedInteger(sequencePoints[i].StartLine); writer.WriteCompressedInteger(sequencePoints[i].StartColumn); } else { writer.WriteCompressedSignedInteger(sequencePoints[i].StartLine - previousNonHiddenStartLine); writer.WriteCompressedSignedInteger(sequencePoints[i].StartColumn - previousNonHiddenStartColumn); } previousNonHiddenStartLine = sequencePoints[i].StartLine; previousNonHiddenStartColumn = sequencePoints[i].StartColumn; } return _debugMetadataOpt.GetOrAddBlob(writer); } private static DebugSourceDocument TryGetSingleDocument(ImmutableArray<SequencePoint> sequencePoints) { DebugSourceDocument singleDocument = sequencePoints[0].Document; for (int i = 1; i < sequencePoints.Length; i++) { if (sequencePoints[i].Document != singleDocument) { return null; } } return singleDocument; } private void SerializeDeltaLinesAndColumns(BlobBuilder writer, SequencePoint sequencePoint) { int deltaLines = sequencePoint.EndLine - sequencePoint.StartLine; int deltaColumns = sequencePoint.EndColumn - sequencePoint.StartColumn; // only hidden sequence points have zero width Debug.Assert(deltaLines != 0 || deltaColumns != 0 || sequencePoint.IsHidden); writer.WriteCompressedInteger(deltaLines); if (deltaLines == 0) { writer.WriteCompressedInteger(deltaColumns); } else { writer.WriteCompressedSignedInteger(deltaColumns); } } #endregion #region Documents private DocumentHandle GetOrAddDocument(DebugSourceDocument document, Dictionary<DebugSourceDocument, DocumentHandle> index) { if (index.TryGetValue(document, out var documentHandle)) { return documentHandle; } return AddDocument(document, index); } private DocumentHandle AddDocument(DebugSourceDocument document, Dictionary<DebugSourceDocument, DocumentHandle> index) { DocumentHandle documentHandle; DebugSourceInfo info = document.GetSourceInfo(); var name = document.Location; if (_usingNonSourceDocumentNameEnumerator) { var result = _nonSourceDocumentNameEnumerator.MoveNext(); Debug.Assert(result); name = _nonSourceDocumentNameEnumerator.Current; } documentHandle = _debugMetadataOpt.AddDocument( name: _debugMetadataOpt.GetOrAddDocumentName(name), hashAlgorithm: info.Checksum.IsDefault ? default(GuidHandle) : _debugMetadataOpt.GetOrAddGuid(info.ChecksumAlgorithmId), hash: info.Checksum.IsDefault ? default(BlobHandle) : _debugMetadataOpt.GetOrAddBlob(info.Checksum), language: _debugMetadataOpt.GetOrAddGuid(document.Language)); index.Add(document, documentHandle); if (info.EmbeddedTextBlob != null) { _debugMetadataOpt.AddCustomDebugInformation( parent: documentHandle, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.EmbeddedSource), value: _debugMetadataOpt.GetOrAddBlob(info.EmbeddedTextBlob)); } return documentHandle; } /// <summary> /// Add document entries for all debug documents that do not yet have an entry. /// </summary> /// <remarks> /// This is done after serializing method debug info to ensure that we embed all requested /// text even if there are no corresponding sequence points. /// </remarks> public void AddRemainingDebugDocuments(IReadOnlyDictionary<string, DebugSourceDocument> documents) { foreach (var kvp in documents .Where(kvp => !_documentIndex.ContainsKey(kvp.Value)) .OrderBy(kvp => kvp.Key)) { AddDocument(kvp.Value, _documentIndex); } } #endregion #region Edit and Continue private void SerializeEncMethodDebugInformation(IMethodBody methodBody, MethodDefinitionHandle method) { var encInfo = GetEncMethodDebugInfo(methodBody); if (!encInfo.LocalSlots.IsDefaultOrEmpty) { var writer = new BlobBuilder(); encInfo.SerializeLocalSlots(writer); _debugMetadataOpt.AddCustomDebugInformation( parent: method, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.EncLocalSlotMap), value: _debugMetadataOpt.GetOrAddBlob(writer)); } if (!encInfo.Lambdas.IsDefaultOrEmpty) { var writer = new BlobBuilder(); encInfo.SerializeLambdaMap(writer); _debugMetadataOpt.AddCustomDebugInformation( parent: method, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.EncLambdaAndClosureMap), value: _debugMetadataOpt.GetOrAddBlob(writer)); } } #endregion private void EmbedSourceLink(Stream stream) { byte[] bytes; try { bytes = stream.ReadAllBytes(); } catch (Exception e) when (!(e is OperationCanceledException)) { throw new SymUnmanagedWriterException(e.Message, e); } _debugMetadataOpt.AddCustomDebugInformation( parent: EntityHandle.ModuleDefinition, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.SourceLink), value: _debugMetadataOpt.GetOrAddBlob(bytes)); } ///<summary>The version of the compilation options schema to be written to the PDB.</summary> private const int CompilationOptionsSchemaVersion = 2; /// <summary> /// Capture the set of compilation options to allow a compilation /// to be reconstructed from the pdb /// </summary> private void EmbedCompilationOptions(CommonPEModuleBuilder module) { var builder = new BlobBuilder(); if (this.Context.RebuildData is { } rebuildData) { var reader = rebuildData.OptionsBlobReader; builder.WriteBytes(reader.ReadBytes(reader.RemainingBytes)); } else { var compilerVersion = typeof(Compilation).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion; WriteValue(CompilationOptionNames.CompilationOptionsVersion, CompilationOptionsSchemaVersion.ToString()); WriteValue(CompilationOptionNames.CompilerVersion, compilerVersion); WriteValue(CompilationOptionNames.Language, module.CommonCompilation.Options.Language); WriteValue(CompilationOptionNames.SourceFileCount, module.CommonCompilation.SyntaxTrees.Count().ToString()); WriteValue(CompilationOptionNames.OutputKind, module.OutputKind.ToString()); if (module.EmitOptions.FallbackSourceFileEncoding != null) { WriteValue(CompilationOptionNames.FallbackEncoding, module.EmitOptions.FallbackSourceFileEncoding.WebName); } if (module.EmitOptions.DefaultSourceFileEncoding != null) { WriteValue(CompilationOptionNames.DefaultEncoding, module.EmitOptions.DefaultSourceFileEncoding.WebName); } int portabilityPolicy = 0; if (module.CommonCompilation.Options.AssemblyIdentityComparer is DesktopAssemblyIdentityComparer identityComparer) { portabilityPolicy |= identityComparer.PortabilityPolicy.SuppressSilverlightLibraryAssembliesPortability ? 0b1 : 0; portabilityPolicy |= identityComparer.PortabilityPolicy.SuppressSilverlightPlatformAssembliesPortability ? 0b10 : 0; } if (portabilityPolicy != 0) { WriteValue(CompilationOptionNames.PortabilityPolicy, portabilityPolicy.ToString()); } var optimizationLevel = module.CommonCompilation.Options.OptimizationLevel; var debugPlusMode = module.CommonCompilation.Options.DebugPlusMode; if ((optimizationLevel, debugPlusMode) != OptimizationLevelFacts.DefaultValues) { WriteValue(CompilationOptionNames.Optimization, optimizationLevel.ToPdbSerializedString(debugPlusMode)); } var platform = module.CommonCompilation.Options.Platform; WriteValue(CompilationOptionNames.Platform, platform.ToString()); var runtimeVersion = typeof(object).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion; WriteValue(CompilationOptionNames.RuntimeVersion, runtimeVersion); module.CommonCompilation.SerializePdbEmbeddedCompilationOptions(builder); } _debugMetadataOpt.AddCustomDebugInformation( parent: EntityHandle.ModuleDefinition, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.CompilationOptions), value: _debugMetadataOpt.GetOrAddBlob(builder)); void WriteValue(string key, string value) { builder.WriteUTF8(key); builder.WriteByte(0); builder.WriteUTF8(value); builder.WriteByte(0); } } /// <summary> /// Writes information about metadata references to the pdb so the same /// reference can be found on sourcelink to create the compilation again /// </summary> private void EmbedMetadataReferenceInformation(CommonPEModuleBuilder module) { var builder = new BlobBuilder(); // Order of information // File name (null terminated string): A.exe // Extern Alias (null terminated string): a1,a2,a3 // MetadataImageKind (byte) // EmbedInteropTypes (boolean) // COFF header Timestamp field (4 byte int) // COFF header SizeOfImage field (4 byte int) // MVID (Guid, 24 bytes) var referenceManager = module.CommonCompilation.GetBoundReferenceManager(); foreach (var pair in referenceManager.GetReferencedAssemblyAliases()) { if (referenceManager.GetMetadataReference(pair.AssemblySymbol) is PortableExecutableReference { FilePath: { } } portableReference) { var fileName = PathUtilities.GetFileName(portableReference.FilePath); var peReader = pair.AssemblySymbol.GetISymbol() is IAssemblySymbol assemblySymbol ? assemblySymbol.GetMetadata().GetAssembly().ManifestModule.PEReaderOpt : null; // Don't write before checking that we can get a peReader for the metadata reference if (peReader is null) continue; // Write file name first builder.WriteUTF8(fileName); // Make sure to add null terminator builder.WriteByte(0); // Extern alias if (pair.Aliases.Length > 0) builder.WriteUTF8(string.Join(",", pair.Aliases.OrderBy(StringComparer.Ordinal))); // Always null terminate the extern alias list builder.WriteByte(0); byte kindAndEmbedInteropTypes = (byte)(portableReference.Properties.EmbedInteropTypes ? 0b10 : 0b0); kindAndEmbedInteropTypes |= portableReference.Properties.Kind switch { MetadataImageKind.Assembly => 1, MetadataImageKind.Module => 0, _ => throw ExceptionUtilities.UnexpectedValue(portableReference.Properties.Kind) }; builder.WriteByte(kindAndEmbedInteropTypes); builder.WriteInt32(peReader.PEHeaders.CoffHeader.TimeDateStamp); builder.WriteInt32(peReader.PEHeaders.PEHeader.SizeOfImage); var metadataReader = peReader.GetMetadataReader(); var moduleDefinition = metadataReader.GetModuleDefinition(); builder.WriteGuid(metadataReader.GetGuid(moduleDefinition.Mvid)); } } _debugMetadataOpt.AddCustomDebugInformation( parent: EntityHandle.ModuleDefinition, kind: _debugMetadataOpt.GetOrAddGuid(PortableCustomDebugInfoKinds.CompilationMetadataReferences), value: _debugMetadataOpt.GetOrAddBlob(builder)); } } }
1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/VisualBasic/Test/Emit/PDB/PDBExternalSourceDirectiveTests.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.Emit Imports Microsoft.CodeAnalysis.Test.Utilities Imports Roslyn.Test.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.PDB Public Class PDBExternalSourceDirectiveTests Inherits BasicTestBase <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> <WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")> Public Sub TwoMethodsOnlyOneWithMapping() Dim source = <compilation> <file name="a.vb"> Option Strict On Option Infer Off Option Explicit Off Imports System Imports System.Collections.Generic Class C1 Public Shared Sub FooInvisible() dim str as string = "World!" Console.WriteLine("Hello " &amp; str) End Sub Public Shared Sub Main() Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 23) Console.WriteLine("Hello World") #End ExternalSource Console.WriteLine("Hello World") End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) ' Care about the fact that there is no file reference to a.vb ' Care about the fact that C1.FooInvisible doesn't include any sequence points compilation.VerifyPdb( <symbols> <files> <file id="1" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="70-82-DD-9A-57-B3-BE-57-7E-E8-B4-AE-B8-1E-1B-75-38-9D-13-C9"/> <file id="2" name="C:\abc\def.vb" language="VB"/> </files> <entryPoint declaringType="C1" methodName="Main"/> <methods> <method containingType="C1" name="Main"> <sequencePoints> <entry offset="0x0" hidden="true" document="2"/> <entry offset="0x1" hidden="true" document="2"/> <entry offset="0xc" startLine="23" startColumn="9" endLine="23" endColumn="41" document="2"/> <entry offset="0x17" hidden="true" document="2"/> <entry offset="0x22" hidden="true" document="2"/> </sequencePoints> </method> </methods> </symbols>, format:=DebugInformationFormat.PortablePdb) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> <WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")> Public Sub TwoMethodsOnlyOneWithMultipleMappingsAndRewriting() Dim source = <compilation> <file name="a.vb"> Option Strict On Option Infer Off Option Explicit Off Imports System Imports System.Collections.Generic Class C1 Public Shared Sub FooInvisible() dim str as string = "World!" Console.WriteLine("Hello " &amp; str) End Sub Public Shared Sub Main() Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 23) Console.WriteLine("Hello World") Console.WriteLine("Hello World") #End ExternalSource #ExternalSource("C:\abc\def2.vb", 42) ' check that there are normal and hidden sequence points with mapping present ' because a for each will be rewritten for each i in new Integer() {1, 2, 3} Console.WriteLine(i) next i #End ExternalSource Console.WriteLine("Hello World") ' hidden sequence points of rewritten statements will survive *iiks*. for each i in new Integer() {1, 2, 3} Console.WriteLine(i) next i End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) ' Care about the fact that C1.FooInvisible doesn't include any sequence points ' Care about the fact that there is no file reference to a.vb compilation.VerifyPdb( <symbols> <files> <file id="1" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="DB-A9-94-EF-BC-DF-10-C9-60-0F-C0-C4-9F-E4-77-F9-37-CF-E1-CE"/> <file id="2" name="C:\abc\def.vb" language="VB"/> <file id="3" name="C:\abc\def2.vb" language="VB"/> </files> <entryPoint declaringType="C1" methodName="Main"/> <methods> <method containingType="C1" name="Main"> <customDebugInfo> <encLocalSlotMap> <slot kind="0" offset="372"/> <slot kind="6" offset="363"/> <slot kind="8" offset="363"/> <slot kind="1" offset="363"/> <slot kind="6" offset="606"/> <slot kind="8" offset="606"/> <slot kind="1" offset="606"/> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset="0x0" hidden="true" document="2"/> <entry offset="0x1" hidden="true" document="2"/> <entry offset="0xc" startLine="23" startColumn="9" endLine="23" endColumn="41" document="2"/> <entry offset="0x17" startLine="24" startColumn="9" endLine="24" endColumn="41" document="2"/> <entry offset="0x22" startLine="44" startColumn="9" endLine="44" endColumn="46" document="3"/> <entry offset="0x36" hidden="true" document="3"/> <entry offset="0x41" startLine="45" startColumn="13" endLine="45" endColumn="33" document="3"/> <entry offset="0x4d" startLine="46" startColumn="9" endLine="46" endColumn="15" document="3"/> <entry offset="0x4e" hidden="true" document="3"/> <entry offset="0x52" hidden="true" document="3"/> <entry offset="0x59" hidden="true" document="3"/> <entry offset="0x5c" hidden="true" document="3"/> <entry offset="0x67" hidden="true" document="3"/> <entry offset="0x7d" hidden="true" document="3"/> <entry offset="0x8a" hidden="true" document="3"/> <entry offset="0x96" hidden="true" document="3"/> <entry offset="0x97" hidden="true" document="3"/> <entry offset="0x9d" hidden="true" document="3"/> <entry offset="0xa7" hidden="true" document="3"/> <entry offset="0xab" hidden="true" document="3"/> </sequencePoints> <scope startOffset="0x0" endOffset="0xac"> <local name="i" il_index="0" il_start="0x0" il_end="0xac" attributes="0"/> </scope> </method> </methods> </symbols>, format:=DebugInformationFormat.PortablePdb) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub EmptyExternalSourceWillBeIgnored() Dim source = <compilation> <file name="a.vb"> Option Strict On Option Infer Off Option Explicit Off Imports System Imports System.Collections.Generic Class C1 Public Shared Sub FooInvisible() dim str as string = "World!" Console.WriteLine("Hello " &amp; str) End Sub Public Shared Sub Main() Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 23) #End ExternalSource Console.WriteLine("Hello World") End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) compilation.VerifyPdb( <symbols> <files> <file id="1" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="EE-47-B3-F6-59-FA-0D-E8-DF-B2-26-6A-7D-82-D3-52-3E-0C-36-E1"/> </files> <entryPoint declaringType="C1" methodName="Main"/> <methods> <method containingType="C1" name="FooInvisible"> <customDebugInfo> <encLocalSlotMap> <slot kind="0" offset="4"/> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset="0x0" startLine="9" startColumn="5" endLine="9" endColumn="37" document="1"/> <entry offset="0x1" startLine="10" startColumn="13" endLine="10" endColumn="37" document="1"/> <entry offset="0x7" startLine="11" startColumn="9" endLine="11" endColumn="42" document="1"/> <entry offset="0x18" startLine="12" startColumn="5" endLine="12" endColumn="12" document="1"/> </sequencePoints> <scope startOffset="0x0" endOffset="0x19"> <namespace name="System" importlevel="file"/> <namespace name="System.Collections.Generic" importlevel="file"/> <currentnamespace name=""/> <local name="str" il_index="0" il_start="0x0" il_end="0x19" attributes="0"/> </scope> </method> <method containingType="C1" name="Main"> <sequencePoints> <entry offset="0x0" startLine="14" startColumn="5" endLine="14" endColumn="29" document="1"/> <entry offset="0x1" startLine="15" startColumn="9" endLine="15" endColumn="41" document="1"/> <entry offset="0xc" startLine="20" startColumn="9" endLine="20" endColumn="41" document="1"/> <entry offset="0x17" startLine="21" startColumn="5" endLine="21" endColumn="12" document="1"/> </sequencePoints> <scope startOffset="0x0" endOffset="0x18"> <importsforward declaringType="C1" methodName="FooInvisible"/> </scope> </method> </methods> </symbols>) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub MultipleEmptyExternalSourceWillBeIgnored() Dim source = <compilation> <file name="a.vb"> Option Strict On Option Infer Off Option Explicit Off Imports System Imports System.Collections.Generic Class C1 Public Shared Sub FooInvisible() dim str as string = "World!" Console.WriteLine("Hello " &amp; str) End Sub Public Shared Sub Main() #ExternalSource("C:\abc\def.vb", 21) #End ExternalSource Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 22) #End ExternalSource Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 23) #End ExternalSource End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) compilation.VerifyPdb( <symbols> <files> <file id="1" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="B9-85-76-74-1E-E7-27-25-F7-8A-CB-A2-B1-9C-A4-CD-FD-49-8C-B7"/> </files> <entryPoint declaringType="C1" methodName="Main"/> <methods> <method containingType="C1" name="FooInvisible"> <customDebugInfo> <encLocalSlotMap> <slot kind="0" offset="4"/> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset="0x0" startLine="9" startColumn="5" endLine="9" endColumn="37" document="1"/> <entry offset="0x1" startLine="10" startColumn="13" endLine="10" endColumn="37" document="1"/> <entry offset="0x7" startLine="11" startColumn="9" endLine="11" endColumn="42" document="1"/> <entry offset="0x18" startLine="12" startColumn="5" endLine="12" endColumn="12" document="1"/> </sequencePoints> <scope startOffset="0x0" endOffset="0x19"> <namespace name="System" importlevel="file"/> <namespace name="System.Collections.Generic" importlevel="file"/> <currentnamespace name=""/> <local name="str" il_index="0" il_start="0x0" il_end="0x19" attributes="0"/> </scope> </method> <method containingType="C1" name="Main"> <sequencePoints> <entry offset="0x0" startLine="14" startColumn="5" endLine="14" endColumn="29" document="1"/> <entry offset="0x1" startLine="18" startColumn="9" endLine="18" endColumn="41" document="1"/> <entry offset="0xc" startLine="23" startColumn="9" endLine="23" endColumn="41" document="1"/> <entry offset="0x17" startLine="27" startColumn="5" endLine="27" endColumn="12" document="1"/> </sequencePoints> <scope startOffset="0x0" endOffset="0x18"> <importsforward declaringType="C1" methodName="FooInvisible"/> </scope> </method> </methods> </symbols>) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub MultipleEmptyExternalSourceWithNonEmptyExternalSource() Dim source = <compilation> <file name="a.vb"> Option Strict On Option Infer Off Option Explicit Off Imports System Imports System.Collections.Generic Class C1 Public Shared Sub FooInvisible() dim str as string = "World!" Console.WriteLine("Hello " &amp; str) End Sub Public Shared Sub Main() #ExternalSource("C:\abc\def.vb", 21) #End ExternalSource Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 22) #End ExternalSource Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 23) ' boo! #End ExternalSource End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) ' Care about the fact that there are no sequence points or referenced files compilation.VerifyPdb( <symbols> <files> <file id="1" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="B6-80-9E-65-43-38-00-C1-35-7F-AE-D0-60-F2-24-44-A8-11-C2-63"/> </files> <entryPoint declaringType="C1" methodName="Main"/> <methods> <method containingType="C1" name="Main" format="windows"> <scope startOffset="0x0" endOffset="0x18"> <namespace name="System" importlevel="file"/> <namespace name="System.Collections.Generic" importlevel="file"/> <currentnamespace name=""/> </scope> </method> </methods> </symbols>, ' Since the CDI is not emitted to Portable PDB it won't be present in the converted Windows PDB. options:=PdbValidationOptions.SkipConversionValidation) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub MultipleEmptyExternalSourceWithNonEmptyExternalSourceFollowedByEmptyExternalSource() Dim source = <compilation> <file name="a.vb"> Option Strict On Option Infer Off Option Explicit Off Imports System Imports System.Collections.Generic Class C1 Public Shared Sub FooInvisible() dim str as string = "World!" Console.WriteLine("Hello " &amp; str) End Sub Public Shared Sub Main() #ExternalSource("C:\abc\def.vb", 21) #End ExternalSource Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 22) #End ExternalSource Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 23) #End ExternalSource Console.WriteLine("Hello World") End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) ' Care about the fact that C1.FooInvisible and C1.Main include no sequence points ' Care about the fact that no files are referenced compilation.VerifyPdb( <symbols> <files> <file id="1" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="73-05-84-40-AC-E0-15-63-CC-FE-BD-9A-99-23-AA-BD-24-40-24-44"/> </files> <entryPoint declaringType="C1" methodName="Main"/> <methods> <method containingType="C1" name="Main" format="windows"> <scope startOffset="0x0" endOffset="0x23"> <namespace name="System" importlevel="file"/> <namespace name="System.Collections.Generic" importlevel="file"/> <currentnamespace name=""/> </scope> </method> </methods> </symbols>, options:=PdbValidationOptions.SkipConversionValidation) ' When converting from Portable to Windows the PDB writer doesn't create an entry for the Main method ' and thus there Is no entry point record either. End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> <WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")> Public Sub TestPartialClassFieldInitializersWithExternalSource() Dim source = <compilation> <file name="C:\Abc\ACTUAL.vb"> #ExternalSource("C:\abc\def1.vb", 41) Option strict on imports system partial Class C1 public f1 as integer = 23 #End ExternalSource #ExternalSource("C:\abc\def1.vb", 10) Public sub DumpFields() Console.WriteLine(f1) Console.WriteLine(f2) End Sub #End ExternalSource #ExternalSource("C:\abc\def1.vb", 1) Public shared Sub Main(args() as string) Dim c as new C1 c.DumpFields() End sub #End ExternalSource End Class Class InActual public f1 as integer = 23 end Class #ExternalChecksum("C:\abc\def2.vb", "{406EA660-64CF-4C82-B6F0-42D48172A799}", "1234") #ExternalChecksum("BOGUS.vb", "{406EA660-64CF-4C82-B6F0-42D48172A799}", "1234") #ExternalChecksum("C:\Abc\ACTUAL.vb", "{406EA660-64CF-4C82-B6F0-42D48172A799}", "6789") </file> <file name="b.vb"> Option strict on imports system partial Class C1 #ExternalSource("C:\abc\def2.vb", 23) ' more lines to see a different span in the sequence points ... public f2 as integer = 42 #End ExternalSource #ExternalChecksum("BOGUS.vb", "{406EA660-64CF-4C82-B6F0-42D48172A799}", "1234") #ExternalChecksum("C:\Abc\ACTUAL.vb", "{406EA660-64CF-4C82-B6F0-42D48172A799}", "6789") End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) ' Care about the fact that InActual.ctor includes no sequence points ' Care about the fact that there is no file reference to ACTUAL.vb compilation.VerifyPdb( <symbols> <files> <file id="1" name="C:\Abc\ACTUAL.vb" language="VB" checksumAlgorithm="SHA1" checksum="27-52-E9-85-5A-AC-31-05-A5-6F-70-40-55-3A-9C-43-D2-07-0D-4B"/> <file id="2" name="b.vb" language="VB" checksumAlgorithm="SHA1" checksum="7F-D8-35-3F-B4-08-17-37-3E-37-30-26-2A-3F-0C-20-6F-48-2A-7A"/> <file id="3" name="C:\abc\def1.vb" language="VB"/> <file id="4" name="C:\abc\def2.vb" language="VB" checksumAlgorithm="406ea660-64cf-4c82-b6f0-42d48172a799" checksum="12-34"/> <file id="5" name="BOGUS.vb" language="VB" checksumAlgorithm="406ea660-64cf-4c82-b6f0-42d48172a799" checksum="12-34"/> </files> <entryPoint declaringType="C1" methodName="Main" parameterNames="args"/> <methods> <method containingType="C1" name=".ctor"> <sequencePoints> <entry offset="0x0" hidden="true" document="3"/> <entry offset="0x7" startLine="46" startColumn="12" endLine="46" endColumn="30" document="3"/> <entry offset="0xf" startLine="27" startColumn="36" endLine="27" endColumn="54" document="4"/> </sequencePoints> </method> <method containingType="C1" name="DumpFields"> <sequencePoints> <entry offset="0x0" startLine="10" startColumn="5" endLine="10" endColumn="28" document="3"/> <entry offset="0x1" startLine="11" startColumn="9" endLine="11" endColumn="30" document="3"/> <entry offset="0xd" startLine="12" startColumn="9" endLine="12" endColumn="30" document="3"/> <entry offset="0x19" startLine="13" startColumn="5" endLine="13" endColumn="12" document="3"/> </sequencePoints> </method> <method containingType="C1" name="Main" parameterNames="args"> <customDebugInfo> <encLocalSlotMap> <slot kind="0" offset="4"/> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset="0x0" startLine="1" startColumn="5" endLine="1" endColumn="45" document="3"/> <entry offset="0x1" startLine="2" startColumn="13" endLine="2" endColumn="24" document="3"/> <entry offset="0x7" startLine="3" startColumn="9" endLine="3" endColumn="23" document="3"/> <entry offset="0xe" startLine="4" startColumn="5" endLine="4" endColumn="12" document="3"/> </sequencePoints> <scope startOffset="0x0" endOffset="0xf"> <local name="c" il_index="0" il_start="0x0" il_end="0xf" attributes="0"/> </scope> </method> </methods> </symbols>, format:=DebugInformationFormat.PortablePdb) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub IllegalExternalSourceUsageShouldNotAssert_1() Dim source = <compilation> <file name="a.vb"> Option strict on public Class C1 #ExternalSource("bar1.vb", 41) #ExternalSource("bar1.vb", 41) public shared sub main() End sub #End ExternalSource #End ExternalSource boo End Class </file> </compilation> Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime( source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_NestedExternalSource, "#ExternalSource(""bar1.vb"", 41)"), Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource")) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub IllegalExternalSourceUsageShouldNotAssert_2() Dim source = <compilation> <file name="a.vb"> Option strict on public Class C1 #End ExternalSource #End ExternalSource public shared sub main() End sub boo End Class </file> </compilation> Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime( source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource"), Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource"), Diagnostic(ERRID.ERR_ExpectedDeclaration, "boo")) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub IllegalExternalSourceUsageShouldNotAssert_3() Dim source = <compilation> <file name="a.vb"> Option strict on public Class C1 #End ExternalSource #ExternalSource("bar1.vb", 23) public shared sub main() End sub boo End Class </file> </compilation> Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime( source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource"), Diagnostic(ERRID.ERR_ExpectedEndExternalSource, "#ExternalSource(""bar1.vb"", 23)"), Diagnostic(ERRID.ERR_ExpectedDeclaration, "boo")) End Sub <WorkItem(545302, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545302")> <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub IllegalExternalSourceUsageShouldNotAssert_4() Dim source = <compilation> <file name="a.vb"> Module Program Sub Main() #ExternalSource ("bar1.vb", 23) #ExternalSource ("bar1.vb", 23) System.Console.WriteLine("boo") #End ExternalSource End Sub End Module </file> </compilation> Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime( source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_NestedExternalSource, "#ExternalSource (""bar1.vb"", 23)")) End Sub <WorkItem(545307, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545307")> <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub OverflowLineNumbers() Dim source = <compilation> <file name="a.vb"> Option Strict On Imports System Imports System.Collections.Generic Module Program Public Sub Main() Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 0) Console.WriteLine("Hello World") #End ExternalSource #ExternalSource("C:\abc\def.vb", 1) Console.WriteLine("Hello World") #End ExternalSource #ExternalSource("C:\abc\def.vb", 2147483647) Console.WriteLine("Hello World") #End ExternalSource #ExternalSource("C:\abc\def.vb", 2147483648) Console.WriteLine("Hello World") #End ExternalSource #ExternalSource("C:\abc\def.vb", 2147483649) Console.WriteLine("Hello World") #End ExternalSource #ExternalSource("C:\abc\def.vb", &amp;hfeefed) Console.WriteLine("Hello World") #End ExternalSource Console.WriteLine("Hello World") End Sub End Module </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) ' Care about the fact that there is no document reference to a.vb compilation.VerifyPdb( <symbols> <files> <file id="1" name="C:\abc\def.vb" language="VB"/> <file id="2" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="D2-FF-05-F8-B7-A2-25-B0-96-D9-97-2F-05-F8-F0-B5-81-8D-98-1D"/> </files> <entryPoint declaringType="Program" methodName="Main"/> <methods> <method containingType="Program" name="Main"> <sequencePoints> <entry offset="0x0" hidden="true" document="1"/> <entry offset="0x1" hidden="true" document="1"/> <entry offset="0xc" startLine="0" startColumn="9" endLine="0" endColumn="41" document="1"/> <entry offset="0x17" startLine="1" startColumn="9" endLine="1" endColumn="41" document="1"/> <entry offset="0x22" startLine="16777215" startColumn="9" endLine="16777215" endColumn="41" document="1"/> <entry offset="0x2d" startLine="16777215" startColumn="9" endLine="16777215" endColumn="41" document="1"/> <entry offset="0x38" startLine="16777215" startColumn="9" endLine="16777215" endColumn="41" document="1"/> <entry offset="0x43" startLine="16707565" startColumn="9" endLine="16707565" endColumn="41" document="1"/> <entry offset="0x4e" hidden="true" document="1"/> <entry offset="0x59" hidden="true" document="1"/> </sequencePoints> <scope startOffset="0x0" endOffset="0x5a"> <namespace name="System" importlevel="file"/> <namespace name="System.Collections.Generic" importlevel="file"/> <currentnamespace name=""/> </scope> </method> </methods> </symbols>, format:=DebugInformationFormat.Pdb) End Sub <WorkItem(846584, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/846584")> <WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")> <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub RelativePathForExternalSource() Dim source = <compilation> <file name="C:\Folder1\Folder2\Test1.vb"> #ExternalChecksum("..\Test2.vb","{406ea660-64cf-4c82-b6f0-42d48172a799}","DB788882721B2B27C90579D5FE2A0418") Class Test1 Sub Main() #ExternalSource("..\Test2.vb",4) Main() #End ExternalSource End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime( source, TestOptions.DebugDll.WithSourceReferenceResolver(SourceFileResolver.Default)) ' Care about the fact that there is no document reference to C:\Folder1\Folder2\Test1.vb compilation.VerifyPdb( <symbols> <files> <file id="1" name="C:\Folder1\Folder2\Test1.vb" language="VB" checksumAlgorithm="SHA1" checksum="B9-49-3D-62-89-9B-B2-2F-B6-72-90-A1-2D-01-11-89-B4-C2-83-B4"/> <file id="2" name="C:\Folder1\Test2.vb" language="VB" checksumAlgorithm="406ea660-64cf-4c82-b6f0-42d48172a799" checksum="DB-78-88-82-72-1B-2B-27-C9-05-79-D5-FE-2A-04-18"/> </files> <methods> <method containingType="Test1" name="Main"> <sequencePoints> <entry offset="0x0" hidden="true" document="2"/> <entry offset="0x1" startLine="4" startColumn="2" endLine="4" endColumn="8" document="2"/> <entry offset="0x8" hidden="true" document="2"/> </sequencePoints> </method> </methods> </symbols>, format:=DebugInformationFormat.PortablePdb) End Sub End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.Emit Imports Microsoft.CodeAnalysis.Test.Utilities Imports Roslyn.Test.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.PDB Public Class PDBExternalSourceDirectiveTests Inherits BasicTestBase <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> <WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")> Public Sub TwoMethodsOnlyOneWithMapping() Dim source = <compilation> <file name="a.vb"> Option Strict On Option Infer Off Option Explicit Off Imports System Imports System.Collections.Generic Class C1 Public Shared Sub FooInvisible() dim str as string = "World!" Console.WriteLine("Hello " &amp; str) End Sub Public Shared Sub Main() Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 23) Console.WriteLine("Hello World") #End ExternalSource Console.WriteLine("Hello World") End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) ' Care about the fact that there is no file reference to a.vb ' Care about the fact that C1.FooInvisible doesn't include any sequence points compilation.VerifyPdb( <symbols> <files> <file id="1" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="70-82-DD-9A-57-B3-BE-57-7E-E8-B4-AE-B8-1E-1B-75-38-9D-13-C9"/> <file id="2" name="C:\abc\def.vb" language="VB"/> </files> <entryPoint declaringType="C1" methodName="Main"/> <methods> <method containingType="C1" name="FooInvisible"> <customDebugInfo> <encLocalSlotMap> <slot kind="0" offset="4"/> </encLocalSlotMap> </customDebugInfo> </method> <method containingType="C1" name="Main"> <sequencePoints> <entry offset="0x0" hidden="true" document="2"/> <entry offset="0x1" hidden="true" document="2"/> <entry offset="0xc" startLine="23" startColumn="9" endLine="23" endColumn="41" document="2"/> <entry offset="0x17" hidden="true" document="2"/> <entry offset="0x22" hidden="true" document="2"/> </sequencePoints> </method> </methods> </symbols>, format:=DebugInformationFormat.PortablePdb) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> <WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")> Public Sub TwoMethodsOnlyOneWithMultipleMappingsAndRewriting() Dim source = <compilation> <file name="a.vb"> Option Strict On Option Infer Off Option Explicit Off Imports System Imports System.Collections.Generic Class C1 Public Shared Sub FooInvisible() dim str as string = "World!" Console.WriteLine("Hello " &amp; str) End Sub Public Shared Sub Main() Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 23) Console.WriteLine("Hello World") Console.WriteLine("Hello World") #End ExternalSource #ExternalSource("C:\abc\def2.vb", 42) ' check that there are normal and hidden sequence points with mapping present ' because a for each will be rewritten for each i in new Integer() {1, 2, 3} Console.WriteLine(i) next i #End ExternalSource Console.WriteLine("Hello World") ' hidden sequence points of rewritten statements will survive *iiks*. for each i in new Integer() {1, 2, 3} Console.WriteLine(i) next i End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) ' Care about the fact that C1.FooInvisible doesn't include any sequence points ' Care about the fact that there is no file reference to a.vb compilation.VerifyPdb( <symbols> <files> <file id="1" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="DB-A9-94-EF-BC-DF-10-C9-60-0F-C0-C4-9F-E4-77-F9-37-CF-E1-CE"/> <file id="2" name="C:\abc\def.vb" language="VB"/> <file id="3" name="C:\abc\def2.vb" language="VB"/> </files> <entryPoint declaringType="C1" methodName="Main"/> <methods> <method containingType="C1" name="FooInvisible"> <customDebugInfo> <encLocalSlotMap> <slot kind="0" offset="4"/> </encLocalSlotMap> </customDebugInfo> </method> <method containingType="C1" name="Main"> <customDebugInfo> <encLocalSlotMap> <slot kind="0" offset="372"/> <slot kind="6" offset="363"/> <slot kind="8" offset="363"/> <slot kind="1" offset="363"/> <slot kind="6" offset="606"/> <slot kind="8" offset="606"/> <slot kind="1" offset="606"/> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset="0x0" hidden="true" document="2"/> <entry offset="0x1" hidden="true" document="2"/> <entry offset="0xc" startLine="23" startColumn="9" endLine="23" endColumn="41" document="2"/> <entry offset="0x17" startLine="24" startColumn="9" endLine="24" endColumn="41" document="2"/> <entry offset="0x22" startLine="44" startColumn="9" endLine="44" endColumn="46" document="3"/> <entry offset="0x36" hidden="true" document="3"/> <entry offset="0x41" startLine="45" startColumn="13" endLine="45" endColumn="33" document="3"/> <entry offset="0x4d" startLine="46" startColumn="9" endLine="46" endColumn="15" document="3"/> <entry offset="0x4e" hidden="true" document="3"/> <entry offset="0x52" hidden="true" document="3"/> <entry offset="0x59" hidden="true" document="3"/> <entry offset="0x5c" hidden="true" document="3"/> <entry offset="0x67" hidden="true" document="3"/> <entry offset="0x7d" hidden="true" document="3"/> <entry offset="0x8a" hidden="true" document="3"/> <entry offset="0x96" hidden="true" document="3"/> <entry offset="0x97" hidden="true" document="3"/> <entry offset="0x9d" hidden="true" document="3"/> <entry offset="0xa7" hidden="true" document="3"/> <entry offset="0xab" hidden="true" document="3"/> </sequencePoints> <scope startOffset="0x0" endOffset="0xac"> <local name="i" il_index="0" il_start="0x0" il_end="0xac" attributes="0"/> </scope> </method> </methods> </symbols>, format:=DebugInformationFormat.PortablePdb) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub EmptyExternalSourceWillBeIgnored() Dim source = <compilation> <file name="a.vb"> Option Strict On Option Infer Off Option Explicit Off Imports System Imports System.Collections.Generic Class C1 Public Shared Sub FooInvisible() dim str as string = "World!" Console.WriteLine("Hello " &amp; str) End Sub Public Shared Sub Main() Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 23) #End ExternalSource Console.WriteLine("Hello World") End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) compilation.VerifyPdb( <symbols> <files> <file id="1" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="EE-47-B3-F6-59-FA-0D-E8-DF-B2-26-6A-7D-82-D3-52-3E-0C-36-E1"/> </files> <entryPoint declaringType="C1" methodName="Main"/> <methods> <method containingType="C1" name="FooInvisible"> <customDebugInfo> <encLocalSlotMap> <slot kind="0" offset="4"/> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset="0x0" startLine="9" startColumn="5" endLine="9" endColumn="37" document="1"/> <entry offset="0x1" startLine="10" startColumn="13" endLine="10" endColumn="37" document="1"/> <entry offset="0x7" startLine="11" startColumn="9" endLine="11" endColumn="42" document="1"/> <entry offset="0x18" startLine="12" startColumn="5" endLine="12" endColumn="12" document="1"/> </sequencePoints> <scope startOffset="0x0" endOffset="0x19"> <namespace name="System" importlevel="file"/> <namespace name="System.Collections.Generic" importlevel="file"/> <currentnamespace name=""/> <local name="str" il_index="0" il_start="0x0" il_end="0x19" attributes="0"/> </scope> </method> <method containingType="C1" name="Main"> <sequencePoints> <entry offset="0x0" startLine="14" startColumn="5" endLine="14" endColumn="29" document="1"/> <entry offset="0x1" startLine="15" startColumn="9" endLine="15" endColumn="41" document="1"/> <entry offset="0xc" startLine="20" startColumn="9" endLine="20" endColumn="41" document="1"/> <entry offset="0x17" startLine="21" startColumn="5" endLine="21" endColumn="12" document="1"/> </sequencePoints> <scope startOffset="0x0" endOffset="0x18"> <importsforward declaringType="C1" methodName="FooInvisible"/> </scope> </method> </methods> </symbols>) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub MultipleEmptyExternalSourceWillBeIgnored() Dim source = <compilation> <file name="a.vb"> Option Strict On Option Infer Off Option Explicit Off Imports System Imports System.Collections.Generic Class C1 Public Shared Sub FooInvisible() dim str as string = "World!" Console.WriteLine("Hello " &amp; str) End Sub Public Shared Sub Main() #ExternalSource("C:\abc\def.vb", 21) #End ExternalSource Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 22) #End ExternalSource Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 23) #End ExternalSource End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) compilation.VerifyPdb( <symbols> <files> <file id="1" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="B9-85-76-74-1E-E7-27-25-F7-8A-CB-A2-B1-9C-A4-CD-FD-49-8C-B7"/> </files> <entryPoint declaringType="C1" methodName="Main"/> <methods> <method containingType="C1" name="FooInvisible"> <customDebugInfo> <encLocalSlotMap> <slot kind="0" offset="4"/> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset="0x0" startLine="9" startColumn="5" endLine="9" endColumn="37" document="1"/> <entry offset="0x1" startLine="10" startColumn="13" endLine="10" endColumn="37" document="1"/> <entry offset="0x7" startLine="11" startColumn="9" endLine="11" endColumn="42" document="1"/> <entry offset="0x18" startLine="12" startColumn="5" endLine="12" endColumn="12" document="1"/> </sequencePoints> <scope startOffset="0x0" endOffset="0x19"> <namespace name="System" importlevel="file"/> <namespace name="System.Collections.Generic" importlevel="file"/> <currentnamespace name=""/> <local name="str" il_index="0" il_start="0x0" il_end="0x19" attributes="0"/> </scope> </method> <method containingType="C1" name="Main"> <sequencePoints> <entry offset="0x0" startLine="14" startColumn="5" endLine="14" endColumn="29" document="1"/> <entry offset="0x1" startLine="18" startColumn="9" endLine="18" endColumn="41" document="1"/> <entry offset="0xc" startLine="23" startColumn="9" endLine="23" endColumn="41" document="1"/> <entry offset="0x17" startLine="27" startColumn="5" endLine="27" endColumn="12" document="1"/> </sequencePoints> <scope startOffset="0x0" endOffset="0x18"> <importsforward declaringType="C1" methodName="FooInvisible"/> </scope> </method> </methods> </symbols>) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub MultipleEmptyExternalSourceWithNonEmptyExternalSource() Dim source = <compilation> <file name="a.vb"> Option Strict On Option Infer Off Option Explicit Off Imports System Imports System.Collections.Generic Class C1 Public Shared Sub FooInvisible() dim str as string = "World!" Console.WriteLine("Hello " &amp; str) End Sub Public Shared Sub Main() #ExternalSource("C:\abc\def.vb", 21) #End ExternalSource Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 22) #End ExternalSource Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 23) ' boo! #End ExternalSource End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) ' Care about the fact that there are no sequence points or referenced files compilation.VerifyPdb( <symbols> <files> <file id="1" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="B6-80-9E-65-43-38-00-C1-35-7F-AE-D0-60-F2-24-44-A8-11-C2-63"/> </files> <entryPoint declaringType="C1" methodName="Main"/> <methods> <method containingType="C1" name="FooInvisible"> <customDebugInfo> <encLocalSlotMap> <slot kind="0" offset="4"/> </encLocalSlotMap> </customDebugInfo> </method> <method containingType="C1" name="Main" format="windows"> <scope startOffset="0x0" endOffset="0x18"> <namespace name="System" importlevel="file"/> <namespace name="System.Collections.Generic" importlevel="file"/> <currentnamespace name=""/> </scope> </method> </methods> </symbols>, ' Since the CDI is not emitted to Portable PDB it won't be present in the converted Windows PDB. options:=PdbValidationOptions.SkipConversionValidation) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub MultipleEmptyExternalSourceWithNonEmptyExternalSourceFollowedByEmptyExternalSource() Dim source = <compilation> <file name="a.vb"> Option Strict On Option Infer Off Option Explicit Off Imports System Imports System.Collections.Generic Class C1 Public Shared Sub FooInvisible() dim str as string = "World!" Console.WriteLine("Hello " &amp; str) End Sub Public Shared Sub Main() #ExternalSource("C:\abc\def.vb", 21) #End ExternalSource Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 22) #End ExternalSource Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 23) #End ExternalSource Console.WriteLine("Hello World") End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) ' Care about the fact that C1.FooInvisible and C1.Main include no sequence points ' Care about the fact that no files are referenced compilation.VerifyPdb( <symbols> <files> <file id="1" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="73-05-84-40-AC-E0-15-63-CC-FE-BD-9A-99-23-AA-BD-24-40-24-44"/> </files> <entryPoint declaringType="C1" methodName="Main"/> <methods> <method containingType="C1" name="FooInvisible"> <customDebugInfo> <encLocalSlotMap> <slot kind="0" offset="4"/> </encLocalSlotMap> </customDebugInfo> </method> <method containingType="C1" name="Main" format="windows"> <scope startOffset="0x0" endOffset="0x23"> <namespace name="System" importlevel="file"/> <namespace name="System.Collections.Generic" importlevel="file"/> <currentnamespace name=""/> </scope> </method> </methods> </symbols>, options:=PdbValidationOptions.SkipConversionValidation) ' When converting from Portable to Windows the PDB writer doesn't create an entry for the Main method ' and thus there Is no entry point record either. End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> <WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")> Public Sub TestPartialClassFieldInitializersWithExternalSource() Dim source = <compilation> <file name="C:\Abc\ACTUAL.vb"> #ExternalSource("C:\abc\def1.vb", 41) Option strict on imports system partial Class C1 public f1 as integer = 23 #End ExternalSource #ExternalSource("C:\abc\def1.vb", 10) Public sub DumpFields() Console.WriteLine(f1) Console.WriteLine(f2) End Sub #End ExternalSource #ExternalSource("C:\abc\def1.vb", 1) Public shared Sub Main(args() as string) Dim c as new C1 c.DumpFields() End sub #End ExternalSource End Class Class InActual public f1 as integer = 23 end Class #ExternalChecksum("C:\abc\def2.vb", "{406EA660-64CF-4C82-B6F0-42D48172A799}", "1234") #ExternalChecksum("BOGUS.vb", "{406EA660-64CF-4C82-B6F0-42D48172A799}", "1234") #ExternalChecksum("C:\Abc\ACTUAL.vb", "{406EA660-64CF-4C82-B6F0-42D48172A799}", "6789") </file> <file name="b.vb"> Option strict on imports system partial Class C1 #ExternalSource("C:\abc\def2.vb", 23) ' more lines to see a different span in the sequence points ... public f2 as integer = 42 #End ExternalSource #ExternalChecksum("BOGUS.vb", "{406EA660-64CF-4C82-B6F0-42D48172A799}", "1234") #ExternalChecksum("C:\Abc\ACTUAL.vb", "{406EA660-64CF-4C82-B6F0-42D48172A799}", "6789") End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) ' Care about the fact that InActual.ctor includes no sequence points ' Care about the fact that there is no file reference to ACTUAL.vb compilation.VerifyPdb( <symbols> <files> <file id="1" name="C:\Abc\ACTUAL.vb" language="VB" checksumAlgorithm="SHA1" checksum="27-52-E9-85-5A-AC-31-05-A5-6F-70-40-55-3A-9C-43-D2-07-0D-4B"/> <file id="2" name="b.vb" language="VB" checksumAlgorithm="SHA1" checksum="7F-D8-35-3F-B4-08-17-37-3E-37-30-26-2A-3F-0C-20-6F-48-2A-7A"/> <file id="3" name="C:\abc\def1.vb" language="VB"/> <file id="4" name="C:\abc\def2.vb" language="VB" checksumAlgorithm="406ea660-64cf-4c82-b6f0-42d48172a799" checksum="12-34"/> <file id="5" name="BOGUS.vb" language="VB" checksumAlgorithm="406ea660-64cf-4c82-b6f0-42d48172a799" checksum="12-34"/> </files> <entryPoint declaringType="C1" methodName="Main" parameterNames="args"/> <methods> <method containingType="C1" name=".ctor"> <sequencePoints> <entry offset="0x0" hidden="true" document="3"/> <entry offset="0x7" startLine="46" startColumn="12" endLine="46" endColumn="30" document="3"/> <entry offset="0xf" startLine="27" startColumn="36" endLine="27" endColumn="54" document="4"/> </sequencePoints> </method> <method containingType="C1" name="DumpFields"> <sequencePoints> <entry offset="0x0" startLine="10" startColumn="5" endLine="10" endColumn="28" document="3"/> <entry offset="0x1" startLine="11" startColumn="9" endLine="11" endColumn="30" document="3"/> <entry offset="0xd" startLine="12" startColumn="9" endLine="12" endColumn="30" document="3"/> <entry offset="0x19" startLine="13" startColumn="5" endLine="13" endColumn="12" document="3"/> </sequencePoints> </method> <method containingType="C1" name="Main" parameterNames="args"> <customDebugInfo> <encLocalSlotMap> <slot kind="0" offset="4"/> </encLocalSlotMap> </customDebugInfo> <sequencePoints> <entry offset="0x0" startLine="1" startColumn="5" endLine="1" endColumn="45" document="3"/> <entry offset="0x1" startLine="2" startColumn="13" endLine="2" endColumn="24" document="3"/> <entry offset="0x7" startLine="3" startColumn="9" endLine="3" endColumn="23" document="3"/> <entry offset="0xe" startLine="4" startColumn="5" endLine="4" endColumn="12" document="3"/> </sequencePoints> <scope startOffset="0x0" endOffset="0xf"> <local name="c" il_index="0" il_start="0x0" il_end="0xf" attributes="0"/> </scope> </method> </methods> </symbols>, format:=DebugInformationFormat.PortablePdb) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub IllegalExternalSourceUsageShouldNotAssert_1() Dim source = <compilation> <file name="a.vb"> Option strict on public Class C1 #ExternalSource("bar1.vb", 41) #ExternalSource("bar1.vb", 41) public shared sub main() End sub #End ExternalSource #End ExternalSource boo End Class </file> </compilation> Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime( source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_NestedExternalSource, "#ExternalSource(""bar1.vb"", 41)"), Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource")) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub IllegalExternalSourceUsageShouldNotAssert_2() Dim source = <compilation> <file name="a.vb"> Option strict on public Class C1 #End ExternalSource #End ExternalSource public shared sub main() End sub boo End Class </file> </compilation> Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime( source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource"), Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource"), Diagnostic(ERRID.ERR_ExpectedDeclaration, "boo")) End Sub <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub IllegalExternalSourceUsageShouldNotAssert_3() Dim source = <compilation> <file name="a.vb"> Option strict on public Class C1 #End ExternalSource #ExternalSource("bar1.vb", 23) public shared sub main() End sub boo End Class </file> </compilation> Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime( source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource"), Diagnostic(ERRID.ERR_ExpectedEndExternalSource, "#ExternalSource(""bar1.vb"", 23)"), Diagnostic(ERRID.ERR_ExpectedDeclaration, "boo")) End Sub <WorkItem(545302, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545302")> <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub IllegalExternalSourceUsageShouldNotAssert_4() Dim source = <compilation> <file name="a.vb"> Module Program Sub Main() #ExternalSource ("bar1.vb", 23) #ExternalSource ("bar1.vb", 23) System.Console.WriteLine("boo") #End ExternalSource End Sub End Module </file> </compilation> Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime( source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_NestedExternalSource, "#ExternalSource (""bar1.vb"", 23)")) End Sub <WorkItem(545307, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545307")> <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub OverflowLineNumbers() Dim source = <compilation> <file name="a.vb"> Option Strict On Imports System Imports System.Collections.Generic Module Program Public Sub Main() Console.WriteLine("Hello World") #ExternalSource("C:\abc\def.vb", 0) Console.WriteLine("Hello World") #End ExternalSource #ExternalSource("C:\abc\def.vb", 1) Console.WriteLine("Hello World") #End ExternalSource #ExternalSource("C:\abc\def.vb", 2147483647) Console.WriteLine("Hello World") #End ExternalSource #ExternalSource("C:\abc\def.vb", 2147483648) Console.WriteLine("Hello World") #End ExternalSource #ExternalSource("C:\abc\def.vb", 2147483649) Console.WriteLine("Hello World") #End ExternalSource #ExternalSource("C:\abc\def.vb", &amp;hfeefed) Console.WriteLine("Hello World") #End ExternalSource Console.WriteLine("Hello World") End Sub End Module </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.DebugExe) ' Care about the fact that there is no document reference to a.vb compilation.VerifyPdb( <symbols> <files> <file id="1" name="C:\abc\def.vb" language="VB"/> <file id="2" name="a.vb" language="VB" checksumAlgorithm="SHA1" checksum="D2-FF-05-F8-B7-A2-25-B0-96-D9-97-2F-05-F8-F0-B5-81-8D-98-1D"/> </files> <entryPoint declaringType="Program" methodName="Main"/> <methods> <method containingType="Program" name="Main"> <sequencePoints> <entry offset="0x0" hidden="true" document="1"/> <entry offset="0x1" hidden="true" document="1"/> <entry offset="0xc" startLine="0" startColumn="9" endLine="0" endColumn="41" document="1"/> <entry offset="0x17" startLine="1" startColumn="9" endLine="1" endColumn="41" document="1"/> <entry offset="0x22" startLine="16777215" startColumn="9" endLine="16777215" endColumn="41" document="1"/> <entry offset="0x2d" startLine="16777215" startColumn="9" endLine="16777215" endColumn="41" document="1"/> <entry offset="0x38" startLine="16777215" startColumn="9" endLine="16777215" endColumn="41" document="1"/> <entry offset="0x43" startLine="16707565" startColumn="9" endLine="16707565" endColumn="41" document="1"/> <entry offset="0x4e" hidden="true" document="1"/> <entry offset="0x59" hidden="true" document="1"/> </sequencePoints> <scope startOffset="0x0" endOffset="0x5a"> <namespace name="System" importlevel="file"/> <namespace name="System.Collections.Generic" importlevel="file"/> <currentnamespace name=""/> </scope> </method> </methods> </symbols>, format:=DebugInformationFormat.Pdb) End Sub <WorkItem(846584, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/846584")> <WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")> <ConditionalFact(GetType(WindowsOnly), Reason:=ConditionalSkipReason.NativePdbRequiresDesktop)> Public Sub RelativePathForExternalSource() Dim source = <compilation> <file name="C:\Folder1\Folder2\Test1.vb"> #ExternalChecksum("..\Test2.vb","{406ea660-64cf-4c82-b6f0-42d48172a799}","DB788882721B2B27C90579D5FE2A0418") Class Test1 Sub Main() #ExternalSource("..\Test2.vb",4) Main() #End ExternalSource End Sub End Class </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime( source, TestOptions.DebugDll.WithSourceReferenceResolver(SourceFileResolver.Default)) ' Care about the fact that there is no document reference to C:\Folder1\Folder2\Test1.vb compilation.VerifyPdb( <symbols> <files> <file id="1" name="C:\Folder1\Folder2\Test1.vb" language="VB" checksumAlgorithm="SHA1" checksum="B9-49-3D-62-89-9B-B2-2F-B6-72-90-A1-2D-01-11-89-B4-C2-83-B4"/> <file id="2" name="C:\Folder1\Test2.vb" language="VB" checksumAlgorithm="406ea660-64cf-4c82-b6f0-42d48172a799" checksum="DB-78-88-82-72-1B-2B-27-C9-05-79-D5-FE-2A-04-18"/> </files> <methods> <method containingType="Test1" name="Main"> <sequencePoints> <entry offset="0x0" hidden="true" document="2"/> <entry offset="0x1" startLine="4" startColumn="2" endLine="4" endColumn="8" document="2"/> <entry offset="0x8" hidden="true" document="2"/> </sequencePoints> </method> </methods> </symbols>, format:=DebugInformationFormat.PortablePdb) End Sub End Class End Namespace
1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Analyzers/VisualBasic/Tests/UseNullPropagation/UseNullPropagationTests.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.CodeFixes Imports Microsoft.CodeAnalysis.Diagnostics Imports Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Diagnostics Imports Microsoft.CodeAnalysis.VisualBasic.UseNullPropagation Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.UseNullPropagation Partial Public Class UseNullPropagationTests Inherits AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider) Return (New VisualBasicUseNullPropagationDiagnosticAnalyzer(), New VisualBasicUseNullPropagationCodeFixProvider()) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestLeft_Equals() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o Is Nothing, Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestMissingInVB12() As Task Await TestMissingAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o Is Nothing, Nothing, o.ToString()) End Sub End Class", New TestParameters(VisualBasicParseOptions.Default.WithLanguageVersion(LanguageVersion.VisualBasic12))) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestRight_Equals() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Nothing Is o, Nothing, o.ToString() End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestLeft_NotEquals() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o IsNot Nothing, o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableType() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Dim f As Integer? Sub M(C c) Dim v = [||]If (c IsNot Nothing, c.f, Nothing) End Sub End Class", " Imports System Class C Dim f As Integer? Sub M(C c) Dim v = c?.f End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndObjectCast() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Dim f As Integer? Sub M(C c) Dim v = [||]If (DirectCast(c, Object) IsNot Nothing, c.f, Nothing) End Sub End Class", " Imports System Class C Dim f As Integer? Sub M(C c) Dim v = c?.f End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestRight_NotEquals() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Nothing IsNot o, o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestIndexer() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o Is Nothing, Nothing, o(0)) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?(0) End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestConditionalAccess() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o Is Nothing, Nothing, o.B?.C) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.B?.C End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestMemberAccess() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o Is Nothing, Nothing, o.B) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.B End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestMissingOnSimpleMatch() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o Is Nothing, Nothing, o) End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestParenthesizedCondition() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If ((o Is Nothing), Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestFixAll1() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v1 = {|FixAllInDocument:If|} (o Is Nothing, Nothing, o.ToString()) Dim v2 = If (o IsNot Nothing, o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v1 = o?.ToString() Dim v2 = o?.ToString() End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestFixAll2() As Task Await TestInRegularAndScriptAsync( " Imports System Class C void M(object o1, object o2) Dim v1 = {|FixAllInDocument:If|} (o1 Is Nothing, Nothing, o1.ToString(If(o2 Is Nothing, Nothing, o2.ToString())) End Sub End Class", " Imports System Class C void M(object o1, object o2) Dim v1 = o1?.ToString(o2?.ToString()) End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestNullable1() As Task Await TestMissingAsync( " Imports System Class C Function M(o As String) As Integer? return [||]If (o Is Nothing, Nothing, o.Length) End Function End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestNullable2() As Task Await TestMissingAsync( " Imports System Class C Sub M(o As String) Dim x = [||]If (o Is Nothing, Nothing, o.Length) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEquals1() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (ReferenceEquals(o, Nothing), Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEquals2() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (ReferenceEquals(Nothing, o), Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsOtherValue1() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (ReferenceEquals(o, other), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsOtherValue2() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (ReferenceEquals(other, o), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsWithObject1() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Object.ReferenceEquals(o, Nothing), Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsWithObject2() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Object.ReferenceEquals(Nothing, o), Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsOtherValueWithObject1() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Object.ReferenceEquals(o, other), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsOtherValueWithObject2() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Object.ReferenceEquals(other, o), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsWithOmittedArgument1() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Object.ReferenceEquals(o, ), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsWithOmittedArgument2() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Object.ReferenceEquals(, Nothing), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEquals1() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Not ReferenceEquals(o, Nothing), o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEquals2() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Not ReferenceEquals(Nothing, o), o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEqualsOtherValue1() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Not ReferenceEquals(o, other), o.ToString(), Nothing) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEqualsOtherValue2() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Not ReferenceEquals(other, o), o.ToString(), Nothing) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEqualsWithObject1() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Not Object.ReferenceEquals(o, Nothing), o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEqualsWithObject2() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Not Object.ReferenceEquals(Nothing, o), o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEqualsOtherValueWithObject1() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Not Object.ReferenceEquals(o, other), o.ToString(), Nothing) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEqualsOtherValueWithObject2() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Not Object.ReferenceEquals(other, o), o.ToString(), Nothing) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestEqualsWithLogicalNot() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Not (o Is Nothing), o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestNotEqualsWithLogicalNot() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Not (o IsNot Nothing), Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestEqualsOtherValueWithLogicalNot() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Not (o Is other), o.ToString(), Nothing) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestNotEqualsOtherValueWithLogicalNot() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Not (o IsNot other), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(33992, "https://github.com/dotnet/roslyn/issues/33992")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestExpressionTree1() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Imports System.Linq Public Class Class1 Public Sub Foo() Dim q = From item In Enumerable.Empty(Of (x As Integer?, y As Integer?)?)().AsQueryable() Select [||]If(item Is Nothing, Nothing, item.Value.x) End Sub End Class") End Function <WorkItem(33992, "https://github.com/dotnet/roslyn/issues/33992")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestExpressionTree2() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Imports System.Linq Public Class Class1 Public Sub Foo() Dim q = From item In Enumerable.Empty(Of (x As Integer?, y As Integer?)?)().AsQueryable() Where [||]If(item Is Nothing, Nothing, item.Value.x) > 0 Select item End Sub End Class") End Function <WorkItem(33992, "https://github.com/dotnet/roslyn/issues/33992")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestExpressionTree3() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Imports System.Linq Public Class Class1 Public Sub Foo() Dim q = From item In Enumerable.Empty(Of (x As Integer?, y As Integer?)?)().AsQueryable() Let x = [||]If(item Is Nothing, Nothing, item.Value.x) Select x End Sub End Class") End Function End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.CodeFixes Imports Microsoft.CodeAnalysis.Diagnostics Imports Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Diagnostics Imports Microsoft.CodeAnalysis.VisualBasic.UseNullPropagation Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.UseNullPropagation Partial Public Class UseNullPropagationTests Inherits AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider) Return (New VisualBasicUseNullPropagationDiagnosticAnalyzer(), New VisualBasicUseNullPropagationCodeFixProvider()) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestLeft_Equals() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o Is Nothing, Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestMissingInVB12() As Task Await TestMissingAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o Is Nothing, Nothing, o.ToString()) End Sub End Class", New TestParameters(VisualBasicParseOptions.Default.WithLanguageVersion(LanguageVersion.VisualBasic12))) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestRight_Equals() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Nothing Is o, Nothing, o.ToString() End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestLeft_NotEquals() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o IsNot Nothing, o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableType() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Dim f As Integer? Sub M(C c) Dim v = [||]If (c IsNot Nothing, c.f, Nothing) End Sub End Class", " Imports System Class C Dim f As Integer? Sub M(C c) Dim v = c?.f End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndObjectCast() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Dim f As Integer? Sub M(C c) Dim v = [||]If (DirectCast(c, Object) IsNot Nothing, c.f, Nothing) End Sub End Class", " Imports System Class C Dim f As Integer? Sub M(C c) Dim v = c?.f End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestRight_NotEquals() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Nothing IsNot o, o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestIndexer() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o Is Nothing, Nothing, o(0)) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?(0) End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestConditionalAccess() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o Is Nothing, Nothing, o.B?.C) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.B?.C End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestMemberAccess() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o Is Nothing, Nothing, o.B) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.B End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestMissingOnSimpleMatch() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (o Is Nothing, Nothing, o) End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestParenthesizedCondition() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If ((o Is Nothing), Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestFixAll1() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v1 = {|FixAllInDocument:If|} (o Is Nothing, Nothing, o.ToString()) Dim v2 = If (o IsNot Nothing, o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v1 = o?.ToString() Dim v2 = o?.ToString() End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestFixAll2() As Task Await TestInRegularAndScriptAsync( " Imports System Class C void M(object o1, object o2) Dim v1 = {|FixAllInDocument:If|} (o1 Is Nothing, Nothing, o1.ToString(If(o2 Is Nothing, Nothing, o2.ToString())) End Sub End Class", " Imports System Class C void M(object o1, object o2) Dim v1 = o1?.ToString(o2?.ToString()) End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestNullable1() As Task Await TestMissingAsync( " Imports System Class C Function M(o As String) As Integer? return [||]If (o Is Nothing, Nothing, o.Length) End Function End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestNullable2() As Task Await TestMissingAsync( " Imports System Class C Sub M(o As String) Dim x = [||]If (o Is Nothing, Nothing, o.Length) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEquals1() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (ReferenceEquals(o, Nothing), Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEquals2() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (ReferenceEquals(Nothing, o), Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsOtherValue1() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (ReferenceEquals(o, other), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsOtherValue2() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (ReferenceEquals(other, o), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsWithObject1() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Object.ReferenceEquals(o, Nothing), Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsWithObject2() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Object.ReferenceEquals(Nothing, o), Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsOtherValueWithObject1() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Object.ReferenceEquals(o, other), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsOtherValueWithObject2() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Object.ReferenceEquals(other, o), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsWithOmittedArgument1() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Object.ReferenceEquals(o, ), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndReferenceEqualsWithOmittedArgument2() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Object.ReferenceEquals(, Nothing), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEquals1() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Not ReferenceEquals(o, Nothing), o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEquals2() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Not ReferenceEquals(Nothing, o), o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEqualsOtherValue1() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Not ReferenceEquals(o, other), o.ToString(), Nothing) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEqualsOtherValue2() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Not ReferenceEquals(other, o), o.ToString(), Nothing) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEqualsWithObject1() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Not Object.ReferenceEquals(o, Nothing), o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEqualsWithObject2() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Not Object.ReferenceEquals(Nothing, o), o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEqualsOtherValueWithObject1() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Not Object.ReferenceEquals(o, other), o.ToString(), Nothing) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestWithNullableTypeAndLogicalNotReferenceEqualsOtherValueWithObject2() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Not Object.ReferenceEquals(other, o), o.ToString(), Nothing) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestEqualsWithLogicalNot() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Not (o Is Nothing), o.ToString(), Nothing) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestNotEqualsWithLogicalNot() As Task Await TestInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object) Dim v = [||]If (Not (o IsNot Nothing), Nothing, o.ToString()) End Sub End Class", " Imports System Class C Sub M(o As Object) Dim v = o?.ToString() End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestEqualsOtherValueWithLogicalNot() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Not (o Is other), o.ToString(), Nothing) End Sub End Class") End Function <WorkItem(23043, "https://github.com/dotnet/roslyn/issues/23043")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestNotEqualsOtherValueWithLogicalNot() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Class C Sub M(o As Object, other as Object) Dim v = [||]If (Not (o IsNot other), Nothing, o.ToString()) End Sub End Class") End Function <WorkItem(33992, "https://github.com/dotnet/roslyn/issues/33992")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestExpressionTree1() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Imports System.Linq Public Class Class1 Public Sub Foo() Dim q = From item In Enumerable.Empty(Of (x As Integer?, y As Integer?)?)().AsQueryable() Select [||]If(item Is Nothing, Nothing, item.Value.x) End Sub End Class") End Function <WorkItem(33992, "https://github.com/dotnet/roslyn/issues/33992")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestExpressionTree2() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Imports System.Linq Public Class Class1 Public Sub Foo() Dim q = From item In Enumerable.Empty(Of (x As Integer?, y As Integer?)?)().AsQueryable() Where [||]If(item Is Nothing, Nothing, item.Value.x) > 0 Select item End Sub End Class") End Function <WorkItem(33992, "https://github.com/dotnet/roslyn/issues/33992")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNullPropagation)> Public Async Function TestExpressionTree3() As Task Await TestMissingInRegularAndScriptAsync( " Imports System Imports System.Linq Public Class Class1 Public Sub Foo() Dim q = From item In Enumerable.Empty(Of (x As Integer?, y As Integer?)?)().AsQueryable() Let x = [||]If(item Is Nothing, Nothing, item.Value.x) Select x End Sub End Class") End Function End Class End Namespace
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/EditorFeatures/VisualBasicTest/Diagnostics/GenerateVariable/GenerateVariableTests.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Immutable Imports Microsoft.CodeAnalysis.CodeActions Imports Microsoft.CodeAnalysis.CodeFixes Imports Microsoft.CodeAnalysis.Diagnostics Imports Microsoft.CodeAnalysis.VisualBasic.GenerateVariable Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Diagnostics.GenerateVariable Public Class GenerateVariableTests Inherits AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider) Return (Nothing, New VisualBasicGenerateVariableCodeFixProvider()) End Function Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction) Return FlattenActions(actions) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateSimpleProperty() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Goo([|Bar|]) End Sub End Module", "Module Program Public Property Bar As Object Sub Main(args As String()) Goo(Bar) End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateSimpleField() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Goo([|Bar|]) End Sub End Module", "Module Program Private Bar As Object Sub Main(args As String()) Goo(Bar) End Sub End Module", index:=1) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadOnlyField() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Goo([|Bar|]) End Sub End Module", "Module Program Private ReadOnly Bar As Object Sub Main(args As String()) Goo(Bar) End Sub End Module", index:=2) End Function <WorkItem(539692, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539692")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFromAssignment() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Class C Shared Sub M [|Goo|] = 3 End Sub End Class", "Class C Private Shared Goo As Integer Shared Sub M Goo = 3 End Sub End Class", index:=1) End Function <WorkItem(539694, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539694")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadOnlyProperty() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim i As IGoo Main(i.[|Blah|]) End Sub End Module Interface IGoo End Interface", "Module Program Sub Main(args As String()) Dim i As IGoo Main(i.Blah) End Sub End Module Interface IGoo ReadOnly Property Blah As String() End Interface") End Function <WorkItem(539694, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539694")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadWriteProperty() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim i As IGoo Main(i.[|Blah|]) End Sub End Module Interface IGoo End Interface", "Module Program Sub Main(args As String()) Dim i As IGoo Main(i.Blah) End Sub End Module Interface IGoo Property Blah As String() End Interface", index:=1) End Function <WorkItem(539695, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539695")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateProtectedSharedFieldIntoBase() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Class Base End Class Class Derived Inherits Base Shared Sub Main Dim a = Base.[|Goo|] End Sub End Class", "Class Base Protected Shared Goo As Object End Class Class Derived Inherits Base Shared Sub Main Dim a = Base.Goo End Sub End Class", index:=1) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestNotOfferedForSharedAccessOffInterface() As Task Await TestMissingInRegularAndScriptAsync( "Interface IGoo End Interface Class Program Sub Main IGoo.[|Bar|] = 3 End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFriendAccessibilityForField() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Class A End Class Class B Sub Main Dim x = A.[|Goo|] End Sub End Class", "Class A Friend Shared Goo As Object End Class Class B Sub Main Dim x = A.Goo End Sub End Class", index:=1) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyOnInterface1() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Interface IGoo End Interface Class C Sub Main Dim goo As IGoo Dim b = goo.[|Bar|] End Sub End Class", "Interface IGoo ReadOnly Property Bar As Object End Interface Class C Sub Main Dim goo As IGoo Dim b = goo.Bar End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyOnInterface2() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Interface IGoo End Interface Class C Sub Main Dim goo As IGoo Dim b = goo.[|Bar|] End Sub End Class", "Interface IGoo Property Bar As Object End Interface Class C Sub Main Dim goo As IGoo Dim b = goo.Bar End Sub End Class", index:=1) End Function <WorkItem(539796, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539796")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyIntoModule() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) End Sub End Module Class C Sub M() Program.[|P|] = 10 End Sub End Class", "Module Program Public Property P As Integer Sub Main(args As String()) End Sub End Module Class C Sub M() Program.P = 10 End Sub End Class") End Function <WorkItem(539796, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539796")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestFieldPropertyIntoModule() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) End Sub End Module Class C Sub M() [|Program.P|] = 10 End Sub End Class", "Module Program Friend P As Integer Sub Main(args As String()) End Sub End Module Class C Sub M() Program.P = 10 End Sub End Class", index:=1) End Function <WorkItem(539848, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539848")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestOnLeftOfMemberAccess() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) [|HERE|].ToString() End Sub End Module", "Module Program Private HERE As Object Sub Main(args As String()) HERE.ToString() End Sub End Module", index:=1) End Function <WorkItem(539725, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539725")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestMissingWhenInterfacePropertyAlreadyExists() As Task Await TestMissingInRegularAndScriptAsync( "Interface IGoo Property Blah As String() End Interface Module Program Sub Main(args As String()) Dim goo As IGoo Main(goo.[|Blah|]) End Sub End Module") End Function <WorkItem(540013, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540013")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestMissingInAddressOf() As Task Await TestMissingInRegularAndScriptAsync( "Delegate Sub D(x As Integer) Class C Public Sub Goo() Dim x As D = New D(AddressOf [|Method|]) End Sub End Class") End Function <WorkItem(540578, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540578")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInferProperReturnType() As Task Await TestInRegularAndScriptAsync( "Module Program Function Fun() As Integer Return [|P|] End Function End Module", "Module Program Public Property P As Integer Function Fun() As Integer Return P End Function End Module") End Function <WorkItem(540576, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540576")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAssignment() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As Integer x = [|P|] End Sub End Module", "Module Program Public Property P As Integer Sub Main(args As String()) Dim x As Integer x = P End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFromSharedMethod() As Task Await TestInRegularAndScriptAsync( "Class GenPropTest Public Shared Sub Main() [|genStaticUnqualified|] = """" End Sub End Class", "Class GenPropTest Private Shared genStaticUnqualified As String Public Shared Sub Main() genStaticUnqualified = """" End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateSharedField() As Task Await TestInRegularAndScriptAsync( "Class GenPropTest Public Sub Main() GenPropTest.[|genStaticUnqualified|] = """" End Sub End Class", "Class GenPropTest Private Shared genStaticUnqualified As String Public Sub Main() GenPropTest.genStaticUnqualified = """" End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateInstanceFieldOffMe() As Task Await TestInRegularAndScriptAsync( "Class GenPropTest Public Sub Main() Me.[|field|] = """" End Sub End Class", "Class GenPropTest Private field As String Public Sub Main() Me.field = """" End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestSimpleInstanceField() As Task Await TestInRegularAndScriptAsync( "Class GenPropTest Public Sub Main() [|field|] = """" End Sub End Class", "Class GenPropTest Private field As String Public Sub Main() field = """" End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestFieldOnByRefParam() As Task Await TestInRegularAndScriptAsync( "Class A End Class Class B Public Sub Goo(ByRef d As Integer) End Sub Public Sub Bar() Dim s As New A() Goo(s.[|field|]) End Sub End Class", "Class A Friend field As Integer End Class Class B Public Sub Goo(ByRef d As Integer) End Sub Public Sub Bar() Dim s As New A() Goo(s.field) End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInByRefProperty() As Task Await TestInRegularAndScriptAsync( "Class A End Class Class B Public Sub Goo(ByRef d As Integer) End Sub Public Sub Bar() Dim s As New A() Goo(s.[|field|]) End Sub End Class", "Class A Friend field As Integer End Class Class B Public Sub Goo(ByRef d As Integer) End Sub Public Sub Bar() Dim s As New A() Goo(s.field) End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInByRefProperty() As Task Await TestInRegularAndScriptAsync( " Imports System Class A End Class Class B Public Sub Goo(ByRef d As Integer) End Sub Public Sub Bar() Dim s As New A() Goo(s.[|field|]) End Sub End Class", " Imports System Class A Public ReadOnly Property field As Integer Get Throw New NotImplementedException() End Get End Property End Class Class B Public Sub Goo(ByRef d As Integer) End Sub Public Sub Bar() Dim s As New A() Goo(s.field) End Sub End Class", index:=1) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldIsFirstWithLowerCase() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) [|field|] = 5 End Sub End Module", "Module Program Private field As Integer Sub Main(args As String()) field = 5 End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyIsFirstWithUpperCase() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) [|Field|] = 5 End Sub End Module", "Module Program Public Property Field As Integer Sub Main(args As String()) Field = 5 End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestNestedTypesAndInference() As Task Await TestInRegularAndScriptAsync( "Imports System.Collections.Generic Class A Sub Main() Dim field As List(Of C) = B.[|C|] End Sub End Class Class B End Class Class C End Class", "Imports System.Collections.Generic Class A Sub Main() Dim field As List(Of C) = B.C End Sub End Class Class B Public Shared Property C As List(Of C) End Class Class C End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestTypeInferenceWithGenerics1() As Task Await TestInRegularAndScriptAsync( "Class A Sub Main() [|field|] = New C(Of B) End Sub End Class Class B End Class Class C(Of T) End Class", "Class A Private field As C(Of B) Sub Main() field = New C(Of B) End Sub End Class Class B End Class Class C(Of T) End Class") End Function <WorkItem(540693, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540693")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestErrorType() As Task Await TestInRegularAndScriptAsync( "Class A Sub Main() Dim field As List(Of C) = B.[|C|] End Sub End Class Class B End Class Class C(Of B) End Class", "Class A Sub Main() Dim field As List(Of C) = B.C End Sub End Class Class B Public Shared Property C As List End Class Class C(Of B) End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestTypeParameter() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Class A Sub Goo(Of T) [|z|] = GetType(T) End Sub End Class", "Imports System Imports System.Collections.Generic Imports System.Linq Class A Private z As Type Sub Goo(Of T) z = GetType(T) End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInterfaceProperty() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Public Property X As Integer Implements [|IGoo.X|] Sub Bar() End Sub End Class Interface IGoo End Interface", "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Public Property X As Integer Implements IGoo.X Sub Bar() End Sub End Class Interface IGoo Property X As Integer End Interface") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateEscapedKeywords() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As Integer) [|[Enum]|] = 5 End Sub End Class", "Class [Class] Public Property [Enum] As Integer Private Sub Method(i As Integer) [Enum] = 5 End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateEscapedKeywords2() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As Integer) [|[Enum]|] = 5 End Sub End Class", "Class [Class] Private [Enum] As Integer Private Sub Method(i As Integer) [Enum] = 5 End Sub End Class", index:=1) End Function <WorkItem(528229, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/528229")> <WpfFact(Skip:="528229"), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestRefLambda() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method() [|test|] = Function(ByRef x As Integer) InlineAssignHelper(x, 10) End Sub Private Shared Function InlineAssignHelper(Of T)(ByRef target As T, value As T) As T target = value Return value End Function End Class", "Class [Class] Private test As Object Private Sub Method() test = Function(ByRef x As Integer) InlineAssignHelper(x, 10) End Sub Private Shared Function InlineAssignHelper(Of T)(ByRef target As T, value As T) As T target = value Return value End Function End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestPropertyParameters1() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Public Property Item1(i As Integer) As String Implements [|IGoo.Item1|] Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo ' Default Property Item(i As Integer) As String End Interface", "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Public Property Item1(i As Integer) As String Implements IGoo.Item1 Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo Property Item1(i As Integer) As String ' Default Property Item(i As Integer) As String End Interface") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestPropertyParameters2() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Public Property Item1(i As Integer) As String Implements [|IGoo.Item1|] Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo ' Default Property Item(i As Integer) As String End Interface", "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Public Property Item1(i As Integer) As String Implements IGoo.Item1 Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo Property Item1(i As Integer) As String ' Default Property Item(i As Integer) As String End Interface") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestDefaultProperty1() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Default Public Property Item(i As Integer) As String Implements [|IGoo.Item|] Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo ' Default Property Item(i As Integer) As String End Interface", "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Default Public Property Item(i As Integer) As String Implements IGoo.Item Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo Default Property Item(i As Integer) As String ' Default Property Item(i As Integer) As String End Interface") End Function <WorkItem(540703, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540703")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestDefaultProperty2() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Default Public Property Item(i As Integer) As String Implements [|IGoo.Item|] Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo ' Default Property Item(i As Integer) As String End Interface", "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Default Public Property Item(i As Integer) As String Implements IGoo.Item Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo Default Property Item(i As Integer) As String ' Default Property Item(i As Integer) As String End Interface") End Function <WorkItem(540737, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540737")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestErrorInGenericType() As Task Await TestInRegularAndScriptAsync( "Imports System.Collections.Generic Class A Sub Main() Dim field As List(Of C) = B.[|C|] End Sub End Class Class B End Class Class C(Of T) End Class", "Imports System.Collections.Generic Class A Sub Main() Dim field As List(Of C) = B.C End Sub End Class Class B Public Shared Property C As List(Of C) End Class Class C(Of T) End Class") End Function <WorkItem(542241, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542241")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestFieldWithAnonymousTypeType() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub Main(args As String()) [|a|] = New With {.a = ., .b = 1} End Sub End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Private a As Object Sub Main(args As String()) a = New With {.a = ., .b = 1} End Sub End Module") End Function <WorkItem(542395, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542395")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestUnqualifiedModuleMethod1() As Task Await TestAsync( "Imports System.Runtime.CompilerServices Module StringExtensions Public Sub Print(ByVal aString As String) Console.WriteLine(aString) End Sub End Module Module M Sub Main() Print([|s|]) End Sub End Module", "Imports System.Runtime.CompilerServices Module StringExtensions Public Sub Print(ByVal aString As String) Console.WriteLine(aString) End Sub End Module Module M Private s As String Sub Main() Print(s) End Sub End Module", parseOptions:=Nothing) ' TODO (tomat): Modules nested in Script class not supported yet End Function <WorkItem(542395, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542395")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestUnqualifiedModuleMethod2() As Task Await TestAsync( "Imports System.Runtime.CompilerServices Module StringExtensions <Extension()> Public Sub Print(ByVal aString As String) Console.WriteLine(aString) End Sub End Module Module M Sub Main() Print([|s|]) End Sub End Module", "Imports System.Runtime.CompilerServices Module StringExtensions <Extension()> Public Sub Print(ByVal aString As String) Console.WriteLine(aString) End Sub End Module Module M Private s As String Sub Main() Print(s) End Sub End Module", parseOptions:=Nothing) ' TODO (tomat): Modules nested in Script class not supported yet) End Function <WorkItem(542942, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542942")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInsideLambda() As Task Await TestInRegularAndScriptAsync( "Module P Sub M() Dim t As System.Action = Sub() [|P.Goo|] = 5 End Sub End Sub End Module", "Module P Public Property Goo As Integer Sub M() Dim t As System.Action = Sub() P.Goo = 5 End Sub End Sub End Module") End Function <WorkItem(544632, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544632")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestMissingOnForEachExpression() As Task Await TestMissingInRegularAndScriptAsync( <Text> Imports System Imports System.Collections.Generic Imports System.Linq Module Program Public Sub Linq103() Dim categories As String() = {"Beverages", "Condiments", "Vegetables", "Dairy Products", "Seafood"} Dim productList = GetProductList() Dim categorizedProducts = From cat In categories Group Join prod In productList On cat Equals prod.Category Into Products = Group Select Category = cat, Products For Each v In categorizedProducts Console.WriteLine(v.Category &amp; ":") For Each p In v.[|Products|] Console.WriteLine(" " &amp; p.ProductName) Next Next End Sub End Module </Text>.Value) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestLeftOfBinaryExpression() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Main([|a|] + b) End Sub End Module", "Module Program Private a As Integer Sub Main(args As String()) Main(a + b) End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestRightOfBinaryExpression() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Main(a + [|b|]) End Sub End Module", "Module Program Private b As Integer Sub Main(args As String()) Main(a + b) End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocal() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Goo([|bar|]) End Sub End Module", "Module Program Private bar As Object Sub Main(args As String()) Goo(bar) End Sub End Module") End Function <WorkItem(809542, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/809542")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocalBeforeComment() As Task Await TestInRegularAndScriptAsync( "Imports System Module Program Sub Main #If True ' Banner Line 1 ' Banner Line 2 Integer.TryParse(""123"", [|local|]) #End If End Sub End Module", "Imports System Module Program Sub Main #If True Dim local As Integer = Nothing ' Banner Line 1 ' Banner Line 2 Integer.TryParse(""123"", local) #End If End Sub End Module", index:=2) End Function <WorkItem(809542, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/809542")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocalAfterComment() As Task Await TestInRegularAndScriptAsync( "Imports System Module Program Sub Main #If True ' Banner Line 1 ' Banner Line 2 Integer.TryParse(""123"", [|local|]) #End If End Sub End Module", "Imports System Module Program Sub Main #If True ' Banner Line 1 ' Banner Line 2 Dim local As Integer = Nothing Integer.TryParse(""123"", local) #End If End Sub End Module", index:=2) End Function <WorkItem(545218, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545218")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestTypeForLocal() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) goo([|xyz|]) End Sub Sub goo(x As Integer) End Sub End Module", "Module Program Sub Main(args As String()) Dim xyz As Integer = Nothing goo(xyz) End Sub Sub goo(x As Integer) End Sub End Module", index:=3) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInSelect() As Task Await TestInRegularAndScriptAsync( "Imports System.Linq Module Program Sub Main(args As String()) Dim q = From a In args Select [|v|] End Sub End Module", "Imports System.Linq Module Program Private v As Object Sub Main(args As String()) Dim q = From a In args Select v End Sub End Module") End Function <WorkItem(545400, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545400")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocalInIfPart() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main() If ([|a|] Mod b <> 0) Then End If End Sub End Module", "Module Program Sub Main() Dim a As Object = Nothing If (a Mod b <> 0) Then End If End Sub End Module", index:=3) End Function <WorkItem(545672, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545672")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestCrashOnAggregateSelect() As Task Await TestMissingInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim q2 = From j In {1} Select j Aggregate i In {1} Select [|i|] Into Count(), Sum(i) Select Count, Sum, j End Sub End Module") End Function <WorkItem(546753, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546753")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddressOf() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) [|d|] = AddressOf test End Sub Public Function test() As String Return ""hello"" End Function End Module", "Imports System Module Program Private d As Func(Of String) Sub Main(args As String()) d = AddressOf test End Sub Public Function test() As String Return ""hello"" End Function End Module") End Function <WorkItem(530756, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530756")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestMissingOnDictionaryAccess1() As Task Await TestMissingInRegularAndScriptAsync( "Imports System.Collections Module Program Sub Goo() Dim x = New Hashtable![|Goo|]!Bar End Sub End Module") End Function <WorkItem(530756, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530756")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestMissingOnDictionaryAccess2() As Task Await TestMissingInRegularAndScriptAsync( "Imports System.Collections Module Program Sub Goo() Dim x = New Hashtable!Goo![|Bar|] End Sub End Module") End Function <WorkItem(530756, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530756")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestMissingOnDictionaryAccess3() As Task Await TestMissingInRegularAndScriptAsync( "Imports System.Collections Module Program Sub Goo() Dim x = New Hashtable![|Goo!Bar|] End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestFormattingInGenerateVariable() As Task Await TestInRegularAndScriptAsync( <Text>Module Program Sub Main() If ([|a|] Mod b &lt;&gt; 0) Then End If End Sub End Module</Text>.Value.Replace(vbLf, vbCrLf), <Text>Module Program Public Property a As Object Sub Main() If (a Mod b &lt;&gt; 0) Then End If End Sub End Module</Text>.Value.Replace(vbLf, vbCrLf), index:=2) End Function <WorkItem(666189, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/666189")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInScript() As Task Await TestAsync( <Text>Dim x As Integer x = [|Goo|]</Text>.Value.Replace(vbLf, vbCrLf), <Text>Dim x As Integer Public Property Goo As Integer x = Goo</Text>.Value.Replace(vbLf, vbCrLf), parseOptions:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) End Function <WorkItem(666189, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/666189")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInScript() As Task Await TestAsync( <Text>Dim x As Integer x = [|Goo|]</Text>.Value.Replace(vbLf, vbCrLf), <Text>Dim x As Integer Private Goo As Integer x = Goo</Text>.Value.Replace(vbLf, vbCrLf), parseOptions:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script), index:=1) End Function <WorkItem(977580, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/977580")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestWithThrow() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class A Public Sub B() Throw [|MyExp|] End Sub End Class", "Imports System Public Class A Private MyExp As Exception Public Sub B() Throw MyExp End Sub End Class", index:=1) End Function <WorkItem(1032176, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1032176")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInsideNameOfProperty() As Task Await TestInRegularAndScriptAsync( "Imports System Class C Sub M() Dim x = NameOf([|Z|]) End Sub End Class", "Imports System Class C Public Property Z As Object Sub M() Dim x = NameOf(Z) End Sub End Class") End Function <WorkItem(1032176, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1032176")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInsideNameOfField() As Task Await TestInRegularAndScriptAsync( "Imports System Class C Sub M() Dim x = NameOf([|Z|]) End Sub End Class", "Imports System Class C Private Z As Object Sub M() Dim x = NameOf(Z) End Sub End Class", index:=1) End Function <WorkItem(1032176, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1032176")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInsideNameOfReadonlyField() As Task Await TestInRegularAndScriptAsync( "Imports System Class C Sub M() Dim x = NameOf([|Z|]) End Sub End Class", "Imports System Class C Private ReadOnly Z As Object Sub M() Dim x = NameOf(Z) End Sub End Class", index:=2) End Function <WorkItem(1032176, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1032176")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInsideNameOfLocal() As Task Await TestInRegularAndScriptAsync( "Imports System Class C Sub M() Dim x = NameOf([|Z|]) End Sub End Class", "Imports System Class C Sub M() Dim Z As Object = Nothing Dim x = NameOf(Z) End Sub End Class", index:=3) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessProperty() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As C = a?[|.B|] End Sub End Class", "Public Class C Public Property B As C Sub Main(a As C) Dim x As C = a?.B End Sub End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessProperty2() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x = a?[|.B|] End Sub End Class", "Public Class C Public Property B As Object Sub Main(a As C) Dim x = a?.B End Sub End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessProperty3() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As Integer? = a?[|.B|] End Sub End Class", "Public Class C Public Property B As Integer Sub Main(a As C) Dim x As Integer? = a?.B End Sub End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessProperty4() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As C? = a?[|.B|] End Sub End Class", "Public Class C Public Property B As C Sub Main(a As C) Dim x As C? = a?.B End Sub End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessField() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As C = a?[|.B|] End Sub End Class", "Public Class C Private B As C Sub Main(a As C) Dim x As C = a?.B End Sub End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessField2() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x = a?[|.B|] End Sub End Class", "Public Class C Private B As Object Sub Main(a As C) Dim x = a?.B End Sub End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessField3() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As Integer? = a?[|.B|] End Sub End Class", "Public Class C Private B As Integer Sub Main(a As C) Dim x As Integer? = a?.B End Sub End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessField4() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As C? = a?[|.B|] End Sub End Class", "Public Class C Private B As C Sub Main(a As C) Dim x As C? = a?.B End Sub End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyField() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As C = a?[|.B|] End Sub End Class", "Public Class C Private ReadOnly B As C Sub Main(a As C) Dim x As C = a?.B End Sub End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyField2() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x = a?[|.B|] End Sub End Class", "Public Class C Private ReadOnly B As Object Sub Main(a As C) Dim x = a?.B End Sub End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyField3() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As Integer? = a?[|.B|] End Sub End Class", "Public Class C Private ReadOnly B As Integer Sub Main(a As C) Dim x As Integer? = a?.B End Sub End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyField4() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As C? = a?[|.B|] End Sub End Class", "Public Class C Private ReadOnly B As C Sub Main(a As C) Dim x As C? = a?.B End Sub End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessPropertyInsideReferencedClass() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As C = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As C = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Public Property Z As C End Class End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessPropertyInsideReferencedClass2() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As Integer = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As Integer = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Public Property Z As Integer End Class End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessPropertyInsideReferencedClass3() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As Integer? = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As Integer? = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Public Property Z As Integer End Class End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessPropertyInsideReferencedClass4() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Public Property Z As Object End Class End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessFieldInsideReferencedClass() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As C = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As C = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend Z As C End Class End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessFieldInsideReferencedClass2() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As Integer = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As Integer = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend Z As Integer End Class End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessFieldInsideReferencedClass3() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As Integer? = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As Integer? = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend Z As Integer End Class End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessFieldInsideReferencedClass4() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend Z As Object End Class End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyFieldInsideReferencedClass() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As C = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As C = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend ReadOnly Z As C End Class End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyFieldInsideReferencedClass2() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As Integer = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As Integer = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend ReadOnly Z As Integer End Class End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyFieldInsideReferencedClass3() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As Integer? = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As Integer? = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend ReadOnly Z As Integer End Class End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyFieldInsideReferencedClass4() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend ReadOnly Z As Object End Class End Class", index:=2) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInPropertyInitializer() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Property a As Integer = [|y|] End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Private y As Integer Property a As Integer = y End Module") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInPropertyInitializer() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Property a As Integer = [|y|] End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Private ReadOnly y As Integer Property a As Integer = y End Module", index:=1) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadonlyFieldInPropertyInitializer() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Property a As Integer = [|y|] End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Property a As Integer = y Public Property y As Integer End Module", index:=2) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInObjectInitializer1() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.[|Name|] = ""blah""} End Sub End Module Friend Class Customer End Class", "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = ""blah""} End Sub End Module Friend Class Customer Public Property Name As String End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInObjectInitializer2() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = ""blah"", .[|Age|] = blah} End Sub End Module Friend Class Customer Public Property Name As String End Class", "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = ""blah"", .Age = blah} End Sub End Module Friend Class Customer Public Property Name As String Public Property Age As Object End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInObjectInitializer3() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = [|name|]} End Sub End Module Friend Class Customer End Class", "Module Program Public Property name As Object Sub Main(args As String()) Dim x As New Customer With {.Name = name} End Sub End Module Friend Class Customer End Class", index:=2) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInObjectInitializer1() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.[|Name|] = ""blah""} End Sub End Module Friend Class Customer End Class", "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = ""blah""} End Sub End Module Friend Class Customer Friend Name As String End Class", index:=1) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInObjectInitializer2() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.[|Name|] = name} End Sub End Module Friend Class Customer End Class", "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = name} End Sub End Module Friend Class Customer Friend Name As Object End Class", index:=1) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInObjectInitializer3() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = [|name|]} End Sub End Module Friend Class Customer End Class", "Module Program Private name As Object Sub Main(args As String()) Dim x As New Customer With {.Name = name} End Sub End Module Friend Class Customer End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInvalidObjectInitializer() As Task Await TestMissingInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With { [|Name|] = ""blkah""} End Sub End Module Friend Class Customer End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestOnlyPropertyAndFieldOfferedForObjectInitializer() As Task Await TestActionCountAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.[|Name|] = ""blah""} End Sub End Module Friend Class Customer End Class", 2) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocalInObjectInitializerValue() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = [|blah|]} End Sub End Module Friend Class Customer End Class", "Module Program Sub Main(args As String()) Dim blah As Object = Nothing Dim x As New Customer With {.Name = blah} End Sub End Module Friend Class Customer End Class", index:=3) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInTypeOf() As Task Await TestInRegularAndScriptAsync( "Module C Sub Test() If TypeOf [|B|] Is String Then End If End Sub End Module", "Module C Public Property B As String Sub Test() If TypeOf B Is String Then End If End Sub End Module") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInTypeOf() As Task Await TestInRegularAndScriptAsync( "Module C Sub Test() If TypeOf [|B|] Is String Then End If End Sub End Module", "Module C Private B As String Sub Test() If TypeOf B Is String Then End If End Sub End Module", index:=1) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadOnlyFieldInTypeOf() As Task Await TestInRegularAndScriptAsync( "Module C Sub Test() If TypeOf [|B|] Is String Then End If End Sub End Module", "Module C Private ReadOnly B As String Sub Test() If TypeOf B Is String Then End If End Sub End Module", index:=2) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocalInTypeOf() As Task Await TestInRegularAndScriptAsync( "Module C Sub Test() If TypeOf [|B|] Is String Then End If End Sub End Module", "Module C Sub Test() Dim B As String = Nothing If TypeOf B Is String Then End If End Sub End Module", index:=3) End Function <WorkItem(1130960, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1130960")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)> Public Async Function TestGeneratePropertyInTypeOfIsNot() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub M() If TypeOf [|Prop|] IsNot TypeOfIsNotDerived Then End If End Sub End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Public Property Prop As TypeOfIsNotDerived Sub M() If TypeOf Prop IsNot TypeOfIsNotDerived Then End If End Sub End Module") End Function <WorkItem(1130960, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1130960")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInTypeOfIsNot() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub M() If TypeOf [|Prop|] IsNot TypeOfIsNotDerived Then End If End Sub End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Private Prop As TypeOfIsNotDerived Sub M() If TypeOf Prop IsNot TypeOfIsNotDerived Then End If End Sub End Module", index:=1) End Function <WorkItem(1130960, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1130960")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadOnlyFieldInTypeOfIsNot() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub M() If TypeOf [|Prop|] IsNot TypeOfIsNotDerived Then End If End Sub End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Private ReadOnly Prop As TypeOfIsNotDerived Sub M() If TypeOf Prop IsNot TypeOfIsNotDerived Then End If End Sub End Module", index:=2) End Function <WorkItem(1130960, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1130960")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocalInTypeOfIsNot() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub M() If TypeOf [|Prop|] IsNot TypeOfIsNotDerived Then End If End Sub End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub M() Dim Prop As TypeOfIsNotDerived = Nothing If TypeOf Prop IsNot TypeOfIsNotDerived Then End If End Sub End Module", index:=3) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateVariableFromLambda() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As Integer) [|goo|] = Function() Return 2 End Function End Sub End Class", "Imports System Class [Class] Private goo As Func(Of Integer) Private Sub Method(i As Integer) goo = Function() Return 2 End Function End Sub End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateVariableFromLambda2() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As Integer) [|goo|] = Function() Return 2 End Function End Sub End Class", "Imports System Class [Class] Public Property goo As Func(Of Integer) Private Sub Method(i As Integer) goo = Function() Return 2 End Function End Sub End Class", index:=1) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateVariableFromLambda3() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As Integer) [|goo|] = Function() Return 2 End Function End Sub End Class", "Class [Class] Private Sub Method(i As Integer) Dim goo As System.Func(Of Integer) goo = Function() Return 2 End Function End Sub End Class", index:=2) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TupleRead() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As (Integer, String)) Method([|tuple|]) End Sub End Class", "Class [Class] Private tuple As (Integer, String) Private Sub Method(i As (Integer, String)) Method(tuple) End Sub End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TupleWithOneNameRead() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As (a As Integer, String)) Method([|tuple|]) End Sub End Class", "Class [Class] Private tuple As (a As Integer, String) Private Sub Method(i As (a As Integer, String)) Method(tuple) End Sub End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TupleWrite() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method() [|tuple|] = (1, ""hello"") End Sub End Class", "Class [Class] Private tuple As (Integer, String) Private Sub Method() tuple = (1, ""hello"") End Sub End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TupleWithOneNameWrite() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method() [|tuple|] = (a:=1, ""hello"") End Sub End Class", "Class [Class] Private tuple As (a As Integer, String) Private Sub Method() tuple = (a:=1, ""hello"") End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestPreferReadOnlyIfAfterReadOnlyAssignment() As Task Await TestInRegularAndScriptAsync( "class C private readonly _goo as integer public sub new() _goo = 0 [|_bar|] = 1 end sub end class", "class C private readonly _goo as integer Private ReadOnly _bar As Integer public sub new() _goo = 0 _bar = 1 end sub end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestPreferReadOnlyIfBeforeReadOnlyAssignment() As Task Await TestInRegularAndScriptAsync( "class C private readonly _goo as integer public sub new() [|_bar|] = 1 _goo = 0 end sub end class", "class C Private ReadOnly _bar As Integer private readonly _goo as integer public sub new() _bar = 1 _goo = 0 end sub end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestPlaceFieldBasedOnSurroundingStatements() As Task Await TestInRegularAndScriptAsync( "class Class private _goo as integer private _quux as integer public sub new() _goo = 0 [|_bar|] = 1 _quux = 2 end sub end class", "class Class private _goo as integer Private _bar As Integer private _quux as integer public sub new() _goo = 0 _bar = 1 _quux = 2 end sub end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestPlacePropertyBasedOnSurroundingStatements() As Task Await TestInRegularAndScriptAsync( "class Class public readonly property Goo as integer public readonly property Quux as integer public sub new() Goo = 0 [|Bar|] = 1 Quux = 2 end sub end class", "class Class public readonly property Goo as integer Public ReadOnly Property Bar As Integer public readonly property Quux as integer public sub new() Goo = 0 Bar = 1 Quux = 2 end sub end class") End Function <WorkItem(18988, "https://github.com/dotnet/roslyn/issues/18988")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function GroupNonReadonlyFieldsTogether() As Task Await TestInRegularAndScriptAsync( " class C public isDisposed as boolean public readonly x as integer public readonly m as integer public sub new() me.[|y|] = 0 end sub end class", " class C public isDisposed as boolean Private y As Integer public readonly x as integer public readonly m as integer public sub new() me.y = 0 end sub end class") End Function <WorkItem(18988, "https://github.com/dotnet/roslyn/issues/18988")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function GroupReadonlyFieldsTogether() As Task Await TestInRegularAndScriptAsync(" class C public readonly x as integer public readonly m as integer public isDisposed as boolean public sub new() me.[|y|] = 0 end sub end class", " class C public readonly x as integer public readonly m as integer Private ReadOnly y As Integer public isDisposed as boolean public sub new() me.y = 0 end sub end class", index:=1) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateSimplePropertyInSyncLock() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) SyncLock [|Bar|] End SyncLock End Sub End Module", "Module Program Public Property Bar As Object Sub Main(args As String()) SyncLock Bar End SyncLock End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateSimpleFieldInSyncLock() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) SyncLock [|Bar|] End SyncLock End Sub End Module", "Module Program Private Bar As Object Sub Main(args As String()) SyncLock Bar End SyncLock End Sub End Module", index:=1) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadOnlyFieldInSyncLock() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) SyncLock [|Bar|] End SyncLock End Sub End Module", "Module Program Private ReadOnly Bar As Object Sub Main(args As String()) SyncLock Bar End SyncLock End Sub End Module", index:=2) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameter() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Goo([|bar|]) End Sub End Module", "Module Program Sub Main(args As String(), bar As Object) Goo(bar) End Sub End Module", index:=4) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameterDoesntAddToOverride() As Task Await TestInRegularAndScriptAsync( "Class Base Public Overridable Sub Method(args As String()) End Sub End Class Class Program Public Overrides Sub Main(args As String()) Goo([|bar|]) End Sub End Class", "Class Base Public Overridable Sub Method(args As String()) End Sub End Class Class Program Public Overrides Sub Main(args As String(), bar As Object) Goo(bar) End Sub End Class", index:=4) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameterAndOverridesAddsToOverrides() As Task Await TestInRegularAndScriptAsync( "Class Base Public Overridable Sub Method(args As String()) End Sub End Class Class Program Inherits Base Public Overrides Sub Method(args As String()) Goo([|bar|]) End Sub End Class", "Class Base Public Overridable Sub Method(args As String(), bar As Object) End Sub End Class Class Program Inherits Base Public Overrides Sub Method(args As String(), bar As Object) Goo(bar) End Sub End Class", index:=5) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameterIsOfCorrectType() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Goo([|bar|]) End Sub Sub Goo(arg As Integer) End Sub End Module", "Module Program Sub Main(args As String(), bar As Integer) Goo(bar) End Sub Sub Goo(arg As Integer) End Sub End Module", index:=4) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameterAndOverridesIsOfCorrectType() As Task Await TestInRegularAndScriptAsync( "Class Base Public Overridable Sub Method(args As String()) End Sub End Class Class Program Inherits Base Public Overrides Sub Method(args As String()) Goo([|bar|]) End Sub Sub Goo(arg As Integer) End Sub End Class", "Class Base Public Overridable Sub Method(args As String(), bar As Integer) End Sub End Class Class Program Inherits Base Public Overrides Sub Method(args As String(), bar As Integer) Goo(bar) End Sub Sub Goo(arg As Integer) End Sub End Class", index:=5) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameterAndOverridesNotOfferedToNonOverride1() As Task Await TestActionCountAsync( "Module Program Sub Main(args As String()) Goo([|bar|]) End Sub End Module", count:=5) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameterAndOverridesNotOfferedToNonOverride2() As Task Await TestActionCountAsync( "Class Base Public Overridable Sub Method(args As String()) End Sub End Class Class Program Inherits Base Public Sub Method(args As String()) Goo([|bar|]) End Sub Sub Goo(arg As Integer) End Sub End Class", count:=5) End Function <WorkItem(45367, "https://github.com/dotnet/roslyn/issues/45367")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestCrashInNamespace() As Task Await TestMissingInRegularAndScriptAsync( "Namespace ConsoleApp5 Friend Sub New(errNum As Integer, offset As Integer, message As String) MyBase.New(message) Me.[|Error|] = errNum End Sub End Namespace") End Function End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Immutable Imports Microsoft.CodeAnalysis.CodeActions Imports Microsoft.CodeAnalysis.CodeFixes Imports Microsoft.CodeAnalysis.Diagnostics Imports Microsoft.CodeAnalysis.VisualBasic.GenerateVariable Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Diagnostics.GenerateVariable Public Class GenerateVariableTests Inherits AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider) Return (Nothing, New VisualBasicGenerateVariableCodeFixProvider()) End Function Protected Overrides Function MassageActions(actions As ImmutableArray(Of CodeAction)) As ImmutableArray(Of CodeAction) Return FlattenActions(actions) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateSimpleProperty() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Goo([|Bar|]) End Sub End Module", "Module Program Public Property Bar As Object Sub Main(args As String()) Goo(Bar) End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateSimpleField() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Goo([|Bar|]) End Sub End Module", "Module Program Private Bar As Object Sub Main(args As String()) Goo(Bar) End Sub End Module", index:=1) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadOnlyField() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Goo([|Bar|]) End Sub End Module", "Module Program Private ReadOnly Bar As Object Sub Main(args As String()) Goo(Bar) End Sub End Module", index:=2) End Function <WorkItem(539692, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539692")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFromAssignment() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Class C Shared Sub M [|Goo|] = 3 End Sub End Class", "Class C Private Shared Goo As Integer Shared Sub M Goo = 3 End Sub End Class", index:=1) End Function <WorkItem(539694, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539694")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadOnlyProperty() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim i As IGoo Main(i.[|Blah|]) End Sub End Module Interface IGoo End Interface", "Module Program Sub Main(args As String()) Dim i As IGoo Main(i.Blah) End Sub End Module Interface IGoo ReadOnly Property Blah As String() End Interface") End Function <WorkItem(539694, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539694")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadWriteProperty() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim i As IGoo Main(i.[|Blah|]) End Sub End Module Interface IGoo End Interface", "Module Program Sub Main(args As String()) Dim i As IGoo Main(i.Blah) End Sub End Module Interface IGoo Property Blah As String() End Interface", index:=1) End Function <WorkItem(539695, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539695")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateProtectedSharedFieldIntoBase() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Class Base End Class Class Derived Inherits Base Shared Sub Main Dim a = Base.[|Goo|] End Sub End Class", "Class Base Protected Shared Goo As Object End Class Class Derived Inherits Base Shared Sub Main Dim a = Base.Goo End Sub End Class", index:=1) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestNotOfferedForSharedAccessOffInterface() As Task Await TestMissingInRegularAndScriptAsync( "Interface IGoo End Interface Class Program Sub Main IGoo.[|Bar|] = 3 End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFriendAccessibilityForField() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Class A End Class Class B Sub Main Dim x = A.[|Goo|] End Sub End Class", "Class A Friend Shared Goo As Object End Class Class B Sub Main Dim x = A.Goo End Sub End Class", index:=1) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyOnInterface1() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Interface IGoo End Interface Class C Sub Main Dim goo As IGoo Dim b = goo.[|Bar|] End Sub End Class", "Interface IGoo ReadOnly Property Bar As Object End Interface Class C Sub Main Dim goo As IGoo Dim b = goo.Bar End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyOnInterface2() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Interface IGoo End Interface Class C Sub Main Dim goo As IGoo Dim b = goo.[|Bar|] End Sub End Class", "Interface IGoo Property Bar As Object End Interface Class C Sub Main Dim goo As IGoo Dim b = goo.Bar End Sub End Class", index:=1) End Function <WorkItem(539796, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539796")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyIntoModule() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) End Sub End Module Class C Sub M() Program.[|P|] = 10 End Sub End Class", "Module Program Public Property P As Integer Sub Main(args As String()) End Sub End Module Class C Sub M() Program.P = 10 End Sub End Class") End Function <WorkItem(539796, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539796")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestFieldPropertyIntoModule() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) End Sub End Module Class C Sub M() [|Program.P|] = 10 End Sub End Class", "Module Program Friend P As Integer Sub Main(args As String()) End Sub End Module Class C Sub M() Program.P = 10 End Sub End Class", index:=1) End Function <WorkItem(539848, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539848")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestOnLeftOfMemberAccess() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) [|HERE|].ToString() End Sub End Module", "Module Program Private HERE As Object Sub Main(args As String()) HERE.ToString() End Sub End Module", index:=1) End Function <WorkItem(539725, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539725")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestMissingWhenInterfacePropertyAlreadyExists() As Task Await TestMissingInRegularAndScriptAsync( "Interface IGoo Property Blah As String() End Interface Module Program Sub Main(args As String()) Dim goo As IGoo Main(goo.[|Blah|]) End Sub End Module") End Function <WorkItem(540013, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540013")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestMissingInAddressOf() As Task Await TestMissingInRegularAndScriptAsync( "Delegate Sub D(x As Integer) Class C Public Sub Goo() Dim x As D = New D(AddressOf [|Method|]) End Sub End Class") End Function <WorkItem(540578, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540578")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInferProperReturnType() As Task Await TestInRegularAndScriptAsync( "Module Program Function Fun() As Integer Return [|P|] End Function End Module", "Module Program Public Property P As Integer Function Fun() As Integer Return P End Function End Module") End Function <WorkItem(540576, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540576")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAssignment() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As Integer x = [|P|] End Sub End Module", "Module Program Public Property P As Integer Sub Main(args As String()) Dim x As Integer x = P End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFromSharedMethod() As Task Await TestInRegularAndScriptAsync( "Class GenPropTest Public Shared Sub Main() [|genStaticUnqualified|] = """" End Sub End Class", "Class GenPropTest Private Shared genStaticUnqualified As String Public Shared Sub Main() genStaticUnqualified = """" End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateSharedField() As Task Await TestInRegularAndScriptAsync( "Class GenPropTest Public Sub Main() GenPropTest.[|genStaticUnqualified|] = """" End Sub End Class", "Class GenPropTest Private Shared genStaticUnqualified As String Public Sub Main() GenPropTest.genStaticUnqualified = """" End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateInstanceFieldOffMe() As Task Await TestInRegularAndScriptAsync( "Class GenPropTest Public Sub Main() Me.[|field|] = """" End Sub End Class", "Class GenPropTest Private field As String Public Sub Main() Me.field = """" End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestSimpleInstanceField() As Task Await TestInRegularAndScriptAsync( "Class GenPropTest Public Sub Main() [|field|] = """" End Sub End Class", "Class GenPropTest Private field As String Public Sub Main() field = """" End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestFieldOnByRefParam() As Task Await TestInRegularAndScriptAsync( "Class A End Class Class B Public Sub Goo(ByRef d As Integer) End Sub Public Sub Bar() Dim s As New A() Goo(s.[|field|]) End Sub End Class", "Class A Friend field As Integer End Class Class B Public Sub Goo(ByRef d As Integer) End Sub Public Sub Bar() Dim s As New A() Goo(s.field) End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInByRefProperty() As Task Await TestInRegularAndScriptAsync( "Class A End Class Class B Public Sub Goo(ByRef d As Integer) End Sub Public Sub Bar() Dim s As New A() Goo(s.[|field|]) End Sub End Class", "Class A Friend field As Integer End Class Class B Public Sub Goo(ByRef d As Integer) End Sub Public Sub Bar() Dim s As New A() Goo(s.field) End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInByRefProperty() As Task Await TestInRegularAndScriptAsync( " Imports System Class A End Class Class B Public Sub Goo(ByRef d As Integer) End Sub Public Sub Bar() Dim s As New A() Goo(s.[|field|]) End Sub End Class", " Imports System Class A Public ReadOnly Property field As Integer Get Throw New NotImplementedException() End Get End Property End Class Class B Public Sub Goo(ByRef d As Integer) End Sub Public Sub Bar() Dim s As New A() Goo(s.field) End Sub End Class", index:=1) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldIsFirstWithLowerCase() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) [|field|] = 5 End Sub End Module", "Module Program Private field As Integer Sub Main(args As String()) field = 5 End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyIsFirstWithUpperCase() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) [|Field|] = 5 End Sub End Module", "Module Program Public Property Field As Integer Sub Main(args As String()) Field = 5 End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestNestedTypesAndInference() As Task Await TestInRegularAndScriptAsync( "Imports System.Collections.Generic Class A Sub Main() Dim field As List(Of C) = B.[|C|] End Sub End Class Class B End Class Class C End Class", "Imports System.Collections.Generic Class A Sub Main() Dim field As List(Of C) = B.C End Sub End Class Class B Public Shared Property C As List(Of C) End Class Class C End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestTypeInferenceWithGenerics1() As Task Await TestInRegularAndScriptAsync( "Class A Sub Main() [|field|] = New C(Of B) End Sub End Class Class B End Class Class C(Of T) End Class", "Class A Private field As C(Of B) Sub Main() field = New C(Of B) End Sub End Class Class B End Class Class C(Of T) End Class") End Function <WorkItem(540693, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540693")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestErrorType() As Task Await TestInRegularAndScriptAsync( "Class A Sub Main() Dim field As List(Of C) = B.[|C|] End Sub End Class Class B End Class Class C(Of B) End Class", "Class A Sub Main() Dim field As List(Of C) = B.C End Sub End Class Class B Public Shared Property C As List End Class Class C(Of B) End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestTypeParameter() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Class A Sub Goo(Of T) [|z|] = GetType(T) End Sub End Class", "Imports System Imports System.Collections.Generic Imports System.Linq Class A Private z As Type Sub Goo(Of T) z = GetType(T) End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInterfaceProperty() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Public Property X As Integer Implements [|IGoo.X|] Sub Bar() End Sub End Class Interface IGoo End Interface", "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Public Property X As Integer Implements IGoo.X Sub Bar() End Sub End Class Interface IGoo Property X As Integer End Interface") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateEscapedKeywords() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As Integer) [|[Enum]|] = 5 End Sub End Class", "Class [Class] Public Property [Enum] As Integer Private Sub Method(i As Integer) [Enum] = 5 End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateEscapedKeywords2() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As Integer) [|[Enum]|] = 5 End Sub End Class", "Class [Class] Private [Enum] As Integer Private Sub Method(i As Integer) [Enum] = 5 End Sub End Class", index:=1) End Function <WorkItem(528229, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/528229")> <WpfFact(Skip:="528229"), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestRefLambda() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method() [|test|] = Function(ByRef x As Integer) InlineAssignHelper(x, 10) End Sub Private Shared Function InlineAssignHelper(Of T)(ByRef target As T, value As T) As T target = value Return value End Function End Class", "Class [Class] Private test As Object Private Sub Method() test = Function(ByRef x As Integer) InlineAssignHelper(x, 10) End Sub Private Shared Function InlineAssignHelper(Of T)(ByRef target As T, value As T) As T target = value Return value End Function End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestPropertyParameters1() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Public Property Item1(i As Integer) As String Implements [|IGoo.Item1|] Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo ' Default Property Item(i As Integer) As String End Interface", "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Public Property Item1(i As Integer) As String Implements IGoo.Item1 Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo Property Item1(i As Integer) As String ' Default Property Item(i As Integer) As String End Interface") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestPropertyParameters2() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Public Property Item1(i As Integer) As String Implements [|IGoo.Item1|] Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo ' Default Property Item(i As Integer) As String End Interface", "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Public Property Item1(i As Integer) As String Implements IGoo.Item1 Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo Property Item1(i As Integer) As String ' Default Property Item(i As Integer) As String End Interface") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestDefaultProperty1() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Default Public Property Item(i As Integer) As String Implements [|IGoo.Item|] Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo ' Default Property Item(i As Integer) As String End Interface", "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Default Public Property Item(i As Integer) As String Implements IGoo.Item Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo Default Property Item(i As Integer) As String ' Default Property Item(i As Integer) As String End Interface") End Function <WorkItem(540703, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540703")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestDefaultProperty2() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Default Public Property Item(i As Integer) As String Implements [|IGoo.Item|] Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo ' Default Property Item(i As Integer) As String End Interface", "Imports System Imports System.Collections.Generic Imports System.Linq Class A Implements IGoo Default Public Property Item(i As Integer) As String Implements IGoo.Item Get Throw New NotImplementedException() End Get Set(value As String) Throw New NotImplementedException() End Set End Property Sub Bar() End Sub End Class Interface IGoo Default Property Item(i As Integer) As String ' Default Property Item(i As Integer) As String End Interface") End Function <WorkItem(540737, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540737")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestErrorInGenericType() As Task Await TestInRegularAndScriptAsync( "Imports System.Collections.Generic Class A Sub Main() Dim field As List(Of C) = B.[|C|] End Sub End Class Class B End Class Class C(Of T) End Class", "Imports System.Collections.Generic Class A Sub Main() Dim field As List(Of C) = B.C End Sub End Class Class B Public Shared Property C As List(Of C) End Class Class C(Of T) End Class") End Function <WorkItem(542241, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542241")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestFieldWithAnonymousTypeType() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub Main(args As String()) [|a|] = New With {.a = ., .b = 1} End Sub End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Private a As Object Sub Main(args As String()) a = New With {.a = ., .b = 1} End Sub End Module") End Function <WorkItem(542395, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542395")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestUnqualifiedModuleMethod1() As Task Await TestAsync( "Imports System.Runtime.CompilerServices Module StringExtensions Public Sub Print(ByVal aString As String) Console.WriteLine(aString) End Sub End Module Module M Sub Main() Print([|s|]) End Sub End Module", "Imports System.Runtime.CompilerServices Module StringExtensions Public Sub Print(ByVal aString As String) Console.WriteLine(aString) End Sub End Module Module M Private s As String Sub Main() Print(s) End Sub End Module", parseOptions:=Nothing) ' TODO (tomat): Modules nested in Script class not supported yet End Function <WorkItem(542395, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542395")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestUnqualifiedModuleMethod2() As Task Await TestAsync( "Imports System.Runtime.CompilerServices Module StringExtensions <Extension()> Public Sub Print(ByVal aString As String) Console.WriteLine(aString) End Sub End Module Module M Sub Main() Print([|s|]) End Sub End Module", "Imports System.Runtime.CompilerServices Module StringExtensions <Extension()> Public Sub Print(ByVal aString As String) Console.WriteLine(aString) End Sub End Module Module M Private s As String Sub Main() Print(s) End Sub End Module", parseOptions:=Nothing) ' TODO (tomat): Modules nested in Script class not supported yet) End Function <WorkItem(542942, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542942")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInsideLambda() As Task Await TestInRegularAndScriptAsync( "Module P Sub M() Dim t As System.Action = Sub() [|P.Goo|] = 5 End Sub End Sub End Module", "Module P Public Property Goo As Integer Sub M() Dim t As System.Action = Sub() P.Goo = 5 End Sub End Sub End Module") End Function <WorkItem(544632, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/544632")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestMissingOnForEachExpression() As Task Await TestMissingInRegularAndScriptAsync( <Text> Imports System Imports System.Collections.Generic Imports System.Linq Module Program Public Sub Linq103() Dim categories As String() = {"Beverages", "Condiments", "Vegetables", "Dairy Products", "Seafood"} Dim productList = GetProductList() Dim categorizedProducts = From cat In categories Group Join prod In productList On cat Equals prod.Category Into Products = Group Select Category = cat, Products For Each v In categorizedProducts Console.WriteLine(v.Category &amp; ":") For Each p In v.[|Products|] Console.WriteLine(" " &amp; p.ProductName) Next Next End Sub End Module </Text>.Value) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestLeftOfBinaryExpression() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Main([|a|] + b) End Sub End Module", "Module Program Private a As Integer Sub Main(args As String()) Main(a + b) End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestRightOfBinaryExpression() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Main(a + [|b|]) End Sub End Module", "Module Program Private b As Integer Sub Main(args As String()) Main(a + b) End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocal() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Goo([|bar|]) End Sub End Module", "Module Program Private bar As Object Sub Main(args As String()) Goo(bar) End Sub End Module") End Function <WorkItem(809542, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/809542")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocalBeforeComment() As Task Await TestInRegularAndScriptAsync( "Imports System Module Program Sub Main #If True ' Banner Line 1 ' Banner Line 2 Integer.TryParse(""123"", [|local|]) #End If End Sub End Module", "Imports System Module Program Sub Main #If True Dim local As Integer = Nothing ' Banner Line 1 ' Banner Line 2 Integer.TryParse(""123"", local) #End If End Sub End Module", index:=2) End Function <WorkItem(809542, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/809542")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocalAfterComment() As Task Await TestInRegularAndScriptAsync( "Imports System Module Program Sub Main #If True ' Banner Line 1 ' Banner Line 2 Integer.TryParse(""123"", [|local|]) #End If End Sub End Module", "Imports System Module Program Sub Main #If True ' Banner Line 1 ' Banner Line 2 Dim local As Integer = Nothing Integer.TryParse(""123"", local) #End If End Sub End Module", index:=2) End Function <WorkItem(545218, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545218")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestTypeForLocal() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) goo([|xyz|]) End Sub Sub goo(x As Integer) End Sub End Module", "Module Program Sub Main(args As String()) Dim xyz As Integer = Nothing goo(xyz) End Sub Sub goo(x As Integer) End Sub End Module", index:=3) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInSelect() As Task Await TestInRegularAndScriptAsync( "Imports System.Linq Module Program Sub Main(args As String()) Dim q = From a In args Select [|v|] End Sub End Module", "Imports System.Linq Module Program Private v As Object Sub Main(args As String()) Dim q = From a In args Select v End Sub End Module") End Function <WorkItem(545400, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545400")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocalInIfPart() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main() If ([|a|] Mod b <> 0) Then End If End Sub End Module", "Module Program Sub Main() Dim a As Object = Nothing If (a Mod b <> 0) Then End If End Sub End Module", index:=3) End Function <WorkItem(545672, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545672")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestCrashOnAggregateSelect() As Task Await TestMissingInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim q2 = From j In {1} Select j Aggregate i In {1} Select [|i|] Into Count(), Sum(i) Select Count, Sum, j End Sub End Module") End Function <WorkItem(546753, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546753")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddressOf() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) [|d|] = AddressOf test End Sub Public Function test() As String Return ""hello"" End Function End Module", "Imports System Module Program Private d As Func(Of String) Sub Main(args As String()) d = AddressOf test End Sub Public Function test() As String Return ""hello"" End Function End Module") End Function <WorkItem(530756, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530756")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestMissingOnDictionaryAccess1() As Task Await TestMissingInRegularAndScriptAsync( "Imports System.Collections Module Program Sub Goo() Dim x = New Hashtable![|Goo|]!Bar End Sub End Module") End Function <WorkItem(530756, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530756")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestMissingOnDictionaryAccess2() As Task Await TestMissingInRegularAndScriptAsync( "Imports System.Collections Module Program Sub Goo() Dim x = New Hashtable!Goo![|Bar|] End Sub End Module") End Function <WorkItem(530756, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530756")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestMissingOnDictionaryAccess3() As Task Await TestMissingInRegularAndScriptAsync( "Imports System.Collections Module Program Sub Goo() Dim x = New Hashtable![|Goo!Bar|] End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestFormattingInGenerateVariable() As Task Await TestInRegularAndScriptAsync( <Text>Module Program Sub Main() If ([|a|] Mod b &lt;&gt; 0) Then End If End Sub End Module</Text>.Value.Replace(vbLf, vbCrLf), <Text>Module Program Public Property a As Object Sub Main() If (a Mod b &lt;&gt; 0) Then End If End Sub End Module</Text>.Value.Replace(vbLf, vbCrLf), index:=2) End Function <WorkItem(666189, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/666189")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInScript() As Task Await TestAsync( <Text>Dim x As Integer x = [|Goo|]</Text>.Value.Replace(vbLf, vbCrLf), <Text>Dim x As Integer Public Property Goo As Integer x = Goo</Text>.Value.Replace(vbLf, vbCrLf), parseOptions:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script)) End Function <WorkItem(666189, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/666189")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInScript() As Task Await TestAsync( <Text>Dim x As Integer x = [|Goo|]</Text>.Value.Replace(vbLf, vbCrLf), <Text>Dim x As Integer Private Goo As Integer x = Goo</Text>.Value.Replace(vbLf, vbCrLf), parseOptions:=New VisualBasicParseOptions(kind:=SourceCodeKind.Script), index:=1) End Function <WorkItem(977580, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/977580")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestWithThrow() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class A Public Sub B() Throw [|MyExp|] End Sub End Class", "Imports System Public Class A Private MyExp As Exception Public Sub B() Throw MyExp End Sub End Class", index:=1) End Function <WorkItem(1032176, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1032176")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInsideNameOfProperty() As Task Await TestInRegularAndScriptAsync( "Imports System Class C Sub M() Dim x = NameOf([|Z|]) End Sub End Class", "Imports System Class C Public Property Z As Object Sub M() Dim x = NameOf(Z) End Sub End Class") End Function <WorkItem(1032176, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1032176")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInsideNameOfField() As Task Await TestInRegularAndScriptAsync( "Imports System Class C Sub M() Dim x = NameOf([|Z|]) End Sub End Class", "Imports System Class C Private Z As Object Sub M() Dim x = NameOf(Z) End Sub End Class", index:=1) End Function <WorkItem(1032176, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1032176")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInsideNameOfReadonlyField() As Task Await TestInRegularAndScriptAsync( "Imports System Class C Sub M() Dim x = NameOf([|Z|]) End Sub End Class", "Imports System Class C Private ReadOnly Z As Object Sub M() Dim x = NameOf(Z) End Sub End Class", index:=2) End Function <WorkItem(1032176, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1032176")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInsideNameOfLocal() As Task Await TestInRegularAndScriptAsync( "Imports System Class C Sub M() Dim x = NameOf([|Z|]) End Sub End Class", "Imports System Class C Sub M() Dim Z As Object = Nothing Dim x = NameOf(Z) End Sub End Class", index:=3) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessProperty() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As C = a?[|.B|] End Sub End Class", "Public Class C Public Property B As C Sub Main(a As C) Dim x As C = a?.B End Sub End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessProperty2() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x = a?[|.B|] End Sub End Class", "Public Class C Public Property B As Object Sub Main(a As C) Dim x = a?.B End Sub End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessProperty3() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As Integer? = a?[|.B|] End Sub End Class", "Public Class C Public Property B As Integer Sub Main(a As C) Dim x As Integer? = a?.B End Sub End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessProperty4() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As C? = a?[|.B|] End Sub End Class", "Public Class C Public Property B As C Sub Main(a As C) Dim x As C? = a?.B End Sub End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessField() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As C = a?[|.B|] End Sub End Class", "Public Class C Private B As C Sub Main(a As C) Dim x As C = a?.B End Sub End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessField2() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x = a?[|.B|] End Sub End Class", "Public Class C Private B As Object Sub Main(a As C) Dim x = a?.B End Sub End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessField3() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As Integer? = a?[|.B|] End Sub End Class", "Public Class C Private B As Integer Sub Main(a As C) Dim x As Integer? = a?.B End Sub End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessField4() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As C? = a?[|.B|] End Sub End Class", "Public Class C Private B As C Sub Main(a As C) Dim x As C? = a?.B End Sub End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyField() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As C = a?[|.B|] End Sub End Class", "Public Class C Private ReadOnly B As C Sub Main(a As C) Dim x As C = a?.B End Sub End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyField2() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x = a?[|.B|] End Sub End Class", "Public Class C Private ReadOnly B As Object Sub Main(a As C) Dim x = a?.B End Sub End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyField3() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As Integer? = a?[|.B|] End Sub End Class", "Public Class C Private ReadOnly B As Integer Sub Main(a As C) Dim x As Integer? = a?.B End Sub End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyField4() As Task Await TestInRegularAndScriptAsync( "Public Class C Sub Main(a As C) Dim x As C? = a?[|.B|] End Sub End Class", "Public Class C Private ReadOnly B As C Sub Main(a As C) Dim x As C? = a?.B End Sub End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessPropertyInsideReferencedClass() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As C = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As C = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Public Property Z As C End Class End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessPropertyInsideReferencedClass2() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As Integer = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As Integer = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Public Property Z As Integer End Class End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessPropertyInsideReferencedClass3() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As Integer? = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As Integer? = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Public Property Z As Integer End Class End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessPropertyInsideReferencedClass4() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Public Property Z As Object End Class End Class") End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessFieldInsideReferencedClass() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As C = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As C = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend Z As C End Class End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessFieldInsideReferencedClass2() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As Integer = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As Integer = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend Z As Integer End Class End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessFieldInsideReferencedClass3() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As Integer? = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As Integer? = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend Z As Integer End Class End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessFieldInsideReferencedClass4() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend Z As Object End Class End Class", index:=1) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyFieldInsideReferencedClass() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As C = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As C = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend ReadOnly Z As C End Class End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyFieldInsideReferencedClass2() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As Integer = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As Integer = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend ReadOnly Z As Integer End Class End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyFieldInsideReferencedClass3() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x As Integer? = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x As Integer? = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend ReadOnly Z As Integer End Class End Class", index:=2) End Function <WorkItem(1064815, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1064815")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestConditionalAccessReadOnlyFieldInsideReferencedClass4() As Task Await TestInRegularAndScriptAsync( "Imports System Public Class C Sub Main(a As C) Dim x = a?[|.B.Z|] End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D End Class End Class", "Imports System Public Class C Sub Main(a As C) Dim x = a?.B.Z End Sub Private Function B() As D Throw New NotImplementedException() End Function Private Class D Friend ReadOnly Z As Object End Class End Class", index:=2) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInPropertyInitializer() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Property a As Integer = [|y|] End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Private y As Integer Property a As Integer = y End Module") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInPropertyInitializer() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Property a As Integer = [|y|] End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Private ReadOnly y As Integer Property a As Integer = y End Module", index:=1) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadonlyFieldInPropertyInitializer() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Property a As Integer = [|y|] End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Property a As Integer = y Public Property y As Integer End Module", index:=2) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInObjectInitializer1() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.[|Name|] = ""blah""} End Sub End Module Friend Class Customer End Class", "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = ""blah""} End Sub End Module Friend Class Customer Public Property Name As String End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInObjectInitializer2() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = ""blah"", .[|Age|] = blah} End Sub End Module Friend Class Customer Public Property Name As String End Class", "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = ""blah"", .Age = blah} End Sub End Module Friend Class Customer Public Property Name As String Public Property Age As Object End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInObjectInitializer3() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = [|name|]} End Sub End Module Friend Class Customer End Class", "Module Program Public Property name As Object Sub Main(args As String()) Dim x As New Customer With {.Name = name} End Sub End Module Friend Class Customer End Class", index:=2) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInObjectInitializer1() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.[|Name|] = ""blah""} End Sub End Module Friend Class Customer End Class", "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = ""blah""} End Sub End Module Friend Class Customer Friend Name As String End Class", index:=1) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInObjectInitializer2() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.[|Name|] = name} End Sub End Module Friend Class Customer End Class", "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = name} End Sub End Module Friend Class Customer Friend Name As Object End Class", index:=1) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInObjectInitializer3() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = [|name|]} End Sub End Module Friend Class Customer End Class", "Module Program Private name As Object Sub Main(args As String()) Dim x As New Customer With {.Name = name} End Sub End Module Friend Class Customer End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestInvalidObjectInitializer() As Task Await TestMissingInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With { [|Name|] = ""blkah""} End Sub End Module Friend Class Customer End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestOnlyPropertyAndFieldOfferedForObjectInitializer() As Task Await TestActionCountAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.[|Name|] = ""blah""} End Sub End Module Friend Class Customer End Class", 2) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocalInObjectInitializerValue() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Dim x As New Customer With {.Name = [|blah|]} End Sub End Module Friend Class Customer End Class", "Module Program Sub Main(args As String()) Dim blah As Object = Nothing Dim x As New Customer With {.Name = blah} End Sub End Module Friend Class Customer End Class", index:=3) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGeneratePropertyInTypeOf() As Task Await TestInRegularAndScriptAsync( "Module C Sub Test() If TypeOf [|B|] Is String Then End If End Sub End Module", "Module C Public Property B As String Sub Test() If TypeOf B Is String Then End If End Sub End Module") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInTypeOf() As Task Await TestInRegularAndScriptAsync( "Module C Sub Test() If TypeOf [|B|] Is String Then End If End Sub End Module", "Module C Private B As String Sub Test() If TypeOf B Is String Then End If End Sub End Module", index:=1) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadOnlyFieldInTypeOf() As Task Await TestInRegularAndScriptAsync( "Module C Sub Test() If TypeOf [|B|] Is String Then End If End Sub End Module", "Module C Private ReadOnly B As String Sub Test() If TypeOf B Is String Then End If End Sub End Module", index:=2) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocalInTypeOf() As Task Await TestInRegularAndScriptAsync( "Module C Sub Test() If TypeOf [|B|] Is String Then End If End Sub End Module", "Module C Sub Test() Dim B As String = Nothing If TypeOf B Is String Then End If End Sub End Module", index:=3) End Function <WorkItem(1130960, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1130960")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)> Public Async Function TestGeneratePropertyInTypeOfIsNot() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub M() If TypeOf [|Prop|] IsNot TypeOfIsNotDerived Then End If End Sub End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Public Property Prop As TypeOfIsNotDerived Sub M() If TypeOf Prop IsNot TypeOfIsNotDerived Then End If End Sub End Module") End Function <WorkItem(1130960, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1130960")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateFieldInTypeOfIsNot() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub M() If TypeOf [|Prop|] IsNot TypeOfIsNotDerived Then End If End Sub End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Private Prop As TypeOfIsNotDerived Sub M() If TypeOf Prop IsNot TypeOfIsNotDerived Then End If End Sub End Module", index:=1) End Function <WorkItem(1130960, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1130960")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadOnlyFieldInTypeOfIsNot() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub M() If TypeOf [|Prop|] IsNot TypeOfIsNotDerived Then End If End Sub End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Private ReadOnly Prop As TypeOfIsNotDerived Sub M() If TypeOf Prop IsNot TypeOfIsNotDerived Then End If End Sub End Module", index:=2) End Function <WorkItem(1130960, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1130960")> <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateLocalInTypeOfIsNot() As Task Await TestInRegularAndScriptAsync( "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub M() If TypeOf [|Prop|] IsNot TypeOfIsNotDerived Then End If End Sub End Module", "Imports System Imports System.Collections.Generic Imports System.Linq Module Program Sub M() Dim Prop As TypeOfIsNotDerived = Nothing If TypeOf Prop IsNot TypeOfIsNotDerived Then End If End Sub End Module", index:=3) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateVariableFromLambda() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As Integer) [|goo|] = Function() Return 2 End Function End Sub End Class", "Imports System Class [Class] Private goo As Func(Of Integer) Private Sub Method(i As Integer) goo = Function() Return 2 End Function End Sub End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateVariableFromLambda2() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As Integer) [|goo|] = Function() Return 2 End Function End Sub End Class", "Imports System Class [Class] Public Property goo As Func(Of Integer) Private Sub Method(i As Integer) goo = Function() Return 2 End Function End Sub End Class", index:=1) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateVariableFromLambda3() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As Integer) [|goo|] = Function() Return 2 End Function End Sub End Class", "Class [Class] Private Sub Method(i As Integer) Dim goo As System.Func(Of Integer) goo = Function() Return 2 End Function End Sub End Class", index:=2) End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TupleRead() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As (Integer, String)) Method([|tuple|]) End Sub End Class", "Class [Class] Private tuple As (Integer, String) Private Sub Method(i As (Integer, String)) Method(tuple) End Sub End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TupleWithOneNameRead() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method(i As (a As Integer, String)) Method([|tuple|]) End Sub End Class", "Class [Class] Private tuple As (a As Integer, String) Private Sub Method(i As (a As Integer, String)) Method(tuple) End Sub End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TupleWrite() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method() [|tuple|] = (1, ""hello"") End Sub End Class", "Class [Class] Private tuple As (Integer, String) Private Sub Method() tuple = (1, ""hello"") End Sub End Class") End Function <Fact(), Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TupleWithOneNameWrite() As Task Await TestInRegularAndScriptAsync( "Class [Class] Private Sub Method() [|tuple|] = (a:=1, ""hello"") End Sub End Class", "Class [Class] Private tuple As (a As Integer, String) Private Sub Method() tuple = (a:=1, ""hello"") End Sub End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestPreferReadOnlyIfAfterReadOnlyAssignment() As Task Await TestInRegularAndScriptAsync( "class C private readonly _goo as integer public sub new() _goo = 0 [|_bar|] = 1 end sub end class", "class C private readonly _goo as integer Private ReadOnly _bar As Integer public sub new() _goo = 0 _bar = 1 end sub end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestPreferReadOnlyIfBeforeReadOnlyAssignment() As Task Await TestInRegularAndScriptAsync( "class C private readonly _goo as integer public sub new() [|_bar|] = 1 _goo = 0 end sub end class", "class C Private ReadOnly _bar As Integer private readonly _goo as integer public sub new() _bar = 1 _goo = 0 end sub end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestPlaceFieldBasedOnSurroundingStatements() As Task Await TestInRegularAndScriptAsync( "class Class private _goo as integer private _quux as integer public sub new() _goo = 0 [|_bar|] = 1 _quux = 2 end sub end class", "class Class private _goo as integer Private _bar As Integer private _quux as integer public sub new() _goo = 0 _bar = 1 _quux = 2 end sub end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestPlacePropertyBasedOnSurroundingStatements() As Task Await TestInRegularAndScriptAsync( "class Class public readonly property Goo as integer public readonly property Quux as integer public sub new() Goo = 0 [|Bar|] = 1 Quux = 2 end sub end class", "class Class public readonly property Goo as integer Public ReadOnly Property Bar As Integer public readonly property Quux as integer public sub new() Goo = 0 Bar = 1 Quux = 2 end sub end class") End Function <WorkItem(18988, "https://github.com/dotnet/roslyn/issues/18988")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function GroupNonReadonlyFieldsTogether() As Task Await TestInRegularAndScriptAsync( " class C public isDisposed as boolean public readonly x as integer public readonly m as integer public sub new() me.[|y|] = 0 end sub end class", " class C public isDisposed as boolean Private y As Integer public readonly x as integer public readonly m as integer public sub new() me.y = 0 end sub end class") End Function <WorkItem(18988, "https://github.com/dotnet/roslyn/issues/18988")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function GroupReadonlyFieldsTogether() As Task Await TestInRegularAndScriptAsync(" class C public readonly x as integer public readonly m as integer public isDisposed as boolean public sub new() me.[|y|] = 0 end sub end class", " class C public readonly x as integer public readonly m as integer Private ReadOnly y As Integer public isDisposed as boolean public sub new() me.y = 0 end sub end class", index:=1) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateSimplePropertyInSyncLock() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) SyncLock [|Bar|] End SyncLock End Sub End Module", "Module Program Public Property Bar As Object Sub Main(args As String()) SyncLock Bar End SyncLock End Sub End Module") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateSimpleFieldInSyncLock() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) SyncLock [|Bar|] End SyncLock End Sub End Module", "Module Program Private Bar As Object Sub Main(args As String()) SyncLock Bar End SyncLock End Sub End Module", index:=1) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestGenerateReadOnlyFieldInSyncLock() As Threading.Tasks.Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) SyncLock [|Bar|] End SyncLock End Sub End Module", "Module Program Private ReadOnly Bar As Object Sub Main(args As String()) SyncLock Bar End SyncLock End Sub End Module", index:=2) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameter() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Goo([|bar|]) End Sub End Module", "Module Program Sub Main(args As String(), bar As Object) Goo(bar) End Sub End Module", index:=4) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameterDoesntAddToOverride() As Task Await TestInRegularAndScriptAsync( "Class Base Public Overridable Sub Method(args As String()) End Sub End Class Class Program Public Overrides Sub Main(args As String()) Goo([|bar|]) End Sub End Class", "Class Base Public Overridable Sub Method(args As String()) End Sub End Class Class Program Public Overrides Sub Main(args As String(), bar As Object) Goo(bar) End Sub End Class", index:=4) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameterAndOverridesAddsToOverrides() As Task Await TestInRegularAndScriptAsync( "Class Base Public Overridable Sub Method(args As String()) End Sub End Class Class Program Inherits Base Public Overrides Sub Method(args As String()) Goo([|bar|]) End Sub End Class", "Class Base Public Overridable Sub Method(args As String(), bar As Object) End Sub End Class Class Program Inherits Base Public Overrides Sub Method(args As String(), bar As Object) Goo(bar) End Sub End Class", index:=5) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameterIsOfCorrectType() As Task Await TestInRegularAndScriptAsync( "Module Program Sub Main(args As String()) Goo([|bar|]) End Sub Sub Goo(arg As Integer) End Sub End Module", "Module Program Sub Main(args As String(), bar As Integer) Goo(bar) End Sub Sub Goo(arg As Integer) End Sub End Module", index:=4) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameterAndOverridesIsOfCorrectType() As Task Await TestInRegularAndScriptAsync( "Class Base Public Overridable Sub Method(args As String()) End Sub End Class Class Program Inherits Base Public Overrides Sub Method(args As String()) Goo([|bar|]) End Sub Sub Goo(arg As Integer) End Sub End Class", "Class Base Public Overridable Sub Method(args As String(), bar As Integer) End Sub End Class Class Program Inherits Base Public Overrides Sub Method(args As String(), bar As Integer) Goo(bar) End Sub Sub Goo(arg As Integer) End Sub End Class", index:=5) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameterAndOverridesNotOfferedToNonOverride1() As Task Await TestActionCountAsync( "Module Program Sub Main(args As String()) Goo([|bar|]) End Sub End Module", count:=5) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestAddParameterAndOverridesNotOfferedToNonOverride2() As Task Await TestActionCountAsync( "Class Base Public Overridable Sub Method(args As String()) End Sub End Class Class Program Inherits Base Public Sub Method(args As String()) Goo([|bar|]) End Sub Sub Goo(arg As Integer) End Sub End Class", count:=5) End Function <WorkItem(45367, "https://github.com/dotnet/roslyn/issues/45367")> <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateVariable)> Public Async Function TestCrashInNamespace() As Task Await TestMissingInRegularAndScriptAsync( "Namespace ConsoleApp5 Friend Sub New(errNum As Integer, offset As Integer, message As String) MyBase.New(message) Me.[|Error|] = errNum End Sub End Namespace") End Function End Class End Namespace
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Workspaces/Core/Portable/Storage/CloudCache/ICloudCacheStorageServiceFactory.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.CodeAnalysis.Host; namespace Microsoft.CodeAnalysis.Storage.CloudCache { internal interface ICloudCacheStorageServiceFactory : IWorkspaceService { AbstractPersistentStorageService Create(IPersistentStorageLocationService locationService); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.CodeAnalysis.Host; namespace Microsoft.CodeAnalysis.Storage.CloudCache { internal interface ICloudCacheStorageServiceFactory : IWorkspaceService { AbstractPersistentStorageService Create(IPersistentStorageLocationService locationService); } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/VisualBasic/Portable/Scanner/XmlDocComments.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. '----------------------------------------------------------------------------- ' Contains scanner functionality related to XmlDoc comments '----------------------------------------------------------------------------- Option Compare Binary Option Strict On Imports Microsoft.CodeAnalysis.Syntax.InternalSyntax Imports Microsoft.CodeAnalysis.VisualBasic.SyntaxFacts Imports CoreInternalSyntax = Microsoft.CodeAnalysis.Syntax.InternalSyntax Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax Partial Friend Class Scanner Private _IsScanningXmlDoc As Boolean = False Friend Property IsScanningXmlDoc As Boolean Get Return _IsScanningXmlDoc End Get Private Set(value As Boolean) _IsScanningXmlDoc = value End Set End Property ''' <remarks>See description in TryScanXmlDocComment(...)</remarks> Private _endOfXmlInsteadOfLastDocCommentLineBreak As Boolean ' bug 903247. First line should be treated in a special way. Private _isStartingFirstXmlDocLine As Boolean = False Private _doNotRequireXmlDocCommentPrefix As Boolean = False Private ReadOnly Property ShouldReportXmlError As Boolean Get Return Not Me._IsScanningXmlDoc OrElse Me._options.DocumentationMode = DocumentationMode.Diagnose End Get End Property ''' <summary> ''' This method is only to be used for parsing Cref and Name attributes as stand-alone entities ''' </summary> Friend Sub ForceScanningXmlDocMode() Me.IsScanningXmlDoc = True Me._isStartingFirstXmlDocLine = False Me._doNotRequireXmlDocCommentPrefix = True End Sub Private Function TryScanXmlDocComment(tList As SyntaxListBuilder) As Boolean Debug.Assert(IsAtNewLine) ' leading whitespace until we see ''' should be regular whitespace If CanGet() AndAlso IsWhitespace(Peek()) Then Dim ws = ScanWhitespace() tList.Add(ws) End If ' SAVE the lookahead state and clear current token #If DEBUG Then Dim origPosition = _lineBufferOffset #End If Dim restorePoint = CreateRestorePoint() ' since we do not have lookahead tokens, this just ' resets current token to _lineBufferOffset Me.GetNextTokenInState(ScannerState.Content) Dim currentNonterminal = Me.GetCurrentSyntaxNode() Dim docCommentSyntax = TryCast(currentNonterminal, DocumentationCommentTriviaSyntax) ' if we are lucky to get whole doc comment, we can just reuse it. If docCommentSyntax IsNot Nothing Then Me.MoveToNextSyntaxNodeInTrivia() Else Dim parser As New Parser(Me) Me.IsScanningXmlDoc = True Me._isStartingFirstXmlDocLine = True ' NOTE: Documentation comment syntax trivia must have at least one child xml node, because ' all the ['''] trivia are created as leading trivia for appropriate tokens. ' This means that we have to create at least one XmlText having trailing ' EOL to represent an empty documentation comment: ['''<eol>] ' ' The problem with this approach is that in presence of some errors (like ' not closed XML tags) we create missing tokens needed to represent the nodes ' *after* that last <eol> of the doc comment trivia, that means all the locations ' of created diagnostics will land on the first character of the next line ' after documentation comment ' ' To workaround this we parse XML nodes in two phases: ' - in the first phase we detect the last DocCommentLineBreak and create ' end-of-xml token instead; this should force all diagnostics to be ' reported on the next token location; ' - in the second phase we continue parsing XML nodes but don't create ' end-of-xml token which should just result in parsing one single node ' of XmlText type containing EOL; ' Then we merge the results and create resulting DocumentationCommentTrivia ' The first phase Me._endOfXmlInsteadOfLastDocCommentLineBreak = True Dim nodes = parser.ParseXmlContent(ScannerState.Content) ' The second phase Me._endOfXmlInsteadOfLastDocCommentLineBreak = False If nodes.Count = 0 AndAlso parser.CurrentToken.Kind = SyntaxKind.EndOfXmlToken Then ' This must be an empty documentation comment, we need to reset scanner so ' that the doc comment exterior trivia ([''']) lands on the final XmlNode ResetLineBufferOffset() restorePoint.RestoreTokens(includeLookAhead:=False) Me._isStartingFirstXmlDocLine = True End If nodes = parser.ParseRestOfDocCommentContent(nodes) Me.IsScanningXmlDoc = False Debug.Assert(nodes.Any) Debug.Assert(nodes(0).FullWidth > 0, "should at least get {'''EoL} ") ' restore _currentToken and lookahead, ' but keep offset and PP state ResetLineBufferOffset() docCommentSyntax = SyntaxFactory.DocumentationCommentTrivia(nodes) If Me.Options.DocumentationMode < DocumentationMode.Diagnose Then ' All diagnostics coming from documentation comment are ignored docCommentSyntax.ClearFlags(GreenNode.NodeFlags.ContainsDiagnostics) End If End If ' RESTORE lookahead state and current token if there were any restorePoint.RestoreTokens(includeLookAhead:=True) #If DEBUG Then Debug.Assert(Me._lineBufferOffset = origPosition + docCommentSyntax.FullWidth OrElse Me._endOfTerminatorTrivia = origPosition + docCommentSyntax.FullWidth) #End If tList.Add(docCommentSyntax) Return True End Function ' lexes (ws)''' Private Function TrySkipXmlDocMarker(ByRef len As Integer) As Boolean Dim Here = len While CanGet(Here) Dim c = Peek(Here) If IsWhitespace(c) Then Here += 1 Else Exit While End If End While If StartsXmlDoc(Here) Then len = Here + 3 Return True Else Return False End If End Function ' scans (ws)''' Private Function ScanXmlDocTrivia() As VisualBasicSyntaxNode Debug.Assert(IsAtNewLine() OrElse _isStartingFirstXmlDocLine) Dim len = 0 If TrySkipXmlDocMarker(len) Then Return MakeDocumentationCommentExteriorTrivia(GetText(len)) Else Return Nothing End If End Function ''' <summary> ''' Returns False if trivia ends line. ''' </summary> Private Function ScanXmlTriviaInXmlDoc(c As Char, triviaList As SyntaxListBuilder(Of VisualBasicSyntaxNode)) As Boolean Debug.Assert(IsScanningXmlDoc) Debug.Assert(c = CARRIAGE_RETURN OrElse c = LINE_FEED OrElse c = " "c OrElse c = CHARACTER_TABULATION) Dim len = 0 Do If c = " "c OrElse c = CHARACTER_TABULATION Then len += 1 ElseIf IsNewLine(c) Then If len > 0 Then triviaList.Add(MakeWhiteSpaceTrivia(GetText(len))) len = 0 End If ' Only consume the end of line if the XML doc ' comment continues on the following line. Dim offsets = CreateOffsetRestorePoint() Dim endOfLineTrivia = ScanNewlineAsTrivia(c) Dim ws = GetXmlWhitespaceLength(0) If TrySkipXmlDocMarker(ws) Then triviaList.Add(endOfLineTrivia) triviaList.Add(MakeDocumentationCommentExteriorTrivia(GetText(ws))) Else offsets.Restore() Return False End If Else Exit Do End If c = Peek(len) Loop If len > 0 Then triviaList.Add(MakeWhiteSpaceTrivia(GetText(len))) End If Return True End Function Private Function ScanXmlContentInXmlDoc() As SyntaxToken Debug.Assert(IsScanningXmlDoc) ' // [14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*) Dim precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode) = Nothing If IsAtNewLine() OrElse _isStartingFirstXmlDocLine Then Dim xDocTrivia = ScanXmlDocTrivia() _isStartingFirstXmlDocLine = False ' no longer starting If xDocTrivia Is Nothing Then Return MakeEofToken() ' XmlDoc lines must start with XmlDocTrivia End If precedingTrivia = New CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)(xDocTrivia) End If Dim Here As Integer = 0 Dim scratch = GetScratch() While CanGet(Here) Dim c As Char = Peek(Here) Select Case (c) Case CARRIAGE_RETURN, LINE_FEED If Here <> 0 Then Return XmlMakeTextLiteralToken(precedingTrivia, Here, scratch) End If Here = SkipLineBreak(c, Here) If _endOfXmlInsteadOfLastDocCommentLineBreak Then Dim tempHere As Integer = Here If Not TrySkipXmlDocMarker(tempHere) Then ' NOTE: we need to reset the buffer so that precedingTrivia ' lands on the next token ResetLineBufferOffset() Return SyntaxFactory.Token(Nothing, SyntaxKind.EndOfXmlToken, Nothing, String.Empty) End If End If ' line breaks in Doc comments are separate tokens. Return MakeDocCommentLineBreakToken(precedingTrivia, Here) Case " "c, CHARACTER_TABULATION scratch.Append(c) Here += 1 Case "&"c If Here <> 0 Then Return XmlMakeTextLiteralToken(precedingTrivia, Here, scratch) End If Return ScanXmlReference(precedingTrivia) Case "<"c If Here <> 0 Then Return XmlMakeTextLiteralToken(precedingTrivia, Here, scratch) End If Debug.Assert(Here = 0) If CanGet(1) Then Dim ch As Char = Peek(1) Select Case ch Case "!"c If CanGet(2) Then Select Case (Peek(2)) Case "-"c If NextIs(3, "-"c) Then Return XmlMakeBeginCommentToken(precedingTrivia, s_scanNoTriviaFunc) End If Case "["c If NextAre(3, "CDATA[") Then Return XmlMakeBeginCDataToken(precedingTrivia, s_scanNoTriviaFunc) End If Case "D"c If NextAre(3, "OCTYPE") Then Return XmlMakeBeginDTDToken(precedingTrivia) End If End Select End If Case "?"c Return XmlMakeBeginProcessingInstructionToken(precedingTrivia, s_scanNoTriviaFunc) Case "/"c Return XmlMakeBeginEndElementToken(precedingTrivia, s_scanNoTriviaFunc) End Select End If Return XmlMakeLessToken(precedingTrivia) Case "]"c If NextAre(Here + 1, "]>") Then ' // If valid characters found then return them. If Here <> 0 Then Return XmlMakeTextLiteralToken(precedingTrivia, Here, scratch) End If ' // Create an invalid character data token for the illegal ']]>' sequence Return XmlMakeTextLiteralToken(precedingTrivia, 3, ERRID.ERR_XmlEndCDataNotAllowedInContent) End If GoTo ScanChars Case Else ScanChars: ' // Check characters are valid Dim xmlCh = ScanXmlChar(Here) If xmlCh.Length = 0 Then ' bad char If Here > 0 Then Return XmlMakeTextLiteralToken(precedingTrivia, Here, scratch) Else Return XmlMakeBadToken(precedingTrivia, 1, ERRID.ERR_IllegalChar) End If End If xmlCh.AppendTo(scratch) Here += xmlCh.Length End Select End While ' no more chars If Here > 0 Then Return XmlMakeTextLiteralToken(precedingTrivia, Here, scratch) Else Return MakeEofToken(precedingTrivia) End If End Function Friend Function ScanXmlPIDataInXmlDoc(state As ScannerState) As SyntaxToken Debug.Assert(IsScanningXmlDoc) ' // Scan the PI data after the white space ' // [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' ' // [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) Debug.Assert(state = ScannerState.StartProcessingInstruction OrElse state = ScannerState.ProcessingInstruction) Dim precedingTrivia = _triviaListPool.Allocate(Of VisualBasicSyntaxNode)() Dim result As SyntaxToken If IsAtNewLine() Then Dim xDocTrivia = ScanXmlDocTrivia() If xDocTrivia Is Nothing Then Return MakeEofToken() ' XmlDoc lines must start with XmlDocTrivia End If precedingTrivia.Add(xDocTrivia) End If If state = ScannerState.StartProcessingInstruction AndAlso CanGet() Then ' // Whitespace ' // S ::= (#x20 | #x9 | #xD | #xA)+ Dim c = Peek() Select Case c Case CARRIAGE_RETURN, LINE_FEED, " "c, CHARACTER_TABULATION Dim offsets = CreateOffsetRestorePoint() Dim continueLine = ScanXmlTriviaInXmlDoc(c, precedingTrivia) If Not continueLine Then offsets.Restore() result = SyntaxFactory.Token(precedingTrivia.ToList.Node, SyntaxKind.EndOfXmlToken, Nothing, String.Empty) GoTo CleanUp End If End Select End If Dim Here = 0 While CanGet(Here) Dim c As Char = Peek(Here) Select Case (c) Case CARRIAGE_RETURN, LINE_FEED result = XmlMakeProcessingInstructionToken(precedingTrivia.ToList, Here + LengthOfLineBreak(c, Here)) GoTo CleanUp Case "?"c If NextIs(Here + 1, ">"c) Then '// If valid characters found then return them. If Here <> 0 Then result = XmlMakeProcessingInstructionToken(precedingTrivia.ToList, Here) GoTo CleanUp End If ' // Create token for the '?>' termination sequence result = XmlMakeEndProcessingInstructionToken(precedingTrivia.ToList) GoTo CleanUp End If GoTo ScanChars Case Else ScanChars: Dim xmlCh = ScanXmlChar(Here) If xmlCh.Length > 0 Then Here += xmlCh.Length Continue While End If ' bad char If Here <> 0 Then result = XmlMakeProcessingInstructionToken(precedingTrivia.ToList, Here) GoTo CleanUp Else result = XmlMakeBadToken(precedingTrivia.ToList, 1, ERRID.ERR_IllegalChar) GoTo CleanUp End If End Select End While ' no more chars If Here > 0 Then result = XmlMakeProcessingInstructionToken(precedingTrivia.ToList, Here) Else result = MakeEofToken(precedingTrivia.ToList) End If CleanUp: _triviaListPool.Free(precedingTrivia) Return result End Function Private Function ScanXmlElementInXmlDoc(state As ScannerState) As SyntaxToken Debug.Assert(IsScanningXmlDoc) ' // Only legal tokens ' // QName ' // / ' // > ' // = ' // Whitespace Dim precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode) = Nothing If IsAtNewLine() AndAlso Not Me._doNotRequireXmlDocCommentPrefix Then Dim xDocTrivia = ScanXmlDocTrivia() If xDocTrivia Is Nothing Then Return MakeEofToken() ' XmlDoc lines must start with XmlDocTrivia End If precedingTrivia = New CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)(xDocTrivia) End If While CanGet() If Not precedingTrivia.Any AndAlso IsAtNewLine() AndAlso Not Me._doNotRequireXmlDocCommentPrefix Then ' this would indicate that we looked at Trivia, but did not find ' XmlDoc prefix (or we would not be at the line start) ' must terminate XmlDoc scanning Return MakeEofToken(precedingTrivia) End If Dim c As Char = Peek() Select Case (c) ' // Whitespace ' // S ::= (#x20 | #x9 | #xD | #xA)+ Case CARRIAGE_RETURN, LINE_FEED, " "c, CHARACTER_TABULATION ' we should not visit this place twice Debug.Assert(Not precedingTrivia.Any) Dim offsets = CreateOffsetRestorePoint() Dim triviaList = _triviaListPool.Allocate(Of VisualBasicSyntaxNode)() Dim continueLine = ScanXmlTriviaInXmlDoc(c, triviaList) precedingTrivia = triviaList.ToList() _triviaListPool.Free(triviaList) If Not continueLine Then offsets.Restore() Return SyntaxFactory.Token(precedingTrivia.Node, SyntaxKind.EndOfXmlToken, Nothing, String.Empty) End If Case "/"c If NextIs(1, ">"c) Then Return XmlMakeEndEmptyElementToken(precedingTrivia) End If Return XmlMakeDivToken(precedingTrivia) Case ">"c Return XmlMakeGreaterToken(precedingTrivia) Case "="c Return XmlMakeEqualsToken(precedingTrivia) Case "'"c, LEFT_SINGLE_QUOTATION_MARK, RIGHT_SINGLE_QUOTATION_MARK Return XmlMakeSingleQuoteToken(precedingTrivia, c, isOpening:=True) Case """"c, LEFT_DOUBLE_QUOTATION_MARK, RIGHT_DOUBLE_QUOTATION_MARK Return XmlMakeDoubleQuoteToken(precedingTrivia, c, isOpening:=True) Case "<"c If CanGet(1) Then Dim ch As Char = Peek(1) Select Case ch Case "!"c If CanGet(2) Then Select Case (Peek(2)) Case "-"c If NextIs(3, "-"c) Then Return XmlMakeBeginCommentToken(precedingTrivia, s_scanNoTriviaFunc) End If Case "["c If NextAre(3, "CDATA[") Then Return XmlMakeBeginCDataToken(precedingTrivia, s_scanNoTriviaFunc) End If Case "D"c If NextAre(3, "OCTYPE") Then Return XmlMakeBeginDTDToken(precedingTrivia) End If End Select End If Return XmlLessThanExclamationToken(state, precedingTrivia) Case "?"c Return XmlMakeBeginProcessingInstructionToken(precedingTrivia, s_scanNoTriviaFunc) Case "/"c Return XmlMakeBeginEndElementToken(precedingTrivia, s_scanNoTriviaFunc) End Select End If Return XmlMakeLessToken(precedingTrivia) Case "?"c If NextIs(1, ">"c) Then ' // Create token for the '?>' termination sequence Return XmlMakeEndProcessingInstructionToken(precedingTrivia) End If Return MakeQuestionToken(precedingTrivia, False) Case "("c Return XmlMakeLeftParenToken(precedingTrivia) Case ")"c Return XmlMakeRightParenToken(precedingTrivia) Case "!"c, ";"c, "#"c, ","c, "}"c Return XmlMakeBadToken(precedingTrivia, 1, ERRID.ERR_IllegalXmlNameChar) Case ":"c Return XmlMakeColonToken(precedingTrivia) Case "["c Return XmlMakeOpenBracketToken(state, precedingTrivia) Case "]"c Return XmlMakeCloseBracketToken(state, precedingTrivia) Case Else ' // Because of weak scanning of QName, this state must always handle ' // '=' | '\'' | '"'| '/' | '>' | '<' | '?' Return ScanXmlNcName(precedingTrivia) End Select End While Return MakeEofToken(precedingTrivia) End Function 'TODO: It makes sense to split Xml scanning functions that have XmlDoc functionality ' and place here (see ScanXmlContentInXmlDoc). ' may actually make it a derived XmlDocScanner class (consider caches). End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. '----------------------------------------------------------------------------- ' Contains scanner functionality related to XmlDoc comments '----------------------------------------------------------------------------- Option Compare Binary Option Strict On Imports Microsoft.CodeAnalysis.Syntax.InternalSyntax Imports Microsoft.CodeAnalysis.VisualBasic.SyntaxFacts Imports CoreInternalSyntax = Microsoft.CodeAnalysis.Syntax.InternalSyntax Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax Partial Friend Class Scanner Private _IsScanningXmlDoc As Boolean = False Friend Property IsScanningXmlDoc As Boolean Get Return _IsScanningXmlDoc End Get Private Set(value As Boolean) _IsScanningXmlDoc = value End Set End Property ''' <remarks>See description in TryScanXmlDocComment(...)</remarks> Private _endOfXmlInsteadOfLastDocCommentLineBreak As Boolean ' bug 903247. First line should be treated in a special way. Private _isStartingFirstXmlDocLine As Boolean = False Private _doNotRequireXmlDocCommentPrefix As Boolean = False Private ReadOnly Property ShouldReportXmlError As Boolean Get Return Not Me._IsScanningXmlDoc OrElse Me._options.DocumentationMode = DocumentationMode.Diagnose End Get End Property ''' <summary> ''' This method is only to be used for parsing Cref and Name attributes as stand-alone entities ''' </summary> Friend Sub ForceScanningXmlDocMode() Me.IsScanningXmlDoc = True Me._isStartingFirstXmlDocLine = False Me._doNotRequireXmlDocCommentPrefix = True End Sub Private Function TryScanXmlDocComment(tList As SyntaxListBuilder) As Boolean Debug.Assert(IsAtNewLine) ' leading whitespace until we see ''' should be regular whitespace If CanGet() AndAlso IsWhitespace(Peek()) Then Dim ws = ScanWhitespace() tList.Add(ws) End If ' SAVE the lookahead state and clear current token #If DEBUG Then Dim origPosition = _lineBufferOffset #End If Dim restorePoint = CreateRestorePoint() ' since we do not have lookahead tokens, this just ' resets current token to _lineBufferOffset Me.GetNextTokenInState(ScannerState.Content) Dim currentNonterminal = Me.GetCurrentSyntaxNode() Dim docCommentSyntax = TryCast(currentNonterminal, DocumentationCommentTriviaSyntax) ' if we are lucky to get whole doc comment, we can just reuse it. If docCommentSyntax IsNot Nothing Then Me.MoveToNextSyntaxNodeInTrivia() Else Dim parser As New Parser(Me) Me.IsScanningXmlDoc = True Me._isStartingFirstXmlDocLine = True ' NOTE: Documentation comment syntax trivia must have at least one child xml node, because ' all the ['''] trivia are created as leading trivia for appropriate tokens. ' This means that we have to create at least one XmlText having trailing ' EOL to represent an empty documentation comment: ['''<eol>] ' ' The problem with this approach is that in presence of some errors (like ' not closed XML tags) we create missing tokens needed to represent the nodes ' *after* that last <eol> of the doc comment trivia, that means all the locations ' of created diagnostics will land on the first character of the next line ' after documentation comment ' ' To workaround this we parse XML nodes in two phases: ' - in the first phase we detect the last DocCommentLineBreak and create ' end-of-xml token instead; this should force all diagnostics to be ' reported on the next token location; ' - in the second phase we continue parsing XML nodes but don't create ' end-of-xml token which should just result in parsing one single node ' of XmlText type containing EOL; ' Then we merge the results and create resulting DocumentationCommentTrivia ' The first phase Me._endOfXmlInsteadOfLastDocCommentLineBreak = True Dim nodes = parser.ParseXmlContent(ScannerState.Content) ' The second phase Me._endOfXmlInsteadOfLastDocCommentLineBreak = False If nodes.Count = 0 AndAlso parser.CurrentToken.Kind = SyntaxKind.EndOfXmlToken Then ' This must be an empty documentation comment, we need to reset scanner so ' that the doc comment exterior trivia ([''']) lands on the final XmlNode ResetLineBufferOffset() restorePoint.RestoreTokens(includeLookAhead:=False) Me._isStartingFirstXmlDocLine = True End If nodes = parser.ParseRestOfDocCommentContent(nodes) Me.IsScanningXmlDoc = False Debug.Assert(nodes.Any) Debug.Assert(nodes(0).FullWidth > 0, "should at least get {'''EoL} ") ' restore _currentToken and lookahead, ' but keep offset and PP state ResetLineBufferOffset() docCommentSyntax = SyntaxFactory.DocumentationCommentTrivia(nodes) If Me.Options.DocumentationMode < DocumentationMode.Diagnose Then ' All diagnostics coming from documentation comment are ignored docCommentSyntax.ClearFlags(GreenNode.NodeFlags.ContainsDiagnostics) End If End If ' RESTORE lookahead state and current token if there were any restorePoint.RestoreTokens(includeLookAhead:=True) #If DEBUG Then Debug.Assert(Me._lineBufferOffset = origPosition + docCommentSyntax.FullWidth OrElse Me._endOfTerminatorTrivia = origPosition + docCommentSyntax.FullWidth) #End If tList.Add(docCommentSyntax) Return True End Function ' lexes (ws)''' Private Function TrySkipXmlDocMarker(ByRef len As Integer) As Boolean Dim Here = len While CanGet(Here) Dim c = Peek(Here) If IsWhitespace(c) Then Here += 1 Else Exit While End If End While If StartsXmlDoc(Here) Then len = Here + 3 Return True Else Return False End If End Function ' scans (ws)''' Private Function ScanXmlDocTrivia() As VisualBasicSyntaxNode Debug.Assert(IsAtNewLine() OrElse _isStartingFirstXmlDocLine) Dim len = 0 If TrySkipXmlDocMarker(len) Then Return MakeDocumentationCommentExteriorTrivia(GetText(len)) Else Return Nothing End If End Function ''' <summary> ''' Returns False if trivia ends line. ''' </summary> Private Function ScanXmlTriviaInXmlDoc(c As Char, triviaList As SyntaxListBuilder(Of VisualBasicSyntaxNode)) As Boolean Debug.Assert(IsScanningXmlDoc) Debug.Assert(c = CARRIAGE_RETURN OrElse c = LINE_FEED OrElse c = " "c OrElse c = CHARACTER_TABULATION) Dim len = 0 Do If c = " "c OrElse c = CHARACTER_TABULATION Then len += 1 ElseIf IsNewLine(c) Then If len > 0 Then triviaList.Add(MakeWhiteSpaceTrivia(GetText(len))) len = 0 End If ' Only consume the end of line if the XML doc ' comment continues on the following line. Dim offsets = CreateOffsetRestorePoint() Dim endOfLineTrivia = ScanNewlineAsTrivia(c) Dim ws = GetXmlWhitespaceLength(0) If TrySkipXmlDocMarker(ws) Then triviaList.Add(endOfLineTrivia) triviaList.Add(MakeDocumentationCommentExteriorTrivia(GetText(ws))) Else offsets.Restore() Return False End If Else Exit Do End If c = Peek(len) Loop If len > 0 Then triviaList.Add(MakeWhiteSpaceTrivia(GetText(len))) End If Return True End Function Private Function ScanXmlContentInXmlDoc() As SyntaxToken Debug.Assert(IsScanningXmlDoc) ' // [14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*) Dim precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode) = Nothing If IsAtNewLine() OrElse _isStartingFirstXmlDocLine Then Dim xDocTrivia = ScanXmlDocTrivia() _isStartingFirstXmlDocLine = False ' no longer starting If xDocTrivia Is Nothing Then Return MakeEofToken() ' XmlDoc lines must start with XmlDocTrivia End If precedingTrivia = New CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)(xDocTrivia) End If Dim Here As Integer = 0 Dim scratch = GetScratch() While CanGet(Here) Dim c As Char = Peek(Here) Select Case (c) Case CARRIAGE_RETURN, LINE_FEED If Here <> 0 Then Return XmlMakeTextLiteralToken(precedingTrivia, Here, scratch) End If Here = SkipLineBreak(c, Here) If _endOfXmlInsteadOfLastDocCommentLineBreak Then Dim tempHere As Integer = Here If Not TrySkipXmlDocMarker(tempHere) Then ' NOTE: we need to reset the buffer so that precedingTrivia ' lands on the next token ResetLineBufferOffset() Return SyntaxFactory.Token(Nothing, SyntaxKind.EndOfXmlToken, Nothing, String.Empty) End If End If ' line breaks in Doc comments are separate tokens. Return MakeDocCommentLineBreakToken(precedingTrivia, Here) Case " "c, CHARACTER_TABULATION scratch.Append(c) Here += 1 Case "&"c If Here <> 0 Then Return XmlMakeTextLiteralToken(precedingTrivia, Here, scratch) End If Return ScanXmlReference(precedingTrivia) Case "<"c If Here <> 0 Then Return XmlMakeTextLiteralToken(precedingTrivia, Here, scratch) End If Debug.Assert(Here = 0) If CanGet(1) Then Dim ch As Char = Peek(1) Select Case ch Case "!"c If CanGet(2) Then Select Case (Peek(2)) Case "-"c If NextIs(3, "-"c) Then Return XmlMakeBeginCommentToken(precedingTrivia, s_scanNoTriviaFunc) End If Case "["c If NextAre(3, "CDATA[") Then Return XmlMakeBeginCDataToken(precedingTrivia, s_scanNoTriviaFunc) End If Case "D"c If NextAre(3, "OCTYPE") Then Return XmlMakeBeginDTDToken(precedingTrivia) End If End Select End If Case "?"c Return XmlMakeBeginProcessingInstructionToken(precedingTrivia, s_scanNoTriviaFunc) Case "/"c Return XmlMakeBeginEndElementToken(precedingTrivia, s_scanNoTriviaFunc) End Select End If Return XmlMakeLessToken(precedingTrivia) Case "]"c If NextAre(Here + 1, "]>") Then ' // If valid characters found then return them. If Here <> 0 Then Return XmlMakeTextLiteralToken(precedingTrivia, Here, scratch) End If ' // Create an invalid character data token for the illegal ']]>' sequence Return XmlMakeTextLiteralToken(precedingTrivia, 3, ERRID.ERR_XmlEndCDataNotAllowedInContent) End If GoTo ScanChars Case Else ScanChars: ' // Check characters are valid Dim xmlCh = ScanXmlChar(Here) If xmlCh.Length = 0 Then ' bad char If Here > 0 Then Return XmlMakeTextLiteralToken(precedingTrivia, Here, scratch) Else Return XmlMakeBadToken(precedingTrivia, 1, ERRID.ERR_IllegalChar) End If End If xmlCh.AppendTo(scratch) Here += xmlCh.Length End Select End While ' no more chars If Here > 0 Then Return XmlMakeTextLiteralToken(precedingTrivia, Here, scratch) Else Return MakeEofToken(precedingTrivia) End If End Function Friend Function ScanXmlPIDataInXmlDoc(state As ScannerState) As SyntaxToken Debug.Assert(IsScanningXmlDoc) ' // Scan the PI data after the white space ' // [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' ' // [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) Debug.Assert(state = ScannerState.StartProcessingInstruction OrElse state = ScannerState.ProcessingInstruction) Dim precedingTrivia = _triviaListPool.Allocate(Of VisualBasicSyntaxNode)() Dim result As SyntaxToken If IsAtNewLine() Then Dim xDocTrivia = ScanXmlDocTrivia() If xDocTrivia Is Nothing Then Return MakeEofToken() ' XmlDoc lines must start with XmlDocTrivia End If precedingTrivia.Add(xDocTrivia) End If If state = ScannerState.StartProcessingInstruction AndAlso CanGet() Then ' // Whitespace ' // S ::= (#x20 | #x9 | #xD | #xA)+ Dim c = Peek() Select Case c Case CARRIAGE_RETURN, LINE_FEED, " "c, CHARACTER_TABULATION Dim offsets = CreateOffsetRestorePoint() Dim continueLine = ScanXmlTriviaInXmlDoc(c, precedingTrivia) If Not continueLine Then offsets.Restore() result = SyntaxFactory.Token(precedingTrivia.ToList.Node, SyntaxKind.EndOfXmlToken, Nothing, String.Empty) GoTo CleanUp End If End Select End If Dim Here = 0 While CanGet(Here) Dim c As Char = Peek(Here) Select Case (c) Case CARRIAGE_RETURN, LINE_FEED result = XmlMakeProcessingInstructionToken(precedingTrivia.ToList, Here + LengthOfLineBreak(c, Here)) GoTo CleanUp Case "?"c If NextIs(Here + 1, ">"c) Then '// If valid characters found then return them. If Here <> 0 Then result = XmlMakeProcessingInstructionToken(precedingTrivia.ToList, Here) GoTo CleanUp End If ' // Create token for the '?>' termination sequence result = XmlMakeEndProcessingInstructionToken(precedingTrivia.ToList) GoTo CleanUp End If GoTo ScanChars Case Else ScanChars: Dim xmlCh = ScanXmlChar(Here) If xmlCh.Length > 0 Then Here += xmlCh.Length Continue While End If ' bad char If Here <> 0 Then result = XmlMakeProcessingInstructionToken(precedingTrivia.ToList, Here) GoTo CleanUp Else result = XmlMakeBadToken(precedingTrivia.ToList, 1, ERRID.ERR_IllegalChar) GoTo CleanUp End If End Select End While ' no more chars If Here > 0 Then result = XmlMakeProcessingInstructionToken(precedingTrivia.ToList, Here) Else result = MakeEofToken(precedingTrivia.ToList) End If CleanUp: _triviaListPool.Free(precedingTrivia) Return result End Function Private Function ScanXmlElementInXmlDoc(state As ScannerState) As SyntaxToken Debug.Assert(IsScanningXmlDoc) ' // Only legal tokens ' // QName ' // / ' // > ' // = ' // Whitespace Dim precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode) = Nothing If IsAtNewLine() AndAlso Not Me._doNotRequireXmlDocCommentPrefix Then Dim xDocTrivia = ScanXmlDocTrivia() If xDocTrivia Is Nothing Then Return MakeEofToken() ' XmlDoc lines must start with XmlDocTrivia End If precedingTrivia = New CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode)(xDocTrivia) End If While CanGet() If Not precedingTrivia.Any AndAlso IsAtNewLine() AndAlso Not Me._doNotRequireXmlDocCommentPrefix Then ' this would indicate that we looked at Trivia, but did not find ' XmlDoc prefix (or we would not be at the line start) ' must terminate XmlDoc scanning Return MakeEofToken(precedingTrivia) End If Dim c As Char = Peek() Select Case (c) ' // Whitespace ' // S ::= (#x20 | #x9 | #xD | #xA)+ Case CARRIAGE_RETURN, LINE_FEED, " "c, CHARACTER_TABULATION ' we should not visit this place twice Debug.Assert(Not precedingTrivia.Any) Dim offsets = CreateOffsetRestorePoint() Dim triviaList = _triviaListPool.Allocate(Of VisualBasicSyntaxNode)() Dim continueLine = ScanXmlTriviaInXmlDoc(c, triviaList) precedingTrivia = triviaList.ToList() _triviaListPool.Free(triviaList) If Not continueLine Then offsets.Restore() Return SyntaxFactory.Token(precedingTrivia.Node, SyntaxKind.EndOfXmlToken, Nothing, String.Empty) End If Case "/"c If NextIs(1, ">"c) Then Return XmlMakeEndEmptyElementToken(precedingTrivia) End If Return XmlMakeDivToken(precedingTrivia) Case ">"c Return XmlMakeGreaterToken(precedingTrivia) Case "="c Return XmlMakeEqualsToken(precedingTrivia) Case "'"c, LEFT_SINGLE_QUOTATION_MARK, RIGHT_SINGLE_QUOTATION_MARK Return XmlMakeSingleQuoteToken(precedingTrivia, c, isOpening:=True) Case """"c, LEFT_DOUBLE_QUOTATION_MARK, RIGHT_DOUBLE_QUOTATION_MARK Return XmlMakeDoubleQuoteToken(precedingTrivia, c, isOpening:=True) Case "<"c If CanGet(1) Then Dim ch As Char = Peek(1) Select Case ch Case "!"c If CanGet(2) Then Select Case (Peek(2)) Case "-"c If NextIs(3, "-"c) Then Return XmlMakeBeginCommentToken(precedingTrivia, s_scanNoTriviaFunc) End If Case "["c If NextAre(3, "CDATA[") Then Return XmlMakeBeginCDataToken(precedingTrivia, s_scanNoTriviaFunc) End If Case "D"c If NextAre(3, "OCTYPE") Then Return XmlMakeBeginDTDToken(precedingTrivia) End If End Select End If Return XmlLessThanExclamationToken(state, precedingTrivia) Case "?"c Return XmlMakeBeginProcessingInstructionToken(precedingTrivia, s_scanNoTriviaFunc) Case "/"c Return XmlMakeBeginEndElementToken(precedingTrivia, s_scanNoTriviaFunc) End Select End If Return XmlMakeLessToken(precedingTrivia) Case "?"c If NextIs(1, ">"c) Then ' // Create token for the '?>' termination sequence Return XmlMakeEndProcessingInstructionToken(precedingTrivia) End If Return MakeQuestionToken(precedingTrivia, False) Case "("c Return XmlMakeLeftParenToken(precedingTrivia) Case ")"c Return XmlMakeRightParenToken(precedingTrivia) Case "!"c, ";"c, "#"c, ","c, "}"c Return XmlMakeBadToken(precedingTrivia, 1, ERRID.ERR_IllegalXmlNameChar) Case ":"c Return XmlMakeColonToken(precedingTrivia) Case "["c Return XmlMakeOpenBracketToken(state, precedingTrivia) Case "]"c Return XmlMakeCloseBracketToken(state, precedingTrivia) Case Else ' // Because of weak scanning of QName, this state must always handle ' // '=' | '\'' | '"'| '/' | '>' | '<' | '?' Return ScanXmlNcName(precedingTrivia) End Select End While Return MakeEofToken(precedingTrivia) End Function 'TODO: It makes sense to split Xml scanning functions that have XmlDoc functionality ' and place here (see ScanXmlContentInXmlDoc). ' may actually make it a derived XmlDocScanner class (consider caches). End Class End Namespace
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/CSharp/Test/Symbol/Symbols/Source/TypeMapTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Text; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests { public class TypeMapTests : CSharpTestBase { // take a type of the form Something<X> and return the type X. private TypeSymbol TypeArg(TypeSymbol t) { var nts = t as NamedTypeSymbol; Assert.NotNull(nts); Assert.Equal(1, nts.Arity); return nts.TypeArguments()[0]; } [Fact] public void TestMap1() { var text = @" public class Box<T> {} public class A<T> { public class TBox : Box<T> {} public class B<U> { public class TBox : Box<T> {} public class UBox : Box<U> {} public class C { public class TBox : Box<T> {} public class UBox : Box<U> {} } } } public class E {} public class F {} public class Top : A<E> { // base is A<E> public class BF : B<F> {} // base is A<E>.B<F> } "; var comp = CreateEmptyCompilation(text); var global = comp.GlobalNamespace; var at = global.GetTypeMembers("A", 1).Single(); // A<T> var t = at.TypeParameters[0]; Assert.Equal(t, TypeArg(at.GetTypeMembers("TBox", 0).Single().BaseType())); var atbu = at.GetTypeMembers("B", 1).Single(); // A<T>.B<U> var u = atbu.TypeParameters[0]; var c = atbu.GetTypeMembers("C", 0).Single(); // A<T>.B<U>.C Assert.Equal(atbu, c.ContainingType); Assert.Equal(u, TypeArg(c.ContainingType)); Assert.Equal(at, c.ContainingType.ContainingType); Assert.Equal(t, TypeArg(c.ContainingType.ContainingType)); var e = global.GetTypeMembers("E", 0).Single(); // E var f = global.GetTypeMembers("F", 0).Single(); // F var top = global.GetTypeMembers("Top", 0).Single(); // Top var ae = top.BaseType(); // A<E> Assert.Equal(at, ae.OriginalDefinition); Assert.Equal(at, at.ConstructedFrom); Assert.Equal(e, TypeArg(ae)); var bf = top.GetTypeMembers("BF", 0).Single(); // Top.BF Assert.Equal(top, bf.ContainingType); var aebf = bf.BaseType(); Assert.Equal(f, TypeArg(aebf)); Assert.Equal(ae, aebf.ContainingType); var aebfc = aebf.GetTypeMembers("C", 0).Single(); // A<E>.B<F>.C Assert.Equal(c, aebfc.OriginalDefinition); Assert.NotEqual(c, aebfc.ConstructedFrom); Assert.Equal(f, TypeArg(aebfc.ContainingType)); Assert.Equal(e, TypeArg(aebfc.ContainingType.ContainingType)); Assert.Equal(e, TypeArg(aebfc.GetTypeMembers("TBox", 0).Single().BaseType())); Assert.Equal(f, TypeArg(aebfc.GetTypeMembers("UBox", 0).Single().BaseType())); // exercises alpha-renaming. Assert.Equal(aebfc, DeepConstruct(c, ImmutableArray.Create<TypeSymbol>(e, f))); // exercise DeepConstruct } /// <summary> /// Returns a constructed type given the type it is constructed from and type arguments for its enclosing types and itself. /// </summary> /// <param name="typeArguments">the type arguments that will replace the type parameters, starting with those for enclosing types</param> /// <returns></returns> private static NamedTypeSymbol DeepConstruct(NamedTypeSymbol type, ImmutableArray<TypeSymbol> typeArguments) { Assert.True(type.IsDefinition); var allTypeParameters = ArrayBuilder<TypeParameterSymbol>.GetInstance(); type.GetAllTypeParameters(allTypeParameters); return new TypeMap(allTypeParameters.ToImmutableAndFree(), typeArguments.SelectAsArray(t => TypeWithAnnotations.Create(t))).SubstituteNamedType(type); } [Fact] public void ConstructedError() { var text = @" class C { NonExistentType<int> field; } "; var tree = Parse(text); var comp = CreateCompilation(tree); var global = comp.GlobalNamespace; var c = global.GetTypeMembers("C", 0).Single() as NamedTypeSymbol; var field = c.GetMembers("field").Single() as FieldSymbol; var neti = field.Type as NamedTypeSymbol; Assert.Equal(SpecialType.System_Int32, neti.TypeArguments()[0].SpecialType); } [Fact] public void Generics4() { string source = @" class C1<C1T1, C1T2> { public class C2<C2T1, C2T2> { public class C3<C3T1, C3T2> { public C1<int, C3T2>.C2<byte, C3T2>.C3<char, C3T2> V1; } } } "; var compilation = CreateCompilation(source); var _int = compilation.GetSpecialType(SpecialType.System_Int32); var _byte = compilation.GetSpecialType(SpecialType.System_Byte); var _char = compilation.GetSpecialType(SpecialType.System_Char); var C1 = compilation.GetTypeByMetadataName("C1`2"); var c1OfByteChar = C1.Construct(_byte, _char); Assert.Equal("C1<System.Byte, System.Char>", c1OfByteChar.ToTestDisplayString()); var c1OfByteChar_c2 = (NamedTypeSymbol)(c1OfByteChar.GetMembers()[0]); var c1OfByteChar_c2OfIntInt = c1OfByteChar_c2.Construct(_int, _int); Assert.Equal("C1<System.Byte, System.Char>.C2<System.Int32, System.Int32>", c1OfByteChar_c2OfIntInt.ToTestDisplayString()); var c1OfByteChar_c2OfIntInt_c3 = (NamedTypeSymbol)(c1OfByteChar_c2OfIntInt.GetMembers()[0]); var c1OfByteChar_c2OfIntInt_c3OfIntByte = c1OfByteChar_c2OfIntInt_c3.Construct(_int, _byte); Assert.Equal("C1<System.Byte, System.Char>.C2<System.Int32, System.Int32>.C3<System.Int32, System.Byte>", c1OfByteChar_c2OfIntInt_c3OfIntByte.ToTestDisplayString()); var v1 = c1OfByteChar_c2OfIntInt_c3OfIntByte.GetMembers().OfType<FieldSymbol>().First(); var type = v1.TypeWithAnnotations; Assert.Equal("C1<System.Int32, System.Byte>.C2<System.Byte, System.Byte>.C3<System.Char, System.Byte>", type.Type.ToTestDisplayString()); } [Fact] public void Generics5() { string source = @" class C1<C1T1, C1T2> { public class C2<C2T1, C2T2> { public class C3<C3T1, C3T2> { public C1<int, C3T2>.C2<byte, C3T2>.C3<char, C3T2> V1; } } } "; var compilation = CreateCompilation(source); var _int = compilation.GetSpecialType(SpecialType.System_Int32); var _byte = compilation.GetSpecialType(SpecialType.System_Byte); var _char = compilation.GetSpecialType(SpecialType.System_Char); var C1 = compilation.GetTypeByMetadataName("C1`2"); var c1OfByteChar = C1.Construct(_byte, _char); Assert.Equal("C1<System.Byte, System.Char>", c1OfByteChar.ToTestDisplayString()); var c1OfByteChar_c2 = (NamedTypeSymbol)(c1OfByteChar.GetMembers()[0]); Assert.Throws<ArgumentException>(() => { var c1OfByteChar_c2OfIntInt = c1OfByteChar_c2.Construct(_byte, _char, _int, _int); }); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Text; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests { public class TypeMapTests : CSharpTestBase { // take a type of the form Something<X> and return the type X. private TypeSymbol TypeArg(TypeSymbol t) { var nts = t as NamedTypeSymbol; Assert.NotNull(nts); Assert.Equal(1, nts.Arity); return nts.TypeArguments()[0]; } [Fact] public void TestMap1() { var text = @" public class Box<T> {} public class A<T> { public class TBox : Box<T> {} public class B<U> { public class TBox : Box<T> {} public class UBox : Box<U> {} public class C { public class TBox : Box<T> {} public class UBox : Box<U> {} } } } public class E {} public class F {} public class Top : A<E> { // base is A<E> public class BF : B<F> {} // base is A<E>.B<F> } "; var comp = CreateEmptyCompilation(text); var global = comp.GlobalNamespace; var at = global.GetTypeMembers("A", 1).Single(); // A<T> var t = at.TypeParameters[0]; Assert.Equal(t, TypeArg(at.GetTypeMembers("TBox", 0).Single().BaseType())); var atbu = at.GetTypeMembers("B", 1).Single(); // A<T>.B<U> var u = atbu.TypeParameters[0]; var c = atbu.GetTypeMembers("C", 0).Single(); // A<T>.B<U>.C Assert.Equal(atbu, c.ContainingType); Assert.Equal(u, TypeArg(c.ContainingType)); Assert.Equal(at, c.ContainingType.ContainingType); Assert.Equal(t, TypeArg(c.ContainingType.ContainingType)); var e = global.GetTypeMembers("E", 0).Single(); // E var f = global.GetTypeMembers("F", 0).Single(); // F var top = global.GetTypeMembers("Top", 0).Single(); // Top var ae = top.BaseType(); // A<E> Assert.Equal(at, ae.OriginalDefinition); Assert.Equal(at, at.ConstructedFrom); Assert.Equal(e, TypeArg(ae)); var bf = top.GetTypeMembers("BF", 0).Single(); // Top.BF Assert.Equal(top, bf.ContainingType); var aebf = bf.BaseType(); Assert.Equal(f, TypeArg(aebf)); Assert.Equal(ae, aebf.ContainingType); var aebfc = aebf.GetTypeMembers("C", 0).Single(); // A<E>.B<F>.C Assert.Equal(c, aebfc.OriginalDefinition); Assert.NotEqual(c, aebfc.ConstructedFrom); Assert.Equal(f, TypeArg(aebfc.ContainingType)); Assert.Equal(e, TypeArg(aebfc.ContainingType.ContainingType)); Assert.Equal(e, TypeArg(aebfc.GetTypeMembers("TBox", 0).Single().BaseType())); Assert.Equal(f, TypeArg(aebfc.GetTypeMembers("UBox", 0).Single().BaseType())); // exercises alpha-renaming. Assert.Equal(aebfc, DeepConstruct(c, ImmutableArray.Create<TypeSymbol>(e, f))); // exercise DeepConstruct } /// <summary> /// Returns a constructed type given the type it is constructed from and type arguments for its enclosing types and itself. /// </summary> /// <param name="typeArguments">the type arguments that will replace the type parameters, starting with those for enclosing types</param> /// <returns></returns> private static NamedTypeSymbol DeepConstruct(NamedTypeSymbol type, ImmutableArray<TypeSymbol> typeArguments) { Assert.True(type.IsDefinition); var allTypeParameters = ArrayBuilder<TypeParameterSymbol>.GetInstance(); type.GetAllTypeParameters(allTypeParameters); return new TypeMap(allTypeParameters.ToImmutableAndFree(), typeArguments.SelectAsArray(t => TypeWithAnnotations.Create(t))).SubstituteNamedType(type); } [Fact] public void ConstructedError() { var text = @" class C { NonExistentType<int> field; } "; var tree = Parse(text); var comp = CreateCompilation(tree); var global = comp.GlobalNamespace; var c = global.GetTypeMembers("C", 0).Single() as NamedTypeSymbol; var field = c.GetMembers("field").Single() as FieldSymbol; var neti = field.Type as NamedTypeSymbol; Assert.Equal(SpecialType.System_Int32, neti.TypeArguments()[0].SpecialType); } [Fact] public void Generics4() { string source = @" class C1<C1T1, C1T2> { public class C2<C2T1, C2T2> { public class C3<C3T1, C3T2> { public C1<int, C3T2>.C2<byte, C3T2>.C3<char, C3T2> V1; } } } "; var compilation = CreateCompilation(source); var _int = compilation.GetSpecialType(SpecialType.System_Int32); var _byte = compilation.GetSpecialType(SpecialType.System_Byte); var _char = compilation.GetSpecialType(SpecialType.System_Char); var C1 = compilation.GetTypeByMetadataName("C1`2"); var c1OfByteChar = C1.Construct(_byte, _char); Assert.Equal("C1<System.Byte, System.Char>", c1OfByteChar.ToTestDisplayString()); var c1OfByteChar_c2 = (NamedTypeSymbol)(c1OfByteChar.GetMembers()[0]); var c1OfByteChar_c2OfIntInt = c1OfByteChar_c2.Construct(_int, _int); Assert.Equal("C1<System.Byte, System.Char>.C2<System.Int32, System.Int32>", c1OfByteChar_c2OfIntInt.ToTestDisplayString()); var c1OfByteChar_c2OfIntInt_c3 = (NamedTypeSymbol)(c1OfByteChar_c2OfIntInt.GetMembers()[0]); var c1OfByteChar_c2OfIntInt_c3OfIntByte = c1OfByteChar_c2OfIntInt_c3.Construct(_int, _byte); Assert.Equal("C1<System.Byte, System.Char>.C2<System.Int32, System.Int32>.C3<System.Int32, System.Byte>", c1OfByteChar_c2OfIntInt_c3OfIntByte.ToTestDisplayString()); var v1 = c1OfByteChar_c2OfIntInt_c3OfIntByte.GetMembers().OfType<FieldSymbol>().First(); var type = v1.TypeWithAnnotations; Assert.Equal("C1<System.Int32, System.Byte>.C2<System.Byte, System.Byte>.C3<System.Char, System.Byte>", type.Type.ToTestDisplayString()); } [Fact] public void Generics5() { string source = @" class C1<C1T1, C1T2> { public class C2<C2T1, C2T2> { public class C3<C3T1, C3T2> { public C1<int, C3T2>.C2<byte, C3T2>.C3<char, C3T2> V1; } } } "; var compilation = CreateCompilation(source); var _int = compilation.GetSpecialType(SpecialType.System_Int32); var _byte = compilation.GetSpecialType(SpecialType.System_Byte); var _char = compilation.GetSpecialType(SpecialType.System_Char); var C1 = compilation.GetTypeByMetadataName("C1`2"); var c1OfByteChar = C1.Construct(_byte, _char); Assert.Equal("C1<System.Byte, System.Char>", c1OfByteChar.ToTestDisplayString()); var c1OfByteChar_c2 = (NamedTypeSymbol)(c1OfByteChar.GetMembers()[0]); Assert.Throws<ArgumentException>(() => { var c1OfByteChar_c2OfIntInt = c1OfByteChar_c2.Construct(_byte, _char, _int, _int); }); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/VisualStudio/Core/Def/Storage/ProjectContainerKeyCache.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.PersistentStorage; using Microsoft.VisualStudio.RpcContracts.Caching; using Roslyn.Utilities; namespace Microsoft.VisualStudio.LanguageServices.Storage { /// <summary> /// Cache of our own internal roslyn storage keys to the equivalent platform cloud cache keys. Cloud cache keys can /// store a lot of date in them (like their 'dimensions' dictionary. We don't want to continually recreate these as /// we read/write date to the db. /// </summary> internal class ProjectContainerKeyCache { private static readonly ImmutableSortedDictionary<string, string?> EmptyDimensions = ImmutableSortedDictionary.Create<string, string?>(StringComparer.Ordinal); /// <summary> /// Container key explicitly for the project itself. /// </summary> public readonly CacheContainerKey? ProjectContainerKey; /// <summary> /// Cache from document green nodes to the container keys we've computed for it. We can avoid computing these /// container keys when called repeatedly for the same documents. /// </summary> /// <remarks> /// We can use a normal Dictionary here instead of a <see cref="ConditionalWeakTable{TKey, TValue}"/> as /// instances of <see cref="ProjectContainerKeyCache"/> are always owned in a context where the <see /// cref="ProjectState"/> is alive. As that instance is alive, all <see cref="TextDocumentState"/>s the project /// points at will be held alive strongly too. /// </remarks> private readonly Dictionary<TextDocumentState, CacheContainerKey?> _documentToContainerKey = new(); private readonly Func<TextDocumentState, CacheContainerKey?> _documentToContainerKeyCallback; public ProjectContainerKeyCache(string relativePathBase, ProjectKey projectKey) { ProjectContainerKey = CreateProjectContainerKey(relativePathBase, projectKey); _documentToContainerKeyCallback = ds => CreateDocumentContainerKey(relativePathBase, DocumentKey.ToDocumentKey(projectKey, ds)); } public CacheContainerKey? GetDocumentContainerKey(TextDocumentState state) { lock (_documentToContainerKey) return _documentToContainerKey.GetOrAdd(state, _documentToContainerKeyCallback); } public static CacheContainerKey? CreateProjectContainerKey( string relativePathBase, ProjectKey projectKey) { // Creates a container key for this project. The container key is a mix of the project's name, relative // file path (to the solution), and optional parse options. // If we don't have a valid solution path, we can't store anything. if (string.IsNullOrEmpty(relativePathBase)) return null; // We have to have a file path for this project if (RoslynString.IsNullOrEmpty(projectKey.FilePath)) return null; // The file path has to be relative to the base path the DB is associated with (either the solution-path or // repo-path). var relativePath = PathUtilities.GetRelativePath(relativePathBase, projectKey.FilePath!); if (relativePath == projectKey.FilePath) return null; var dimensions = EmptyDimensions .Add($"{nameof(ProjectKey)}.{nameof(ProjectKey.Name)}", projectKey.Name) .Add($"{nameof(ProjectKey)}.{nameof(ProjectKey.FilePath)}", relativePath) .Add($"{nameof(ProjectKey)}.{nameof(ProjectKey.ParseOptionsChecksum)}", projectKey.ParseOptionsChecksum.ToString()); return new CacheContainerKey("Roslyn.Project", dimensions); } public static CacheContainerKey? CreateDocumentContainerKey( string relativePathBase, DocumentKey documentKey) { // See if we can get a project key for this info. If not, we def can't get a doc key. var projectContainerKey = CreateProjectContainerKey(relativePathBase, documentKey.Project); if (projectContainerKey == null) return null; // We have to have a file path for this document if (string.IsNullOrEmpty(documentKey.FilePath)) return null; // The file path has to be relative to the base path the DB is associated with (either the solution-path or // repo-path). var relativePath = PathUtilities.GetRelativePath(relativePathBase, documentKey.FilePath!); if (relativePath == documentKey.FilePath) return null; var dimensions = projectContainerKey.Value.Dimensions .Add($"{nameof(DocumentKey)}.{nameof(DocumentKey.Name)}", documentKey.Name) .Add($"{nameof(DocumentKey)}.{nameof(DocumentKey.FilePath)}", relativePath); return new CacheContainerKey("Roslyn.Document", dimensions); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.PersistentStorage; using Microsoft.VisualStudio.RpcContracts.Caching; using Roslyn.Utilities; namespace Microsoft.VisualStudio.LanguageServices.Storage { /// <summary> /// Cache of our own internal roslyn storage keys to the equivalent platform cloud cache keys. Cloud cache keys can /// store a lot of date in them (like their 'dimensions' dictionary. We don't want to continually recreate these as /// we read/write date to the db. /// </summary> internal class ProjectContainerKeyCache { private static readonly ImmutableSortedDictionary<string, string?> EmptyDimensions = ImmutableSortedDictionary.Create<string, string?>(StringComparer.Ordinal); /// <summary> /// Container key explicitly for the project itself. /// </summary> public readonly CacheContainerKey? ProjectContainerKey; /// <summary> /// Cache from document green nodes to the container keys we've computed for it. We can avoid computing these /// container keys when called repeatedly for the same documents. /// </summary> /// <remarks> /// We can use a normal Dictionary here instead of a <see cref="ConditionalWeakTable{TKey, TValue}"/> as /// instances of <see cref="ProjectContainerKeyCache"/> are always owned in a context where the <see /// cref="ProjectState"/> is alive. As that instance is alive, all <see cref="TextDocumentState"/>s the project /// points at will be held alive strongly too. /// </remarks> private readonly Dictionary<TextDocumentState, CacheContainerKey?> _documentToContainerKey = new(); private readonly Func<TextDocumentState, CacheContainerKey?> _documentToContainerKeyCallback; public ProjectContainerKeyCache(string relativePathBase, ProjectKey projectKey) { ProjectContainerKey = CreateProjectContainerKey(relativePathBase, projectKey); _documentToContainerKeyCallback = ds => CreateDocumentContainerKey(relativePathBase, DocumentKey.ToDocumentKey(projectKey, ds)); } public CacheContainerKey? GetDocumentContainerKey(TextDocumentState state) { lock (_documentToContainerKey) return _documentToContainerKey.GetOrAdd(state, _documentToContainerKeyCallback); } public static CacheContainerKey? CreateProjectContainerKey( string relativePathBase, ProjectKey projectKey) { // Creates a container key for this project. The container key is a mix of the project's name, relative // file path (to the solution), and optional parse options. // If we don't have a valid solution path, we can't store anything. if (string.IsNullOrEmpty(relativePathBase)) return null; // We have to have a file path for this project if (RoslynString.IsNullOrEmpty(projectKey.FilePath)) return null; // The file path has to be relative to the base path the DB is associated with (either the solution-path or // repo-path). var relativePath = PathUtilities.GetRelativePath(relativePathBase, projectKey.FilePath!); if (relativePath == projectKey.FilePath) return null; var dimensions = EmptyDimensions .Add($"{nameof(ProjectKey)}.{nameof(ProjectKey.Name)}", projectKey.Name) .Add($"{nameof(ProjectKey)}.{nameof(ProjectKey.FilePath)}", relativePath) .Add($"{nameof(ProjectKey)}.{nameof(ProjectKey.ParseOptionsChecksum)}", projectKey.ParseOptionsChecksum.ToString()); return new CacheContainerKey("Roslyn.Project", dimensions); } public static CacheContainerKey? CreateDocumentContainerKey( string relativePathBase, DocumentKey documentKey) { // See if we can get a project key for this info. If not, we def can't get a doc key. var projectContainerKey = CreateProjectContainerKey(relativePathBase, documentKey.Project); if (projectContainerKey == null) return null; // We have to have a file path for this document if (string.IsNullOrEmpty(documentKey.FilePath)) return null; // The file path has to be relative to the base path the DB is associated with (either the solution-path or // repo-path). var relativePath = PathUtilities.GetRelativePath(relativePathBase, documentKey.FilePath!); if (relativePath == documentKey.FilePath) return null; var dimensions = projectContainerKey.Value.Dimensions .Add($"{nameof(DocumentKey)}.{nameof(DocumentKey.Name)}", documentKey.Name) .Add($"{nameof(DocumentKey)}.{nameof(DocumentKey.FilePath)}", relativePath); return new CacheContainerKey("Roslyn.Document", dimensions); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Analyzers/CSharp/Tests/SimplifyLinqExpression/CSharpSimplifyLinqExpressionFixAllTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp.SimplifyLinqExpression; using Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions; using Microsoft.CodeAnalysis.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.Analyzers.UnitTests.SimplifyLinqExpression { using VerifyCS = CSharpCodeFixVerifier< CSharpSimplifyLinqExpressionDiagnosticAnalyzer, CSharpSimplifyLinqExpressionCodeFixProvider>; public partial class CSharpSimplifyLinqExpressionTests { [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsInlineDeclaration)] public async Task FixAllInDocument() { await new VerifyCS.Test { TestCode = @" using System; using System.Linq; using System.Collections.Generic; class C { static void M() { IEnumerable<string> test = new List<string> { ""hello"", ""world"", ""!"" }; var test1 = [|test.Where(x => x.Equals('!')).Any()|]; var test2 = [|test.Where(x => x.Equals('!')).SingleOrDefault()|]; var test3 = [|test.Where(x => x.Equals('!')).Last()|]; var test4 = [|test.Where(x => x.Equals('!')).Count()|]; var test5 = [|test.Where(x => x.Equals('!')).FirstOrDefault()|]; } }", FixedCode = @" using System; using System.Linq; using System.Collections.Generic; class C { static void M() { IEnumerable<string> test = new List<string> { ""hello"", ""world"", ""!"" }; var test1 = test.Any(x => x.Equals('!')); var test2 = test.SingleOrDefault(x => x.Equals('!')); var test3 = test.Last(x => x.Equals('!')); var test4 = test.Count(x => x.Equals('!')); var test5 = test.FirstOrDefault(x => x.Equals('!')); } }", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsInlineDeclaration)] public async Task FixAllInDocumentExplicitCall() { var testCode = @" using System; using System.Linq; using System.Collections.Generic; class C { static void M() { IEnumerable<string> test = new List<string> { ""hello"", ""world"", ""!"" }; var test1 = [|Enumerable.Where(test, x => x.Equals(""!"")).Any()|]; var test2 = [|Enumerable.Where(test, x => x.Equals(""!"")).SingleOrDefault()|]; var test3 = [|Enumerable.Where(test, x => x.Equals(""!"")).Last()|]; var test4 = [|Enumerable.Where(test, x => x.Equals(""!"")).Count()|]; var test5 = [|Enumerable.Where(test, x => x.Equals(""!"")).FirstOrDefault()|]; } }"; var fixedCode = @" using System; using System.Linq; using System.Collections.Generic; class C { static void M() { IEnumerable<string> test = new List<string> { ""hello"", ""world"", ""!"" }; var test1 = Enumerable.Any(test, x => x.Equals(""!"")); var test2 = Enumerable.SingleOrDefault(test, x => x.Equals(""!"")); var test3 = Enumerable.Last(test, x => x.Equals(""!"")); var test4 = Enumerable.Count(test, x => x.Equals(""!"")); var test5 = Enumerable.FirstOrDefault(test, x => x.Equals(""!"")); } }"; await VerifyCS.VerifyCodeFixAsync(testCode, fixedCode); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsInlineDeclaration)] public async Task NestedInDocument() { await new VerifyCS.Test { TestCode = @" using System; using System.Linq; using System.Collections.Generic; class C { static void M() { var test = new List<string> { ""hello"", ""world"", ""!"" }; var test1 = [|test.Where(x => x.Equals('!')).Any()|]; var test2 = [|test.Where(x => x.Equals('!')).SingleOrDefault()|]; var test3 = [|test.Where(x => x.Equals('!')).Last()|]; var test4 = test.Where(x => x.Equals('!')).Count(); var test5 = from x in test where x.Equals('!') select x; var test6 = [|test.Where(a => [|a.Where(s => s.Equals(""hello"")).FirstOrDefault()|].Equals(""hello"")).FirstOrDefault()|]; } }", FixedCode = @" using System; using System.Linq; using System.Collections.Generic; class C { static void M() { var test = new List<string> { ""hello"", ""world"", ""!"" }; var test1 = test.Any(x => x.Equals('!')); var test2 = test.SingleOrDefault(x => x.Equals('!')); var test3 = test.Last(x => x.Equals('!')); var test4 = test.Where(x => x.Equals('!')).Count(); var test5 = from x in test where x.Equals('!') select x; var test6 = test.FirstOrDefault(a => a.FirstOrDefault(s => s.Equals(""hello"")).Equals(""hello"")); } }", }.RunAsync(); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp.SimplifyLinqExpression; using Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions; using Microsoft.CodeAnalysis.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.Analyzers.UnitTests.SimplifyLinqExpression { using VerifyCS = CSharpCodeFixVerifier< CSharpSimplifyLinqExpressionDiagnosticAnalyzer, CSharpSimplifyLinqExpressionCodeFixProvider>; public partial class CSharpSimplifyLinqExpressionTests { [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsInlineDeclaration)] public async Task FixAllInDocument() { await new VerifyCS.Test { TestCode = @" using System; using System.Linq; using System.Collections.Generic; class C { static void M() { IEnumerable<string> test = new List<string> { ""hello"", ""world"", ""!"" }; var test1 = [|test.Where(x => x.Equals('!')).Any()|]; var test2 = [|test.Where(x => x.Equals('!')).SingleOrDefault()|]; var test3 = [|test.Where(x => x.Equals('!')).Last()|]; var test4 = [|test.Where(x => x.Equals('!')).Count()|]; var test5 = [|test.Where(x => x.Equals('!')).FirstOrDefault()|]; } }", FixedCode = @" using System; using System.Linq; using System.Collections.Generic; class C { static void M() { IEnumerable<string> test = new List<string> { ""hello"", ""world"", ""!"" }; var test1 = test.Any(x => x.Equals('!')); var test2 = test.SingleOrDefault(x => x.Equals('!')); var test3 = test.Last(x => x.Equals('!')); var test4 = test.Count(x => x.Equals('!')); var test5 = test.FirstOrDefault(x => x.Equals('!')); } }", }.RunAsync(); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsInlineDeclaration)] public async Task FixAllInDocumentExplicitCall() { var testCode = @" using System; using System.Linq; using System.Collections.Generic; class C { static void M() { IEnumerable<string> test = new List<string> { ""hello"", ""world"", ""!"" }; var test1 = [|Enumerable.Where(test, x => x.Equals(""!"")).Any()|]; var test2 = [|Enumerable.Where(test, x => x.Equals(""!"")).SingleOrDefault()|]; var test3 = [|Enumerable.Where(test, x => x.Equals(""!"")).Last()|]; var test4 = [|Enumerable.Where(test, x => x.Equals(""!"")).Count()|]; var test5 = [|Enumerable.Where(test, x => x.Equals(""!"")).FirstOrDefault()|]; } }"; var fixedCode = @" using System; using System.Linq; using System.Collections.Generic; class C { static void M() { IEnumerable<string> test = new List<string> { ""hello"", ""world"", ""!"" }; var test1 = Enumerable.Any(test, x => x.Equals(""!"")); var test2 = Enumerable.SingleOrDefault(test, x => x.Equals(""!"")); var test3 = Enumerable.Last(test, x => x.Equals(""!"")); var test4 = Enumerable.Count(test, x => x.Equals(""!"")); var test5 = Enumerable.FirstOrDefault(test, x => x.Equals(""!"")); } }"; await VerifyCS.VerifyCodeFixAsync(testCode, fixedCode); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsInlineDeclaration)] public async Task NestedInDocument() { await new VerifyCS.Test { TestCode = @" using System; using System.Linq; using System.Collections.Generic; class C { static void M() { var test = new List<string> { ""hello"", ""world"", ""!"" }; var test1 = [|test.Where(x => x.Equals('!')).Any()|]; var test2 = [|test.Where(x => x.Equals('!')).SingleOrDefault()|]; var test3 = [|test.Where(x => x.Equals('!')).Last()|]; var test4 = test.Where(x => x.Equals('!')).Count(); var test5 = from x in test where x.Equals('!') select x; var test6 = [|test.Where(a => [|a.Where(s => s.Equals(""hello"")).FirstOrDefault()|].Equals(""hello"")).FirstOrDefault()|]; } }", FixedCode = @" using System; using System.Linq; using System.Collections.Generic; class C { static void M() { var test = new List<string> { ""hello"", ""world"", ""!"" }; var test1 = test.Any(x => x.Equals('!')); var test2 = test.SingleOrDefault(x => x.Equals('!')); var test3 = test.Last(x => x.Equals('!')); var test4 = test.Where(x => x.Equals('!')).Count(); var test5 = from x in test where x.Equals('!') select x; var test6 = test.FirstOrDefault(a => a.FirstOrDefault(s => s.Equals(""hello"")).Equals(""hello"")); } }", }.RunAsync(); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/Core/Portable/Emit/NoPia/CommonEmbeddedEvent.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using System.Diagnostics; using System.Threading; using Cci = Microsoft.Cci; namespace Microsoft.CodeAnalysis.Emit.NoPia { internal abstract partial class EmbeddedTypesManager< TPEModuleBuilder, TModuleCompilationState, TEmbeddedTypesManager, TSyntaxNode, TAttributeData, TSymbol, TAssemblySymbol, TNamedTypeSymbol, TFieldSymbol, TMethodSymbol, TEventSymbol, TPropertySymbol, TParameterSymbol, TTypeParameterSymbol, TEmbeddedType, TEmbeddedField, TEmbeddedMethod, TEmbeddedEvent, TEmbeddedProperty, TEmbeddedParameter, TEmbeddedTypeParameter> { internal abstract class CommonEmbeddedEvent : CommonEmbeddedMember<TEventSymbol>, Cci.IEventDefinition { private readonly TEmbeddedMethod _adder; private readonly TEmbeddedMethod _remover; private readonly TEmbeddedMethod _caller; private int _isUsedForComAwareEventBinding; protected CommonEmbeddedEvent(TEventSymbol underlyingEvent, TEmbeddedMethod adder, TEmbeddedMethod remover, TEmbeddedMethod caller) : base(underlyingEvent) { Debug.Assert(adder != null || remover != null); _adder = adder; _remover = remover; _caller = caller; } internal override TEmbeddedTypesManager TypeManager { get { return AnAccessor.TypeManager; } } protected abstract bool IsRuntimeSpecial { get; } protected abstract bool IsSpecialName { get; } protected abstract Cci.ITypeReference GetType(TPEModuleBuilder moduleBuilder, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics); protected abstract TEmbeddedType ContainingType { get; } protected abstract Cci.TypeMemberVisibility Visibility { get; } protected abstract string Name { get; } public TEventSymbol UnderlyingEvent { get { return this.UnderlyingSymbol; } } protected abstract void EmbedCorrespondingComEventInterfaceMethodInternal(TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics, bool isUsedForComAwareEventBinding); internal void EmbedCorrespondingComEventInterfaceMethod(TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics, bool isUsedForComAwareEventBinding) { if (_isUsedForComAwareEventBinding == 0 && (!isUsedForComAwareEventBinding || Interlocked.CompareExchange(ref _isUsedForComAwareEventBinding, 1, 0) == 0)) { Debug.Assert(!isUsedForComAwareEventBinding || _isUsedForComAwareEventBinding != 0); EmbedCorrespondingComEventInterfaceMethodInternal(syntaxNodeOpt, diagnostics, isUsedForComAwareEventBinding); } Debug.Assert(!isUsedForComAwareEventBinding || _isUsedForComAwareEventBinding != 0); } Cci.IMethodReference Cci.IEventDefinition.Adder { get { return _adder; } } Cci.IMethodReference Cci.IEventDefinition.Remover { get { return _remover; } } Cci.IMethodReference Cci.IEventDefinition.Caller { get { return _caller; } } IEnumerable<Cci.IMethodReference> Cci.IEventDefinition.GetAccessors(EmitContext context) { if (_adder != null) { yield return _adder; } if (_remover != null) { yield return _remover; } if (_caller != null) { yield return _caller; } } bool Cci.IEventDefinition.IsRuntimeSpecial { get { return IsRuntimeSpecial; } } bool Cci.IEventDefinition.IsSpecialName { get { return IsSpecialName; } } Cci.ITypeReference Cci.IEventDefinition.GetType(EmitContext context) { return GetType((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, context.Diagnostics); } protected TEmbeddedMethod AnAccessor { get { return _adder ?? _remover; } } Cci.ITypeDefinition Cci.ITypeDefinitionMember.ContainingTypeDefinition { get { return ContainingType; } } Cci.TypeMemberVisibility Cci.ITypeDefinitionMember.Visibility { get { return Visibility; } } Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) { return ContainingType; } void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor) { visitor.Visit((Cci.IEventDefinition)this); } Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) { return this; } string Cci.INamedEntity.Name { get { return Name; } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using System.Diagnostics; using System.Threading; using Cci = Microsoft.Cci; namespace Microsoft.CodeAnalysis.Emit.NoPia { internal abstract partial class EmbeddedTypesManager< TPEModuleBuilder, TModuleCompilationState, TEmbeddedTypesManager, TSyntaxNode, TAttributeData, TSymbol, TAssemblySymbol, TNamedTypeSymbol, TFieldSymbol, TMethodSymbol, TEventSymbol, TPropertySymbol, TParameterSymbol, TTypeParameterSymbol, TEmbeddedType, TEmbeddedField, TEmbeddedMethod, TEmbeddedEvent, TEmbeddedProperty, TEmbeddedParameter, TEmbeddedTypeParameter> { internal abstract class CommonEmbeddedEvent : CommonEmbeddedMember<TEventSymbol>, Cci.IEventDefinition { private readonly TEmbeddedMethod _adder; private readonly TEmbeddedMethod _remover; private readonly TEmbeddedMethod _caller; private int _isUsedForComAwareEventBinding; protected CommonEmbeddedEvent(TEventSymbol underlyingEvent, TEmbeddedMethod adder, TEmbeddedMethod remover, TEmbeddedMethod caller) : base(underlyingEvent) { Debug.Assert(adder != null || remover != null); _adder = adder; _remover = remover; _caller = caller; } internal override TEmbeddedTypesManager TypeManager { get { return AnAccessor.TypeManager; } } protected abstract bool IsRuntimeSpecial { get; } protected abstract bool IsSpecialName { get; } protected abstract Cci.ITypeReference GetType(TPEModuleBuilder moduleBuilder, TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics); protected abstract TEmbeddedType ContainingType { get; } protected abstract Cci.TypeMemberVisibility Visibility { get; } protected abstract string Name { get; } public TEventSymbol UnderlyingEvent { get { return this.UnderlyingSymbol; } } protected abstract void EmbedCorrespondingComEventInterfaceMethodInternal(TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics, bool isUsedForComAwareEventBinding); internal void EmbedCorrespondingComEventInterfaceMethod(TSyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics, bool isUsedForComAwareEventBinding) { if (_isUsedForComAwareEventBinding == 0 && (!isUsedForComAwareEventBinding || Interlocked.CompareExchange(ref _isUsedForComAwareEventBinding, 1, 0) == 0)) { Debug.Assert(!isUsedForComAwareEventBinding || _isUsedForComAwareEventBinding != 0); EmbedCorrespondingComEventInterfaceMethodInternal(syntaxNodeOpt, diagnostics, isUsedForComAwareEventBinding); } Debug.Assert(!isUsedForComAwareEventBinding || _isUsedForComAwareEventBinding != 0); } Cci.IMethodReference Cci.IEventDefinition.Adder { get { return _adder; } } Cci.IMethodReference Cci.IEventDefinition.Remover { get { return _remover; } } Cci.IMethodReference Cci.IEventDefinition.Caller { get { return _caller; } } IEnumerable<Cci.IMethodReference> Cci.IEventDefinition.GetAccessors(EmitContext context) { if (_adder != null) { yield return _adder; } if (_remover != null) { yield return _remover; } if (_caller != null) { yield return _caller; } } bool Cci.IEventDefinition.IsRuntimeSpecial { get { return IsRuntimeSpecial; } } bool Cci.IEventDefinition.IsSpecialName { get { return IsSpecialName; } } Cci.ITypeReference Cci.IEventDefinition.GetType(EmitContext context) { return GetType((TPEModuleBuilder)context.Module, (TSyntaxNode)context.SyntaxNode, context.Diagnostics); } protected TEmbeddedMethod AnAccessor { get { return _adder ?? _remover; } } Cci.ITypeDefinition Cci.ITypeDefinitionMember.ContainingTypeDefinition { get { return ContainingType; } } Cci.TypeMemberVisibility Cci.ITypeDefinitionMember.Visibility { get { return Visibility; } } Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) { return ContainingType; } void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor) { visitor.Visit((Cci.IEventDefinition)this); } Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) { return this; } string Cci.INamedEntity.Name { get { return Name; } } } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/ExpressionEvaluator/Core/Test/ResultProvider/Debugger/Engine/DkmClrRuntimeInstance.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable #region Assembly Microsoft.VisualStudio.Debugger.Engine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a // References\Debugger\v2.0\Microsoft.VisualStudio.Debugger.Engine.dll #endregion using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using Microsoft.CodeAnalysis.ExpressionEvaluator; using Microsoft.VisualStudio.Debugger.Evaluation; using Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation; using Microsoft.VisualStudio.Debugger.Symbols; using Type = Microsoft.VisualStudio.Debugger.Metadata.Type; namespace Microsoft.VisualStudio.Debugger.Clr { internal delegate DkmClrValue GetMemberValueDelegate(DkmClrValue value, string memberName); internal delegate DkmClrModuleInstance GetModuleDelegate(DkmClrRuntimeInstance runtime, Assembly assembly); public class DkmClrRuntimeInstance : DkmRuntimeInstance { internal static readonly DkmClrRuntimeInstance DefaultRuntime = new DkmClrRuntimeInstance(new Assembly[0]); internal readonly Assembly[] Assemblies; internal readonly DkmClrModuleInstance[] Modules; private readonly DkmClrModuleInstance _defaultModule; private readonly DkmClrAppDomain _appDomain; // exactly one for now private readonly Dictionary<string, DkmClrObjectFavoritesInfo> _favoritesByTypeName; internal readonly GetMemberValueDelegate GetMemberValue; internal DkmClrRuntimeInstance( Assembly[] assemblies, GetModuleDelegate getModule = null, GetMemberValueDelegate getMemberValue = null, bool enableNativeDebugging = false) : base(enableNativeDebugging) { if (getModule == null) { getModule = (r, a) => new DkmClrModuleInstance(r, a, (a != null) ? new DkmModule(a.GetName().Name + ".dll") : null); } this.Assemblies = assemblies; this.Modules = assemblies.Select(a => getModule(this, a)).Where(m => m != null).ToArray(); _defaultModule = getModule(this, null); _appDomain = new DkmClrAppDomain(this); this.GetMemberValue = getMemberValue; } internal DkmClrRuntimeInstance(Assembly[] assemblies, Dictionary<string, DkmClrObjectFavoritesInfo> favoritesByTypeName) : this(assemblies) { _favoritesByTypeName = favoritesByTypeName; } internal DkmClrModuleInstance DefaultModule { get { return _defaultModule; } } internal DkmClrAppDomain DefaultAppDomain { get { return _appDomain; } } internal DkmClrType GetType(Type type) { var assembly = ((AssemblyImpl)type.Assembly).Assembly; var module = this.Modules.FirstOrDefault(m => m.Assembly == assembly) ?? _defaultModule; return new DkmClrType(module, _appDomain, type, GetObjectFavoritesInfo(type)); } internal DkmClrType GetType(System.Type type) { var assembly = type.Assembly; var module = this.Modules.First(m => m.Assembly == assembly); return new DkmClrType(module, _appDomain, (TypeImpl)type, GetObjectFavoritesInfo((TypeImpl)type)); } internal DkmClrType GetType(string typeName, params System.Type[] typeArguments) { foreach (var module in WithMscorlibLast(this.Modules)) { var assembly = module.Assembly; var type = assembly.GetType(typeName); if (type != null) { var result = new DkmClrType(module, _appDomain, (TypeImpl)type, GetObjectFavoritesInfo((TypeImpl)type)); if (typeArguments.Length > 0) { result = result.MakeGenericType(typeArguments.Select(this.GetType).ToArray()); } return result; } } return null; } private static IEnumerable<DkmClrModuleInstance> WithMscorlibLast(DkmClrModuleInstance[] list) { DkmClrModuleInstance mscorlib = null; foreach (var module in list) { if (IsMscorlib(module.Assembly)) { Debug.Assert(mscorlib == null); mscorlib = module; } else { yield return module; } } if (mscorlib != null) { yield return mscorlib; } } private static bool IsMscorlib(Assembly assembly) { return assembly.GetReferencedAssemblies().Length == 0 && (object)assembly.GetType("System.Object") != null; } internal DkmClrModuleInstance FindClrModuleInstance(Guid mvid) { return this.Modules.FirstOrDefault(m => m.Mvid == mvid) ?? _defaultModule; } private DkmClrObjectFavoritesInfo GetObjectFavoritesInfo(Type type) { DkmClrObjectFavoritesInfo favorites = null; if (_favoritesByTypeName != null) { if (type.IsGenericType) { type = type.GetGenericTypeDefinition(); } _favoritesByTypeName.TryGetValue(type.FullName, out favorites); } return favorites; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable #region Assembly Microsoft.VisualStudio.Debugger.Engine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a // References\Debugger\v2.0\Microsoft.VisualStudio.Debugger.Engine.dll #endregion using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using Microsoft.CodeAnalysis.ExpressionEvaluator; using Microsoft.VisualStudio.Debugger.Evaluation; using Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation; using Microsoft.VisualStudio.Debugger.Symbols; using Type = Microsoft.VisualStudio.Debugger.Metadata.Type; namespace Microsoft.VisualStudio.Debugger.Clr { internal delegate DkmClrValue GetMemberValueDelegate(DkmClrValue value, string memberName); internal delegate DkmClrModuleInstance GetModuleDelegate(DkmClrRuntimeInstance runtime, Assembly assembly); public class DkmClrRuntimeInstance : DkmRuntimeInstance { internal static readonly DkmClrRuntimeInstance DefaultRuntime = new DkmClrRuntimeInstance(new Assembly[0]); internal readonly Assembly[] Assemblies; internal readonly DkmClrModuleInstance[] Modules; private readonly DkmClrModuleInstance _defaultModule; private readonly DkmClrAppDomain _appDomain; // exactly one for now private readonly Dictionary<string, DkmClrObjectFavoritesInfo> _favoritesByTypeName; internal readonly GetMemberValueDelegate GetMemberValue; internal DkmClrRuntimeInstance( Assembly[] assemblies, GetModuleDelegate getModule = null, GetMemberValueDelegate getMemberValue = null, bool enableNativeDebugging = false) : base(enableNativeDebugging) { if (getModule == null) { getModule = (r, a) => new DkmClrModuleInstance(r, a, (a != null) ? new DkmModule(a.GetName().Name + ".dll") : null); } this.Assemblies = assemblies; this.Modules = assemblies.Select(a => getModule(this, a)).Where(m => m != null).ToArray(); _defaultModule = getModule(this, null); _appDomain = new DkmClrAppDomain(this); this.GetMemberValue = getMemberValue; } internal DkmClrRuntimeInstance(Assembly[] assemblies, Dictionary<string, DkmClrObjectFavoritesInfo> favoritesByTypeName) : this(assemblies) { _favoritesByTypeName = favoritesByTypeName; } internal DkmClrModuleInstance DefaultModule { get { return _defaultModule; } } internal DkmClrAppDomain DefaultAppDomain { get { return _appDomain; } } internal DkmClrType GetType(Type type) { var assembly = ((AssemblyImpl)type.Assembly).Assembly; var module = this.Modules.FirstOrDefault(m => m.Assembly == assembly) ?? _defaultModule; return new DkmClrType(module, _appDomain, type, GetObjectFavoritesInfo(type)); } internal DkmClrType GetType(System.Type type) { var assembly = type.Assembly; var module = this.Modules.First(m => m.Assembly == assembly); return new DkmClrType(module, _appDomain, (TypeImpl)type, GetObjectFavoritesInfo((TypeImpl)type)); } internal DkmClrType GetType(string typeName, params System.Type[] typeArguments) { foreach (var module in WithMscorlibLast(this.Modules)) { var assembly = module.Assembly; var type = assembly.GetType(typeName); if (type != null) { var result = new DkmClrType(module, _appDomain, (TypeImpl)type, GetObjectFavoritesInfo((TypeImpl)type)); if (typeArguments.Length > 0) { result = result.MakeGenericType(typeArguments.Select(this.GetType).ToArray()); } return result; } } return null; } private static IEnumerable<DkmClrModuleInstance> WithMscorlibLast(DkmClrModuleInstance[] list) { DkmClrModuleInstance mscorlib = null; foreach (var module in list) { if (IsMscorlib(module.Assembly)) { Debug.Assert(mscorlib == null); mscorlib = module; } else { yield return module; } } if (mscorlib != null) { yield return mscorlib; } } private static bool IsMscorlib(Assembly assembly) { return assembly.GetReferencedAssemblies().Length == 0 && (object)assembly.GetType("System.Object") != null; } internal DkmClrModuleInstance FindClrModuleInstance(Guid mvid) { return this.Modules.FirstOrDefault(m => m.Mvid == mvid) ?? _defaultModule; } private DkmClrObjectFavoritesInfo GetObjectFavoritesInfo(Type type) { DkmClrObjectFavoritesInfo favorites = null; if (_favoritesByTypeName != null) { if (type.IsGenericType) { type = type.GetGenericTypeDefinition(); } _favoritesByTypeName.TryGetValue(type.FullName, out favorites); } return favorites; } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/EditorFeatures/CSharpTest/SplitOrMergeIfStatements/SplitIntoNestedIfStatementsTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeRefactorings; using Microsoft.CodeAnalysis.CSharp.SplitOrMergeIfStatements; using Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CodeRefactorings; using Microsoft.CodeAnalysis.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.SplitOrMergeIfStatements { [Trait(Traits.Feature, Traits.Features.CodeActionsSplitIntoNestedIfStatements)] public sealed class SplitIntoNestedIfStatementsTests : AbstractCSharpCodeActionTest { protected override CodeRefactoringProvider CreateCodeRefactoringProvider(Workspace workspace, TestParameters parameters) => new CSharpSplitIntoNestedIfStatementsCodeRefactoringProvider(); [Theory] [InlineData("a [||]&& b")] [InlineData("a &[||]& b")] [InlineData("a &&[||] b")] [InlineData("a [|&&|] b")] public async Task SplitOnAndOperatorSpans(string condition) { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (" + condition + @") { } } }", @"class C { void M(bool a, bool b) { if (a) { if (b) { } } } }"); } [Theory] [InlineData("a [|&|]& b")] [InlineData("a[| &&|] b")] [InlineData("a[||] && b")] public async Task NotSplitOnAndOperatorSpans(string condition) { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (" + condition + @") { } } }"); } [Fact] public async Task NotSplitOnIfKeyword() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { [||]if (a && b) { } } }"); } [Fact] public async Task NotSplitOnOrOperator() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]|| b) { } } }"); } [Fact] public async Task NotSplitOnBitwiseAndOperator() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]& b) { } } }"); } [Fact] public async Task NotSplitOnAndOperatorOutsideIfStatement() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { var v = a [||]&& b; } }"); } [Fact] public async Task NotSplitOnAndOperatorInIfStatementBody() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a && b) a [||]&& b; } }"); } [Fact] public async Task SplitWithChainedAndExpression1() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if (a [||]&& b && c && d) { } } }", @"class C { void M(bool a, bool b, bool c, bool d) { if (a) { if (b && c && d) { } } } }"); } [Fact] public async Task SplitWithChainedAndExpression2() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if (a && b [||]&& c && d) { } } }", @"class C { void M(bool a, bool b, bool c, bool d) { if (a && b) { if (c && d) { } } } }"); } [Fact] public async Task SplitWithChainedAndExpression3() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if (a && b && c [||]&& d) { } } }", @"class C { void M(bool a, bool b, bool c, bool d) { if (a && b && c) { if (d) { } } } }"); } [Fact] public async Task NotSplitInsideParentheses1() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if ((a [||]&& b) && c && d) { } } }"); } [Fact] public async Task NotSplitInsideParentheses2() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if (a && b && (c [||]&& d)) { } } }"); } [Fact] public async Task NotSplitInsideParentheses3() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if ((a && b [||]&& c && d)) { } } }"); } [Fact] public async Task SplitWithOtherExpressionInsideParentheses1() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if (a [||]&& (b && c) && d) { } } }", @"class C { void M(bool a, bool b, bool c, bool d) { if (a) { if ((b && c) && d) { } } } }"); } [Fact] public async Task SplitWithOtherExpressionInsideParentheses2() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if (a && (b && c) [||]&& d) { } } }", @"class C { void M(bool a, bool b, bool c, bool d) { if (a && (b && c)) { if (d) { } } } }"); } [Fact] public async Task NotSplitWithMixedOrExpression1() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c) { if (a [||]&& b || c) { } } }"); } [Fact] public async Task NotSplitWithMixedOrExpression2() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c) { if (a || b [||]&& c) { } } }"); } [Fact] public async Task SplitWithMixedOrExpressionInsideParentheses1() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c) { if (a [||]&& (b || c)) { } } }", @"class C { void M(bool a, bool b, bool c) { if (a) { if ((b || c)) { } } } }"); } [Fact] public async Task SplitWithMixedOrExpressionInsideParentheses2() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c) { if ((a || b) [||]&& c) { } } }", @"class C { void M(bool a, bool b, bool c) { if ((a || b)) { if (c) { } } } }"); } [Fact] public async Task SplitWithMixedBitwiseOrExpression1() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c) { if (a [||]&& b | c) { } } }", @"class C { void M(bool a, bool b, bool c) { if (a) { if (b | c) { } } } }"); } [Fact] public async Task SplitWithMixedBitwiseOrExpression2() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c) { if (a | b [||]&& c) { } } }", @"class C { void M(bool a, bool b, bool c) { if (a | b) { if (c) { } } } }"); } [Fact] public async Task SplitWithStatementInsideBlock() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) { System.Console.WriteLine(a && b); } } }", @"class C { void M(bool a, bool b) { if (a) { if (b) { System.Console.WriteLine(a && b); } } } }"); } [Fact] public async Task SplitWithStatementWithoutBlock() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(a && b); } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(a && b); } } }"); } [Fact] public async Task SplitWithNestedIfStatement() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) if (true) { } } }", @"class C { void M(bool a, bool b) { if (a) { if (b) if (true) { } } } }"); } [Fact] public async Task SplitWithMissingStatement() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) } }", @"class C { void M(bool a, bool b) { if (a) { if (b) } } }"); } [Fact] public async Task SplitWithElseStatementInsideBlock() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(); else { System.Console.WriteLine(a && b); } } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(); else { System.Console.WriteLine(a && b); } } else { System.Console.WriteLine(a && b); } } }"); } [Fact] public async Task SplitWithElseStatementWithoutBlock() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(); else System.Console.WriteLine(a && b); } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(); else System.Console.WriteLine(a && b); } else System.Console.WriteLine(a && b); } }"); } [Fact] public async Task SplitWithElseNestedIfStatement() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(); else if (true) { } } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(); else if (true) { } } else if (true) { } } }"); } [Fact] public async Task SplitWithElseIfElse() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(); else if (a) System.Console.WriteLine(a); else System.Console.WriteLine(b); } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(); else if (a) System.Console.WriteLine(a); else System.Console.WriteLine(b); } else if (a) System.Console.WriteLine(a); else System.Console.WriteLine(b); } }"); } [Fact] public async Task SplitAsPartOfElseIfElse() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (true) System.Console.WriteLine(); else if (a [||]&& b) System.Console.WriteLine(a); else System.Console.WriteLine(b); } }", @"class C { void M(bool a, bool b) { if (true) System.Console.WriteLine(); else if (a) { if (b) System.Console.WriteLine(a); else System.Console.WriteLine(b); } else System.Console.WriteLine(b); } }"); } [Fact] public async Task SplitWithMissingElseStatement() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(); else } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(); else } else } }"); } [Fact] public async Task SplitWithPreservedSingleLineFormatting() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(); } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(); } } }"); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeRefactorings; using Microsoft.CodeAnalysis.CSharp.SplitOrMergeIfStatements; using Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CodeRefactorings; using Microsoft.CodeAnalysis.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.SplitOrMergeIfStatements { [Trait(Traits.Feature, Traits.Features.CodeActionsSplitIntoNestedIfStatements)] public sealed class SplitIntoNestedIfStatementsTests : AbstractCSharpCodeActionTest { protected override CodeRefactoringProvider CreateCodeRefactoringProvider(Workspace workspace, TestParameters parameters) => new CSharpSplitIntoNestedIfStatementsCodeRefactoringProvider(); [Theory] [InlineData("a [||]&& b")] [InlineData("a &[||]& b")] [InlineData("a &&[||] b")] [InlineData("a [|&&|] b")] public async Task SplitOnAndOperatorSpans(string condition) { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (" + condition + @") { } } }", @"class C { void M(bool a, bool b) { if (a) { if (b) { } } } }"); } [Theory] [InlineData("a [|&|]& b")] [InlineData("a[| &&|] b")] [InlineData("a[||] && b")] public async Task NotSplitOnAndOperatorSpans(string condition) { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (" + condition + @") { } } }"); } [Fact] public async Task NotSplitOnIfKeyword() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { [||]if (a && b) { } } }"); } [Fact] public async Task NotSplitOnOrOperator() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]|| b) { } } }"); } [Fact] public async Task NotSplitOnBitwiseAndOperator() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]& b) { } } }"); } [Fact] public async Task NotSplitOnAndOperatorOutsideIfStatement() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { var v = a [||]&& b; } }"); } [Fact] public async Task NotSplitOnAndOperatorInIfStatementBody() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a && b) a [||]&& b; } }"); } [Fact] public async Task SplitWithChainedAndExpression1() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if (a [||]&& b && c && d) { } } }", @"class C { void M(bool a, bool b, bool c, bool d) { if (a) { if (b && c && d) { } } } }"); } [Fact] public async Task SplitWithChainedAndExpression2() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if (a && b [||]&& c && d) { } } }", @"class C { void M(bool a, bool b, bool c, bool d) { if (a && b) { if (c && d) { } } } }"); } [Fact] public async Task SplitWithChainedAndExpression3() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if (a && b && c [||]&& d) { } } }", @"class C { void M(bool a, bool b, bool c, bool d) { if (a && b && c) { if (d) { } } } }"); } [Fact] public async Task NotSplitInsideParentheses1() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if ((a [||]&& b) && c && d) { } } }"); } [Fact] public async Task NotSplitInsideParentheses2() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if (a && b && (c [||]&& d)) { } } }"); } [Fact] public async Task NotSplitInsideParentheses3() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if ((a && b [||]&& c && d)) { } } }"); } [Fact] public async Task SplitWithOtherExpressionInsideParentheses1() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if (a [||]&& (b && c) && d) { } } }", @"class C { void M(bool a, bool b, bool c, bool d) { if (a) { if ((b && c) && d) { } } } }"); } [Fact] public async Task SplitWithOtherExpressionInsideParentheses2() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c, bool d) { if (a && (b && c) [||]&& d) { } } }", @"class C { void M(bool a, bool b, bool c, bool d) { if (a && (b && c)) { if (d) { } } } }"); } [Fact] public async Task NotSplitWithMixedOrExpression1() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c) { if (a [||]&& b || c) { } } }"); } [Fact] public async Task NotSplitWithMixedOrExpression2() { await TestMissingInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c) { if (a || b [||]&& c) { } } }"); } [Fact] public async Task SplitWithMixedOrExpressionInsideParentheses1() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c) { if (a [||]&& (b || c)) { } } }", @"class C { void M(bool a, bool b, bool c) { if (a) { if ((b || c)) { } } } }"); } [Fact] public async Task SplitWithMixedOrExpressionInsideParentheses2() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c) { if ((a || b) [||]&& c) { } } }", @"class C { void M(bool a, bool b, bool c) { if ((a || b)) { if (c) { } } } }"); } [Fact] public async Task SplitWithMixedBitwiseOrExpression1() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c) { if (a [||]&& b | c) { } } }", @"class C { void M(bool a, bool b, bool c) { if (a) { if (b | c) { } } } }"); } [Fact] public async Task SplitWithMixedBitwiseOrExpression2() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b, bool c) { if (a | b [||]&& c) { } } }", @"class C { void M(bool a, bool b, bool c) { if (a | b) { if (c) { } } } }"); } [Fact] public async Task SplitWithStatementInsideBlock() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) { System.Console.WriteLine(a && b); } } }", @"class C { void M(bool a, bool b) { if (a) { if (b) { System.Console.WriteLine(a && b); } } } }"); } [Fact] public async Task SplitWithStatementWithoutBlock() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(a && b); } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(a && b); } } }"); } [Fact] public async Task SplitWithNestedIfStatement() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) if (true) { } } }", @"class C { void M(bool a, bool b) { if (a) { if (b) if (true) { } } } }"); } [Fact] public async Task SplitWithMissingStatement() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) } }", @"class C { void M(bool a, bool b) { if (a) { if (b) } } }"); } [Fact] public async Task SplitWithElseStatementInsideBlock() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(); else { System.Console.WriteLine(a && b); } } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(); else { System.Console.WriteLine(a && b); } } else { System.Console.WriteLine(a && b); } } }"); } [Fact] public async Task SplitWithElseStatementWithoutBlock() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(); else System.Console.WriteLine(a && b); } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(); else System.Console.WriteLine(a && b); } else System.Console.WriteLine(a && b); } }"); } [Fact] public async Task SplitWithElseNestedIfStatement() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(); else if (true) { } } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(); else if (true) { } } else if (true) { } } }"); } [Fact] public async Task SplitWithElseIfElse() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(); else if (a) System.Console.WriteLine(a); else System.Console.WriteLine(b); } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(); else if (a) System.Console.WriteLine(a); else System.Console.WriteLine(b); } else if (a) System.Console.WriteLine(a); else System.Console.WriteLine(b); } }"); } [Fact] public async Task SplitAsPartOfElseIfElse() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (true) System.Console.WriteLine(); else if (a [||]&& b) System.Console.WriteLine(a); else System.Console.WriteLine(b); } }", @"class C { void M(bool a, bool b) { if (true) System.Console.WriteLine(); else if (a) { if (b) System.Console.WriteLine(a); else System.Console.WriteLine(b); } else System.Console.WriteLine(b); } }"); } [Fact] public async Task SplitWithMissingElseStatement() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(); else } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(); else } else } }"); } [Fact] public async Task SplitWithPreservedSingleLineFormatting() { await TestInRegularAndScriptAsync( @"class C { void M(bool a, bool b) { if (a [||]&& b) System.Console.WriteLine(); } }", @"class C { void M(bool a, bool b) { if (a) { if (b) System.Console.WriteLine(); } } }"); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/ExpressionEvaluator/Core/Source/ExpressionCompiler/PDB/MethodDebugInfo.Portable.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Text; using Microsoft.CodeAnalysis.Debugging; using Microsoft.CodeAnalysis.PooledObjects; namespace Microsoft.CodeAnalysis.ExpressionEvaluator { internal partial class MethodDebugInfo<TTypeSymbol, TLocalSymbol> { /// <exception cref="BadImageFormatException">Invalid data format.</exception> public static MethodDebugInfo<TTypeSymbol, TLocalSymbol> ReadFromPortable( MetadataReader reader, int methodToken, int ilOffset, EESymbolProvider<TTypeSymbol, TLocalSymbol>? symbolProvider, bool isVisualBasicMethod) { ImmutableDictionary<int, ImmutableArray<bool>>? dynamicLocalMap; ImmutableDictionary<int, ImmutableArray<string?>>? tupleLocalMap; ImmutableArray<ImmutableArray<ImportRecord>> importGroups; ImmutableArray<ExternAliasRecord> externAliases; ImmutableArray<string> localVariableNames; ImmutableArray<TLocalSymbol> localConstants; ILSpan reuseSpan; var methodHandle = GetDeltaRelativeMethodDefinitionHandle(reader, methodToken); // TODO: only null in DTEE case where we looking for default namesapace if (symbolProvider != null) { ReadLocalScopeInformation( reader, methodHandle, ilOffset, symbolProvider, isVisualBasicMethod, out importGroups, out externAliases, out localVariableNames, out dynamicLocalMap, out tupleLocalMap, out localConstants, out reuseSpan); } else { dynamicLocalMap = null; tupleLocalMap = null; importGroups = ImmutableArray<ImmutableArray<ImportRecord>>.Empty; externAliases = ImmutableArray<ExternAliasRecord>.Empty; localVariableNames = ImmutableArray<string>.Empty; localConstants = ImmutableArray<TLocalSymbol>.Empty; reuseSpan = ILSpan.MaxValue; } ReadMethodCustomDebugInformation(reader, methodHandle, out var hoistedLocalScopes, out var defaultNamespace); return new MethodDebugInfo<TTypeSymbol, TLocalSymbol>( hoistedLocalScopes, importGroups, externAliases, dynamicLocalMap, tupleLocalMap, defaultNamespace, localVariableNames, localConstants, reuseSpan); } /// <summary> /// Maps global method token to a handle local to the current delta PDB. /// Debug tables referring to methods currently use local handles, not global handles. /// See https://github.com/dotnet/roslyn/issues/16286 /// </summary> private static MethodDefinitionHandle GetDeltaRelativeMethodDefinitionHandle(MetadataReader reader, int methodToken) { var globalHandle = (MethodDefinitionHandle)MetadataTokens.EntityHandle(methodToken); if (reader.GetTableRowCount(TableIndex.EncMap) == 0) { return globalHandle; } var globalDebugHandle = globalHandle.ToDebugInformationHandle(); int rowId = 1; foreach (var handle in reader.GetEditAndContinueMapEntries()) { if (handle.Kind == HandleKind.MethodDebugInformation) { if (handle == globalDebugHandle) { return MetadataTokens.MethodDefinitionHandle(rowId); } rowId++; } } // compiler generated invalid EncMap table: throw new BadImageFormatException(); } private static void ReadLocalScopeInformation( MetadataReader reader, MethodDefinitionHandle methodHandle, int ilOffset, EESymbolProvider<TTypeSymbol, TLocalSymbol> symbolProvider, bool isVisualBasicMethod, out ImmutableArray<ImmutableArray<ImportRecord>> importGroups, out ImmutableArray<ExternAliasRecord> externAliases, out ImmutableArray<string> localVariableNames, out ImmutableDictionary<int, ImmutableArray<bool>>? dynamicLocalMap, out ImmutableDictionary<int, ImmutableArray<string?>>? tupleLocalMap, out ImmutableArray<TLocalSymbol> localConstants, out ILSpan reuseSpan) { var localVariableNamesBuilder = ArrayBuilder<string>.GetInstance(); var localConstantsBuilder = ArrayBuilder<TLocalSymbol>.GetInstance(); ImmutableDictionary<int, ImmutableArray<bool>>.Builder? lazyDynamicLocalsBuilder = null; ImmutableDictionary<int, ImmutableArray<string?>>.Builder? lazyTupleLocalsBuilder = null; var innerMostImportScope = default(ImportScopeHandle); uint reuseSpanStart = 0; uint reuseSpanEnd = uint.MaxValue; try { foreach (var scopeHandle in reader.GetLocalScopes(methodHandle)) { try { var scope = reader.GetLocalScope(scopeHandle); if (ilOffset < scope.StartOffset) { // scopes are sorted by StartOffset, hence all scopes that follow can't contain ilOffset reuseSpanEnd = Math.Min(reuseSpanEnd, (uint)scope.StartOffset); break; } if (ilOffset >= scope.EndOffset) { // ilOffset is not in this scope, go to next one reuseSpanStart = Math.Max(reuseSpanStart, (uint)scope.EndOffset); continue; } // reuse span is a subspan of the inner-most scope containing the IL offset: reuseSpanStart = Math.Max(reuseSpanStart, (uint)scope.StartOffset); reuseSpanEnd = Math.Min(reuseSpanEnd, (uint)scope.EndOffset); // imports (use the inner-most): innerMostImportScope = scope.ImportScope; // locals (from all contained scopes): foreach (var variableHandle in scope.GetLocalVariables()) { var variable = reader.GetLocalVariable(variableHandle); if ((variable.Attributes & LocalVariableAttributes.DebuggerHidden) != 0) { continue; } localVariableNamesBuilder.SetItem(variable.Index, reader.GetString(variable.Name)); var dynamicFlags = ReadDynamicCustomDebugInformation(reader, variableHandle); if (!dynamicFlags.IsDefault) { lazyDynamicLocalsBuilder ??= ImmutableDictionary.CreateBuilder<int, ImmutableArray<bool>>(); lazyDynamicLocalsBuilder[variable.Index] = dynamicFlags; } var tupleElementNames = ReadTupleCustomDebugInformation(reader, variableHandle); if (!tupleElementNames.IsDefault) { lazyTupleLocalsBuilder ??= ImmutableDictionary.CreateBuilder<int, ImmutableArray<string?>>(); lazyTupleLocalsBuilder[variable.Index] = tupleElementNames; } } // constants (from all contained scopes): foreach (var constantHandle in scope.GetLocalConstants()) { var constant = reader.GetLocalConstant(constantHandle); var sigReader = reader.GetBlobReader(constant.Signature); symbolProvider.DecodeLocalConstant(ref sigReader, out var typeSymbol, out var value); var name = reader.GetString(constant.Name); var dynamicFlags = ReadDynamicCustomDebugInformation(reader, constantHandle); var tupleElementNames = ReadTupleCustomDebugInformation(reader, constantHandle); localConstantsBuilder.Add(symbolProvider.GetLocalConstant(name, typeSymbol, value, dynamicFlags, tupleElementNames)); } } catch (Exception e) when (e is UnsupportedSignatureContent || e is BadImageFormatException) { // ignore scopes with invalid data } } } finally { localVariableNames = localVariableNamesBuilder.ToImmutableAndFree(); localConstants = localConstantsBuilder.ToImmutableAndFree(); dynamicLocalMap = lazyDynamicLocalsBuilder?.ToImmutable(); tupleLocalMap = lazyTupleLocalsBuilder?.ToImmutable(); reuseSpan = new ILSpan(reuseSpanStart, reuseSpanEnd); } var importGroupsBuilder = ArrayBuilder<ImmutableArray<ImportRecord>>.GetInstance(); var externAliasesBuilder = ArrayBuilder<ExternAliasRecord>.GetInstance(); if (!innerMostImportScope.IsNil) { PopulateImports(reader, innerMostImportScope, symbolProvider, isVisualBasicMethod, importGroupsBuilder, externAliasesBuilder); } importGroups = importGroupsBuilder.ToImmutableAndFree(); externAliases = externAliasesBuilder.ToImmutableAndFree(); } private static string ReadUtf8String(MetadataReader reader, BlobHandle handle) { var bytes = reader.GetBlobBytes(handle); return Encoding.UTF8.GetString(bytes, 0, bytes.Length); } /// <summary> /// Read UTF8 string with null terminator. /// </summary> private static string ReadUtf8String(ref BlobReader reader) { var builder = ArrayBuilder<byte>.GetInstance(); while (true) { var b = reader.ReadByte(); if (b == 0) { break; } builder.Add(b); } var bytes = builder.ToArrayAndFree(); return Encoding.UTF8.GetString(bytes, 0, bytes.Length); } private static void PopulateImports( MetadataReader reader, ImportScopeHandle handle, EESymbolProvider<TTypeSymbol, TLocalSymbol> symbolProvider, bool isVisualBasicMethod, ArrayBuilder<ImmutableArray<ImportRecord>> importGroupsBuilder, ArrayBuilder<ExternAliasRecord> externAliasesBuilder) { var importGroupBuilder = ArrayBuilder<ImportRecord>.GetInstance(); while (!handle.IsNil) { var importScope = reader.GetImportScope(handle); try { PopulateImports(reader, importScope, symbolProvider, importGroupBuilder, externAliasesBuilder); } catch (BadImageFormatException) { // ignore invalid imports } // Portable PDBs represent project-level scope as the root of the chain of scopes. // This scope might contain aliases for assembly references, but is not considered // to be part of imports groups. if (isVisualBasicMethod || !importScope.Parent.IsNil) { importGroupsBuilder.Add(importGroupBuilder.ToImmutable()); importGroupBuilder.Clear(); } else { // C# currently doesn't support global imports in PDBs // https://github.com/dotnet/roslyn/issues/21862 Debug.Assert(importGroupBuilder.Count == 0); } handle = importScope.Parent; } importGroupBuilder.Free(); } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static void PopulateImports( MetadataReader reader, ImportScope importScope, EESymbolProvider<TTypeSymbol, TLocalSymbol> symbolProvider, ArrayBuilder<ImportRecord> importGroupBuilder, ArrayBuilder<ExternAliasRecord> externAliasesBuilder) { foreach (ImportDefinition import in importScope.GetImports()) { switch (import.Kind) { case ImportDefinitionKind.ImportNamespace: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Namespace, targetString: ReadUtf8String(reader, import.TargetNamespace))); break; case ImportDefinitionKind.ImportAssemblyNamespace: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Namespace, targetString: ReadUtf8String(reader, import.TargetNamespace), targetAssembly: symbolProvider.GetReferencedAssembly(import.TargetAssembly))); break; case ImportDefinitionKind.ImportType: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Type, targetType: symbolProvider.GetType(import.TargetType))); break; case ImportDefinitionKind.ImportXmlNamespace: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.XmlNamespace, alias: ReadUtf8String(reader, import.Alias), targetString: ReadUtf8String(reader, import.TargetNamespace))); break; case ImportDefinitionKind.ImportAssemblyReferenceAlias: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Assembly, alias: ReadUtf8String(reader, import.Alias))); break; case ImportDefinitionKind.AliasAssemblyReference: externAliasesBuilder.Add(new ExternAliasRecord( alias: ReadUtf8String(reader, import.Alias), targetAssembly: symbolProvider.GetReferencedAssembly(import.TargetAssembly))); break; case ImportDefinitionKind.AliasNamespace: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Namespace, alias: ReadUtf8String(reader, import.Alias), targetString: ReadUtf8String(reader, import.TargetNamespace))); break; case ImportDefinitionKind.AliasAssemblyNamespace: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Namespace, alias: ReadUtf8String(reader, import.Alias), targetString: ReadUtf8String(reader, import.TargetNamespace), targetAssembly: symbolProvider.GetReferencedAssembly(import.TargetAssembly))); break; case ImportDefinitionKind.AliasType: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Type, alias: ReadUtf8String(reader, import.Alias), targetType: symbolProvider.GetType(import.TargetType))); break; } } } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static void ReadMethodCustomDebugInformation( MetadataReader reader, MethodDefinitionHandle methodHandle, out ImmutableArray<HoistedLocalScopeRecord> hoistedLocalScopes, out string defaultNamespace) { hoistedLocalScopes = TryGetCustomDebugInformation(reader, methodHandle, PortableCustomDebugInfoKinds.StateMachineHoistedLocalScopes, out var info) ? DecodeHoistedLocalScopes(reader.GetBlobReader(info.Value)) : ImmutableArray<HoistedLocalScopeRecord>.Empty; // TODO: consider looking this up once per module (not for every method) defaultNamespace = TryGetCustomDebugInformation(reader, EntityHandle.ModuleDefinition, PortableCustomDebugInfoKinds.DefaultNamespace, out info) ? DecodeDefaultNamespace(reader.GetBlobReader(info.Value)) : ""; } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static ImmutableArray<bool> ReadDynamicCustomDebugInformation(MetadataReader reader, EntityHandle variableOrConstantHandle) { if (TryGetCustomDebugInformation(reader, variableOrConstantHandle, PortableCustomDebugInfoKinds.DynamicLocalVariables, out var info)) { return DecodeDynamicFlags(reader.GetBlobReader(info.Value)); } return default; } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static ImmutableArray<string?> ReadTupleCustomDebugInformation(MetadataReader reader, EntityHandle variableOrConstantHandle) { if (TryGetCustomDebugInformation(reader, variableOrConstantHandle, PortableCustomDebugInfoKinds.TupleElementNames, out var info)) { return DecodeTupleElementNames(reader.GetBlobReader(info.Value)); } return default; } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static bool TryGetCustomDebugInformation(MetadataReader reader, EntityHandle handle, Guid kind, out CustomDebugInformation customDebugInfo) { bool foundAny = false; customDebugInfo = default; foreach (var infoHandle in reader.GetCustomDebugInformation(handle)) { var info = reader.GetCustomDebugInformation(infoHandle); var id = reader.GetGuid(info.Kind); if (id == kind) { if (foundAny) { throw new BadImageFormatException(); } customDebugInfo = info; foundAny = true; } } return foundAny; } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static ImmutableArray<bool> DecodeDynamicFlags(BlobReader reader) { var builder = ImmutableArray.CreateBuilder<bool>(reader.Length * 8); while (reader.RemainingBytes > 0) { int b = reader.ReadByte(); for (int i = 1; i < 0x100; i <<= 1) { builder.Add((b & i) != 0); } } return builder.MoveToImmutable(); } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static ImmutableArray<string?> DecodeTupleElementNames(BlobReader reader) { var builder = ArrayBuilder<string?>.GetInstance(); while (reader.RemainingBytes > 0) { var value = ReadUtf8String(ref reader); builder.Add(value.Length == 0 ? null : value); } return builder.ToImmutableAndFree(); } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static ImmutableArray<HoistedLocalScopeRecord> DecodeHoistedLocalScopes(BlobReader reader) { var result = ArrayBuilder<HoistedLocalScopeRecord>.GetInstance(); do { int startOffset = reader.ReadInt32(); int length = reader.ReadInt32(); result.Add(new HoistedLocalScopeRecord(startOffset, length)); } while (reader.RemainingBytes > 0); return result.ToImmutableAndFree(); } private static string DecodeDefaultNamespace(BlobReader reader) { return reader.ReadUTF8(reader.Length); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Reflection.Metadata; using System.Reflection.Metadata.Ecma335; using System.Text; using Microsoft.CodeAnalysis.Debugging; using Microsoft.CodeAnalysis.PooledObjects; namespace Microsoft.CodeAnalysis.ExpressionEvaluator { internal partial class MethodDebugInfo<TTypeSymbol, TLocalSymbol> { /// <exception cref="BadImageFormatException">Invalid data format.</exception> public static MethodDebugInfo<TTypeSymbol, TLocalSymbol> ReadFromPortable( MetadataReader reader, int methodToken, int ilOffset, EESymbolProvider<TTypeSymbol, TLocalSymbol>? symbolProvider, bool isVisualBasicMethod) { ImmutableDictionary<int, ImmutableArray<bool>>? dynamicLocalMap; ImmutableDictionary<int, ImmutableArray<string?>>? tupleLocalMap; ImmutableArray<ImmutableArray<ImportRecord>> importGroups; ImmutableArray<ExternAliasRecord> externAliases; ImmutableArray<string> localVariableNames; ImmutableArray<TLocalSymbol> localConstants; ILSpan reuseSpan; var methodHandle = GetDeltaRelativeMethodDefinitionHandle(reader, methodToken); // TODO: only null in DTEE case where we looking for default namesapace if (symbolProvider != null) { ReadLocalScopeInformation( reader, methodHandle, ilOffset, symbolProvider, isVisualBasicMethod, out importGroups, out externAliases, out localVariableNames, out dynamicLocalMap, out tupleLocalMap, out localConstants, out reuseSpan); } else { dynamicLocalMap = null; tupleLocalMap = null; importGroups = ImmutableArray<ImmutableArray<ImportRecord>>.Empty; externAliases = ImmutableArray<ExternAliasRecord>.Empty; localVariableNames = ImmutableArray<string>.Empty; localConstants = ImmutableArray<TLocalSymbol>.Empty; reuseSpan = ILSpan.MaxValue; } ReadMethodCustomDebugInformation(reader, methodHandle, out var hoistedLocalScopes, out var defaultNamespace); return new MethodDebugInfo<TTypeSymbol, TLocalSymbol>( hoistedLocalScopes, importGroups, externAliases, dynamicLocalMap, tupleLocalMap, defaultNamespace, localVariableNames, localConstants, reuseSpan); } /// <summary> /// Maps global method token to a handle local to the current delta PDB. /// Debug tables referring to methods currently use local handles, not global handles. /// See https://github.com/dotnet/roslyn/issues/16286 /// </summary> private static MethodDefinitionHandle GetDeltaRelativeMethodDefinitionHandle(MetadataReader reader, int methodToken) { var globalHandle = (MethodDefinitionHandle)MetadataTokens.EntityHandle(methodToken); if (reader.GetTableRowCount(TableIndex.EncMap) == 0) { return globalHandle; } var globalDebugHandle = globalHandle.ToDebugInformationHandle(); int rowId = 1; foreach (var handle in reader.GetEditAndContinueMapEntries()) { if (handle.Kind == HandleKind.MethodDebugInformation) { if (handle == globalDebugHandle) { return MetadataTokens.MethodDefinitionHandle(rowId); } rowId++; } } // compiler generated invalid EncMap table: throw new BadImageFormatException(); } private static void ReadLocalScopeInformation( MetadataReader reader, MethodDefinitionHandle methodHandle, int ilOffset, EESymbolProvider<TTypeSymbol, TLocalSymbol> symbolProvider, bool isVisualBasicMethod, out ImmutableArray<ImmutableArray<ImportRecord>> importGroups, out ImmutableArray<ExternAliasRecord> externAliases, out ImmutableArray<string> localVariableNames, out ImmutableDictionary<int, ImmutableArray<bool>>? dynamicLocalMap, out ImmutableDictionary<int, ImmutableArray<string?>>? tupleLocalMap, out ImmutableArray<TLocalSymbol> localConstants, out ILSpan reuseSpan) { var localVariableNamesBuilder = ArrayBuilder<string>.GetInstance(); var localConstantsBuilder = ArrayBuilder<TLocalSymbol>.GetInstance(); ImmutableDictionary<int, ImmutableArray<bool>>.Builder? lazyDynamicLocalsBuilder = null; ImmutableDictionary<int, ImmutableArray<string?>>.Builder? lazyTupleLocalsBuilder = null; var innerMostImportScope = default(ImportScopeHandle); uint reuseSpanStart = 0; uint reuseSpanEnd = uint.MaxValue; try { foreach (var scopeHandle in reader.GetLocalScopes(methodHandle)) { try { var scope = reader.GetLocalScope(scopeHandle); if (ilOffset < scope.StartOffset) { // scopes are sorted by StartOffset, hence all scopes that follow can't contain ilOffset reuseSpanEnd = Math.Min(reuseSpanEnd, (uint)scope.StartOffset); break; } if (ilOffset >= scope.EndOffset) { // ilOffset is not in this scope, go to next one reuseSpanStart = Math.Max(reuseSpanStart, (uint)scope.EndOffset); continue; } // reuse span is a subspan of the inner-most scope containing the IL offset: reuseSpanStart = Math.Max(reuseSpanStart, (uint)scope.StartOffset); reuseSpanEnd = Math.Min(reuseSpanEnd, (uint)scope.EndOffset); // imports (use the inner-most): innerMostImportScope = scope.ImportScope; // locals (from all contained scopes): foreach (var variableHandle in scope.GetLocalVariables()) { var variable = reader.GetLocalVariable(variableHandle); if ((variable.Attributes & LocalVariableAttributes.DebuggerHidden) != 0) { continue; } localVariableNamesBuilder.SetItem(variable.Index, reader.GetString(variable.Name)); var dynamicFlags = ReadDynamicCustomDebugInformation(reader, variableHandle); if (!dynamicFlags.IsDefault) { lazyDynamicLocalsBuilder ??= ImmutableDictionary.CreateBuilder<int, ImmutableArray<bool>>(); lazyDynamicLocalsBuilder[variable.Index] = dynamicFlags; } var tupleElementNames = ReadTupleCustomDebugInformation(reader, variableHandle); if (!tupleElementNames.IsDefault) { lazyTupleLocalsBuilder ??= ImmutableDictionary.CreateBuilder<int, ImmutableArray<string?>>(); lazyTupleLocalsBuilder[variable.Index] = tupleElementNames; } } // constants (from all contained scopes): foreach (var constantHandle in scope.GetLocalConstants()) { var constant = reader.GetLocalConstant(constantHandle); var sigReader = reader.GetBlobReader(constant.Signature); symbolProvider.DecodeLocalConstant(ref sigReader, out var typeSymbol, out var value); var name = reader.GetString(constant.Name); var dynamicFlags = ReadDynamicCustomDebugInformation(reader, constantHandle); var tupleElementNames = ReadTupleCustomDebugInformation(reader, constantHandle); localConstantsBuilder.Add(symbolProvider.GetLocalConstant(name, typeSymbol, value, dynamicFlags, tupleElementNames)); } } catch (Exception e) when (e is UnsupportedSignatureContent || e is BadImageFormatException) { // ignore scopes with invalid data } } } finally { localVariableNames = localVariableNamesBuilder.ToImmutableAndFree(); localConstants = localConstantsBuilder.ToImmutableAndFree(); dynamicLocalMap = lazyDynamicLocalsBuilder?.ToImmutable(); tupleLocalMap = lazyTupleLocalsBuilder?.ToImmutable(); reuseSpan = new ILSpan(reuseSpanStart, reuseSpanEnd); } var importGroupsBuilder = ArrayBuilder<ImmutableArray<ImportRecord>>.GetInstance(); var externAliasesBuilder = ArrayBuilder<ExternAliasRecord>.GetInstance(); if (!innerMostImportScope.IsNil) { PopulateImports(reader, innerMostImportScope, symbolProvider, isVisualBasicMethod, importGroupsBuilder, externAliasesBuilder); } importGroups = importGroupsBuilder.ToImmutableAndFree(); externAliases = externAliasesBuilder.ToImmutableAndFree(); } private static string ReadUtf8String(MetadataReader reader, BlobHandle handle) { var bytes = reader.GetBlobBytes(handle); return Encoding.UTF8.GetString(bytes, 0, bytes.Length); } /// <summary> /// Read UTF8 string with null terminator. /// </summary> private static string ReadUtf8String(ref BlobReader reader) { var builder = ArrayBuilder<byte>.GetInstance(); while (true) { var b = reader.ReadByte(); if (b == 0) { break; } builder.Add(b); } var bytes = builder.ToArrayAndFree(); return Encoding.UTF8.GetString(bytes, 0, bytes.Length); } private static void PopulateImports( MetadataReader reader, ImportScopeHandle handle, EESymbolProvider<TTypeSymbol, TLocalSymbol> symbolProvider, bool isVisualBasicMethod, ArrayBuilder<ImmutableArray<ImportRecord>> importGroupsBuilder, ArrayBuilder<ExternAliasRecord> externAliasesBuilder) { var importGroupBuilder = ArrayBuilder<ImportRecord>.GetInstance(); while (!handle.IsNil) { var importScope = reader.GetImportScope(handle); try { PopulateImports(reader, importScope, symbolProvider, importGroupBuilder, externAliasesBuilder); } catch (BadImageFormatException) { // ignore invalid imports } // Portable PDBs represent project-level scope as the root of the chain of scopes. // This scope might contain aliases for assembly references, but is not considered // to be part of imports groups. if (isVisualBasicMethod || !importScope.Parent.IsNil) { importGroupsBuilder.Add(importGroupBuilder.ToImmutable()); importGroupBuilder.Clear(); } else { // C# currently doesn't support global imports in PDBs // https://github.com/dotnet/roslyn/issues/21862 Debug.Assert(importGroupBuilder.Count == 0); } handle = importScope.Parent; } importGroupBuilder.Free(); } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static void PopulateImports( MetadataReader reader, ImportScope importScope, EESymbolProvider<TTypeSymbol, TLocalSymbol> symbolProvider, ArrayBuilder<ImportRecord> importGroupBuilder, ArrayBuilder<ExternAliasRecord> externAliasesBuilder) { foreach (ImportDefinition import in importScope.GetImports()) { switch (import.Kind) { case ImportDefinitionKind.ImportNamespace: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Namespace, targetString: ReadUtf8String(reader, import.TargetNamespace))); break; case ImportDefinitionKind.ImportAssemblyNamespace: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Namespace, targetString: ReadUtf8String(reader, import.TargetNamespace), targetAssembly: symbolProvider.GetReferencedAssembly(import.TargetAssembly))); break; case ImportDefinitionKind.ImportType: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Type, targetType: symbolProvider.GetType(import.TargetType))); break; case ImportDefinitionKind.ImportXmlNamespace: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.XmlNamespace, alias: ReadUtf8String(reader, import.Alias), targetString: ReadUtf8String(reader, import.TargetNamespace))); break; case ImportDefinitionKind.ImportAssemblyReferenceAlias: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Assembly, alias: ReadUtf8String(reader, import.Alias))); break; case ImportDefinitionKind.AliasAssemblyReference: externAliasesBuilder.Add(new ExternAliasRecord( alias: ReadUtf8String(reader, import.Alias), targetAssembly: symbolProvider.GetReferencedAssembly(import.TargetAssembly))); break; case ImportDefinitionKind.AliasNamespace: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Namespace, alias: ReadUtf8String(reader, import.Alias), targetString: ReadUtf8String(reader, import.TargetNamespace))); break; case ImportDefinitionKind.AliasAssemblyNamespace: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Namespace, alias: ReadUtf8String(reader, import.Alias), targetString: ReadUtf8String(reader, import.TargetNamespace), targetAssembly: symbolProvider.GetReferencedAssembly(import.TargetAssembly))); break; case ImportDefinitionKind.AliasType: importGroupBuilder.Add(new ImportRecord( ImportTargetKind.Type, alias: ReadUtf8String(reader, import.Alias), targetType: symbolProvider.GetType(import.TargetType))); break; } } } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static void ReadMethodCustomDebugInformation( MetadataReader reader, MethodDefinitionHandle methodHandle, out ImmutableArray<HoistedLocalScopeRecord> hoistedLocalScopes, out string defaultNamespace) { hoistedLocalScopes = TryGetCustomDebugInformation(reader, methodHandle, PortableCustomDebugInfoKinds.StateMachineHoistedLocalScopes, out var info) ? DecodeHoistedLocalScopes(reader.GetBlobReader(info.Value)) : ImmutableArray<HoistedLocalScopeRecord>.Empty; // TODO: consider looking this up once per module (not for every method) defaultNamespace = TryGetCustomDebugInformation(reader, EntityHandle.ModuleDefinition, PortableCustomDebugInfoKinds.DefaultNamespace, out info) ? DecodeDefaultNamespace(reader.GetBlobReader(info.Value)) : ""; } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static ImmutableArray<bool> ReadDynamicCustomDebugInformation(MetadataReader reader, EntityHandle variableOrConstantHandle) { if (TryGetCustomDebugInformation(reader, variableOrConstantHandle, PortableCustomDebugInfoKinds.DynamicLocalVariables, out var info)) { return DecodeDynamicFlags(reader.GetBlobReader(info.Value)); } return default; } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static ImmutableArray<string?> ReadTupleCustomDebugInformation(MetadataReader reader, EntityHandle variableOrConstantHandle) { if (TryGetCustomDebugInformation(reader, variableOrConstantHandle, PortableCustomDebugInfoKinds.TupleElementNames, out var info)) { return DecodeTupleElementNames(reader.GetBlobReader(info.Value)); } return default; } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static bool TryGetCustomDebugInformation(MetadataReader reader, EntityHandle handle, Guid kind, out CustomDebugInformation customDebugInfo) { bool foundAny = false; customDebugInfo = default; foreach (var infoHandle in reader.GetCustomDebugInformation(handle)) { var info = reader.GetCustomDebugInformation(infoHandle); var id = reader.GetGuid(info.Kind); if (id == kind) { if (foundAny) { throw new BadImageFormatException(); } customDebugInfo = info; foundAny = true; } } return foundAny; } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static ImmutableArray<bool> DecodeDynamicFlags(BlobReader reader) { var builder = ImmutableArray.CreateBuilder<bool>(reader.Length * 8); while (reader.RemainingBytes > 0) { int b = reader.ReadByte(); for (int i = 1; i < 0x100; i <<= 1) { builder.Add((b & i) != 0); } } return builder.MoveToImmutable(); } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static ImmutableArray<string?> DecodeTupleElementNames(BlobReader reader) { var builder = ArrayBuilder<string?>.GetInstance(); while (reader.RemainingBytes > 0) { var value = ReadUtf8String(ref reader); builder.Add(value.Length == 0 ? null : value); } return builder.ToImmutableAndFree(); } /// <exception cref="BadImageFormatException">Invalid data format.</exception> private static ImmutableArray<HoistedLocalScopeRecord> DecodeHoistedLocalScopes(BlobReader reader) { var result = ArrayBuilder<HoistedLocalScopeRecord>.GetInstance(); do { int startOffset = reader.ReadInt32(); int length = reader.ReadInt32(); result.Add(new HoistedLocalScopeRecord(startOffset, length)); } while (reader.RemainingBytes > 0); return result.ToImmutableAndFree(); } private static string DecodeDefaultNamespace(BlobReader reader) { return reader.ReadUTF8(reader.Length); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Workspaces/Core/Portable/Workspace/Host/DocumentService/ISpanMappingService.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using System.Collections.Immutable; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.Host { /// <summary> /// Map spans in a document to other spans even in other document /// /// this will be used by various features if provided to convert span in one document to other spans. /// /// for example, it is used to show spans users expect in a razor file rather than spans in /// auto generated file that is implementation detail or navigate to the right place rather /// than the generated file and etc. /// </summary> internal interface ISpanMappingService : IDocumentService { /// <summary> /// Whether this span mapping service can handle mapping import directives added to a document. /// </summary> bool SupportsMappingImportDirectives { get; } Task<ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)>> GetMappedTextChangesAsync( Document oldDocument, Document newDocument, CancellationToken cancellationToken); /// <summary> /// Map spans in the document to more appropriate locations /// /// in current design, this can NOT map a span to a span that is not backed by a file. /// for example, roslyn supports someone to have a document that is not backed by a file. and current design doesn't allow /// such document to be returned from this API /// for example, span on razor secondary buffer document in roslyn solution mapped to a span on razor cshtml file is possible but /// a span on razor cshtml file to a span on secondary buffer document is not possible since secondary buffer document is not backed by a file /// </summary> /// <param name="document">Document given spans belong to</param> /// <param name="spans">Spans in the document</param> /// <param name="cancellationToken">Cancellation token</param> /// <returns>Return mapped span. order of result should be same as the given span</returns> Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(Document document, IEnumerable<TextSpan> spans, CancellationToken cancellationToken); } /// <summary> /// Result of span mapping /// </summary> internal struct MappedSpanResult { /// <summary> /// Path to mapped file /// </summary> public readonly string FilePath; /// <summary> /// LinePosition representation of the Span /// </summary> public readonly LinePositionSpan LinePositionSpan; /// <summary> /// Mapped span /// </summary> public readonly TextSpan Span; public MappedSpanResult(string filePath, LinePositionSpan linePositionSpan, TextSpan span) { if (string.IsNullOrEmpty(filePath)) { throw new System.ArgumentException(nameof(filePath)); } FilePath = filePath; LinePositionSpan = linePositionSpan; Span = span; } public bool IsDefault => FilePath == null; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using System.Collections.Immutable; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.Host { /// <summary> /// Map spans in a document to other spans even in other document /// /// this will be used by various features if provided to convert span in one document to other spans. /// /// for example, it is used to show spans users expect in a razor file rather than spans in /// auto generated file that is implementation detail or navigate to the right place rather /// than the generated file and etc. /// </summary> internal interface ISpanMappingService : IDocumentService { /// <summary> /// Whether this span mapping service can handle mapping import directives added to a document. /// </summary> bool SupportsMappingImportDirectives { get; } Task<ImmutableArray<(string mappedFilePath, TextChange mappedTextChange)>> GetMappedTextChangesAsync( Document oldDocument, Document newDocument, CancellationToken cancellationToken); /// <summary> /// Map spans in the document to more appropriate locations /// /// in current design, this can NOT map a span to a span that is not backed by a file. /// for example, roslyn supports someone to have a document that is not backed by a file. and current design doesn't allow /// such document to be returned from this API /// for example, span on razor secondary buffer document in roslyn solution mapped to a span on razor cshtml file is possible but /// a span on razor cshtml file to a span on secondary buffer document is not possible since secondary buffer document is not backed by a file /// </summary> /// <param name="document">Document given spans belong to</param> /// <param name="spans">Spans in the document</param> /// <param name="cancellationToken">Cancellation token</param> /// <returns>Return mapped span. order of result should be same as the given span</returns> Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(Document document, IEnumerable<TextSpan> spans, CancellationToken cancellationToken); } /// <summary> /// Result of span mapping /// </summary> internal struct MappedSpanResult { /// <summary> /// Path to mapped file /// </summary> public readonly string FilePath; /// <summary> /// LinePosition representation of the Span /// </summary> public readonly LinePositionSpan LinePositionSpan; /// <summary> /// Mapped span /// </summary> public readonly TextSpan Span; public MappedSpanResult(string filePath, LinePositionSpan linePositionSpan, TextSpan span) { if (string.IsNullOrEmpty(filePath)) { throw new System.ArgumentException(nameof(filePath)); } FilePath = filePath; LinePositionSpan = linePositionSpan; Span = span; } public bool IsDefault => FilePath == null; } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Workspace/Mef/MefWorkspaceServices.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; [assembly: DebuggerTypeProxy(typeof(MefWorkspaceServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>>))] namespace Microsoft.CodeAnalysis.Host.Mef { internal sealed class MefWorkspaceServices : HostWorkspaceServices { private readonly IMefHostExportProvider _exportProvider; private readonly Workspace _workspace; private readonly ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> _services; // map of type name to workspace service private ImmutableDictionary<Type, Lazy<IWorkspaceService, WorkspaceServiceMetadata>> _serviceMap = ImmutableDictionary<Type, Lazy<IWorkspaceService, WorkspaceServiceMetadata>>.Empty; // accumulated cache for language services private ImmutableDictionary<string, MefLanguageServices> _languageServicesMap = ImmutableDictionary<string, MefLanguageServices>.Empty; public MefWorkspaceServices(IMefHostExportProvider host, Workspace workspace) { _exportProvider = host; _workspace = workspace; var services = host.GetExports<IWorkspaceService, WorkspaceServiceMetadata>(); var factories = host.GetExports<IWorkspaceServiceFactory, WorkspaceServiceMetadata>() .Select(lz => new Lazy<IWorkspaceService, WorkspaceServiceMetadata>(() => lz.Value.CreateService(this), lz.Metadata)); _services = services.Concat(factories).ToImmutableArray(); } public override HostServices HostServices { get { return (HostServices)_exportProvider; } } internal IMefHostExportProvider HostExportProvider => _exportProvider; public override Workspace Workspace => _workspace; public override TWorkspaceService GetService<TWorkspaceService>() { if (TryGetService(typeof(TWorkspaceService), out var service)) { return (TWorkspaceService)service.Value; } else { return default; } } private bool TryGetService(Type serviceType, out Lazy<IWorkspaceService, WorkspaceServiceMetadata> service) { if (!_serviceMap.TryGetValue(serviceType, out service)) { service = ImmutableInterlocked.GetOrAdd(ref _serviceMap, serviceType, svctype => { // Pick from list of exported factories and instances // PERF: Hoist AssemblyQualifiedName out of inner lambda to avoid repeated string allocations. var assemblyQualifiedName = svctype.AssemblyQualifiedName; return PickWorkspaceService(_services.Where(lz => lz.Metadata.ServiceType == assemblyQualifiedName)); }); } return service != null; } private Lazy<IWorkspaceService, WorkspaceServiceMetadata> PickWorkspaceService(IEnumerable<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services) { Lazy<IWorkspaceService, WorkspaceServiceMetadata> service; #if !CODE_STYLE // test layer overrides all other layers and workspace kind: if (TryGetServiceByLayer(ServiceLayer.Test, services, out service)) { return service; } #endif // workspace specific kind is best if (TryGetServiceByLayer(_workspace.Kind, services, out service)) { return service; } // host layer overrides editor, desktop or default if (TryGetServiceByLayer(ServiceLayer.Host, services, out service)) { return service; } // editor layer overrides desktop or default if (TryGetServiceByLayer(ServiceLayer.Editor, services, out service)) { return service; } // desktop layer overrides default if (TryGetServiceByLayer(ServiceLayer.Desktop, services, out service)) { return service; } // that just leaves default if (TryGetServiceByLayer(ServiceLayer.Default, services, out service)) { return service; } // no service. return null; } private static bool TryGetServiceByLayer(string layer, IEnumerable<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services, out Lazy<IWorkspaceService, WorkspaceServiceMetadata> service) { service = services.SingleOrDefault(lz => lz.Metadata.Layer == layer); return service != null; } private IEnumerable<string> _languages; private IEnumerable<string> GetSupportedLanguages() { if (_languages == null) { var list = _exportProvider.GetExports<ILanguageService, LanguageServiceMetadata>().Select(lz => lz.Metadata.Language).Concat( _exportProvider.GetExports<ILanguageServiceFactory, LanguageServiceMetadata>().Select(lz => lz.Metadata.Language)) .Distinct(); Interlocked.CompareExchange(ref _languages, list, null); } return _languages; } public override IEnumerable<string> SupportedLanguages { get { return this.GetSupportedLanguages(); } } public override bool IsSupported(string languageName) => this.GetSupportedLanguages().Contains(languageName); public override HostLanguageServices GetLanguageServices(string languageName) { var currentServicesMap = _languageServicesMap; if (!currentServicesMap.TryGetValue(languageName, out var languageServices)) { languageServices = ImmutableInterlocked.GetOrAdd(ref _languageServicesMap, languageName, static (languageName, self) => new MefLanguageServices(self, languageName), this); } if (languageServices.HasServices) { return languageServices; } else { // throws exception #pragma warning disable RS0030 // Do not used banned API 'GetLanguageServices', use 'GetExtendedLanguageServices' instead - allowed in this context. return base.GetLanguageServices(languageName); #pragma warning restore RS0030 // Do not used banned APIs } } public override IEnumerable<TLanguageService> FindLanguageServices<TLanguageService>(MetadataFilter filter) { foreach (var language in this.SupportedLanguages) { #pragma warning disable RS0030 // Do not used banned API 'GetLanguageServices', use 'GetExtendedLanguageServices' instead - allowed in this context. var services = (MefLanguageServices)this.GetLanguageServices(language); #pragma warning restore RS0030 // Do not used banned APIs if (services.TryGetService(typeof(TLanguageService), out var service)) { if (filter(service.Metadata.Data)) { yield return (TLanguageService)service.Value; } } } } internal bool TryGetLanguageServices(string languageName, out MefLanguageServices languageServices) => _languageServicesMap.TryGetValue(languageName, out languageServices); internal sealed class LazyServiceMetadataDebuggerProxy { private readonly ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> _services; public LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services) => _services = services; public (string type, string layer)[] Metadata => _services.Select(s => (s.Metadata.ServiceType, s.Metadata.Layer)).ToArray(); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Host.Mef; [assembly: DebuggerTypeProxy(typeof(MefWorkspaceServices.LazyServiceMetadataDebuggerProxy), Target = typeof(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>>))] namespace Microsoft.CodeAnalysis.Host.Mef { internal sealed class MefWorkspaceServices : HostWorkspaceServices { private readonly IMefHostExportProvider _exportProvider; private readonly Workspace _workspace; private readonly ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> _services; // map of type name to workspace service private ImmutableDictionary<Type, Lazy<IWorkspaceService, WorkspaceServiceMetadata>> _serviceMap = ImmutableDictionary<Type, Lazy<IWorkspaceService, WorkspaceServiceMetadata>>.Empty; // accumulated cache for language services private ImmutableDictionary<string, MefLanguageServices> _languageServicesMap = ImmutableDictionary<string, MefLanguageServices>.Empty; public MefWorkspaceServices(IMefHostExportProvider host, Workspace workspace) { _exportProvider = host; _workspace = workspace; var services = host.GetExports<IWorkspaceService, WorkspaceServiceMetadata>(); var factories = host.GetExports<IWorkspaceServiceFactory, WorkspaceServiceMetadata>() .Select(lz => new Lazy<IWorkspaceService, WorkspaceServiceMetadata>(() => lz.Value.CreateService(this), lz.Metadata)); _services = services.Concat(factories).ToImmutableArray(); } public override HostServices HostServices { get { return (HostServices)_exportProvider; } } internal IMefHostExportProvider HostExportProvider => _exportProvider; public override Workspace Workspace => _workspace; public override TWorkspaceService GetService<TWorkspaceService>() { if (TryGetService(typeof(TWorkspaceService), out var service)) { return (TWorkspaceService)service.Value; } else { return default; } } private bool TryGetService(Type serviceType, out Lazy<IWorkspaceService, WorkspaceServiceMetadata> service) { if (!_serviceMap.TryGetValue(serviceType, out service)) { service = ImmutableInterlocked.GetOrAdd(ref _serviceMap, serviceType, svctype => { // Pick from list of exported factories and instances // PERF: Hoist AssemblyQualifiedName out of inner lambda to avoid repeated string allocations. var assemblyQualifiedName = svctype.AssemblyQualifiedName; return PickWorkspaceService(_services.Where(lz => lz.Metadata.ServiceType == assemblyQualifiedName)); }); } return service != null; } private Lazy<IWorkspaceService, WorkspaceServiceMetadata> PickWorkspaceService(IEnumerable<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services) { Lazy<IWorkspaceService, WorkspaceServiceMetadata> service; #if !CODE_STYLE // test layer overrides all other layers and workspace kind: if (TryGetServiceByLayer(ServiceLayer.Test, services, out service)) { return service; } #endif // workspace specific kind is best if (TryGetServiceByLayer(_workspace.Kind, services, out service)) { return service; } // host layer overrides editor, desktop or default if (TryGetServiceByLayer(ServiceLayer.Host, services, out service)) { return service; } // editor layer overrides desktop or default if (TryGetServiceByLayer(ServiceLayer.Editor, services, out service)) { return service; } // desktop layer overrides default if (TryGetServiceByLayer(ServiceLayer.Desktop, services, out service)) { return service; } // that just leaves default if (TryGetServiceByLayer(ServiceLayer.Default, services, out service)) { return service; } // no service. return null; } private static bool TryGetServiceByLayer(string layer, IEnumerable<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services, out Lazy<IWorkspaceService, WorkspaceServiceMetadata> service) { service = services.SingleOrDefault(lz => lz.Metadata.Layer == layer); return service != null; } private IEnumerable<string> _languages; private IEnumerable<string> GetSupportedLanguages() { if (_languages == null) { var list = _exportProvider.GetExports<ILanguageService, LanguageServiceMetadata>().Select(lz => lz.Metadata.Language).Concat( _exportProvider.GetExports<ILanguageServiceFactory, LanguageServiceMetadata>().Select(lz => lz.Metadata.Language)) .Distinct(); Interlocked.CompareExchange(ref _languages, list, null); } return _languages; } public override IEnumerable<string> SupportedLanguages { get { return this.GetSupportedLanguages(); } } public override bool IsSupported(string languageName) => this.GetSupportedLanguages().Contains(languageName); public override HostLanguageServices GetLanguageServices(string languageName) { var currentServicesMap = _languageServicesMap; if (!currentServicesMap.TryGetValue(languageName, out var languageServices)) { languageServices = ImmutableInterlocked.GetOrAdd(ref _languageServicesMap, languageName, static (languageName, self) => new MefLanguageServices(self, languageName), this); } if (languageServices.HasServices) { return languageServices; } else { // throws exception #pragma warning disable RS0030 // Do not used banned API 'GetLanguageServices', use 'GetExtendedLanguageServices' instead - allowed in this context. return base.GetLanguageServices(languageName); #pragma warning restore RS0030 // Do not used banned APIs } } public override IEnumerable<TLanguageService> FindLanguageServices<TLanguageService>(MetadataFilter filter) { foreach (var language in this.SupportedLanguages) { #pragma warning disable RS0030 // Do not used banned API 'GetLanguageServices', use 'GetExtendedLanguageServices' instead - allowed in this context. var services = (MefLanguageServices)this.GetLanguageServices(language); #pragma warning restore RS0030 // Do not used banned APIs if (services.TryGetService(typeof(TLanguageService), out var service)) { if (filter(service.Metadata.Data)) { yield return (TLanguageService)service.Value; } } } } internal bool TryGetLanguageServices(string languageName, out MefLanguageServices languageServices) => _languageServicesMap.TryGetValue(languageName, out languageServices); internal sealed class LazyServiceMetadataDebuggerProxy { private readonly ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> _services; public LazyServiceMetadataDebuggerProxy(ImmutableArray<Lazy<IWorkspaceService, WorkspaceServiceMetadata>> services) => _services = services; public (string type, string layer)[] Metadata => _services.Select(s => (s.Metadata.ServiceType, s.Metadata.Layer)).ToArray(); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/CSharp/Portable/Emitter/Model/EventSymbolAdapter.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Diagnostics; using Microsoft.Cci; using Microsoft.CodeAnalysis.CSharp.Emit; using Microsoft.CodeAnalysis.Emit; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Symbols { internal partial class #if DEBUG EventSymbolAdapter : SymbolAdapter, #else EventSymbol : #endif Cci.IEventDefinition { #region IEventDefinition Members IEnumerable<Cci.IMethodReference> Cci.IEventDefinition.GetAccessors(EmitContext context) { CheckDefinitionInvariant(); var addMethod = AdaptedEventSymbol.AddMethod?.GetCciAdapter(); RoslynDebug.Assert((object?)addMethod != null); if (addMethod.ShouldInclude(context)) { yield return addMethod; } var removeMethod = AdaptedEventSymbol.RemoveMethod?.GetCciAdapter(); RoslynDebug.Assert((object?)removeMethod != null); if (removeMethod.ShouldInclude(context)) { yield return removeMethod; } } Cci.IMethodReference Cci.IEventDefinition.Adder { get { CheckDefinitionInvariant(); var addMethod = AdaptedEventSymbol.AddMethod?.GetCciAdapter(); RoslynDebug.Assert((object?)addMethod != null); return addMethod; } } Cci.IMethodReference Cci.IEventDefinition.Remover { get { CheckDefinitionInvariant(); var removeMethod = AdaptedEventSymbol.RemoveMethod?.GetCciAdapter(); RoslynDebug.Assert((object?)removeMethod != null); return removeMethod; } } bool Cci.IEventDefinition.IsRuntimeSpecial { get { CheckDefinitionInvariant(); return AdaptedEventSymbol.HasRuntimeSpecialName; } } bool Cci.IEventDefinition.IsSpecialName { get { CheckDefinitionInvariant(); return AdaptedEventSymbol.HasSpecialName; } } Cci.IMethodReference? Cci.IEventDefinition.Caller { get { CheckDefinitionInvariant(); return null; // C# doesn't use the raise/fire accessor } } Cci.ITypeReference Cci.IEventDefinition.GetType(EmitContext context) { return ((PEModuleBuilder)context.Module).Translate(AdaptedEventSymbol.Type, syntaxNodeOpt: (CSharpSyntaxNode?)context.SyntaxNode, diagnostics: context.Diagnostics); } #endregion #region ITypeDefinitionMember Members Cci.ITypeDefinition Cci.ITypeDefinitionMember.ContainingTypeDefinition { get { CheckDefinitionInvariant(); return AdaptedEventSymbol.ContainingType.GetCciAdapter(); } } Cci.TypeMemberVisibility Cci.ITypeDefinitionMember.Visibility { get { CheckDefinitionInvariant(); return PEModuleBuilder.MemberVisibility(AdaptedEventSymbol); } } #endregion #region ITypeMemberReference Members Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) { CheckDefinitionInvariant(); return AdaptedEventSymbol.ContainingType.GetCciAdapter(); } #endregion #region IReference Members void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor) { CheckDefinitionInvariant(); visitor.Visit((Cci.IEventDefinition)this); } Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) { CheckDefinitionInvariant(); return this; } #endregion #region INamedEntity Members string Cci.INamedEntity.Name { get { CheckDefinitionInvariant(); return AdaptedEventSymbol.MetadataName; } } #endregion } internal partial class EventSymbol { #if DEBUG private EventSymbolAdapter? _lazyAdapter; protected sealed override SymbolAdapter GetCciAdapterImpl() => GetCciAdapter(); internal new EventSymbolAdapter GetCciAdapter() { if (_lazyAdapter is null) { return InterlockedOperations.Initialize(ref _lazyAdapter, new EventSymbolAdapter(this)); } return _lazyAdapter; } #else internal EventSymbol AdaptedEventSymbol => this; internal new EventSymbol GetCciAdapter() { return this; } #endif internal virtual bool HasRuntimeSpecialName { get { CheckDefinitionInvariant(); return false; } } } #if DEBUG internal partial class EventSymbolAdapter { internal EventSymbolAdapter(EventSymbol underlyingEventSymbol) { AdaptedEventSymbol = underlyingEventSymbol; } internal sealed override Symbol AdaptedSymbol => AdaptedEventSymbol; internal EventSymbol AdaptedEventSymbol { get; } } #endif }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Diagnostics; using Microsoft.Cci; using Microsoft.CodeAnalysis.CSharp.Emit; using Microsoft.CodeAnalysis.Emit; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Symbols { internal partial class #if DEBUG EventSymbolAdapter : SymbolAdapter, #else EventSymbol : #endif Cci.IEventDefinition { #region IEventDefinition Members IEnumerable<Cci.IMethodReference> Cci.IEventDefinition.GetAccessors(EmitContext context) { CheckDefinitionInvariant(); var addMethod = AdaptedEventSymbol.AddMethod?.GetCciAdapter(); RoslynDebug.Assert((object?)addMethod != null); if (addMethod.ShouldInclude(context)) { yield return addMethod; } var removeMethod = AdaptedEventSymbol.RemoveMethod?.GetCciAdapter(); RoslynDebug.Assert((object?)removeMethod != null); if (removeMethod.ShouldInclude(context)) { yield return removeMethod; } } Cci.IMethodReference Cci.IEventDefinition.Adder { get { CheckDefinitionInvariant(); var addMethod = AdaptedEventSymbol.AddMethod?.GetCciAdapter(); RoslynDebug.Assert((object?)addMethod != null); return addMethod; } } Cci.IMethodReference Cci.IEventDefinition.Remover { get { CheckDefinitionInvariant(); var removeMethod = AdaptedEventSymbol.RemoveMethod?.GetCciAdapter(); RoslynDebug.Assert((object?)removeMethod != null); return removeMethod; } } bool Cci.IEventDefinition.IsRuntimeSpecial { get { CheckDefinitionInvariant(); return AdaptedEventSymbol.HasRuntimeSpecialName; } } bool Cci.IEventDefinition.IsSpecialName { get { CheckDefinitionInvariant(); return AdaptedEventSymbol.HasSpecialName; } } Cci.IMethodReference? Cci.IEventDefinition.Caller { get { CheckDefinitionInvariant(); return null; // C# doesn't use the raise/fire accessor } } Cci.ITypeReference Cci.IEventDefinition.GetType(EmitContext context) { return ((PEModuleBuilder)context.Module).Translate(AdaptedEventSymbol.Type, syntaxNodeOpt: (CSharpSyntaxNode?)context.SyntaxNode, diagnostics: context.Diagnostics); } #endregion #region ITypeDefinitionMember Members Cci.ITypeDefinition Cci.ITypeDefinitionMember.ContainingTypeDefinition { get { CheckDefinitionInvariant(); return AdaptedEventSymbol.ContainingType.GetCciAdapter(); } } Cci.TypeMemberVisibility Cci.ITypeDefinitionMember.Visibility { get { CheckDefinitionInvariant(); return PEModuleBuilder.MemberVisibility(AdaptedEventSymbol); } } #endregion #region ITypeMemberReference Members Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) { CheckDefinitionInvariant(); return AdaptedEventSymbol.ContainingType.GetCciAdapter(); } #endregion #region IReference Members void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor) { CheckDefinitionInvariant(); visitor.Visit((Cci.IEventDefinition)this); } Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) { CheckDefinitionInvariant(); return this; } #endregion #region INamedEntity Members string Cci.INamedEntity.Name { get { CheckDefinitionInvariant(); return AdaptedEventSymbol.MetadataName; } } #endregion } internal partial class EventSymbol { #if DEBUG private EventSymbolAdapter? _lazyAdapter; protected sealed override SymbolAdapter GetCciAdapterImpl() => GetCciAdapter(); internal new EventSymbolAdapter GetCciAdapter() { if (_lazyAdapter is null) { return InterlockedOperations.Initialize(ref _lazyAdapter, new EventSymbolAdapter(this)); } return _lazyAdapter; } #else internal EventSymbol AdaptedEventSymbol => this; internal new EventSymbol GetCciAdapter() { return this; } #endif internal virtual bool HasRuntimeSpecialName { get { CheckDefinitionInvariant(); return false; } } } #if DEBUG internal partial class EventSymbolAdapter { internal EventSymbolAdapter(EventSymbol underlyingEventSymbol) { AdaptedEventSymbol = underlyingEventSymbol; } internal sealed override Symbol AdaptedSymbol => AdaptedEventSymbol; internal EventSymbol AdaptedEventSymbol { get; } } #endif }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Analyzers/CSharp/Analyzers/AddRequiredParentheses/CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnalysis.AddRequiredParentheses; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Precedence; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; namespace Microsoft.CodeAnalysis.CSharp.AddRequiredParentheses { [DiagnosticAnalyzer(LanguageNames.CSharp)] internal class CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer : AbstractAddRequiredParenthesesDiagnosticAnalyzer< PatternSyntax, BinaryPatternSyntax, SyntaxKind> { public CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer() : base(CSharpPatternPrecedenceService.Instance) { } private static readonly ImmutableArray<SyntaxKind> s_kinds = ImmutableArray.Create( SyntaxKind.AndPattern, SyntaxKind.OrPattern); protected override ImmutableArray<SyntaxKind> GetSyntaxNodeKinds() => s_kinds; protected override int GetPrecedence(BinaryPatternSyntax pattern) => (int)pattern.GetOperatorPrecedence(); protected override bool IsBinaryLike(PatternSyntax node) => node is BinaryPatternSyntax; protected override (PatternSyntax, SyntaxToken, PatternSyntax) GetPartsOfBinaryLike(BinaryPatternSyntax binaryPattern) { Debug.Assert(IsBinaryLike(binaryPattern)); return (binaryPattern.Left, binaryPattern.OperatorToken, binaryPattern.Right); } protected override PatternSyntax? TryGetAppropriateParent(BinaryPatternSyntax binaryLike) => binaryLike.Parent as PatternSyntax; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnalysis.AddRequiredParentheses; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Precedence; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; namespace Microsoft.CodeAnalysis.CSharp.AddRequiredParentheses { [DiagnosticAnalyzer(LanguageNames.CSharp)] internal class CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer : AbstractAddRequiredParenthesesDiagnosticAnalyzer< PatternSyntax, BinaryPatternSyntax, SyntaxKind> { public CSharpAddRequiredPatternParenthesesDiagnosticAnalyzer() : base(CSharpPatternPrecedenceService.Instance) { } private static readonly ImmutableArray<SyntaxKind> s_kinds = ImmutableArray.Create( SyntaxKind.AndPattern, SyntaxKind.OrPattern); protected override ImmutableArray<SyntaxKind> GetSyntaxNodeKinds() => s_kinds; protected override int GetPrecedence(BinaryPatternSyntax pattern) => (int)pattern.GetOperatorPrecedence(); protected override bool IsBinaryLike(PatternSyntax node) => node is BinaryPatternSyntax; protected override (PatternSyntax, SyntaxToken, PatternSyntax) GetPartsOfBinaryLike(BinaryPatternSyntax binaryPattern) { Debug.Assert(IsBinaryLike(binaryPattern)); return (binaryPattern.Left, binaryPattern.OperatorToken, binaryPattern.Right); } protected override PatternSyntax? TryGetAppropriateParent(BinaryPatternSyntax binaryLike) => binaryLike.Parent as PatternSyntax; } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Features/Core/Portable/RQName/Nodes/RQNullType.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.CodeAnalysis.Features.RQName.SimpleTree; namespace Microsoft.CodeAnalysis.Features.RQName.Nodes { internal class RQNullType : RQType { public static readonly RQNullType Singleton = new(); private RQNullType() { } public override SimpleTreeNode ToSimpleTree() => new SimpleLeafNode(RQNameStrings.Null); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.CodeAnalysis.Features.RQName.SimpleTree; namespace Microsoft.CodeAnalysis.Features.RQName.Nodes { internal class RQNullType : RQType { public static readonly RQNullType Singleton = new(); private RQNullType() { } public override SimpleTreeNode ToSimpleTree() => new SimpleLeafNode(RQNameStrings.Null); } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/VisualBasic/Test/Semantic/Semantics/MissingRuntimeHelpers.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.IO Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.SpecialType Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic Imports Microsoft.CodeAnalysis.VisualBasic.OverloadResolution Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports Roslyn.Test.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics Public Class MissingRuntimeHelpers Inherits BasicTestBase <Fact> Public Sub SpecialMembers() Dim compilationDef = <compilation name="SpecialMembers"> <file name="a.vb"> Class Program Sub Main() Dim Ob As Object = Nothing Dim St As String = Nothing Dim [Do] as Double = 0 Dim Da as Date = Nothing Dim De as Decimal = Nothing Dim ChArray As Char() = Nothing Test([Do] ^ [Do]) Test(Da > Da) Test(De > De) Test(De + De) Test(St + St) Test(-De) Test(CType(ChArray, String)) Test(CDec([Do])) Test(CInt(De)) Test(CInt([Do])) End Sub Sub Test(x As Object) End Sub End Class Namespace System Public Class [Object] End Class Public Class [String] End Class Public Class Array End Class Public Structure Void End Structure Public Structure [Double] End Structure Public Structure Int32 End Structure Public Structure [Boolean] End Structure Public Structure DateTime End Structure Public Structure [Decimal] End Structure Public Structure [Char] End Structure Public Class ValueType End Class End Namespace </file> </compilation> Dim compilation = CompilationUtils.CreateEmptyCompilationWithReferences(compilationDef, New MetadataReference() {}) AssertTheseEmitDiagnostics(compilation, <expected> BC35000: Requested operation is not available because the runtime library function 'System.DateTime.New' is not defined. Dim Da as Date = Nothing ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Decimal.New' is not defined. Dim De as Decimal = Nothing ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Math.Pow' is not defined. Test([Do] ^ [Do]) ~~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.DateTime.Compare' is not defined. Test(Da > Da) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Decimal.Compare' is not defined. Test(De > De) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Decimal.Add' is not defined. Test(De + De) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.String.Concat' is not defined. Test(St + St) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Decimal.Negate' is not defined. Test(-De) ~~~ BC35000: Requested operation is not available because the runtime library function 'System.String.New' is not defined. Test(CType(ChArray, String)) ~~~~~~~~~~~~~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Decimal.New' is not defined. Test(CDec([Do])) ~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Convert.ToInt32' is not defined. Test(CInt(De)) ~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Math.Round' is not defined. Test(CInt([Do])) ~~~~~~~~~~ </expected>) End Sub <Fact> Public Sub WellKnownMembers() Dim compilationDef = <compilation name="WellKnownMembers"> <file name="a.vb"> Class Program Sub Main() Dim Ob As Object = Nothing Dim St as String = Nothing Dim [Do] as Double = 0 Dim Bo As Boolean = false Test(St > St) Test(Ob AndAlso Ob) Test(Ob + Ob) Test(St Like St) Test(Ob > Ob) Test(Not Ob) Test(CType(Ob, Char())) Test(CLng(Ob)) Test(CStr([Do])) Test(CInt(St)) Test(CDec(Bo)) End Sub Sub Test(x As Object) End Sub End Class </file> </compilation> Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40(compilationDef) AssertTheseEmitDiagnostics(compilation, <expected> BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Operators.CompareString' is not defined. Test(St > St) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean' is not defined. Test(Ob AndAlso Ob) ~~~~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Operators.AddObject' is not defined. Test(Ob + Ob) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.LikeOperator.LikeString' is not defined. Test(St Like St) ~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Operators.CompareObjectGreater' is not defined. Test(Ob > Ob) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Operators.NotObject' is not defined. Test(Not Ob) ~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Conversions.ToCharArrayRankOne' is not defined. Test(CType(Ob, Char())) ~~~~~~~~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Conversions.ToLong' is not defined. Test(CLng(Ob)) ~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Conversions.ToString' is not defined. Test(CStr([Do])) ~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger' is not defined. Test(CInt(St)) ~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Conversions.ToDecimal' is not defined. Test(CDec(Bo)) ~~~~~~~~ </expected>) End Sub <Fact> Public Sub MissingCompareExchange() Dim compilationDef = <compilation name="SpecialMembers"> <file name="a.vb"> Delegate Sub E1() Class Program public event e as E1 public shared Sub Main() dim v as new Program AddHandler v.e, AddressOf Main End Sub End Class Namespace System Public Class [Object] End Class Public Class [String] End Class Public Class Array End Class Public Structure Void End Structure Public Structure [Double] End Structure Public Structure Int32 End Structure Public Structure [Boolean] End Structure Public Structure DateTime End Structure Public Structure [Decimal] End Structure Public Structure [Char] End Structure Public Structure IntPtr End Structure Public Class ValueType End Class Public Class [Delegate] End Class Public Class MulticastDelegate End Class End Namespace </file> </compilation> Dim compilation = CompilationUtils.CreateEmptyCompilationWithReferences(compilationDef, New MetadataReference() {}) CompilationUtils.AssertTheseDeclarationDiagnostics(compilation, <expected> BC30002: Type 'System.AsyncCallback' is not defined. Delegate Sub E1() ~~~~~~~~~~~~~~~~~ BC30002: Type 'System.IAsyncResult' is not defined. Delegate Sub E1() ~~~~~~~~~~~~~~~~~ </expected>) CompilationUtils.AssertTheseCompileDiagnostics(compilation, <expected> BC30002: Type 'System.AsyncCallback' is not defined. Delegate Sub E1() ~~~~~~~~~~~~~~~~~ BC30002: Type 'System.IAsyncResult' is not defined. Delegate Sub E1() ~~~~~~~~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Delegate.Combine' is not defined. public event e as E1 ~~~~~~~~~~~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Delegate.Remove' is not defined. public event e as E1 ~~~~~~~~~~~~~~~~~~~~ </expected>) End Sub <Fact> Public Sub MalformedSystemArray() Dim compilationDef = <compilation name="SpecialMembers"> <file name="a.vb"> Class Program public shared Sub Main() dim x() as integer = nothing for each e in x next End Sub End Class Namespace System Public Class [Object] End Class Public Class [String] End Class Public Class Array Public Readonly Property Length as integer Get return 0 end get end property End Class Public Structure Void End Structure Public Structure [Double] End Structure Public Structure Int32 End Structure Public Structure [Boolean] End Structure Public Structure DateTime End Structure Public Structure [Decimal] End Structure Public Structure [Char] End Structure Public Structure IntPtr End Structure Public Class ValueType End Class End Namespace </file> </compilation> Dim compilation = CompilationUtils.CreateEmptyCompilationWithReferences(compilationDef, New MetadataReference() {}) CompilationUtils.AssertTheseCompileDiagnostics(compilation, <expected> BC32023: Expression is of type 'Integer()', which is not a collection type. for each e in x ~ </expected>) CompilationUtils.AssertTheseDiagnostics(compilation, <expected> BC32023: Expression is of type 'Integer()', which is not a collection type. for each e in x ~ </expected>) End Sub End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.IO Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.SpecialType Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic Imports Microsoft.CodeAnalysis.VisualBasic.OverloadResolution Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports Roslyn.Test.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics Public Class MissingRuntimeHelpers Inherits BasicTestBase <Fact> Public Sub SpecialMembers() Dim compilationDef = <compilation name="SpecialMembers"> <file name="a.vb"> Class Program Sub Main() Dim Ob As Object = Nothing Dim St As String = Nothing Dim [Do] as Double = 0 Dim Da as Date = Nothing Dim De as Decimal = Nothing Dim ChArray As Char() = Nothing Test([Do] ^ [Do]) Test(Da > Da) Test(De > De) Test(De + De) Test(St + St) Test(-De) Test(CType(ChArray, String)) Test(CDec([Do])) Test(CInt(De)) Test(CInt([Do])) End Sub Sub Test(x As Object) End Sub End Class Namespace System Public Class [Object] End Class Public Class [String] End Class Public Class Array End Class Public Structure Void End Structure Public Structure [Double] End Structure Public Structure Int32 End Structure Public Structure [Boolean] End Structure Public Structure DateTime End Structure Public Structure [Decimal] End Structure Public Structure [Char] End Structure Public Class ValueType End Class End Namespace </file> </compilation> Dim compilation = CompilationUtils.CreateEmptyCompilationWithReferences(compilationDef, New MetadataReference() {}) AssertTheseEmitDiagnostics(compilation, <expected> BC35000: Requested operation is not available because the runtime library function 'System.DateTime.New' is not defined. Dim Da as Date = Nothing ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Decimal.New' is not defined. Dim De as Decimal = Nothing ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Math.Pow' is not defined. Test([Do] ^ [Do]) ~~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.DateTime.Compare' is not defined. Test(Da > Da) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Decimal.Compare' is not defined. Test(De > De) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Decimal.Add' is not defined. Test(De + De) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.String.Concat' is not defined. Test(St + St) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Decimal.Negate' is not defined. Test(-De) ~~~ BC35000: Requested operation is not available because the runtime library function 'System.String.New' is not defined. Test(CType(ChArray, String)) ~~~~~~~~~~~~~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Decimal.New' is not defined. Test(CDec([Do])) ~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Convert.ToInt32' is not defined. Test(CInt(De)) ~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Math.Round' is not defined. Test(CInt([Do])) ~~~~~~~~~~ </expected>) End Sub <Fact> Public Sub WellKnownMembers() Dim compilationDef = <compilation name="WellKnownMembers"> <file name="a.vb"> Class Program Sub Main() Dim Ob As Object = Nothing Dim St as String = Nothing Dim [Do] as Double = 0 Dim Bo As Boolean = false Test(St > St) Test(Ob AndAlso Ob) Test(Ob + Ob) Test(St Like St) Test(Ob > Ob) Test(Not Ob) Test(CType(Ob, Char())) Test(CLng(Ob)) Test(CStr([Do])) Test(CInt(St)) Test(CDec(Bo)) End Sub Sub Test(x As Object) End Sub End Class </file> </compilation> Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40(compilationDef) AssertTheseEmitDiagnostics(compilation, <expected> BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Operators.CompareString' is not defined. Test(St > St) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Conversions.ToBoolean' is not defined. Test(Ob AndAlso Ob) ~~~~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Operators.AddObject' is not defined. Test(Ob + Ob) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.LikeOperator.LikeString' is not defined. Test(St Like St) ~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Operators.CompareObjectGreater' is not defined. Test(Ob > Ob) ~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Operators.NotObject' is not defined. Test(Not Ob) ~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Conversions.ToCharArrayRankOne' is not defined. Test(CType(Ob, Char())) ~~~~~~~~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Conversions.ToLong' is not defined. Test(CLng(Ob)) ~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Conversions.ToString' is not defined. Test(CStr([Do])) ~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger' is not defined. Test(CInt(St)) ~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Conversions.ToDecimal' is not defined. Test(CDec(Bo)) ~~~~~~~~ </expected>) End Sub <Fact> Public Sub MissingCompareExchange() Dim compilationDef = <compilation name="SpecialMembers"> <file name="a.vb"> Delegate Sub E1() Class Program public event e as E1 public shared Sub Main() dim v as new Program AddHandler v.e, AddressOf Main End Sub End Class Namespace System Public Class [Object] End Class Public Class [String] End Class Public Class Array End Class Public Structure Void End Structure Public Structure [Double] End Structure Public Structure Int32 End Structure Public Structure [Boolean] End Structure Public Structure DateTime End Structure Public Structure [Decimal] End Structure Public Structure [Char] End Structure Public Structure IntPtr End Structure Public Class ValueType End Class Public Class [Delegate] End Class Public Class MulticastDelegate End Class End Namespace </file> </compilation> Dim compilation = CompilationUtils.CreateEmptyCompilationWithReferences(compilationDef, New MetadataReference() {}) CompilationUtils.AssertTheseDeclarationDiagnostics(compilation, <expected> BC30002: Type 'System.AsyncCallback' is not defined. Delegate Sub E1() ~~~~~~~~~~~~~~~~~ BC30002: Type 'System.IAsyncResult' is not defined. Delegate Sub E1() ~~~~~~~~~~~~~~~~~ </expected>) CompilationUtils.AssertTheseCompileDiagnostics(compilation, <expected> BC30002: Type 'System.AsyncCallback' is not defined. Delegate Sub E1() ~~~~~~~~~~~~~~~~~ BC30002: Type 'System.IAsyncResult' is not defined. Delegate Sub E1() ~~~~~~~~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Delegate.Combine' is not defined. public event e as E1 ~~~~~~~~~~~~~~~~~~~~ BC35000: Requested operation is not available because the runtime library function 'System.Delegate.Remove' is not defined. public event e as E1 ~~~~~~~~~~~~~~~~~~~~ </expected>) End Sub <Fact> Public Sub MalformedSystemArray() Dim compilationDef = <compilation name="SpecialMembers"> <file name="a.vb"> Class Program public shared Sub Main() dim x() as integer = nothing for each e in x next End Sub End Class Namespace System Public Class [Object] End Class Public Class [String] End Class Public Class Array Public Readonly Property Length as integer Get return 0 end get end property End Class Public Structure Void End Structure Public Structure [Double] End Structure Public Structure Int32 End Structure Public Structure [Boolean] End Structure Public Structure DateTime End Structure Public Structure [Decimal] End Structure Public Structure [Char] End Structure Public Structure IntPtr End Structure Public Class ValueType End Class End Namespace </file> </compilation> Dim compilation = CompilationUtils.CreateEmptyCompilationWithReferences(compilationDef, New MetadataReference() {}) CompilationUtils.AssertTheseCompileDiagnostics(compilation, <expected> BC32023: Expression is of type 'Integer()', which is not a collection type. for each e in x ~ </expected>) CompilationUtils.AssertTheseDiagnostics(compilation, <expected> BC32023: Expression is of type 'Integer()', which is not a collection type. for each e in x ~ </expected>) End Sub End Class End Namespace
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Workspaces/Core/Portable/TemporaryStorage/TemporaryStorageServiceFactory.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Immutable; using System.Composition; using System.Diagnostics; using System.IO; using System.IO.MemoryMappedFiles; using System.Runtime.InteropServices; using System.Text; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.Shared.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Host { [ExportWorkspaceServiceFactory(typeof(ITemporaryStorageService), ServiceLayer.Default), Shared] internal partial class TemporaryStorageServiceFactory : IWorkspaceServiceFactory { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public TemporaryStorageServiceFactory() { } public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices) { var textFactory = workspaceServices.GetRequiredService<ITextFactoryService>(); // MemoryMapped files which are used by the TemporaryStorageService are present in .NET Framework (including Mono) // and .NET Core Windows. For non-Windows .NET Core scenarios, we can return the TrivialTemporaryStorageService // until https://github.com/dotnet/runtime/issues/30878 is fixed. return PlatformInformation.IsWindows || PlatformInformation.IsRunningOnMono ? (ITemporaryStorageService)new TemporaryStorageService(textFactory) : TrivialTemporaryStorageService.Instance; } /// <summary> /// Temporarily stores text and streams in memory mapped files. /// </summary> internal class TemporaryStorageService : ITemporaryStorageService2 { /// <summary> /// The maximum size in bytes of a single storage unit in a memory mapped file which is shared with other /// storage units. /// </summary> /// <remarks> /// <para>This value was arbitrarily chosen and appears to work well. Can be changed if data suggests /// something better.</para> /// </remarks> /// <seealso cref="_weakFileReference"/> private const long SingleFileThreshold = 128 * 1024; /// <summary> /// The size in bytes of a memory mapped file created to store multiple temporary objects. /// </summary> /// <remarks> /// <para>This value was arbitrarily chosen and appears to work well. Can be changed if data suggests /// something better.</para> /// </remarks> /// <seealso cref="_weakFileReference"/> private const long MultiFileBlockSize = SingleFileThreshold * 32; private readonly ITextFactoryService _textFactory; /// <summary> /// The synchronization object for accessing the memory mapped file related fields (indicated in the remarks /// of each field). /// </summary> /// <remarks> /// <para>PERF DEV NOTE: A concurrent (but complex) implementation of this type with identical semantics is /// available in source control history. The use of exclusive locks was not causing any measurable /// performance overhead even on 28-thread machines at the time this was written.</para> /// </remarks> private readonly object _gate = new(); /// <summary> /// The most recent memory mapped file for creating multiple storage units. It will be used via bump-pointer /// allocation until space is no longer available in it. /// </summary> /// <remarks> /// <para>Access should be synchronized on <see cref="_gate"/>.</para> /// </remarks> private ReferenceCountedDisposable<MemoryMappedFile>.WeakReference _weakFileReference; /// <summary>The name of the current memory mapped file for multiple storage units.</summary> /// <remarks> /// <para>Access should be synchronized on <see cref="_gate"/>.</para> /// </remarks> /// <seealso cref="_weakFileReference"/> private string? _name; /// <summary>The total size of the current memory mapped file for multiple storage units.</summary> /// <remarks> /// <para>Access should be synchronized on <see cref="_gate"/>.</para> /// </remarks> /// <seealso cref="_weakFileReference"/> private long _fileSize; /// <summary> /// The offset into the current memory mapped file where the next storage unit can be held. /// </summary> /// <remarks> /// <para>Access should be synchronized on <see cref="_gate"/>.</para> /// </remarks> /// <seealso cref="_weakFileReference"/> private long _offset; public TemporaryStorageService(ITextFactoryService textFactory) => _textFactory = textFactory; public ITemporaryTextStorage CreateTemporaryTextStorage(CancellationToken cancellationToken) => new TemporaryTextStorage(this); public ITemporaryTextStorage AttachTemporaryTextStorage(string storageName, long offset, long size, SourceHashAlgorithm checksumAlgorithm, Encoding? encoding, CancellationToken cancellationToken) => new TemporaryTextStorage(this, storageName, offset, size, checksumAlgorithm, encoding); public ITemporaryStreamStorage CreateTemporaryStreamStorage(CancellationToken cancellationToken) => new TemporaryStreamStorage(this); public ITemporaryStreamStorage AttachTemporaryStreamStorage(string storageName, long offset, long size, CancellationToken cancellationToken) => new TemporaryStreamStorage(this, storageName, offset, size); /// <summary> /// Allocate shared storage of a specified size. /// </summary> /// <remarks> /// <para>"Small" requests are fulfilled from oversized memory mapped files which support several individual /// storage units. Larger requests are allocated in their own memory mapped files.</para> /// </remarks> /// <param name="size">The size of the shared storage block to allocate.</param> /// <returns>A <see cref="MemoryMappedInfo"/> describing the allocated block.</returns> private MemoryMappedInfo CreateTemporaryStorage(long size) { if (size >= SingleFileThreshold) { // Larger blocks are allocated separately var mapName = CreateUniqueName(size); var storage = MemoryMappedFile.CreateNew(mapName, size); return new MemoryMappedInfo(new ReferenceCountedDisposable<MemoryMappedFile>(storage), mapName, offset: 0, size: size); } lock (_gate) { // Obtain a reference to the memory mapped file, creating one if necessary. If a reference counted // handle to a memory mapped file is obtained in this section, it must either be disposed before // returning or returned to the caller who will own it through the MemoryMappedInfo. var reference = _weakFileReference.TryAddReference(); if (reference == null || _offset + size > _fileSize) { var mapName = CreateUniqueName(MultiFileBlockSize); var file = MemoryMappedFile.CreateNew(mapName, MultiFileBlockSize); reference = new ReferenceCountedDisposable<MemoryMappedFile>(file); _weakFileReference = new ReferenceCountedDisposable<MemoryMappedFile>.WeakReference(reference); _name = mapName; _fileSize = MultiFileBlockSize; _offset = size; return new MemoryMappedInfo(reference, _name, offset: 0, size: size); } else { // Reserve additional space in the existing storage location Contract.ThrowIfNull(_name); _offset += size; return new MemoryMappedInfo(reference, _name, _offset - size, size); } } } public static string CreateUniqueName(long size) => "Roslyn Temp Storage " + size.ToString() + " " + Guid.NewGuid().ToString("N"); private sealed class TemporaryTextStorage : ITemporaryTextStorage, ITemporaryTextStorageWithName { private readonly TemporaryStorageService _service; private SourceHashAlgorithm _checksumAlgorithm; private Encoding? _encoding; private ImmutableArray<byte> _checksum; private MemoryMappedInfo? _memoryMappedInfo; public TemporaryTextStorage(TemporaryStorageService service) => _service = service; public TemporaryTextStorage(TemporaryStorageService service, string storageName, long offset, long size, SourceHashAlgorithm checksumAlgorithm, Encoding? encoding) { _service = service; _checksumAlgorithm = checksumAlgorithm; _encoding = encoding; _memoryMappedInfo = new MemoryMappedInfo(storageName, offset, size); } // TODO: cleanup https://github.com/dotnet/roslyn/issues/43037 // Offet, Size not accessed if Name is null public string? Name => _memoryMappedInfo?.Name; public long Offset => _memoryMappedInfo!.Offset; public long Size => _memoryMappedInfo!.Size; public SourceHashAlgorithm ChecksumAlgorithm => _checksumAlgorithm; public Encoding? Encoding => _encoding; public ImmutableArray<byte> GetChecksum() { if (_checksum.IsDefault) { ImmutableInterlocked.InterlockedInitialize(ref _checksum, ReadText(CancellationToken.None).GetChecksum()); } return _checksum; } public void Dispose() { // Destructors of SafeHandle and FileStream in MemoryMappedFile // will eventually release resources if this Dispose is not called // explicitly _memoryMappedInfo?.Dispose(); _memoryMappedInfo = null; _encoding = null; } public SourceText ReadText(CancellationToken cancellationToken) { if (_memoryMappedInfo == null) { throw new InvalidOperationException(); } using (Logger.LogBlock(FunctionId.TemporaryStorageServiceFactory_ReadText, cancellationToken)) { using var stream = _memoryMappedInfo.CreateReadableStream(); using var reader = CreateTextReaderFromTemporaryStorage((ISupportDirectMemoryAccess)stream, (int)stream.Length); // we pass in encoding we got from original source text even if it is null. return _service._textFactory.CreateText(reader, _encoding, cancellationToken); } } public Task<SourceText> ReadTextAsync(CancellationToken cancellationToken) { // There is a reason for implementing it like this: proper async implementation // that reads the underlying memory mapped file stream in an asynchronous fashion // doesn't actually work. Windows doesn't offer // any non-blocking way to read from a memory mapped file; the underlying memcpy // may block as the memory pages back in and that's something you have to live // with. Therefore, any implementation that attempts to use async will still // always be blocking at least one threadpool thread in the memcpy in the case // of a page fault. Therefore, if we're going to be blocking a thread, we should // just block one thread and do the whole thing at once vs. a fake "async" // implementation which will continue to requeue work back to the thread pool. return Task.Factory.StartNew(() => ReadText(cancellationToken), cancellationToken, TaskCreationOptions.None, TaskScheduler.Default); } public void WriteText(SourceText text, CancellationToken cancellationToken) { if (_memoryMappedInfo != null) { throw new InvalidOperationException(); } using (Logger.LogBlock(FunctionId.TemporaryStorageServiceFactory_WriteText, cancellationToken)) { _checksumAlgorithm = text.ChecksumAlgorithm; _encoding = text.Encoding; // the method we use to get text out of SourceText uses Unicode (2bytes per char). var size = Encoding.Unicode.GetMaxByteCount(text.Length); _memoryMappedInfo = _service.CreateTemporaryStorage(size); // Write the source text out as Unicode. We expect that to be cheap. using var stream = _memoryMappedInfo.CreateWritableStream(); using var writer = new StreamWriter(stream, Encoding.Unicode); text.Write(writer, cancellationToken); } } public Task WriteTextAsync(SourceText text, CancellationToken cancellationToken = default) { // See commentary in ReadTextAsync for why this is implemented this way. return Task.Factory.StartNew(() => WriteText(text, cancellationToken), cancellationToken, TaskCreationOptions.None, TaskScheduler.Default); } private static unsafe TextReader CreateTextReaderFromTemporaryStorage(ISupportDirectMemoryAccess accessor, int streamLength) { var src = (char*)accessor.GetPointer(); // BOM: Unicode, little endian // Skip the BOM when creating the reader Debug.Assert(*src == 0xFEFF); return new DirectMemoryAccessStreamReader(src + 1, streamLength / sizeof(char) - 1); } } private class TemporaryStreamStorage : ITemporaryStreamStorage, ITemporaryStorageWithName { private readonly TemporaryStorageService _service; private MemoryMappedInfo? _memoryMappedInfo; public TemporaryStreamStorage(TemporaryStorageService service) => _service = service; public TemporaryStreamStorage(TemporaryStorageService service, string storageName, long offset, long size) { _service = service; _memoryMappedInfo = new MemoryMappedInfo(storageName, offset, size); } // TODO: clean up https://github.com/dotnet/roslyn/issues/43037 // Offset, Size is only used when Name is not null. public string? Name => _memoryMappedInfo?.Name; public long Offset => _memoryMappedInfo!.Offset; public long Size => _memoryMappedInfo!.Size; public void Dispose() { // Destructors of SafeHandle and FileStream in MemoryMappedFile // will eventually release resources if this Dispose is not called // explicitly _memoryMappedInfo?.Dispose(); _memoryMappedInfo = null; } public Stream ReadStream(CancellationToken cancellationToken) { if (_memoryMappedInfo == null) { throw new InvalidOperationException(); } using (Logger.LogBlock(FunctionId.TemporaryStorageServiceFactory_ReadStream, cancellationToken)) { cancellationToken.ThrowIfCancellationRequested(); return _memoryMappedInfo.CreateReadableStream(); } } public Task<Stream> ReadStreamAsync(CancellationToken cancellationToken = default) { // See commentary in ReadTextAsync for why this is implemented this way. return Task.Factory.StartNew(() => ReadStream(cancellationToken), cancellationToken, TaskCreationOptions.None, TaskScheduler.Default); } public void WriteStream(Stream stream, CancellationToken cancellationToken = default) { // The Wait() here will not actually block, since with useAsync: false, the // entire operation will already be done when WaitStreamMaybeAsync completes. WriteStreamMaybeAsync(stream, useAsync: false, cancellationToken: cancellationToken).GetAwaiter().GetResult(); } public Task WriteStreamAsync(Stream stream, CancellationToken cancellationToken = default) => WriteStreamMaybeAsync(stream, useAsync: true, cancellationToken: cancellationToken); private async Task WriteStreamMaybeAsync(Stream stream, bool useAsync, CancellationToken cancellationToken) { if (_memoryMappedInfo != null) { throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once); } using (Logger.LogBlock(FunctionId.TemporaryStorageServiceFactory_WriteStream, cancellationToken)) { var size = stream.Length; _memoryMappedInfo = _service.CreateTemporaryStorage(size); using var viewStream = _memoryMappedInfo.CreateWritableStream(); var buffer = SharedPools.ByteArray.Allocate(); try { while (true) { int count; if (useAsync) { count = await stream.ReadAsync(buffer, 0, buffer.Length, cancellationToken).ConfigureAwait(false); } else { count = stream.Read(buffer, 0, buffer.Length); } if (count == 0) { break; } viewStream.Write(buffer, 0, count); } } finally { SharedPools.ByteArray.Free(buffer); } } } } } internal unsafe class DirectMemoryAccessStreamReader : TextReaderWithLength { private char* _position; private readonly char* _end; public DirectMemoryAccessStreamReader(char* src, int length) : base(length) { RoslynDebug.Assert(src != null); RoslynDebug.Assert(length >= 0); _position = src; _end = _position + length; } public override int Peek() { if (_position >= _end) { return -1; } return *_position; } public override int Read() { if (_position >= _end) { return -1; } return *_position++; } public override int Read(char[] buffer, int index, int count) { if (buffer == null) { throw new ArgumentNullException(nameof(buffer)); } if (index < 0 || index >= buffer.Length) { throw new ArgumentOutOfRangeException(nameof(index)); } if (count < 0 || (index + count) > buffer.Length) { throw new ArgumentOutOfRangeException(nameof(count)); } count = Math.Min(count, (int)(_end - _position)); if (count > 0) { Marshal.Copy((IntPtr)_position, buffer, index, count); _position += count; } return count; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Immutable; using System.Composition; using System.Diagnostics; using System.IO; using System.IO.MemoryMappedFiles; using System.Runtime.InteropServices; using System.Text; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.Shared.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Host { [ExportWorkspaceServiceFactory(typeof(ITemporaryStorageService), ServiceLayer.Default), Shared] internal partial class TemporaryStorageServiceFactory : IWorkspaceServiceFactory { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public TemporaryStorageServiceFactory() { } public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices) { var textFactory = workspaceServices.GetRequiredService<ITextFactoryService>(); // MemoryMapped files which are used by the TemporaryStorageService are present in .NET Framework (including Mono) // and .NET Core Windows. For non-Windows .NET Core scenarios, we can return the TrivialTemporaryStorageService // until https://github.com/dotnet/runtime/issues/30878 is fixed. return PlatformInformation.IsWindows || PlatformInformation.IsRunningOnMono ? (ITemporaryStorageService)new TemporaryStorageService(textFactory) : TrivialTemporaryStorageService.Instance; } /// <summary> /// Temporarily stores text and streams in memory mapped files. /// </summary> internal class TemporaryStorageService : ITemporaryStorageService2 { /// <summary> /// The maximum size in bytes of a single storage unit in a memory mapped file which is shared with other /// storage units. /// </summary> /// <remarks> /// <para>This value was arbitrarily chosen and appears to work well. Can be changed if data suggests /// something better.</para> /// </remarks> /// <seealso cref="_weakFileReference"/> private const long SingleFileThreshold = 128 * 1024; /// <summary> /// The size in bytes of a memory mapped file created to store multiple temporary objects. /// </summary> /// <remarks> /// <para>This value was arbitrarily chosen and appears to work well. Can be changed if data suggests /// something better.</para> /// </remarks> /// <seealso cref="_weakFileReference"/> private const long MultiFileBlockSize = SingleFileThreshold * 32; private readonly ITextFactoryService _textFactory; /// <summary> /// The synchronization object for accessing the memory mapped file related fields (indicated in the remarks /// of each field). /// </summary> /// <remarks> /// <para>PERF DEV NOTE: A concurrent (but complex) implementation of this type with identical semantics is /// available in source control history. The use of exclusive locks was not causing any measurable /// performance overhead even on 28-thread machines at the time this was written.</para> /// </remarks> private readonly object _gate = new(); /// <summary> /// The most recent memory mapped file for creating multiple storage units. It will be used via bump-pointer /// allocation until space is no longer available in it. /// </summary> /// <remarks> /// <para>Access should be synchronized on <see cref="_gate"/>.</para> /// </remarks> private ReferenceCountedDisposable<MemoryMappedFile>.WeakReference _weakFileReference; /// <summary>The name of the current memory mapped file for multiple storage units.</summary> /// <remarks> /// <para>Access should be synchronized on <see cref="_gate"/>.</para> /// </remarks> /// <seealso cref="_weakFileReference"/> private string? _name; /// <summary>The total size of the current memory mapped file for multiple storage units.</summary> /// <remarks> /// <para>Access should be synchronized on <see cref="_gate"/>.</para> /// </remarks> /// <seealso cref="_weakFileReference"/> private long _fileSize; /// <summary> /// The offset into the current memory mapped file where the next storage unit can be held. /// </summary> /// <remarks> /// <para>Access should be synchronized on <see cref="_gate"/>.</para> /// </remarks> /// <seealso cref="_weakFileReference"/> private long _offset; public TemporaryStorageService(ITextFactoryService textFactory) => _textFactory = textFactory; public ITemporaryTextStorage CreateTemporaryTextStorage(CancellationToken cancellationToken) => new TemporaryTextStorage(this); public ITemporaryTextStorage AttachTemporaryTextStorage(string storageName, long offset, long size, SourceHashAlgorithm checksumAlgorithm, Encoding? encoding, CancellationToken cancellationToken) => new TemporaryTextStorage(this, storageName, offset, size, checksumAlgorithm, encoding); public ITemporaryStreamStorage CreateTemporaryStreamStorage(CancellationToken cancellationToken) => new TemporaryStreamStorage(this); public ITemporaryStreamStorage AttachTemporaryStreamStorage(string storageName, long offset, long size, CancellationToken cancellationToken) => new TemporaryStreamStorage(this, storageName, offset, size); /// <summary> /// Allocate shared storage of a specified size. /// </summary> /// <remarks> /// <para>"Small" requests are fulfilled from oversized memory mapped files which support several individual /// storage units. Larger requests are allocated in their own memory mapped files.</para> /// </remarks> /// <param name="size">The size of the shared storage block to allocate.</param> /// <returns>A <see cref="MemoryMappedInfo"/> describing the allocated block.</returns> private MemoryMappedInfo CreateTemporaryStorage(long size) { if (size >= SingleFileThreshold) { // Larger blocks are allocated separately var mapName = CreateUniqueName(size); var storage = MemoryMappedFile.CreateNew(mapName, size); return new MemoryMappedInfo(new ReferenceCountedDisposable<MemoryMappedFile>(storage), mapName, offset: 0, size: size); } lock (_gate) { // Obtain a reference to the memory mapped file, creating one if necessary. If a reference counted // handle to a memory mapped file is obtained in this section, it must either be disposed before // returning or returned to the caller who will own it through the MemoryMappedInfo. var reference = _weakFileReference.TryAddReference(); if (reference == null || _offset + size > _fileSize) { var mapName = CreateUniqueName(MultiFileBlockSize); var file = MemoryMappedFile.CreateNew(mapName, MultiFileBlockSize); reference = new ReferenceCountedDisposable<MemoryMappedFile>(file); _weakFileReference = new ReferenceCountedDisposable<MemoryMappedFile>.WeakReference(reference); _name = mapName; _fileSize = MultiFileBlockSize; _offset = size; return new MemoryMappedInfo(reference, _name, offset: 0, size: size); } else { // Reserve additional space in the existing storage location Contract.ThrowIfNull(_name); _offset += size; return new MemoryMappedInfo(reference, _name, _offset - size, size); } } } public static string CreateUniqueName(long size) => "Roslyn Temp Storage " + size.ToString() + " " + Guid.NewGuid().ToString("N"); private sealed class TemporaryTextStorage : ITemporaryTextStorage, ITemporaryTextStorageWithName { private readonly TemporaryStorageService _service; private SourceHashAlgorithm _checksumAlgorithm; private Encoding? _encoding; private ImmutableArray<byte> _checksum; private MemoryMappedInfo? _memoryMappedInfo; public TemporaryTextStorage(TemporaryStorageService service) => _service = service; public TemporaryTextStorage(TemporaryStorageService service, string storageName, long offset, long size, SourceHashAlgorithm checksumAlgorithm, Encoding? encoding) { _service = service; _checksumAlgorithm = checksumAlgorithm; _encoding = encoding; _memoryMappedInfo = new MemoryMappedInfo(storageName, offset, size); } // TODO: cleanup https://github.com/dotnet/roslyn/issues/43037 // Offet, Size not accessed if Name is null public string? Name => _memoryMappedInfo?.Name; public long Offset => _memoryMappedInfo!.Offset; public long Size => _memoryMappedInfo!.Size; public SourceHashAlgorithm ChecksumAlgorithm => _checksumAlgorithm; public Encoding? Encoding => _encoding; public ImmutableArray<byte> GetChecksum() { if (_checksum.IsDefault) { ImmutableInterlocked.InterlockedInitialize(ref _checksum, ReadText(CancellationToken.None).GetChecksum()); } return _checksum; } public void Dispose() { // Destructors of SafeHandle and FileStream in MemoryMappedFile // will eventually release resources if this Dispose is not called // explicitly _memoryMappedInfo?.Dispose(); _memoryMappedInfo = null; _encoding = null; } public SourceText ReadText(CancellationToken cancellationToken) { if (_memoryMappedInfo == null) { throw new InvalidOperationException(); } using (Logger.LogBlock(FunctionId.TemporaryStorageServiceFactory_ReadText, cancellationToken)) { using var stream = _memoryMappedInfo.CreateReadableStream(); using var reader = CreateTextReaderFromTemporaryStorage((ISupportDirectMemoryAccess)stream, (int)stream.Length); // we pass in encoding we got from original source text even if it is null. return _service._textFactory.CreateText(reader, _encoding, cancellationToken); } } public Task<SourceText> ReadTextAsync(CancellationToken cancellationToken) { // There is a reason for implementing it like this: proper async implementation // that reads the underlying memory mapped file stream in an asynchronous fashion // doesn't actually work. Windows doesn't offer // any non-blocking way to read from a memory mapped file; the underlying memcpy // may block as the memory pages back in and that's something you have to live // with. Therefore, any implementation that attempts to use async will still // always be blocking at least one threadpool thread in the memcpy in the case // of a page fault. Therefore, if we're going to be blocking a thread, we should // just block one thread and do the whole thing at once vs. a fake "async" // implementation which will continue to requeue work back to the thread pool. return Task.Factory.StartNew(() => ReadText(cancellationToken), cancellationToken, TaskCreationOptions.None, TaskScheduler.Default); } public void WriteText(SourceText text, CancellationToken cancellationToken) { if (_memoryMappedInfo != null) { throw new InvalidOperationException(); } using (Logger.LogBlock(FunctionId.TemporaryStorageServiceFactory_WriteText, cancellationToken)) { _checksumAlgorithm = text.ChecksumAlgorithm; _encoding = text.Encoding; // the method we use to get text out of SourceText uses Unicode (2bytes per char). var size = Encoding.Unicode.GetMaxByteCount(text.Length); _memoryMappedInfo = _service.CreateTemporaryStorage(size); // Write the source text out as Unicode. We expect that to be cheap. using var stream = _memoryMappedInfo.CreateWritableStream(); using var writer = new StreamWriter(stream, Encoding.Unicode); text.Write(writer, cancellationToken); } } public Task WriteTextAsync(SourceText text, CancellationToken cancellationToken = default) { // See commentary in ReadTextAsync for why this is implemented this way. return Task.Factory.StartNew(() => WriteText(text, cancellationToken), cancellationToken, TaskCreationOptions.None, TaskScheduler.Default); } private static unsafe TextReader CreateTextReaderFromTemporaryStorage(ISupportDirectMemoryAccess accessor, int streamLength) { var src = (char*)accessor.GetPointer(); // BOM: Unicode, little endian // Skip the BOM when creating the reader Debug.Assert(*src == 0xFEFF); return new DirectMemoryAccessStreamReader(src + 1, streamLength / sizeof(char) - 1); } } private class TemporaryStreamStorage : ITemporaryStreamStorage, ITemporaryStorageWithName { private readonly TemporaryStorageService _service; private MemoryMappedInfo? _memoryMappedInfo; public TemporaryStreamStorage(TemporaryStorageService service) => _service = service; public TemporaryStreamStorage(TemporaryStorageService service, string storageName, long offset, long size) { _service = service; _memoryMappedInfo = new MemoryMappedInfo(storageName, offset, size); } // TODO: clean up https://github.com/dotnet/roslyn/issues/43037 // Offset, Size is only used when Name is not null. public string? Name => _memoryMappedInfo?.Name; public long Offset => _memoryMappedInfo!.Offset; public long Size => _memoryMappedInfo!.Size; public void Dispose() { // Destructors of SafeHandle and FileStream in MemoryMappedFile // will eventually release resources if this Dispose is not called // explicitly _memoryMappedInfo?.Dispose(); _memoryMappedInfo = null; } public Stream ReadStream(CancellationToken cancellationToken) { if (_memoryMappedInfo == null) { throw new InvalidOperationException(); } using (Logger.LogBlock(FunctionId.TemporaryStorageServiceFactory_ReadStream, cancellationToken)) { cancellationToken.ThrowIfCancellationRequested(); return _memoryMappedInfo.CreateReadableStream(); } } public Task<Stream> ReadStreamAsync(CancellationToken cancellationToken = default) { // See commentary in ReadTextAsync for why this is implemented this way. return Task.Factory.StartNew(() => ReadStream(cancellationToken), cancellationToken, TaskCreationOptions.None, TaskScheduler.Default); } public void WriteStream(Stream stream, CancellationToken cancellationToken = default) { // The Wait() here will not actually block, since with useAsync: false, the // entire operation will already be done when WaitStreamMaybeAsync completes. WriteStreamMaybeAsync(stream, useAsync: false, cancellationToken: cancellationToken).GetAwaiter().GetResult(); } public Task WriteStreamAsync(Stream stream, CancellationToken cancellationToken = default) => WriteStreamMaybeAsync(stream, useAsync: true, cancellationToken: cancellationToken); private async Task WriteStreamMaybeAsync(Stream stream, bool useAsync, CancellationToken cancellationToken) { if (_memoryMappedInfo != null) { throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once); } using (Logger.LogBlock(FunctionId.TemporaryStorageServiceFactory_WriteStream, cancellationToken)) { var size = stream.Length; _memoryMappedInfo = _service.CreateTemporaryStorage(size); using var viewStream = _memoryMappedInfo.CreateWritableStream(); var buffer = SharedPools.ByteArray.Allocate(); try { while (true) { int count; if (useAsync) { count = await stream.ReadAsync(buffer, 0, buffer.Length, cancellationToken).ConfigureAwait(false); } else { count = stream.Read(buffer, 0, buffer.Length); } if (count == 0) { break; } viewStream.Write(buffer, 0, count); } } finally { SharedPools.ByteArray.Free(buffer); } } } } } internal unsafe class DirectMemoryAccessStreamReader : TextReaderWithLength { private char* _position; private readonly char* _end; public DirectMemoryAccessStreamReader(char* src, int length) : base(length) { RoslynDebug.Assert(src != null); RoslynDebug.Assert(length >= 0); _position = src; _end = _position + length; } public override int Peek() { if (_position >= _end) { return -1; } return *_position; } public override int Read() { if (_position >= _end) { return -1; } return *_position++; } public override int Read(char[] buffer, int index, int count) { if (buffer == null) { throw new ArgumentNullException(nameof(buffer)); } if (index < 0 || index >= buffer.Length) { throw new ArgumentOutOfRangeException(nameof(index)); } if (count < 0 || (index + count) > buffer.Length) { throw new ArgumentOutOfRangeException(nameof(count)); } count = Math.Min(count, (int)(_end - _position)); if (count > 0) { Marshal.Copy((IntPtr)_position, buffer, index, count); _position += count; } return count; } } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Workspaces/CSharp/Portable/Simplification/Reducers/CSharpCastReducer.Rewriter.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Linq; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Simplification; namespace Microsoft.CodeAnalysis.CSharp.Simplification { internal partial class CSharpCastReducer { private class Rewriter : AbstractReductionRewriter { public Rewriter(ObjectPool<IReductionRewriter> pool) : base(pool) { } public override SyntaxNode VisitCastExpression(CastExpressionSyntax node) { return SimplifyExpression( node, newNode: base.VisitCastExpression(node), simplifier: s_simplifyCast); } public override SyntaxNode VisitBinaryExpression(BinaryExpressionSyntax node) { var result = base.VisitBinaryExpression(node); var reducedNode = result as BinaryExpressionSyntax; if (reducedNode != node && reducedNode != null) { if ((node.Left.IsKind(SyntaxKind.CastExpression) && !reducedNode.Left.IsKind(SyntaxKind.CastExpression)) || (node.Right.IsKind(SyntaxKind.CastExpression) && !reducedNode.Right.IsKind(SyntaxKind.CastExpression))) { // Cast simplification inside a binary expression, check if we need to parenthesize the binary expression to avoid breaking parent syntax. // For example, cast removal in below case leads to syntax errors in error free code, unless parenting binary expression is parenthesized: // Original: Goo(x < (int)i, x > y) // Incorrect cast removal: Goo(x < i, x > y) // Correct cast removal: Goo((x < i), x > y) // We'll do the following to detect such cases: // 1) Get the topmostExpressionAncestor of node. // 2) Get the reducedAncestor after replacing node with reducedNode within it. // 3) Reparse the reducedAncestor to get reparsedAncestor. // 4) Check for syntax equivalence of reducedAncestor and reparsedAncestor. If not syntactically equivalent, // then cast removal breaks the syntax and needs explicit parentheses around the binary expression. var topmostExpressionAncestor = node .AncestorsAndSelf() .OfType<ExpressionSyntax>() .LastOrDefault(); if (topmostExpressionAncestor != null && topmostExpressionAncestor != node) { var reducedAncestor = topmostExpressionAncestor.ReplaceNode(node, reducedNode); var reparsedAncestor = SyntaxFactory.ParseExpression(reducedAncestor.ToFullString()); if (reparsedAncestor != null && !reparsedAncestor.IsEquivalentTo(reducedAncestor)) { return SyntaxFactory.ParenthesizedExpression(reducedNode) .WithAdditionalAnnotations(Simplifier.Annotation); } } } } return result; } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Linq; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Simplification; namespace Microsoft.CodeAnalysis.CSharp.Simplification { internal partial class CSharpCastReducer { private class Rewriter : AbstractReductionRewriter { public Rewriter(ObjectPool<IReductionRewriter> pool) : base(pool) { } public override SyntaxNode VisitCastExpression(CastExpressionSyntax node) { return SimplifyExpression( node, newNode: base.VisitCastExpression(node), simplifier: s_simplifyCast); } public override SyntaxNode VisitBinaryExpression(BinaryExpressionSyntax node) { var result = base.VisitBinaryExpression(node); var reducedNode = result as BinaryExpressionSyntax; if (reducedNode != node && reducedNode != null) { if ((node.Left.IsKind(SyntaxKind.CastExpression) && !reducedNode.Left.IsKind(SyntaxKind.CastExpression)) || (node.Right.IsKind(SyntaxKind.CastExpression) && !reducedNode.Right.IsKind(SyntaxKind.CastExpression))) { // Cast simplification inside a binary expression, check if we need to parenthesize the binary expression to avoid breaking parent syntax. // For example, cast removal in below case leads to syntax errors in error free code, unless parenting binary expression is parenthesized: // Original: Goo(x < (int)i, x > y) // Incorrect cast removal: Goo(x < i, x > y) // Correct cast removal: Goo((x < i), x > y) // We'll do the following to detect such cases: // 1) Get the topmostExpressionAncestor of node. // 2) Get the reducedAncestor after replacing node with reducedNode within it. // 3) Reparse the reducedAncestor to get reparsedAncestor. // 4) Check for syntax equivalence of reducedAncestor and reparsedAncestor. If not syntactically equivalent, // then cast removal breaks the syntax and needs explicit parentheses around the binary expression. var topmostExpressionAncestor = node .AncestorsAndSelf() .OfType<ExpressionSyntax>() .LastOrDefault(); if (topmostExpressionAncestor != null && topmostExpressionAncestor != node) { var reducedAncestor = topmostExpressionAncestor.ReplaceNode(node, reducedNode); var reparsedAncestor = SyntaxFactory.ParseExpression(reducedAncestor.ToFullString()); if (reparsedAncestor != null && !reparsedAncestor.IsEquivalentTo(reducedAncestor)) { return SyntaxFactory.ParenthesizedExpression(reducedNode) .WithAdditionalAnnotations(Simplifier.Annotation); } } } } return result; } } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/CSharp/Portable/Symbols/Retargeting/RetargetingNamedTypeSymbol.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Emit; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Symbols.Retargeting { /// <summary> /// Represents a type of a RetargetingModuleSymbol. Essentially this is a wrapper around /// another NamedTypeSymbol that is responsible for retargeting referenced symbols from one assembly to another. /// It can retarget symbols for multiple assemblies at the same time. /// </summary> internal sealed class RetargetingNamedTypeSymbol : WrappedNamedTypeSymbol { /// <summary> /// Owning RetargetingModuleSymbol. /// </summary> private readonly RetargetingModuleSymbol _retargetingModule; private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; private NamedTypeSymbol _lazyBaseType = ErrorTypeSymbol.UnknownResultType; private ImmutableArray<NamedTypeSymbol> _lazyInterfaces = default(ImmutableArray<NamedTypeSymbol>); private NamedTypeSymbol _lazyDeclaredBaseType = ErrorTypeSymbol.UnknownResultType; private ImmutableArray<NamedTypeSymbol> _lazyDeclaredInterfaces; private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; public RetargetingNamedTypeSymbol(RetargetingModuleSymbol retargetingModule, NamedTypeSymbol underlyingType, TupleExtraData tupleData = null) : base(underlyingType, tupleData) { Debug.Assert((object)retargetingModule != null); Debug.Assert(!(underlyingType is RetargetingNamedTypeSymbol)); _retargetingModule = retargetingModule; } protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) { return new RetargetingNamedTypeSymbol(_retargetingModule, _underlyingType, newData); } private RetargetingModuleSymbol.RetargetingSymbolTranslator RetargetingTranslator { get { return _retargetingModule.RetargetingTranslator; } } public override ImmutableArray<TypeParameterSymbol> TypeParameters { get { if (_lazyTypeParameters.IsDefault) { if (this.Arity == 0) { _lazyTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; } else { ImmutableInterlocked.InterlockedCompareExchange(ref _lazyTypeParameters, this.RetargetingTranslator.Retarget(_underlyingType.TypeParameters), default(ImmutableArray<TypeParameterSymbol>)); } } return _lazyTypeParameters; } } internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics { get { // This is always the instance type, so the type arguments are the same as the type parameters. return GetTypeParametersAsTypeArguments(); } } public override NamedTypeSymbol ConstructedFrom { get { return this; } } public override NamedTypeSymbol EnumUnderlyingType { get { var underlying = _underlyingType.EnumUnderlyingType; return (object)underlying == null ? null : this.RetargetingTranslator.Retarget(underlying, RetargetOptions.RetargetPrimitiveTypesByTypeCode); // comes from field's signature. } } public override IEnumerable<string> MemberNames { get { return _underlyingType.MemberNames; } } public override ImmutableArray<Symbol> GetMembers() { return this.RetargetingTranslator.Retarget(_underlyingType.GetMembers()); } internal override ImmutableArray<Symbol> GetMembersUnordered() { return this.RetargetingTranslator.Retarget(_underlyingType.GetMembersUnordered()); } public override ImmutableArray<Symbol> GetMembers(string name) { return this.RetargetingTranslator.Retarget(_underlyingType.GetMembers(name)); } public override void InitializeTupleFieldDefinitionsToIndexMap() { Debug.Assert(this.IsTupleType); Debug.Assert(this.IsDefinition); // we only store a map for definitions var retargetedMap = new SmallDictionary<FieldSymbol, int>(ReferenceEqualityComparer.Instance); foreach ((FieldSymbol field, int index) in _underlyingType.TupleFieldDefinitionsToIndexMap) { retargetedMap.Add(this.RetargetingTranslator.Retarget(field), index); } this.TupleData!.SetFieldDefinitionsToIndexMap(retargetedMap); } internal override IEnumerable<FieldSymbol> GetFieldsToEmit() { foreach (FieldSymbol f in _underlyingType.GetFieldsToEmit()) { yield return this.RetargetingTranslator.Retarget(f); } } internal override IEnumerable<MethodSymbol> GetMethodsToEmit() { bool isInterface = _underlyingType.IsInterfaceType(); foreach (MethodSymbol method in _underlyingType.GetMethodsToEmit()) { Debug.Assert((object)method != null); int gapSize = isInterface ? Microsoft.CodeAnalysis.ModuleExtensions.GetVTableGapSize(method.MetadataName) : 0; if (gapSize > 0) { do { yield return null; gapSize--; } while (gapSize > 0); } else { yield return this.RetargetingTranslator.Retarget(method); } } } internal override IEnumerable<PropertySymbol> GetPropertiesToEmit() { foreach (PropertySymbol p in _underlyingType.GetPropertiesToEmit()) { yield return this.RetargetingTranslator.Retarget(p); } } internal override IEnumerable<EventSymbol> GetEventsToEmit() { foreach (EventSymbol e in _underlyingType.GetEventsToEmit()) { yield return this.RetargetingTranslator.Retarget(e); } } internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() { return this.RetargetingTranslator.Retarget(_underlyingType.GetEarlyAttributeDecodingMembers()); } internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) { return this.RetargetingTranslator.Retarget(_underlyingType.GetEarlyAttributeDecodingMembers(name)); } internal override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() { return this.RetargetingTranslator.Retarget(_underlyingType.GetTypeMembersUnordered()); } public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() { return this.RetargetingTranslator.Retarget(_underlyingType.GetTypeMembers()); } public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(string name) { return this.RetargetingTranslator.Retarget(_underlyingType.GetTypeMembers(name)); } public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(string name, int arity) { return this.RetargetingTranslator.Retarget(_underlyingType.GetTypeMembers(name, arity)); } public override Symbol ContainingSymbol { get { return this.RetargetingTranslator.Retarget(_underlyingType.ContainingSymbol); } } public override ImmutableArray<CSharpAttributeData> GetAttributes() { return this.RetargetingTranslator.GetRetargetedAttributes(_underlyingType.GetAttributes(), ref _lazyCustomAttributes); } internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder) { return this.RetargetingTranslator.RetargetAttributes(_underlyingType.GetCustomAttributesToEmit(moduleBuilder)); } public override AssemblySymbol ContainingAssembly { get { return _retargetingModule.ContainingAssembly; } } internal override ModuleSymbol ContainingModule { get { return _retargetingModule; } } internal override NamedTypeSymbol LookupMetadataType(ref MetadataTypeName typeName) { return this.RetargetingTranslator.Retarget(_underlyingType.LookupMetadataType(ref typeName), RetargetOptions.RetargetPrimitiveTypesByName); } private static ExtendedErrorTypeSymbol CyclicInheritanceError(RetargetingNamedTypeSymbol type, TypeSymbol declaredBase) { var info = new CSDiagnosticInfo(ErrorCode.ERR_ImportedCircularBase, declaredBase, type); return new ExtendedErrorTypeSymbol(declaredBase, LookupResultKind.NotReferencable, info, true); } internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics { get { if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.UnknownResultType)) { NamedTypeSymbol acyclicBase = GetDeclaredBaseType(null); if ((object)acyclicBase == null) { // if base was not declared, get it from BaseType that should set it to some default var underlyingBase = _underlyingType.BaseTypeNoUseSiteDiagnostics; if ((object)underlyingBase != null) { acyclicBase = this.RetargetingTranslator.Retarget(underlyingBase, RetargetOptions.RetargetPrimitiveTypesByName); } } if ((object)acyclicBase != null && BaseTypeAnalysis.TypeDependsOn(acyclicBase, this)) { return CyclicInheritanceError(this, acyclicBase); } Interlocked.CompareExchange(ref _lazyBaseType, acyclicBase, ErrorTypeSymbol.UnknownResultType); } return _lazyBaseType; } } internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) { if (_lazyInterfaces.IsDefault) { var declaredInterfaces = GetDeclaredInterfaces(basesBeingResolved); if (!IsInterface) { // only interfaces needs to check for inheritance cycles via interfaces. return declaredInterfaces; } ImmutableArray<NamedTypeSymbol> result = declaredInterfaces .SelectAsArray(t => BaseTypeAnalysis.TypeDependsOn(t, this) ? CyclicInheritanceError(this, t) : t); ImmutableInterlocked.InterlockedCompareExchange(ref _lazyInterfaces, result, default(ImmutableArray<NamedTypeSymbol>)); } return _lazyInterfaces; } internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() { return this.RetargetingTranslator.Retarget(_underlyingType.GetInterfacesToEmit()); } internal override NamedTypeSymbol GetDeclaredBaseType(ConsList<TypeSymbol> basesBeingResolved) { if (ReferenceEquals(_lazyDeclaredBaseType, ErrorTypeSymbol.UnknownResultType)) { var underlyingBase = _underlyingType.GetDeclaredBaseType(basesBeingResolved); var declaredBase = (object)underlyingBase != null ? this.RetargetingTranslator.Retarget(underlyingBase, RetargetOptions.RetargetPrimitiveTypesByName) : null; Interlocked.CompareExchange(ref _lazyDeclaredBaseType, declaredBase, ErrorTypeSymbol.UnknownResultType); } return _lazyDeclaredBaseType; } internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) { if (_lazyDeclaredInterfaces.IsDefault) { var underlyingBaseInterfaces = _underlyingType.GetDeclaredInterfaces(basesBeingResolved); var result = this.RetargetingTranslator.Retarget(underlyingBaseInterfaces); ImmutableInterlocked.InterlockedCompareExchange(ref _lazyDeclaredInterfaces, result, default(ImmutableArray<NamedTypeSymbol>)); } return _lazyDeclaredInterfaces; } internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() { if (!_lazyCachedUseSiteInfo.IsInitialized) { AssemblySymbol primaryDependency = PrimaryDependency; _lazyCachedUseSiteInfo.Initialize(primaryDependency, new UseSiteInfo<AssemblySymbol>(primaryDependency).AdjustDiagnosticInfo(CalculateUseSiteDiagnostic())); } return _lazyCachedUseSiteInfo.ToUseSiteInfo(PrimaryDependency); } internal override NamedTypeSymbol ComImportCoClass { get { NamedTypeSymbol coClass = _underlyingType.ComImportCoClass; return (object)coClass == null ? null : this.RetargetingTranslator.Retarget(coClass, RetargetOptions.RetargetPrimitiveTypesByName); } } internal override bool IsComImport { get { return _underlyingType.IsComImport; } } internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness { get { return null; } } public sealed override bool AreLocalsZeroed { get { throw ExceptionUtilities.Unreachable; } } internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable; internal sealed override NamedTypeSymbol NativeIntegerUnderlyingType => null; internal sealed override bool IsRecord => _underlyingType.IsRecord; internal sealed override bool IsRecordStruct => _underlyingType.IsRecordStruct; internal sealed override bool HasPossibleWellKnownCloneMethod() => _underlyingType.HasPossibleWellKnownCloneMethod(); internal override bool HasFieldInitializers() => _underlyingType.HasFieldInitializers(); internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() { foreach ((MethodSymbol body, MethodSymbol implemented) in _underlyingType.SynthesizedInterfaceMethodImpls()) { var newBody = this.RetargetingTranslator.Retarget(body, MemberSignatureComparer.RetargetedExplicitImplementationComparer); var newImplemented = this.RetargetingTranslator.Retarget(implemented, MemberSignatureComparer.RetargetedExplicitImplementationComparer); if (newBody is object && newImplemented is object) { yield return (newBody, newImplemented); } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Globalization; using System.Runtime.InteropServices; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Emit; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Symbols.Retargeting { /// <summary> /// Represents a type of a RetargetingModuleSymbol. Essentially this is a wrapper around /// another NamedTypeSymbol that is responsible for retargeting referenced symbols from one assembly to another. /// It can retarget symbols for multiple assemblies at the same time. /// </summary> internal sealed class RetargetingNamedTypeSymbol : WrappedNamedTypeSymbol { /// <summary> /// Owning RetargetingModuleSymbol. /// </summary> private readonly RetargetingModuleSymbol _retargetingModule; private ImmutableArray<TypeParameterSymbol> _lazyTypeParameters; private NamedTypeSymbol _lazyBaseType = ErrorTypeSymbol.UnknownResultType; private ImmutableArray<NamedTypeSymbol> _lazyInterfaces = default(ImmutableArray<NamedTypeSymbol>); private NamedTypeSymbol _lazyDeclaredBaseType = ErrorTypeSymbol.UnknownResultType; private ImmutableArray<NamedTypeSymbol> _lazyDeclaredInterfaces; private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; private CachedUseSiteInfo<AssemblySymbol> _lazyCachedUseSiteInfo = CachedUseSiteInfo<AssemblySymbol>.Uninitialized; public RetargetingNamedTypeSymbol(RetargetingModuleSymbol retargetingModule, NamedTypeSymbol underlyingType, TupleExtraData tupleData = null) : base(underlyingType, tupleData) { Debug.Assert((object)retargetingModule != null); Debug.Assert(!(underlyingType is RetargetingNamedTypeSymbol)); _retargetingModule = retargetingModule; } protected override NamedTypeSymbol WithTupleDataCore(TupleExtraData newData) { return new RetargetingNamedTypeSymbol(_retargetingModule, _underlyingType, newData); } private RetargetingModuleSymbol.RetargetingSymbolTranslator RetargetingTranslator { get { return _retargetingModule.RetargetingTranslator; } } public override ImmutableArray<TypeParameterSymbol> TypeParameters { get { if (_lazyTypeParameters.IsDefault) { if (this.Arity == 0) { _lazyTypeParameters = ImmutableArray<TypeParameterSymbol>.Empty; } else { ImmutableInterlocked.InterlockedCompareExchange(ref _lazyTypeParameters, this.RetargetingTranslator.Retarget(_underlyingType.TypeParameters), default(ImmutableArray<TypeParameterSymbol>)); } } return _lazyTypeParameters; } } internal override ImmutableArray<TypeWithAnnotations> TypeArgumentsWithAnnotationsNoUseSiteDiagnostics { get { // This is always the instance type, so the type arguments are the same as the type parameters. return GetTypeParametersAsTypeArguments(); } } public override NamedTypeSymbol ConstructedFrom { get { return this; } } public override NamedTypeSymbol EnumUnderlyingType { get { var underlying = _underlyingType.EnumUnderlyingType; return (object)underlying == null ? null : this.RetargetingTranslator.Retarget(underlying, RetargetOptions.RetargetPrimitiveTypesByTypeCode); // comes from field's signature. } } public override IEnumerable<string> MemberNames { get { return _underlyingType.MemberNames; } } public override ImmutableArray<Symbol> GetMembers() { return this.RetargetingTranslator.Retarget(_underlyingType.GetMembers()); } internal override ImmutableArray<Symbol> GetMembersUnordered() { return this.RetargetingTranslator.Retarget(_underlyingType.GetMembersUnordered()); } public override ImmutableArray<Symbol> GetMembers(string name) { return this.RetargetingTranslator.Retarget(_underlyingType.GetMembers(name)); } public override void InitializeTupleFieldDefinitionsToIndexMap() { Debug.Assert(this.IsTupleType); Debug.Assert(this.IsDefinition); // we only store a map for definitions var retargetedMap = new SmallDictionary<FieldSymbol, int>(ReferenceEqualityComparer.Instance); foreach ((FieldSymbol field, int index) in _underlyingType.TupleFieldDefinitionsToIndexMap) { retargetedMap.Add(this.RetargetingTranslator.Retarget(field), index); } this.TupleData!.SetFieldDefinitionsToIndexMap(retargetedMap); } internal override IEnumerable<FieldSymbol> GetFieldsToEmit() { foreach (FieldSymbol f in _underlyingType.GetFieldsToEmit()) { yield return this.RetargetingTranslator.Retarget(f); } } internal override IEnumerable<MethodSymbol> GetMethodsToEmit() { bool isInterface = _underlyingType.IsInterfaceType(); foreach (MethodSymbol method in _underlyingType.GetMethodsToEmit()) { Debug.Assert((object)method != null); int gapSize = isInterface ? Microsoft.CodeAnalysis.ModuleExtensions.GetVTableGapSize(method.MetadataName) : 0; if (gapSize > 0) { do { yield return null; gapSize--; } while (gapSize > 0); } else { yield return this.RetargetingTranslator.Retarget(method); } } } internal override IEnumerable<PropertySymbol> GetPropertiesToEmit() { foreach (PropertySymbol p in _underlyingType.GetPropertiesToEmit()) { yield return this.RetargetingTranslator.Retarget(p); } } internal override IEnumerable<EventSymbol> GetEventsToEmit() { foreach (EventSymbol e in _underlyingType.GetEventsToEmit()) { yield return this.RetargetingTranslator.Retarget(e); } } internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers() { return this.RetargetingTranslator.Retarget(_underlyingType.GetEarlyAttributeDecodingMembers()); } internal override ImmutableArray<Symbol> GetEarlyAttributeDecodingMembers(string name) { return this.RetargetingTranslator.Retarget(_underlyingType.GetEarlyAttributeDecodingMembers(name)); } internal override ImmutableArray<NamedTypeSymbol> GetTypeMembersUnordered() { return this.RetargetingTranslator.Retarget(_underlyingType.GetTypeMembersUnordered()); } public override ImmutableArray<NamedTypeSymbol> GetTypeMembers() { return this.RetargetingTranslator.Retarget(_underlyingType.GetTypeMembers()); } public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(string name) { return this.RetargetingTranslator.Retarget(_underlyingType.GetTypeMembers(name)); } public override ImmutableArray<NamedTypeSymbol> GetTypeMembers(string name, int arity) { return this.RetargetingTranslator.Retarget(_underlyingType.GetTypeMembers(name, arity)); } public override Symbol ContainingSymbol { get { return this.RetargetingTranslator.Retarget(_underlyingType.ContainingSymbol); } } public override ImmutableArray<CSharpAttributeData> GetAttributes() { return this.RetargetingTranslator.GetRetargetedAttributes(_underlyingType.GetAttributes(), ref _lazyCustomAttributes); } internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder) { return this.RetargetingTranslator.RetargetAttributes(_underlyingType.GetCustomAttributesToEmit(moduleBuilder)); } public override AssemblySymbol ContainingAssembly { get { return _retargetingModule.ContainingAssembly; } } internal override ModuleSymbol ContainingModule { get { return _retargetingModule; } } internal override NamedTypeSymbol LookupMetadataType(ref MetadataTypeName typeName) { return this.RetargetingTranslator.Retarget(_underlyingType.LookupMetadataType(ref typeName), RetargetOptions.RetargetPrimitiveTypesByName); } private static ExtendedErrorTypeSymbol CyclicInheritanceError(RetargetingNamedTypeSymbol type, TypeSymbol declaredBase) { var info = new CSDiagnosticInfo(ErrorCode.ERR_ImportedCircularBase, declaredBase, type); return new ExtendedErrorTypeSymbol(declaredBase, LookupResultKind.NotReferencable, info, true); } internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics { get { if (ReferenceEquals(_lazyBaseType, ErrorTypeSymbol.UnknownResultType)) { NamedTypeSymbol acyclicBase = GetDeclaredBaseType(null); if ((object)acyclicBase == null) { // if base was not declared, get it from BaseType that should set it to some default var underlyingBase = _underlyingType.BaseTypeNoUseSiteDiagnostics; if ((object)underlyingBase != null) { acyclicBase = this.RetargetingTranslator.Retarget(underlyingBase, RetargetOptions.RetargetPrimitiveTypesByName); } } if ((object)acyclicBase != null && BaseTypeAnalysis.TypeDependsOn(acyclicBase, this)) { return CyclicInheritanceError(this, acyclicBase); } Interlocked.CompareExchange(ref _lazyBaseType, acyclicBase, ErrorTypeSymbol.UnknownResultType); } return _lazyBaseType; } } internal override ImmutableArray<NamedTypeSymbol> InterfacesNoUseSiteDiagnostics(ConsList<TypeSymbol> basesBeingResolved) { if (_lazyInterfaces.IsDefault) { var declaredInterfaces = GetDeclaredInterfaces(basesBeingResolved); if (!IsInterface) { // only interfaces needs to check for inheritance cycles via interfaces. return declaredInterfaces; } ImmutableArray<NamedTypeSymbol> result = declaredInterfaces .SelectAsArray(t => BaseTypeAnalysis.TypeDependsOn(t, this) ? CyclicInheritanceError(this, t) : t); ImmutableInterlocked.InterlockedCompareExchange(ref _lazyInterfaces, result, default(ImmutableArray<NamedTypeSymbol>)); } return _lazyInterfaces; } internal override ImmutableArray<NamedTypeSymbol> GetInterfacesToEmit() { return this.RetargetingTranslator.Retarget(_underlyingType.GetInterfacesToEmit()); } internal override NamedTypeSymbol GetDeclaredBaseType(ConsList<TypeSymbol> basesBeingResolved) { if (ReferenceEquals(_lazyDeclaredBaseType, ErrorTypeSymbol.UnknownResultType)) { var underlyingBase = _underlyingType.GetDeclaredBaseType(basesBeingResolved); var declaredBase = (object)underlyingBase != null ? this.RetargetingTranslator.Retarget(underlyingBase, RetargetOptions.RetargetPrimitiveTypesByName) : null; Interlocked.CompareExchange(ref _lazyDeclaredBaseType, declaredBase, ErrorTypeSymbol.UnknownResultType); } return _lazyDeclaredBaseType; } internal override ImmutableArray<NamedTypeSymbol> GetDeclaredInterfaces(ConsList<TypeSymbol> basesBeingResolved) { if (_lazyDeclaredInterfaces.IsDefault) { var underlyingBaseInterfaces = _underlyingType.GetDeclaredInterfaces(basesBeingResolved); var result = this.RetargetingTranslator.Retarget(underlyingBaseInterfaces); ImmutableInterlocked.InterlockedCompareExchange(ref _lazyDeclaredInterfaces, result, default(ImmutableArray<NamedTypeSymbol>)); } return _lazyDeclaredInterfaces; } internal override UseSiteInfo<AssemblySymbol> GetUseSiteInfo() { if (!_lazyCachedUseSiteInfo.IsInitialized) { AssemblySymbol primaryDependency = PrimaryDependency; _lazyCachedUseSiteInfo.Initialize(primaryDependency, new UseSiteInfo<AssemblySymbol>(primaryDependency).AdjustDiagnosticInfo(CalculateUseSiteDiagnostic())); } return _lazyCachedUseSiteInfo.ToUseSiteInfo(PrimaryDependency); } internal override NamedTypeSymbol ComImportCoClass { get { NamedTypeSymbol coClass = _underlyingType.ComImportCoClass; return (object)coClass == null ? null : this.RetargetingTranslator.Retarget(coClass, RetargetOptions.RetargetPrimitiveTypesByName); } } internal override bool IsComImport { get { return _underlyingType.IsComImport; } } internal sealed override CSharpCompilation DeclaringCompilation // perf, not correctness { get { return null; } } public sealed override bool AreLocalsZeroed { get { throw ExceptionUtilities.Unreachable; } } internal sealed override NamedTypeSymbol AsNativeInteger() => throw ExceptionUtilities.Unreachable; internal sealed override NamedTypeSymbol NativeIntegerUnderlyingType => null; internal sealed override bool IsRecord => _underlyingType.IsRecord; internal sealed override bool IsRecordStruct => _underlyingType.IsRecordStruct; internal sealed override bool HasPossibleWellKnownCloneMethod() => _underlyingType.HasPossibleWellKnownCloneMethod(); internal override bool HasFieldInitializers() => _underlyingType.HasFieldInitializers(); internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() { foreach ((MethodSymbol body, MethodSymbol implemented) in _underlyingType.SynthesizedInterfaceMethodImpls()) { var newBody = this.RetargetingTranslator.Retarget(body, MemberSignatureComparer.RetargetedExplicitImplementationComparer); var newImplemented = this.RetargetingTranslator.Retarget(implemented, MemberSignatureComparer.RetargetedExplicitImplementationComparer); if (newBody is object && newImplemented is object) { yield return (newBody, newImplemented); } } } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Test/Perf/Utilities/TestUtilities.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Diagnostics; using System.IO; using System.Threading; using System.Threading.Tasks; namespace Roslyn.Test.Performance.Utilities { /// <summary> /// Global statics shared between the runner and tests. /// </summary> public static class RuntimeSettings { /// <summary> /// Used as a pseudo-return value for tests to send test objects /// back to the runner. /// </summary> public static PerfTest[] ResultTests = null; /// <summary> /// The logger that is being used by the process. /// </summary> public static ILogger Logger = new ConsoleAndFileLogger(); /// <summary> /// True if the logger should be verbose. /// </summary> public static bool IsVerbose = true; /// <summary> /// True if a runner is orchestrating the test runs. /// </summary> public static bool IsRunnerAttached = false; } public static class TestUtilities { /// <returns> /// Returns the path to CPC /// </returns> public static string GetCPCDirectoryPath() { return Environment.ExpandEnvironmentVariables(@"%SYSTEMDRIVE%\CPC"); } /// <returns> /// The path to the ViBenchToJson executable. /// </returns> public static string GetViBenchToJsonExeFilePath() { return Path.Combine(GetCPCDirectoryPath(), "ViBenchToJson.exe"); } // // Process spawning and error handling. // /// <summary> /// The result of a ShellOut completing. /// </summary> public class ProcessResult { /// <summary> /// The path to the executable that was run. /// </summary> public string ExecutablePath { get; set; } /// <summary> /// The arguments that were passed to the process. /// </summary> public string Args { get; set; } /// <summary> /// The exit code of the process. /// </summary> public int Code { get; set; } /// <summary> /// The entire standard-out of the process. /// </summary> public string StdOut { get; set; } /// <summary> /// The entire standard-error of the process. /// </summary> public string StdErr { get; set; } /// <summary> /// True if the command returned an exit code other /// than zero. /// </summary> public bool Failed => Code != 0; /// <summary> /// True if the command returned an exit code of 0. /// </summary> public bool Succeeded => !Failed; } /// <summary> /// Shells out, and if the process fails, log the error and quit the script. /// </summary> public static void ShellOutVital( string file, string args, string workingDirectory = null, CancellationToken cancellationToken = default(CancellationToken)) { var result = ShellOut(file, args, workingDirectory, cancellationToken); if (result.Failed) { LogProcessResult(result); throw new System.Exception("ShellOutVital Failed"); } } /// <summary> /// Shells out, blocks, and returns the ProcessResult. /// </summary> public static ProcessResult ShellOut( string file, string args, string workingDirectory = null, CancellationToken cancellationToken = default(CancellationToken)) { if (workingDirectory == null) { workingDirectory = AppDomain.CurrentDomain.BaseDirectory; } var tcs = new TaskCompletionSource<ProcessResult>(); var startInfo = new ProcessStartInfo(file, args); startInfo.RedirectStandardOutput = true; startInfo.RedirectStandardError = true; startInfo.UseShellExecute = false; startInfo.WorkingDirectory = workingDirectory; var process = new Process { StartInfo = startInfo, EnableRaisingEvents = true, }; if (cancellationToken != default(CancellationToken)) { cancellationToken.Register(() => process.Kill()); } if (RuntimeSettings.IsVerbose) { Log($"running \"{file}\" with arguments \"{args}\" from directory {workingDirectory}"); } process.Start(); var output = new StringWriter(); var error = new StringWriter(); process.OutputDataReceived += (s, e) => { if (!String.IsNullOrEmpty(e.Data)) { output.WriteLine(e.Data); } }; process.ErrorDataReceived += (s, e) => { if (!String.IsNullOrEmpty(e.Data)) { error.WriteLine(e.Data); } }; process.BeginOutputReadLine(); process.BeginErrorReadLine(); process.WaitForExit(); return new ProcessResult { ExecutablePath = file, Args = args, Code = process.ExitCode, StdOut = output.ToString(), StdErr = error.ToString(), }; } /// <summary> /// Shells out and returns the string gathered from the stdout of the /// executing process. /// /// Throws an exception if the process fails. /// </summary> public static string StdoutFrom(string program, string args = "", string workingDirectory = null) { var result = ShellOut(program, args, workingDirectory); if (result.Failed) { LogProcessResult(result); throw new Exception("Shelling out failed"); } return result.StdOut.Trim(); } /// <summary> /// Logs a message. /// /// The actual implementation of this method may change depending on /// if the script is being run standalone or through the test runner. /// </summary> public static void Log(string info) { RuntimeSettings.Logger.Log(info); RuntimeSettings.Logger.Flush(); } /// <summary> /// Logs the result of a finished process /// </summary> public static void LogProcessResult(ProcessResult result) { RuntimeSettings.Logger.Log(String.Format("The process \"{0}\" {1} with code {2}", $"{result.ExecutablePath} {result.Args}", result.Failed ? "failed" : "succeeded", result.Code)); RuntimeSettings.Logger.Log($"Standard Out:\n{result.StdOut}"); RuntimeSettings.Logger.Log($"\nStandard Error:\n{result.StdErr}"); } /// <summary> /// Either runs the provided tests, or schedules them to be run by the /// runner. /// </summary> public static void TestThisPlease(params PerfTest[] tests) { if (RuntimeSettings.IsRunnerAttached) { RuntimeSettings.ResultTests = tests; } else { foreach (var test in tests) { test.Setup(); for (int i = 0; i < test.Iterations; i++) { test.Test(); } } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Diagnostics; using System.IO; using System.Threading; using System.Threading.Tasks; namespace Roslyn.Test.Performance.Utilities { /// <summary> /// Global statics shared between the runner and tests. /// </summary> public static class RuntimeSettings { /// <summary> /// Used as a pseudo-return value for tests to send test objects /// back to the runner. /// </summary> public static PerfTest[] ResultTests = null; /// <summary> /// The logger that is being used by the process. /// </summary> public static ILogger Logger = new ConsoleAndFileLogger(); /// <summary> /// True if the logger should be verbose. /// </summary> public static bool IsVerbose = true; /// <summary> /// True if a runner is orchestrating the test runs. /// </summary> public static bool IsRunnerAttached = false; } public static class TestUtilities { /// <returns> /// Returns the path to CPC /// </returns> public static string GetCPCDirectoryPath() { return Environment.ExpandEnvironmentVariables(@"%SYSTEMDRIVE%\CPC"); } /// <returns> /// The path to the ViBenchToJson executable. /// </returns> public static string GetViBenchToJsonExeFilePath() { return Path.Combine(GetCPCDirectoryPath(), "ViBenchToJson.exe"); } // // Process spawning and error handling. // /// <summary> /// The result of a ShellOut completing. /// </summary> public class ProcessResult { /// <summary> /// The path to the executable that was run. /// </summary> public string ExecutablePath { get; set; } /// <summary> /// The arguments that were passed to the process. /// </summary> public string Args { get; set; } /// <summary> /// The exit code of the process. /// </summary> public int Code { get; set; } /// <summary> /// The entire standard-out of the process. /// </summary> public string StdOut { get; set; } /// <summary> /// The entire standard-error of the process. /// </summary> public string StdErr { get; set; } /// <summary> /// True if the command returned an exit code other /// than zero. /// </summary> public bool Failed => Code != 0; /// <summary> /// True if the command returned an exit code of 0. /// </summary> public bool Succeeded => !Failed; } /// <summary> /// Shells out, and if the process fails, log the error and quit the script. /// </summary> public static void ShellOutVital( string file, string args, string workingDirectory = null, CancellationToken cancellationToken = default(CancellationToken)) { var result = ShellOut(file, args, workingDirectory, cancellationToken); if (result.Failed) { LogProcessResult(result); throw new System.Exception("ShellOutVital Failed"); } } /// <summary> /// Shells out, blocks, and returns the ProcessResult. /// </summary> public static ProcessResult ShellOut( string file, string args, string workingDirectory = null, CancellationToken cancellationToken = default(CancellationToken)) { if (workingDirectory == null) { workingDirectory = AppDomain.CurrentDomain.BaseDirectory; } var tcs = new TaskCompletionSource<ProcessResult>(); var startInfo = new ProcessStartInfo(file, args); startInfo.RedirectStandardOutput = true; startInfo.RedirectStandardError = true; startInfo.UseShellExecute = false; startInfo.WorkingDirectory = workingDirectory; var process = new Process { StartInfo = startInfo, EnableRaisingEvents = true, }; if (cancellationToken != default(CancellationToken)) { cancellationToken.Register(() => process.Kill()); } if (RuntimeSettings.IsVerbose) { Log($"running \"{file}\" with arguments \"{args}\" from directory {workingDirectory}"); } process.Start(); var output = new StringWriter(); var error = new StringWriter(); process.OutputDataReceived += (s, e) => { if (!String.IsNullOrEmpty(e.Data)) { output.WriteLine(e.Data); } }; process.ErrorDataReceived += (s, e) => { if (!String.IsNullOrEmpty(e.Data)) { error.WriteLine(e.Data); } }; process.BeginOutputReadLine(); process.BeginErrorReadLine(); process.WaitForExit(); return new ProcessResult { ExecutablePath = file, Args = args, Code = process.ExitCode, StdOut = output.ToString(), StdErr = error.ToString(), }; } /// <summary> /// Shells out and returns the string gathered from the stdout of the /// executing process. /// /// Throws an exception if the process fails. /// </summary> public static string StdoutFrom(string program, string args = "", string workingDirectory = null) { var result = ShellOut(program, args, workingDirectory); if (result.Failed) { LogProcessResult(result); throw new Exception("Shelling out failed"); } return result.StdOut.Trim(); } /// <summary> /// Logs a message. /// /// The actual implementation of this method may change depending on /// if the script is being run standalone or through the test runner. /// </summary> public static void Log(string info) { RuntimeSettings.Logger.Log(info); RuntimeSettings.Logger.Flush(); } /// <summary> /// Logs the result of a finished process /// </summary> public static void LogProcessResult(ProcessResult result) { RuntimeSettings.Logger.Log(String.Format("The process \"{0}\" {1} with code {2}", $"{result.ExecutablePath} {result.Args}", result.Failed ? "failed" : "succeeded", result.Code)); RuntimeSettings.Logger.Log($"Standard Out:\n{result.StdOut}"); RuntimeSettings.Logger.Log($"\nStandard Error:\n{result.StdErr}"); } /// <summary> /// Either runs the provided tests, or schedules them to be run by the /// runner. /// </summary> public static void TestThisPlease(params PerfTest[] tests) { if (RuntimeSettings.IsRunnerAttached) { RuntimeSettings.ResultTests = tests; } else { foreach (var test in tests) { test.Setup(); for (int i = 0; i < test.Iterations; i++) { test.Test(); } } } } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Features/Core/Portable/Structure/BlockStructure.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Immutable; namespace Microsoft.CodeAnalysis.Structure { internal class BlockStructure { public ImmutableArray<BlockSpan> Spans { get; } public BlockStructure(ImmutableArray<BlockSpan> spans) => Spans = spans; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Immutable; namespace Microsoft.CodeAnalysis.Structure { internal class BlockStructure { public ImmutableArray<BlockSpan> Spans { get; } public BlockStructure(ImmutableArray<BlockSpan> spans) => Spans = spans; } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/CSharp/Test/Symbol/Symbols/Retargeting/RetargetCustomModifiers.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE; using Microsoft.CodeAnalysis.CSharp.Symbols.Retargeting; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Xunit; using Roslyn.Test.Utilities; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.Symbols.Retargeting { public class RetargetCustomModifiers : CSharpTestBase { [Fact] public void Test1() { var oldMsCorLib = TestMetadata.Net40.mscorlib; var newMsCorLib = TestMetadata.Net451.mscorlib; var c1 = CSharpCompilation.Create("C1", references: new[] { oldMsCorLib, TestReferences.SymbolsTests.CustomModifiers.Modifiers.netmodule }); var c1Assembly = c1.Assembly; CSharpCompilation c2 = CSharpCompilation.Create("C2", references: new MetadataReference[] { newMsCorLib, new CSharpCompilationReference(c1) }); var mscorlibAssembly = c2.GetReferencedAssemblySymbol(newMsCorLib); Assert.NotSame(mscorlibAssembly, c1.GetReferencedAssemblySymbol(oldMsCorLib)); var modifiers = c2.GlobalNamespace.GetTypeMembers("Modifiers").Single(); Assert.IsAssignableFrom<PENamedTypeSymbol>(modifiers); FieldSymbol f0 = modifiers.GetMembers("F0").OfType<FieldSymbol>().Single(); Assert.Equal(1, f0.TypeWithAnnotations.CustomModifiers.Length); var f0Mod = f0.TypeWithAnnotations.CustomModifiers[0]; Assert.True(f0Mod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", f0Mod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, f0Mod.Modifier.ContainingAssembly.GetSymbol()); MethodSymbol m1 = modifiers.GetMembers("F1").OfType<MethodSymbol>().Single(); ParameterSymbol p1 = m1.Parameters[0]; ParameterSymbol p2 = modifiers.GetMembers("F2").OfType<MethodSymbol>().Single().Parameters[0]; MethodSymbol m5 = modifiers.GetMembers("F5").OfType<MethodSymbol>().Single(); ParameterSymbol p5 = m5.Parameters[0]; ParameterSymbol p6 = modifiers.GetMembers("F6").OfType<MethodSymbol>().Single().Parameters[0]; MethodSymbol m7 = modifiers.GetMembers("F7").OfType<MethodSymbol>().Single(); Assert.Equal(0, m1.ReturnTypeWithAnnotations.CustomModifiers.Length); Assert.Equal(1, p1.TypeWithAnnotations.CustomModifiers.Length); var p1Mod = p1.TypeWithAnnotations.CustomModifiers[0]; Assert.True(p1Mod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", p1Mod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, p1Mod.Modifier.ContainingAssembly.GetSymbol()); Assert.Equal(2, p2.TypeWithAnnotations.CustomModifiers.Length); foreach (var p2Mod in p2.TypeWithAnnotations.CustomModifiers) { Assert.True(p2Mod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", p2Mod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, p2Mod.Modifier.ContainingAssembly.GetSymbol()); } Assert.True(m5.ReturnsVoid); Assert.Equal(1, m5.ReturnTypeWithAnnotations.CustomModifiers.Length); var m5Mod = m5.ReturnTypeWithAnnotations.CustomModifiers[0]; Assert.True(m5Mod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", m5Mod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, m5Mod.Modifier.ContainingAssembly.GetSymbol()); Assert.Equal(0, p5.TypeWithAnnotations.CustomModifiers.Length); ArrayTypeSymbol p5Type = (ArrayTypeSymbol)p5.Type; Assert.Equal("System.Int32", p5Type.ElementType.ToTestDisplayString()); Assert.Equal(1, p5Type.ElementTypeWithAnnotations.CustomModifiers.Length); var p5TypeMod = p5Type.ElementTypeWithAnnotations.CustomModifiers[0]; Assert.True(p5TypeMod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", p5TypeMod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, p5TypeMod.Modifier.ContainingAssembly.GetSymbol()); Assert.Equal(0, p6.TypeWithAnnotations.CustomModifiers.Length); PointerTypeSymbol p6Type = (PointerTypeSymbol)p6.Type; Assert.Equal("System.Int32", p6Type.PointedAtType.ToTestDisplayString()); Assert.Equal(1, p6Type.PointedAtTypeWithAnnotations.CustomModifiers.Length); var p6TypeMod = p6Type.PointedAtTypeWithAnnotations.CustomModifiers[0]; Assert.True(p6TypeMod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", p6TypeMod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, p6TypeMod.Modifier.ContainingAssembly.GetSymbol()); Assert.False(m7.ReturnsVoid); Assert.Equal(1, m7.ReturnTypeWithAnnotations.CustomModifiers.Length); var m7Mod = m7.ReturnTypeWithAnnotations.CustomModifiers[0]; Assert.True(m7Mod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", m7Mod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, m7Mod.Modifier.ContainingAssembly.GetSymbol()); } [Fact] public void Test2() { var oldMsCorLib = TestMetadata.Net40.mscorlib; var newMsCorLib = TestMetadata.Net451.mscorlib; var source = @" public class Modifiers { public volatile int volatileFld; void F1(System.DateTime* p) { } } "; CSharpCompilation c1 = CSharpCompilation.Create("C1", new[] { Parse(source) }, new[] { oldMsCorLib }); var c1Assembly = c1.Assembly; var r1 = new CSharpCompilationReference(c1); CSharpCompilation c2 = CSharpCompilation.Create("C2", references: new[] { (MetadataReference)newMsCorLib, r1 }); var c1AsmRef = c2.GetReferencedAssemblySymbol(r1); Assert.NotSame(c1Assembly, c1AsmRef); var mscorlibAssembly = c2.GetReferencedAssemblySymbol(newMsCorLib); Assert.NotSame(mscorlibAssembly, c1.GetReferencedAssemblySymbol(oldMsCorLib)); var modifiers = c2.GlobalNamespace.GetTypeMembers("Modifiers").Single(); Assert.IsType<RetargetingNamedTypeSymbol>(modifiers); FieldSymbol volatileFld = modifiers.GetMembers("volatileFld").OfType<FieldSymbol>().Single(); Assert.Equal(1, volatileFld.TypeWithAnnotations.CustomModifiers.Length); var volatileFldMod = volatileFld.TypeWithAnnotations.CustomModifiers[0]; Assert.False(volatileFldMod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsVolatile", volatileFldMod.Modifier.ToTestDisplayString()); Assert.Equal(SpecialType.System_Int32, volatileFld.Type.SpecialType); Assert.Same(mscorlibAssembly, ((CSharpCustomModifier)volatileFldMod).ModifierSymbol.ContainingAssembly); Assert.Equal("volatileFld", volatileFld.Name); Assert.True(volatileFld.IsVolatile); Assert.Same(volatileFld, volatileFld.OriginalDefinition); Assert.Null(volatileFld.GetConstantValue(ConstantFieldsInProgress.Empty, earlyDecodingWellKnownAttributes: false)); Assert.Null(volatileFld.ConstantValue); Assert.Null(volatileFld.AssociatedSymbol); Assert.Same(c1AsmRef, volatileFld.ContainingAssembly); Assert.Same(c1AsmRef.Modules[0], volatileFld.ContainingModule); Assert.Same(modifiers, volatileFld.ContainingSymbol); Assert.Equal(Accessibility.Public, volatileFld.DeclaredAccessibility); Assert.False(volatileFld.IsConst); Assert.False(volatileFld.IsReadOnly); Assert.False(volatileFld.IsStatic); Assert.Same(volatileFld.ContainingModule, ((RetargetingFieldSymbol)volatileFld).RetargetingModule); Assert.Same(c1Assembly, ((RetargetingFieldSymbol)volatileFld).UnderlyingField.ContainingAssembly); MethodSymbol m1 = modifiers.GetMembers("F1").OfType<MethodSymbol>().Single(); Assert.Equal(0, m1.ReturnTypeWithAnnotations.CustomModifiers.Length); Assert.True(!m1.ExplicitInterfaceImplementations.IsDefault); Assert.Equal(0, m1.ExplicitInterfaceImplementations.Length); Assert.False(m1.HidesBaseMethodsByName); Assert.False(m1.IsExtensionMethod); Assert.Equal(((RetargetingMethodSymbol)m1).UnderlyingMethod.CallingConvention, m1.CallingConvention); Assert.Null(m1.AssociatedSymbol); Assert.Same(c1AsmRef.Modules[0], m1.ContainingModule); ParameterSymbol p1 = m1.Parameters[0]; Assert.Equal(0, p1.TypeWithAnnotations.CustomModifiers.Length); Assert.Same(c1AsmRef.Modules[0], p1.ContainingModule); Assert.False(p1.HasExplicitDefaultValue, "Parameter has default value"); Assert.Equal(0, p1.Ordinal); PointerTypeSymbol p1Type = (PointerTypeSymbol)p1.Type; Assert.Null(p1Type.ContainingAssembly); Assert.Same(mscorlibAssembly, p1Type.PointedAtType.ContainingAssembly); Assert.Equal(SpecialType.System_DateTime, p1Type.PointedAtType.SpecialType); Assert.Equal(0, p1.TypeWithAnnotations.CustomModifiers.Length); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE; using Microsoft.CodeAnalysis.CSharp.Symbols.Retargeting; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Xunit; using Roslyn.Test.Utilities; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.Symbols.Retargeting { public class RetargetCustomModifiers : CSharpTestBase { [Fact] public void Test1() { var oldMsCorLib = TestMetadata.Net40.mscorlib; var newMsCorLib = TestMetadata.Net451.mscorlib; var c1 = CSharpCompilation.Create("C1", references: new[] { oldMsCorLib, TestReferences.SymbolsTests.CustomModifiers.Modifiers.netmodule }); var c1Assembly = c1.Assembly; CSharpCompilation c2 = CSharpCompilation.Create("C2", references: new MetadataReference[] { newMsCorLib, new CSharpCompilationReference(c1) }); var mscorlibAssembly = c2.GetReferencedAssemblySymbol(newMsCorLib); Assert.NotSame(mscorlibAssembly, c1.GetReferencedAssemblySymbol(oldMsCorLib)); var modifiers = c2.GlobalNamespace.GetTypeMembers("Modifiers").Single(); Assert.IsAssignableFrom<PENamedTypeSymbol>(modifiers); FieldSymbol f0 = modifiers.GetMembers("F0").OfType<FieldSymbol>().Single(); Assert.Equal(1, f0.TypeWithAnnotations.CustomModifiers.Length); var f0Mod = f0.TypeWithAnnotations.CustomModifiers[0]; Assert.True(f0Mod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", f0Mod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, f0Mod.Modifier.ContainingAssembly.GetSymbol()); MethodSymbol m1 = modifiers.GetMembers("F1").OfType<MethodSymbol>().Single(); ParameterSymbol p1 = m1.Parameters[0]; ParameterSymbol p2 = modifiers.GetMembers("F2").OfType<MethodSymbol>().Single().Parameters[0]; MethodSymbol m5 = modifiers.GetMembers("F5").OfType<MethodSymbol>().Single(); ParameterSymbol p5 = m5.Parameters[0]; ParameterSymbol p6 = modifiers.GetMembers("F6").OfType<MethodSymbol>().Single().Parameters[0]; MethodSymbol m7 = modifiers.GetMembers("F7").OfType<MethodSymbol>().Single(); Assert.Equal(0, m1.ReturnTypeWithAnnotations.CustomModifiers.Length); Assert.Equal(1, p1.TypeWithAnnotations.CustomModifiers.Length); var p1Mod = p1.TypeWithAnnotations.CustomModifiers[0]; Assert.True(p1Mod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", p1Mod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, p1Mod.Modifier.ContainingAssembly.GetSymbol()); Assert.Equal(2, p2.TypeWithAnnotations.CustomModifiers.Length); foreach (var p2Mod in p2.TypeWithAnnotations.CustomModifiers) { Assert.True(p2Mod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", p2Mod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, p2Mod.Modifier.ContainingAssembly.GetSymbol()); } Assert.True(m5.ReturnsVoid); Assert.Equal(1, m5.ReturnTypeWithAnnotations.CustomModifiers.Length); var m5Mod = m5.ReturnTypeWithAnnotations.CustomModifiers[0]; Assert.True(m5Mod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", m5Mod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, m5Mod.Modifier.ContainingAssembly.GetSymbol()); Assert.Equal(0, p5.TypeWithAnnotations.CustomModifiers.Length); ArrayTypeSymbol p5Type = (ArrayTypeSymbol)p5.Type; Assert.Equal("System.Int32", p5Type.ElementType.ToTestDisplayString()); Assert.Equal(1, p5Type.ElementTypeWithAnnotations.CustomModifiers.Length); var p5TypeMod = p5Type.ElementTypeWithAnnotations.CustomModifiers[0]; Assert.True(p5TypeMod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", p5TypeMod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, p5TypeMod.Modifier.ContainingAssembly.GetSymbol()); Assert.Equal(0, p6.TypeWithAnnotations.CustomModifiers.Length); PointerTypeSymbol p6Type = (PointerTypeSymbol)p6.Type; Assert.Equal("System.Int32", p6Type.PointedAtType.ToTestDisplayString()); Assert.Equal(1, p6Type.PointedAtTypeWithAnnotations.CustomModifiers.Length); var p6TypeMod = p6Type.PointedAtTypeWithAnnotations.CustomModifiers[0]; Assert.True(p6TypeMod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", p6TypeMod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, p6TypeMod.Modifier.ContainingAssembly.GetSymbol()); Assert.False(m7.ReturnsVoid); Assert.Equal(1, m7.ReturnTypeWithAnnotations.CustomModifiers.Length); var m7Mod = m7.ReturnTypeWithAnnotations.CustomModifiers[0]; Assert.True(m7Mod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsConst", m7Mod.Modifier.ToTestDisplayString()); Assert.Same(mscorlibAssembly, m7Mod.Modifier.ContainingAssembly.GetSymbol()); } [Fact] public void Test2() { var oldMsCorLib = TestMetadata.Net40.mscorlib; var newMsCorLib = TestMetadata.Net451.mscorlib; var source = @" public class Modifiers { public volatile int volatileFld; void F1(System.DateTime* p) { } } "; CSharpCompilation c1 = CSharpCompilation.Create("C1", new[] { Parse(source) }, new[] { oldMsCorLib }); var c1Assembly = c1.Assembly; var r1 = new CSharpCompilationReference(c1); CSharpCompilation c2 = CSharpCompilation.Create("C2", references: new[] { (MetadataReference)newMsCorLib, r1 }); var c1AsmRef = c2.GetReferencedAssemblySymbol(r1); Assert.NotSame(c1Assembly, c1AsmRef); var mscorlibAssembly = c2.GetReferencedAssemblySymbol(newMsCorLib); Assert.NotSame(mscorlibAssembly, c1.GetReferencedAssemblySymbol(oldMsCorLib)); var modifiers = c2.GlobalNamespace.GetTypeMembers("Modifiers").Single(); Assert.IsType<RetargetingNamedTypeSymbol>(modifiers); FieldSymbol volatileFld = modifiers.GetMembers("volatileFld").OfType<FieldSymbol>().Single(); Assert.Equal(1, volatileFld.TypeWithAnnotations.CustomModifiers.Length); var volatileFldMod = volatileFld.TypeWithAnnotations.CustomModifiers[0]; Assert.False(volatileFldMod.IsOptional); Assert.Equal("System.Runtime.CompilerServices.IsVolatile", volatileFldMod.Modifier.ToTestDisplayString()); Assert.Equal(SpecialType.System_Int32, volatileFld.Type.SpecialType); Assert.Same(mscorlibAssembly, ((CSharpCustomModifier)volatileFldMod).ModifierSymbol.ContainingAssembly); Assert.Equal("volatileFld", volatileFld.Name); Assert.True(volatileFld.IsVolatile); Assert.Same(volatileFld, volatileFld.OriginalDefinition); Assert.Null(volatileFld.GetConstantValue(ConstantFieldsInProgress.Empty, earlyDecodingWellKnownAttributes: false)); Assert.Null(volatileFld.ConstantValue); Assert.Null(volatileFld.AssociatedSymbol); Assert.Same(c1AsmRef, volatileFld.ContainingAssembly); Assert.Same(c1AsmRef.Modules[0], volatileFld.ContainingModule); Assert.Same(modifiers, volatileFld.ContainingSymbol); Assert.Equal(Accessibility.Public, volatileFld.DeclaredAccessibility); Assert.False(volatileFld.IsConst); Assert.False(volatileFld.IsReadOnly); Assert.False(volatileFld.IsStatic); Assert.Same(volatileFld.ContainingModule, ((RetargetingFieldSymbol)volatileFld).RetargetingModule); Assert.Same(c1Assembly, ((RetargetingFieldSymbol)volatileFld).UnderlyingField.ContainingAssembly); MethodSymbol m1 = modifiers.GetMembers("F1").OfType<MethodSymbol>().Single(); Assert.Equal(0, m1.ReturnTypeWithAnnotations.CustomModifiers.Length); Assert.True(!m1.ExplicitInterfaceImplementations.IsDefault); Assert.Equal(0, m1.ExplicitInterfaceImplementations.Length); Assert.False(m1.HidesBaseMethodsByName); Assert.False(m1.IsExtensionMethod); Assert.Equal(((RetargetingMethodSymbol)m1).UnderlyingMethod.CallingConvention, m1.CallingConvention); Assert.Null(m1.AssociatedSymbol); Assert.Same(c1AsmRef.Modules[0], m1.ContainingModule); ParameterSymbol p1 = m1.Parameters[0]; Assert.Equal(0, p1.TypeWithAnnotations.CustomModifiers.Length); Assert.Same(c1AsmRef.Modules[0], p1.ContainingModule); Assert.False(p1.HasExplicitDefaultValue, "Parameter has default value"); Assert.Equal(0, p1.Ordinal); PointerTypeSymbol p1Type = (PointerTypeSymbol)p1.Type; Assert.Null(p1Type.ContainingAssembly); Assert.Same(mscorlibAssembly, p1Type.PointedAtType.ContainingAssembly); Assert.Equal(SpecialType.System_DateTime, p1Type.PointedAtType.SpecialType); Assert.Equal(0, p1.TypeWithAnnotations.CustomModifiers.Length); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/CSharp/Portable/Symbols/Source/SourceOrdinaryMethodSymbol.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Symbols { internal sealed class SourceOrdinaryMethodSymbol : SourceOrdinaryMethodSymbolBase { private readonly TypeSymbol _explicitInterfaceType; private readonly bool _isExpressionBodied; private readonly bool _hasAnyBody; private readonly RefKind _refKind; private bool _lazyIsVararg; /// <summary> /// A collection of type parameter constraint types, populated when /// constraint types for the first type parameter is requested. /// Initialized in two steps. Hold a copy if accessing during initialization. /// </summary> private ImmutableArray<ImmutableArray<TypeWithAnnotations>> _lazyTypeParameterConstraintTypes; /// <summary> /// A collection of type parameter constraint kinds, populated when /// constraint kinds for the first type parameter is requested. /// Initialized in two steps. Hold a copy if accessing during initialization. /// </summary> private ImmutableArray<TypeParameterConstraintKind> _lazyTypeParameterConstraintKinds; /// <summary> /// If this symbol represents a partial method definition or implementation part, its other part (if any). /// This should be set, if at all, before this symbol appears among the members of its owner. /// The implementation part is not listed among the "members" of the enclosing type. /// </summary> private SourceOrdinaryMethodSymbol _otherPartOfPartial; public static SourceOrdinaryMethodSymbol CreateMethodSymbol( NamedTypeSymbol containingType, Binder bodyBinder, MethodDeclarationSyntax syntax, bool isNullableAnalysisEnabled, BindingDiagnosticBag diagnostics) { var interfaceSpecifier = syntax.ExplicitInterfaceSpecifier; var nameToken = syntax.Identifier; TypeSymbol explicitInterfaceType; var name = ExplicitInterfaceHelpers.GetMemberNameAndInterfaceSymbol(bodyBinder, interfaceSpecifier, nameToken.ValueText, diagnostics, out explicitInterfaceType, aliasQualifierOpt: out _); var location = new SourceLocation(nameToken); var methodKind = interfaceSpecifier == null ? MethodKind.Ordinary : MethodKind.ExplicitInterfaceImplementation; return new SourceOrdinaryMethodSymbol(containingType, explicitInterfaceType, name, location, syntax, methodKind, isNullableAnalysisEnabled, diagnostics); } private SourceOrdinaryMethodSymbol( NamedTypeSymbol containingType, TypeSymbol explicitInterfaceType, string name, Location location, MethodDeclarationSyntax syntax, MethodKind methodKind, bool isNullableAnalysisEnabled, BindingDiagnosticBag diagnostics) : base(containingType, name, location, syntax, methodKind, isIterator: SyntaxFacts.HasYieldOperations(syntax.Body), isExtensionMethod: syntax.ParameterList.Parameters.FirstOrDefault() is ParameterSyntax firstParam && !firstParam.IsArgList && firstParam.Modifiers.Any(SyntaxKind.ThisKeyword), isPartial: syntax.Modifiers.IndexOf(SyntaxKind.PartialKeyword) < 0, isReadOnly: false, hasBody: syntax.Body != null || syntax.ExpressionBody != null, isNullableAnalysisEnabled: isNullableAnalysisEnabled, diagnostics) { Debug.Assert(diagnostics.DiagnosticBag is object); _explicitInterfaceType = explicitInterfaceType; bool hasBlockBody = syntax.Body != null; _isExpressionBodied = !hasBlockBody && syntax.ExpressionBody != null; bool hasBody = hasBlockBody || _isExpressionBodied; _hasAnyBody = hasBody; _refKind = syntax.ReturnType.GetRefKind(); CheckForBlockAndExpressionBody( syntax.Body, syntax.ExpressionBody, syntax, diagnostics); } protected override ImmutableArray<TypeParameterSymbol> MakeTypeParameters(CSharpSyntaxNode node, BindingDiagnosticBag diagnostics) { var syntax = (MethodDeclarationSyntax)node; if (syntax.Arity == 0) { ReportErrorIfHasConstraints(syntax.ConstraintClauses, diagnostics.DiagnosticBag); return ImmutableArray<TypeParameterSymbol>.Empty; } else { return MakeTypeParameters(syntax, diagnostics); } } protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters, bool IsVararg, ImmutableArray<TypeParameterConstraintClause> DeclaredConstraintsForOverrideOrImplementation) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics) { var syntax = GetSyntax(); var withTypeParamsBinder = this.DeclaringCompilation.GetBinderFactory(syntax.SyntaxTree).GetBinder(syntax.ReturnType, syntax, this); SyntaxToken arglistToken; // Constraint checking for parameter and return types must be delayed until // the method has been added to the containing type member list since // evaluating the constraints may depend on accessing this method from // the container (comparing this method to others to find overrides for // instance). Constraints are checked in AfterAddingTypeMembersChecks. var signatureBinder = withTypeParamsBinder.WithAdditionalFlagsAndContainingMemberOrLambda(BinderFlags.SuppressConstraintChecks, this); ImmutableArray<ParameterSymbol> parameters = ParameterHelpers.MakeParameters( signatureBinder, this, syntax.ParameterList, out arglistToken, allowRefOrOut: true, allowThis: true, addRefReadOnlyModifier: IsVirtual || IsAbstract, diagnostics: diagnostics); _lazyIsVararg = (arglistToken.Kind() == SyntaxKind.ArgListKeyword); RefKind refKind; var returnTypeSyntax = syntax.ReturnType.SkipRef(out refKind); TypeWithAnnotations returnType = signatureBinder.BindType(returnTypeSyntax, diagnostics); // span-like types are returnable in general if (returnType.IsRestrictedType(ignoreSpanLikeTypes: true)) { if (returnType.SpecialType == SpecialType.System_TypedReference && (this.ContainingType.SpecialType == SpecialType.System_TypedReference || this.ContainingType.SpecialType == SpecialType.System_ArgIterator)) { // Two special cases: methods in the special types TypedReference and ArgIterator are allowed to return TypedReference } else { // The return type of a method, delegate, or function pointer cannot be '{0}' diagnostics.Add(ErrorCode.ERR_MethodReturnCantBeRefAny, syntax.ReturnType.Location, returnType.Type); } } Debug.Assert(this.RefKind == RefKind.None || !returnType.IsVoidType() || returnTypeSyntax.HasErrors); ImmutableArray<TypeParameterConstraintClause> declaredConstraints = default; if (this.Arity != 0 && (syntax.ExplicitInterfaceSpecifier != null || IsOverride)) { // When a generic method overrides a generic method declared in a base class, or is an // explicit interface member implementation of a method in a base interface, the method // shall not specify any type-parameter-constraints-clauses, except for a struct, class, or default constraint. // In these cases, the type parameters of the method inherit constraints from the method being overridden or // implemented. if (syntax.ConstraintClauses.Count > 0) { Binder.CheckFeatureAvailability(syntax.SyntaxTree, MessageID.IDS_OverrideWithConstraints, diagnostics, syntax.ConstraintClauses[0].WhereKeyword.GetLocation()); declaredConstraints = signatureBinder.WithAdditionalFlags(BinderFlags.GenericConstraintsClause | BinderFlags.SuppressConstraintChecks). BindTypeParameterConstraintClauses(this, TypeParameters, syntax.TypeParameterList, syntax.ConstraintClauses, diagnostics, performOnlyCycleSafeValidation: false, isForOverride: true); Debug.Assert(declaredConstraints.All(clause => clause.ConstraintTypes.IsEmpty)); } // Force resolution of nullable type parameter used in the signature of an override or explicit interface implementation // based on constraints specified by the declaration. foreach (var param in parameters) { forceMethodTypeParameters(param.TypeWithAnnotations, this, declaredConstraints); } forceMethodTypeParameters(returnType, this, declaredConstraints); } return (returnType, parameters, _lazyIsVararg, declaredConstraints); static void forceMethodTypeParameters(TypeWithAnnotations type, SourceOrdinaryMethodSymbol method, ImmutableArray<TypeParameterConstraintClause> declaredConstraints) { type.VisitType(null, (type, args, unused2) => { if (type.DefaultType is TypeParameterSymbol typeParameterSymbol && typeParameterSymbol.DeclaringMethod == (object)args.method) { var asValueType = args.declaredConstraints.IsDefault || (args.declaredConstraints[typeParameterSymbol.Ordinal].Constraints & (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.Default)) == 0; type.TryForceResolve(asValueType); } return false; }, typePredicate: null, arg: (method, declaredConstraints), canDigThroughNullable: false, useDefaultType: true); } } protected override void ExtensionMethodChecks(BindingDiagnosticBag diagnostics) { // errors relevant for extension methods if (IsExtensionMethod) { var syntax = GetSyntax(); var location = locations[0]; var parameter0Type = this.Parameters[0].TypeWithAnnotations; var parameter0RefKind = this.Parameters[0].RefKind; if (!parameter0Type.Type.IsValidExtensionParameterType()) { // Duplicate Dev10 behavior by selecting the parameter type. var parameterSyntax = syntax.ParameterList.Parameters[0]; Debug.Assert(parameterSyntax.Type != null); var loc = parameterSyntax.Type.Location; diagnostics.Add(ErrorCode.ERR_BadTypeforThis, loc, parameter0Type.Type); } else if (parameter0RefKind == RefKind.Ref && !parameter0Type.Type.IsValueType) { diagnostics.Add(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, location, Name); } else if (parameter0RefKind == RefKind.In && parameter0Type.TypeKind != TypeKind.Struct) { diagnostics.Add(ErrorCode.ERR_InExtensionMustBeValueType, location, Name); } else if ((object)ContainingType.ContainingType != null) { diagnostics.Add(ErrorCode.ERR_ExtensionMethodsDecl, location, ContainingType.Name); } else if (!ContainingType.IsScriptClass && !(ContainingType.IsStatic && ContainingType.Arity == 0)) { // Duplicate Dev10 behavior by selecting the containing type identifier. However if there // is no containing type (in the interactive case for instance), select the method identifier. var typeDecl = syntax.Parent as TypeDeclarationSyntax; var identifier = (typeDecl != null) ? typeDecl.Identifier : syntax.Identifier; var loc = identifier.GetLocation(); diagnostics.Add(ErrorCode.ERR_BadExtensionAgg, loc); } else if (!IsStatic) { diagnostics.Add(ErrorCode.ERR_BadExtensionMeth, location); } else { // Verify ExtensionAttribute is available. var attributeConstructor = Binder.GetWellKnownTypeMember(DeclaringCompilation, WellKnownMember.System_Runtime_CompilerServices_ExtensionAttribute__ctor, out var useSiteInfo); Location thisLocation = syntax.ParameterList.Parameters[0].Modifiers.FirstOrDefault(SyntaxKind.ThisKeyword).GetLocation(); if ((object)attributeConstructor == null) { var memberDescriptor = WellKnownMembers.GetDescriptor(WellKnownMember.System_Runtime_CompilerServices_ExtensionAttribute__ctor); // do not use Binder.ReportUseSiteErrorForAttributeCtor in this case, because we'll need to report a special error id, not a generic use site error. diagnostics.Add( ErrorCode.ERR_ExtensionAttrNotFound, thisLocation, memberDescriptor.DeclaringTypeMetadataName); } else { diagnostics.Add(useSiteInfo, thisLocation); } } } } protected override MethodSymbol FindExplicitlyImplementedMethod(BindingDiagnosticBag diagnostics) { var syntax = GetSyntax(); return this.FindExplicitlyImplementedMethod(isOperator: false, _explicitInterfaceType, syntax.Identifier.ValueText, syntax.ExplicitInterfaceSpecifier, diagnostics); } protected override Location ReturnTypeLocation => GetSyntax().ReturnType.Location; protected override TypeSymbol ExplicitInterfaceType => _explicitInterfaceType; protected override bool HasAnyBody => _hasAnyBody; internal MethodDeclarationSyntax GetSyntax() { Debug.Assert(syntaxReferenceOpt != null); return (MethodDeclarationSyntax)syntaxReferenceOpt.GetSyntax(); } protected override void CompleteAsyncMethodChecksBetweenStartAndFinish() { if (IsPartialDefinition) { DeclaringCompilation.SymbolDeclaredEvent(this); } } public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() { if (_lazyTypeParameterConstraintTypes.IsDefault) { GetTypeParameterConstraintKinds(); var diagnostics = BindingDiagnosticBag.GetInstance(); var syntax = GetSyntax(); var withTypeParametersBinder = this.DeclaringCompilation .GetBinderFactory(syntax.SyntaxTree) .GetBinder(syntax.ReturnType, syntax, this); var constraints = this.MakeTypeParameterConstraintTypes( withTypeParametersBinder, TypeParameters, syntax.TypeParameterList, syntax.ConstraintClauses, diagnostics); if (ImmutableInterlocked.InterlockedInitialize(ref _lazyTypeParameterConstraintTypes, constraints)) { this.AddDeclarationDiagnostics(diagnostics); } diagnostics.Free(); } return _lazyTypeParameterConstraintTypes; } public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() { if (_lazyTypeParameterConstraintKinds.IsDefault) { var syntax = GetSyntax(); var withTypeParametersBinder = this.DeclaringCompilation .GetBinderFactory(syntax.SyntaxTree) .GetBinder(syntax.ReturnType, syntax, this); var constraints = this.MakeTypeParameterConstraintKinds( withTypeParametersBinder, TypeParameters, syntax.TypeParameterList, syntax.ConstraintClauses); ImmutableInterlocked.InterlockedInitialize(ref _lazyTypeParameterConstraintKinds, constraints); } return _lazyTypeParameterConstraintKinds; } public override bool IsVararg { get { LazyMethodChecks(); return _lazyIsVararg; } } protected override int GetParameterCountFromSyntax() => GetSyntax().ParameterList.ParameterCount; public override RefKind RefKind { get { return _refKind; } } internal static void InitializePartialMethodParts(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation) { Debug.Assert(definition.IsPartialDefinition); Debug.Assert(implementation.IsPartialImplementation); Debug.Assert((object)definition._otherPartOfPartial == null || (object)definition._otherPartOfPartial == implementation); Debug.Assert((object)implementation._otherPartOfPartial == null || (object)implementation._otherPartOfPartial == definition); definition._otherPartOfPartial = implementation; implementation._otherPartOfPartial = definition; } /// <summary> /// If this is a partial implementation part returns the definition part and vice versa. /// </summary> internal SourceOrdinaryMethodSymbol OtherPartOfPartial { get { return _otherPartOfPartial; } } /// <summary> /// Returns true if this symbol represents a partial method definition (the part that specifies a signature but no body). /// </summary> internal bool IsPartialDefinition { get { return this.IsPartial && !_hasAnyBody && !HasExternModifier; } } /// <summary> /// Returns true if this symbol represents a partial method implementation (the part that specifies both signature and body). /// </summary> internal bool IsPartialImplementation { get { return this.IsPartial && (_hasAnyBody || HasExternModifier); } } /// <summary> /// True if this is a partial method that doesn't have an implementation part. /// </summary> internal bool IsPartialWithoutImplementation { get { return this.IsPartialDefinition && (object)_otherPartOfPartial == null; } } /// <summary> /// Returns the implementation part of a partial method definition, /// or null if this is not a partial method or it is the definition part. /// </summary> internal SourceOrdinaryMethodSymbol SourcePartialDefinition { get { return this.IsPartialImplementation ? _otherPartOfPartial : null; } } /// <summary> /// Returns the definition part of a partial method implementation, /// or null if this is not a partial method or it is the implementation part. /// </summary> internal SourceOrdinaryMethodSymbol SourcePartialImplementation { get { return this.IsPartialDefinition ? _otherPartOfPartial : null; } } public override MethodSymbol PartialDefinitionPart { get { return SourcePartialDefinition; } } public override MethodSymbol PartialImplementationPart { get { return SourcePartialImplementation; } } public sealed override bool IsExtern { get { return IsPartialDefinition ? _otherPartOfPartial?.IsExtern ?? false : HasExternModifier; } } public override string GetDocumentationCommentXml(CultureInfo preferredCulture = null, bool expandIncludes = false, CancellationToken cancellationToken = default(CancellationToken)) { ref var lazyDocComment = ref expandIncludes ? ref this.lazyExpandedDocComment : ref this.lazyDocComment; return SourceDocumentationCommentUtils.GetAndCacheDocumentationComment(SourcePartialImplementation ?? this, expandIncludes, ref lazyDocComment); } protected override SourceMemberMethodSymbol BoundAttributesSource { get { return this.SourcePartialDefinition; } } internal override OneOrMany<SyntaxList<AttributeListSyntax>> GetAttributeDeclarations() { if ((object)this.SourcePartialImplementation != null) { return OneOrMany.Create(ImmutableArray.Create(AttributeDeclarationSyntaxList, this.SourcePartialImplementation.AttributeDeclarationSyntaxList)); } else { return OneOrMany.Create(AttributeDeclarationSyntaxList); } } private SyntaxList<AttributeListSyntax> AttributeDeclarationSyntaxList { get { var sourceContainer = this.ContainingType as SourceMemberContainerTypeSymbol; if ((object)sourceContainer != null && sourceContainer.AnyMemberHasAttributes) { return this.GetSyntax().AttributeLists; } return default(SyntaxList<AttributeListSyntax>); } } internal override bool IsExpressionBodied { get { return _isExpressionBodied; } } protected override DeclarationModifiers MakeDeclarationModifiers(DeclarationModifiers allowedModifiers, BindingDiagnosticBag diagnostics) { var syntax = GetSyntax(); return ModifierUtils.MakeAndCheckNontypeMemberModifiers(syntax.Modifiers, defaultAccess: DeclarationModifiers.None, allowedModifiers, Locations[0], diagnostics, out _); } private ImmutableArray<TypeParameterSymbol> MakeTypeParameters(MethodDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) { Debug.Assert(syntax.TypeParameterList != null); OverriddenMethodTypeParameterMapBase typeMap = null; if (this.IsOverride) { typeMap = new OverriddenMethodTypeParameterMap(this); } else if (this.IsExplicitInterfaceImplementation) { typeMap = new ExplicitInterfaceMethodTypeParameterMap(this); } var typeParameters = syntax.TypeParameterList.Parameters; var result = ArrayBuilder<TypeParameterSymbol>.GetInstance(); for (int ordinal = 0; ordinal < typeParameters.Count; ordinal++) { var parameter = typeParameters[ordinal]; if (parameter.VarianceKeyword.Kind() != SyntaxKind.None) { diagnostics.Add(ErrorCode.ERR_IllegalVarianceSyntax, parameter.VarianceKeyword.GetLocation()); } var identifier = parameter.Identifier; var location = identifier.GetLocation(); var name = identifier.ValueText; // Note: It is not an error to have a type parameter named the same as its enclosing method: void M<M>() {} for (int i = 0; i < result.Count; i++) { if (name == result[i].Name) { diagnostics.Add(ErrorCode.ERR_DuplicateTypeParameter, location, name); break; } } SourceMemberContainerTypeSymbol.ReportTypeNamedRecord(identifier.Text, this.DeclaringCompilation, diagnostics.DiagnosticBag, location); var tpEnclosing = ContainingType.FindEnclosingTypeParameter(name); if ((object)tpEnclosing != null) { // Type parameter '{0}' has the same name as the type parameter from outer type '{1}' diagnostics.Add(ErrorCode.WRN_TypeParameterSameAsOuterTypeParameter, location, name, tpEnclosing.ContainingType); } var syntaxRefs = ImmutableArray.Create(parameter.GetReference()); var locations = ImmutableArray.Create(location); var typeParameter = (typeMap != null) ? (TypeParameterSymbol)new SourceOverridingMethodTypeParameterSymbol( typeMap, name, ordinal, locations, syntaxRefs) : new SourceMethodTypeParameterSymbol( this, name, ordinal, locations, syntaxRefs); result.Add(typeParameter); } return result.ToImmutableAndFree(); } internal override void ForceComplete(SourceLocation locationOpt, CancellationToken cancellationToken) { var implementingPart = this.SourcePartialImplementation; if ((object)implementingPart != null) { implementingPart.ForceComplete(locationOpt, cancellationToken); } base.ForceComplete(locationOpt, cancellationToken); } internal override bool IsDefinedInSourceTree( SyntaxTree tree, TextSpan? definedWithinSpan, CancellationToken cancellationToken = default(CancellationToken)) { // Since only the declaring (and not the implementing) part of a partial method appears in the member // list, we need to ensure we complete the implementation part when needed. return base.IsDefinedInSourceTree(tree, definedWithinSpan, cancellationToken) || this.SourcePartialImplementation?.IsDefinedInSourceTree(tree, definedWithinSpan, cancellationToken) == true; } protected override void CheckConstraintsForExplicitInterfaceType(ConversionsBase conversions, BindingDiagnosticBag diagnostics) { if ((object)_explicitInterfaceType != null) { var syntax = this.GetSyntax(); Debug.Assert(syntax.ExplicitInterfaceSpecifier != null); _explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new SourceLocation(syntax.ExplicitInterfaceSpecifier.Name), diagnostics); } } protected override void PartialMethodChecks(BindingDiagnosticBag diagnostics) { var implementingPart = this.SourcePartialImplementation; if ((object)implementingPart != null) { PartialMethodChecks(this, implementingPart, diagnostics); } } /// <summary> /// Report differences between the defining and implementing /// parts of a partial method. Diagnostics are reported on the /// implementing part, matching Dev10 behavior. /// </summary> private static void PartialMethodChecks(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation, BindingDiagnosticBag diagnostics) { Debug.Assert(!ReferenceEquals(definition, implementation)); MethodSymbol constructedDefinition = definition.ConstructIfGeneric(TypeMap.TypeParametersAsTypeSymbolsWithIgnoredAnnotations(implementation.TypeParameters)); bool hasTypeDifferences = !constructedDefinition.ReturnTypeWithAnnotations.Equals(implementation.ReturnTypeWithAnnotations, TypeCompareKind.AllIgnoreOptions); if (hasTypeDifferences) { diagnostics.Add(ErrorCode.ERR_PartialMethodReturnTypeDifference, implementation.Locations[0]); } else if (MemberSignatureComparer.ConsideringTupleNamesCreatesDifference(definition, implementation)) { hasTypeDifferences = true; diagnostics.Add(ErrorCode.ERR_PartialMethodInconsistentTupleNames, implementation.Locations[0], definition, implementation); } if (definition.RefKind != implementation.RefKind) { diagnostics.Add(ErrorCode.ERR_PartialMethodRefReturnDifference, implementation.Locations[0]); } if (definition.IsStatic != implementation.IsStatic) { diagnostics.Add(ErrorCode.ERR_PartialMethodStaticDifference, implementation.Locations[0]); } if (definition.IsDeclaredReadOnly != implementation.IsDeclaredReadOnly) { diagnostics.Add(ErrorCode.ERR_PartialMethodReadOnlyDifference, implementation.Locations[0]); } if (definition.IsExtensionMethod != implementation.IsExtensionMethod) { diagnostics.Add(ErrorCode.ERR_PartialMethodExtensionDifference, implementation.Locations[0]); } if (definition.IsUnsafe != implementation.IsUnsafe && definition.CompilationAllowsUnsafe()) // Don't cascade. { diagnostics.Add(ErrorCode.ERR_PartialMethodUnsafeDifference, implementation.Locations[0]); } if (definition.IsParams() != implementation.IsParams()) { diagnostics.Add(ErrorCode.ERR_PartialMethodParamsDifference, implementation.Locations[0]); } if (definition.HasExplicitAccessModifier != implementation.HasExplicitAccessModifier || definition.DeclaredAccessibility != implementation.DeclaredAccessibility) { diagnostics.Add(ErrorCode.ERR_PartialMethodAccessibilityDifference, implementation.Locations[0]); } if (definition.IsVirtual != implementation.IsVirtual || definition.IsOverride != implementation.IsOverride || definition.IsSealed != implementation.IsSealed || definition.IsNew != implementation.IsNew) { diagnostics.Add(ErrorCode.ERR_PartialMethodExtendedModDifference, implementation.Locations[0]); } PartialMethodConstraintsChecks(definition, implementation, diagnostics); if (SourceMemberContainerTypeSymbol.CheckValidNullableMethodOverride( implementation.DeclaringCompilation, constructedDefinition, implementation, diagnostics, static (diagnostics, implementedMethod, implementingMethod, topLevel, arg) => { // report only if this is an unsafe *nullability* difference diagnostics.Add(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, implementingMethod.Locations[0]); }, static (diagnostics, implementedMethod, implementingMethod, implementingParameter, blameAttributes, arg) => { diagnostics.Add(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, implementingMethod.Locations[0], new FormattedSymbol(implementingParameter, SymbolDisplayFormat.ShortFormat)); }, extraArgument: (object)null)) { hasTypeDifferences = true; } if ((!hasTypeDifferences && !MemberSignatureComparer.PartialMethodsStrictComparer.Equals(definition, implementation)) || hasDifferencesInParameterOrTypeParameterName(definition, implementation)) { diagnostics.Add(ErrorCode.WRN_PartialMethodTypeDifference, implementation.Locations[0], new FormattedSymbol(definition, SymbolDisplayFormat.MinimallyQualifiedFormat), new FormattedSymbol(implementation, SymbolDisplayFormat.MinimallyQualifiedFormat)); } static bool hasDifferencesInParameterOrTypeParameterName(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation) { return !definition.Parameters.SequenceEqual(implementation.Parameters, (a, b) => a.Name == b.Name) || !definition.TypeParameters.SequenceEqual(implementation.TypeParameters, (a, b) => a.Name == b.Name); } } private static void PartialMethodConstraintsChecks(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation, BindingDiagnosticBag diagnostics) { Debug.Assert(!ReferenceEquals(definition, implementation)); Debug.Assert(definition.Arity == implementation.Arity); var typeParameters1 = definition.TypeParameters; int arity = typeParameters1.Length; if (arity == 0) { return; } var typeParameters2 = implementation.TypeParameters; var indexedTypeParameters = IndexedTypeParameterSymbol.Take(arity); var typeMap1 = new TypeMap(typeParameters1, indexedTypeParameters, allowAlpha: true); var typeMap2 = new TypeMap(typeParameters2, indexedTypeParameters, allowAlpha: true); // Report any mismatched method constraints. for (int i = 0; i < arity; i++) { var typeParameter1 = typeParameters1[i]; var typeParameter2 = typeParameters2[i]; if (!MemberSignatureComparer.HaveSameConstraints(typeParameter1, typeMap1, typeParameter2, typeMap2)) { diagnostics.Add(ErrorCode.ERR_PartialMethodInconsistentConstraints, implementation.Locations[0], implementation, typeParameter2.Name); } else if (!MemberSignatureComparer.HaveSameNullabilityInConstraints(typeParameter1, typeMap1, typeParameter2, typeMap2)) { diagnostics.Add(ErrorCode.WRN_NullabilityMismatchInConstraintsOnPartialImplementation, implementation.Locations[0], implementation, typeParameter2.Name); } } } internal override bool CallsAreOmitted(SyntaxTree syntaxTree) { if (this.IsPartialWithoutImplementation) { return true; } return base.CallsAreOmitted(syntaxTree); } internal override bool GenerateDebugInfo => !IsAsync && !IsIterator; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Symbols { internal sealed class SourceOrdinaryMethodSymbol : SourceOrdinaryMethodSymbolBase { private readonly TypeSymbol _explicitInterfaceType; private readonly bool _isExpressionBodied; private readonly bool _hasAnyBody; private readonly RefKind _refKind; private bool _lazyIsVararg; /// <summary> /// A collection of type parameter constraint types, populated when /// constraint types for the first type parameter is requested. /// Initialized in two steps. Hold a copy if accessing during initialization. /// </summary> private ImmutableArray<ImmutableArray<TypeWithAnnotations>> _lazyTypeParameterConstraintTypes; /// <summary> /// A collection of type parameter constraint kinds, populated when /// constraint kinds for the first type parameter is requested. /// Initialized in two steps. Hold a copy if accessing during initialization. /// </summary> private ImmutableArray<TypeParameterConstraintKind> _lazyTypeParameterConstraintKinds; /// <summary> /// If this symbol represents a partial method definition or implementation part, its other part (if any). /// This should be set, if at all, before this symbol appears among the members of its owner. /// The implementation part is not listed among the "members" of the enclosing type. /// </summary> private SourceOrdinaryMethodSymbol _otherPartOfPartial; public static SourceOrdinaryMethodSymbol CreateMethodSymbol( NamedTypeSymbol containingType, Binder bodyBinder, MethodDeclarationSyntax syntax, bool isNullableAnalysisEnabled, BindingDiagnosticBag diagnostics) { var interfaceSpecifier = syntax.ExplicitInterfaceSpecifier; var nameToken = syntax.Identifier; TypeSymbol explicitInterfaceType; var name = ExplicitInterfaceHelpers.GetMemberNameAndInterfaceSymbol(bodyBinder, interfaceSpecifier, nameToken.ValueText, diagnostics, out explicitInterfaceType, aliasQualifierOpt: out _); var location = new SourceLocation(nameToken); var methodKind = interfaceSpecifier == null ? MethodKind.Ordinary : MethodKind.ExplicitInterfaceImplementation; return new SourceOrdinaryMethodSymbol(containingType, explicitInterfaceType, name, location, syntax, methodKind, isNullableAnalysisEnabled, diagnostics); } private SourceOrdinaryMethodSymbol( NamedTypeSymbol containingType, TypeSymbol explicitInterfaceType, string name, Location location, MethodDeclarationSyntax syntax, MethodKind methodKind, bool isNullableAnalysisEnabled, BindingDiagnosticBag diagnostics) : base(containingType, name, location, syntax, methodKind, isIterator: SyntaxFacts.HasYieldOperations(syntax.Body), isExtensionMethod: syntax.ParameterList.Parameters.FirstOrDefault() is ParameterSyntax firstParam && !firstParam.IsArgList && firstParam.Modifiers.Any(SyntaxKind.ThisKeyword), isPartial: syntax.Modifiers.IndexOf(SyntaxKind.PartialKeyword) < 0, isReadOnly: false, hasBody: syntax.Body != null || syntax.ExpressionBody != null, isNullableAnalysisEnabled: isNullableAnalysisEnabled, diagnostics) { Debug.Assert(diagnostics.DiagnosticBag is object); _explicitInterfaceType = explicitInterfaceType; bool hasBlockBody = syntax.Body != null; _isExpressionBodied = !hasBlockBody && syntax.ExpressionBody != null; bool hasBody = hasBlockBody || _isExpressionBodied; _hasAnyBody = hasBody; _refKind = syntax.ReturnType.GetRefKind(); CheckForBlockAndExpressionBody( syntax.Body, syntax.ExpressionBody, syntax, diagnostics); } protected override ImmutableArray<TypeParameterSymbol> MakeTypeParameters(CSharpSyntaxNode node, BindingDiagnosticBag diagnostics) { var syntax = (MethodDeclarationSyntax)node; if (syntax.Arity == 0) { ReportErrorIfHasConstraints(syntax.ConstraintClauses, diagnostics.DiagnosticBag); return ImmutableArray<TypeParameterSymbol>.Empty; } else { return MakeTypeParameters(syntax, diagnostics); } } protected override (TypeWithAnnotations ReturnType, ImmutableArray<ParameterSymbol> Parameters, bool IsVararg, ImmutableArray<TypeParameterConstraintClause> DeclaredConstraintsForOverrideOrImplementation) MakeParametersAndBindReturnType(BindingDiagnosticBag diagnostics) { var syntax = GetSyntax(); var withTypeParamsBinder = this.DeclaringCompilation.GetBinderFactory(syntax.SyntaxTree).GetBinder(syntax.ReturnType, syntax, this); SyntaxToken arglistToken; // Constraint checking for parameter and return types must be delayed until // the method has been added to the containing type member list since // evaluating the constraints may depend on accessing this method from // the container (comparing this method to others to find overrides for // instance). Constraints are checked in AfterAddingTypeMembersChecks. var signatureBinder = withTypeParamsBinder.WithAdditionalFlagsAndContainingMemberOrLambda(BinderFlags.SuppressConstraintChecks, this); ImmutableArray<ParameterSymbol> parameters = ParameterHelpers.MakeParameters( signatureBinder, this, syntax.ParameterList, out arglistToken, allowRefOrOut: true, allowThis: true, addRefReadOnlyModifier: IsVirtual || IsAbstract, diagnostics: diagnostics); _lazyIsVararg = (arglistToken.Kind() == SyntaxKind.ArgListKeyword); RefKind refKind; var returnTypeSyntax = syntax.ReturnType.SkipRef(out refKind); TypeWithAnnotations returnType = signatureBinder.BindType(returnTypeSyntax, diagnostics); // span-like types are returnable in general if (returnType.IsRestrictedType(ignoreSpanLikeTypes: true)) { if (returnType.SpecialType == SpecialType.System_TypedReference && (this.ContainingType.SpecialType == SpecialType.System_TypedReference || this.ContainingType.SpecialType == SpecialType.System_ArgIterator)) { // Two special cases: methods in the special types TypedReference and ArgIterator are allowed to return TypedReference } else { // The return type of a method, delegate, or function pointer cannot be '{0}' diagnostics.Add(ErrorCode.ERR_MethodReturnCantBeRefAny, syntax.ReturnType.Location, returnType.Type); } } Debug.Assert(this.RefKind == RefKind.None || !returnType.IsVoidType() || returnTypeSyntax.HasErrors); ImmutableArray<TypeParameterConstraintClause> declaredConstraints = default; if (this.Arity != 0 && (syntax.ExplicitInterfaceSpecifier != null || IsOverride)) { // When a generic method overrides a generic method declared in a base class, or is an // explicit interface member implementation of a method in a base interface, the method // shall not specify any type-parameter-constraints-clauses, except for a struct, class, or default constraint. // In these cases, the type parameters of the method inherit constraints from the method being overridden or // implemented. if (syntax.ConstraintClauses.Count > 0) { Binder.CheckFeatureAvailability(syntax.SyntaxTree, MessageID.IDS_OverrideWithConstraints, diagnostics, syntax.ConstraintClauses[0].WhereKeyword.GetLocation()); declaredConstraints = signatureBinder.WithAdditionalFlags(BinderFlags.GenericConstraintsClause | BinderFlags.SuppressConstraintChecks). BindTypeParameterConstraintClauses(this, TypeParameters, syntax.TypeParameterList, syntax.ConstraintClauses, diagnostics, performOnlyCycleSafeValidation: false, isForOverride: true); Debug.Assert(declaredConstraints.All(clause => clause.ConstraintTypes.IsEmpty)); } // Force resolution of nullable type parameter used in the signature of an override or explicit interface implementation // based on constraints specified by the declaration. foreach (var param in parameters) { forceMethodTypeParameters(param.TypeWithAnnotations, this, declaredConstraints); } forceMethodTypeParameters(returnType, this, declaredConstraints); } return (returnType, parameters, _lazyIsVararg, declaredConstraints); static void forceMethodTypeParameters(TypeWithAnnotations type, SourceOrdinaryMethodSymbol method, ImmutableArray<TypeParameterConstraintClause> declaredConstraints) { type.VisitType(null, (type, args, unused2) => { if (type.DefaultType is TypeParameterSymbol typeParameterSymbol && typeParameterSymbol.DeclaringMethod == (object)args.method) { var asValueType = args.declaredConstraints.IsDefault || (args.declaredConstraints[typeParameterSymbol.Ordinal].Constraints & (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.Default)) == 0; type.TryForceResolve(asValueType); } return false; }, typePredicate: null, arg: (method, declaredConstraints), canDigThroughNullable: false, useDefaultType: true); } } protected override void ExtensionMethodChecks(BindingDiagnosticBag diagnostics) { // errors relevant for extension methods if (IsExtensionMethod) { var syntax = GetSyntax(); var location = locations[0]; var parameter0Type = this.Parameters[0].TypeWithAnnotations; var parameter0RefKind = this.Parameters[0].RefKind; if (!parameter0Type.Type.IsValidExtensionParameterType()) { // Duplicate Dev10 behavior by selecting the parameter type. var parameterSyntax = syntax.ParameterList.Parameters[0]; Debug.Assert(parameterSyntax.Type != null); var loc = parameterSyntax.Type.Location; diagnostics.Add(ErrorCode.ERR_BadTypeforThis, loc, parameter0Type.Type); } else if (parameter0RefKind == RefKind.Ref && !parameter0Type.Type.IsValueType) { diagnostics.Add(ErrorCode.ERR_RefExtensionMustBeValueTypeOrConstrainedToOne, location, Name); } else if (parameter0RefKind == RefKind.In && parameter0Type.TypeKind != TypeKind.Struct) { diagnostics.Add(ErrorCode.ERR_InExtensionMustBeValueType, location, Name); } else if ((object)ContainingType.ContainingType != null) { diagnostics.Add(ErrorCode.ERR_ExtensionMethodsDecl, location, ContainingType.Name); } else if (!ContainingType.IsScriptClass && !(ContainingType.IsStatic && ContainingType.Arity == 0)) { // Duplicate Dev10 behavior by selecting the containing type identifier. However if there // is no containing type (in the interactive case for instance), select the method identifier. var typeDecl = syntax.Parent as TypeDeclarationSyntax; var identifier = (typeDecl != null) ? typeDecl.Identifier : syntax.Identifier; var loc = identifier.GetLocation(); diagnostics.Add(ErrorCode.ERR_BadExtensionAgg, loc); } else if (!IsStatic) { diagnostics.Add(ErrorCode.ERR_BadExtensionMeth, location); } else { // Verify ExtensionAttribute is available. var attributeConstructor = Binder.GetWellKnownTypeMember(DeclaringCompilation, WellKnownMember.System_Runtime_CompilerServices_ExtensionAttribute__ctor, out var useSiteInfo); Location thisLocation = syntax.ParameterList.Parameters[0].Modifiers.FirstOrDefault(SyntaxKind.ThisKeyword).GetLocation(); if ((object)attributeConstructor == null) { var memberDescriptor = WellKnownMembers.GetDescriptor(WellKnownMember.System_Runtime_CompilerServices_ExtensionAttribute__ctor); // do not use Binder.ReportUseSiteErrorForAttributeCtor in this case, because we'll need to report a special error id, not a generic use site error. diagnostics.Add( ErrorCode.ERR_ExtensionAttrNotFound, thisLocation, memberDescriptor.DeclaringTypeMetadataName); } else { diagnostics.Add(useSiteInfo, thisLocation); } } } } protected override MethodSymbol FindExplicitlyImplementedMethod(BindingDiagnosticBag diagnostics) { var syntax = GetSyntax(); return this.FindExplicitlyImplementedMethod(isOperator: false, _explicitInterfaceType, syntax.Identifier.ValueText, syntax.ExplicitInterfaceSpecifier, diagnostics); } protected override Location ReturnTypeLocation => GetSyntax().ReturnType.Location; protected override TypeSymbol ExplicitInterfaceType => _explicitInterfaceType; protected override bool HasAnyBody => _hasAnyBody; internal MethodDeclarationSyntax GetSyntax() { Debug.Assert(syntaxReferenceOpt != null); return (MethodDeclarationSyntax)syntaxReferenceOpt.GetSyntax(); } protected override void CompleteAsyncMethodChecksBetweenStartAndFinish() { if (IsPartialDefinition) { DeclaringCompilation.SymbolDeclaredEvent(this); } } public override ImmutableArray<ImmutableArray<TypeWithAnnotations>> GetTypeParameterConstraintTypes() { if (_lazyTypeParameterConstraintTypes.IsDefault) { GetTypeParameterConstraintKinds(); var diagnostics = BindingDiagnosticBag.GetInstance(); var syntax = GetSyntax(); var withTypeParametersBinder = this.DeclaringCompilation .GetBinderFactory(syntax.SyntaxTree) .GetBinder(syntax.ReturnType, syntax, this); var constraints = this.MakeTypeParameterConstraintTypes( withTypeParametersBinder, TypeParameters, syntax.TypeParameterList, syntax.ConstraintClauses, diagnostics); if (ImmutableInterlocked.InterlockedInitialize(ref _lazyTypeParameterConstraintTypes, constraints)) { this.AddDeclarationDiagnostics(diagnostics); } diagnostics.Free(); } return _lazyTypeParameterConstraintTypes; } public override ImmutableArray<TypeParameterConstraintKind> GetTypeParameterConstraintKinds() { if (_lazyTypeParameterConstraintKinds.IsDefault) { var syntax = GetSyntax(); var withTypeParametersBinder = this.DeclaringCompilation .GetBinderFactory(syntax.SyntaxTree) .GetBinder(syntax.ReturnType, syntax, this); var constraints = this.MakeTypeParameterConstraintKinds( withTypeParametersBinder, TypeParameters, syntax.TypeParameterList, syntax.ConstraintClauses); ImmutableInterlocked.InterlockedInitialize(ref _lazyTypeParameterConstraintKinds, constraints); } return _lazyTypeParameterConstraintKinds; } public override bool IsVararg { get { LazyMethodChecks(); return _lazyIsVararg; } } protected override int GetParameterCountFromSyntax() => GetSyntax().ParameterList.ParameterCount; public override RefKind RefKind { get { return _refKind; } } internal static void InitializePartialMethodParts(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation) { Debug.Assert(definition.IsPartialDefinition); Debug.Assert(implementation.IsPartialImplementation); Debug.Assert((object)definition._otherPartOfPartial == null || (object)definition._otherPartOfPartial == implementation); Debug.Assert((object)implementation._otherPartOfPartial == null || (object)implementation._otherPartOfPartial == definition); definition._otherPartOfPartial = implementation; implementation._otherPartOfPartial = definition; } /// <summary> /// If this is a partial implementation part returns the definition part and vice versa. /// </summary> internal SourceOrdinaryMethodSymbol OtherPartOfPartial { get { return _otherPartOfPartial; } } /// <summary> /// Returns true if this symbol represents a partial method definition (the part that specifies a signature but no body). /// </summary> internal bool IsPartialDefinition { get { return this.IsPartial && !_hasAnyBody && !HasExternModifier; } } /// <summary> /// Returns true if this symbol represents a partial method implementation (the part that specifies both signature and body). /// </summary> internal bool IsPartialImplementation { get { return this.IsPartial && (_hasAnyBody || HasExternModifier); } } /// <summary> /// True if this is a partial method that doesn't have an implementation part. /// </summary> internal bool IsPartialWithoutImplementation { get { return this.IsPartialDefinition && (object)_otherPartOfPartial == null; } } /// <summary> /// Returns the implementation part of a partial method definition, /// or null if this is not a partial method or it is the definition part. /// </summary> internal SourceOrdinaryMethodSymbol SourcePartialDefinition { get { return this.IsPartialImplementation ? _otherPartOfPartial : null; } } /// <summary> /// Returns the definition part of a partial method implementation, /// or null if this is not a partial method or it is the implementation part. /// </summary> internal SourceOrdinaryMethodSymbol SourcePartialImplementation { get { return this.IsPartialDefinition ? _otherPartOfPartial : null; } } public override MethodSymbol PartialDefinitionPart { get { return SourcePartialDefinition; } } public override MethodSymbol PartialImplementationPart { get { return SourcePartialImplementation; } } public sealed override bool IsExtern { get { return IsPartialDefinition ? _otherPartOfPartial?.IsExtern ?? false : HasExternModifier; } } public override string GetDocumentationCommentXml(CultureInfo preferredCulture = null, bool expandIncludes = false, CancellationToken cancellationToken = default(CancellationToken)) { ref var lazyDocComment = ref expandIncludes ? ref this.lazyExpandedDocComment : ref this.lazyDocComment; return SourceDocumentationCommentUtils.GetAndCacheDocumentationComment(SourcePartialImplementation ?? this, expandIncludes, ref lazyDocComment); } protected override SourceMemberMethodSymbol BoundAttributesSource { get { return this.SourcePartialDefinition; } } internal override OneOrMany<SyntaxList<AttributeListSyntax>> GetAttributeDeclarations() { if ((object)this.SourcePartialImplementation != null) { return OneOrMany.Create(ImmutableArray.Create(AttributeDeclarationSyntaxList, this.SourcePartialImplementation.AttributeDeclarationSyntaxList)); } else { return OneOrMany.Create(AttributeDeclarationSyntaxList); } } private SyntaxList<AttributeListSyntax> AttributeDeclarationSyntaxList { get { var sourceContainer = this.ContainingType as SourceMemberContainerTypeSymbol; if ((object)sourceContainer != null && sourceContainer.AnyMemberHasAttributes) { return this.GetSyntax().AttributeLists; } return default(SyntaxList<AttributeListSyntax>); } } internal override bool IsExpressionBodied { get { return _isExpressionBodied; } } protected override DeclarationModifiers MakeDeclarationModifiers(DeclarationModifiers allowedModifiers, BindingDiagnosticBag diagnostics) { var syntax = GetSyntax(); return ModifierUtils.MakeAndCheckNontypeMemberModifiers(syntax.Modifiers, defaultAccess: DeclarationModifiers.None, allowedModifiers, Locations[0], diagnostics, out _); } private ImmutableArray<TypeParameterSymbol> MakeTypeParameters(MethodDeclarationSyntax syntax, BindingDiagnosticBag diagnostics) { Debug.Assert(syntax.TypeParameterList != null); OverriddenMethodTypeParameterMapBase typeMap = null; if (this.IsOverride) { typeMap = new OverriddenMethodTypeParameterMap(this); } else if (this.IsExplicitInterfaceImplementation) { typeMap = new ExplicitInterfaceMethodTypeParameterMap(this); } var typeParameters = syntax.TypeParameterList.Parameters; var result = ArrayBuilder<TypeParameterSymbol>.GetInstance(); for (int ordinal = 0; ordinal < typeParameters.Count; ordinal++) { var parameter = typeParameters[ordinal]; if (parameter.VarianceKeyword.Kind() != SyntaxKind.None) { diagnostics.Add(ErrorCode.ERR_IllegalVarianceSyntax, parameter.VarianceKeyword.GetLocation()); } var identifier = parameter.Identifier; var location = identifier.GetLocation(); var name = identifier.ValueText; // Note: It is not an error to have a type parameter named the same as its enclosing method: void M<M>() {} for (int i = 0; i < result.Count; i++) { if (name == result[i].Name) { diagnostics.Add(ErrorCode.ERR_DuplicateTypeParameter, location, name); break; } } SourceMemberContainerTypeSymbol.ReportTypeNamedRecord(identifier.Text, this.DeclaringCompilation, diagnostics.DiagnosticBag, location); var tpEnclosing = ContainingType.FindEnclosingTypeParameter(name); if ((object)tpEnclosing != null) { // Type parameter '{0}' has the same name as the type parameter from outer type '{1}' diagnostics.Add(ErrorCode.WRN_TypeParameterSameAsOuterTypeParameter, location, name, tpEnclosing.ContainingType); } var syntaxRefs = ImmutableArray.Create(parameter.GetReference()); var locations = ImmutableArray.Create(location); var typeParameter = (typeMap != null) ? (TypeParameterSymbol)new SourceOverridingMethodTypeParameterSymbol( typeMap, name, ordinal, locations, syntaxRefs) : new SourceMethodTypeParameterSymbol( this, name, ordinal, locations, syntaxRefs); result.Add(typeParameter); } return result.ToImmutableAndFree(); } internal override void ForceComplete(SourceLocation locationOpt, CancellationToken cancellationToken) { var implementingPart = this.SourcePartialImplementation; if ((object)implementingPart != null) { implementingPart.ForceComplete(locationOpt, cancellationToken); } base.ForceComplete(locationOpt, cancellationToken); } internal override bool IsDefinedInSourceTree( SyntaxTree tree, TextSpan? definedWithinSpan, CancellationToken cancellationToken = default(CancellationToken)) { // Since only the declaring (and not the implementing) part of a partial method appears in the member // list, we need to ensure we complete the implementation part when needed. return base.IsDefinedInSourceTree(tree, definedWithinSpan, cancellationToken) || this.SourcePartialImplementation?.IsDefinedInSourceTree(tree, definedWithinSpan, cancellationToken) == true; } protected override void CheckConstraintsForExplicitInterfaceType(ConversionsBase conversions, BindingDiagnosticBag diagnostics) { if ((object)_explicitInterfaceType != null) { var syntax = this.GetSyntax(); Debug.Assert(syntax.ExplicitInterfaceSpecifier != null); _explicitInterfaceType.CheckAllConstraints(DeclaringCompilation, conversions, new SourceLocation(syntax.ExplicitInterfaceSpecifier.Name), diagnostics); } } protected override void PartialMethodChecks(BindingDiagnosticBag diagnostics) { var implementingPart = this.SourcePartialImplementation; if ((object)implementingPart != null) { PartialMethodChecks(this, implementingPart, diagnostics); } } /// <summary> /// Report differences between the defining and implementing /// parts of a partial method. Diagnostics are reported on the /// implementing part, matching Dev10 behavior. /// </summary> private static void PartialMethodChecks(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation, BindingDiagnosticBag diagnostics) { Debug.Assert(!ReferenceEquals(definition, implementation)); MethodSymbol constructedDefinition = definition.ConstructIfGeneric(TypeMap.TypeParametersAsTypeSymbolsWithIgnoredAnnotations(implementation.TypeParameters)); bool hasTypeDifferences = !constructedDefinition.ReturnTypeWithAnnotations.Equals(implementation.ReturnTypeWithAnnotations, TypeCompareKind.AllIgnoreOptions); if (hasTypeDifferences) { diagnostics.Add(ErrorCode.ERR_PartialMethodReturnTypeDifference, implementation.Locations[0]); } else if (MemberSignatureComparer.ConsideringTupleNamesCreatesDifference(definition, implementation)) { hasTypeDifferences = true; diagnostics.Add(ErrorCode.ERR_PartialMethodInconsistentTupleNames, implementation.Locations[0], definition, implementation); } if (definition.RefKind != implementation.RefKind) { diagnostics.Add(ErrorCode.ERR_PartialMethodRefReturnDifference, implementation.Locations[0]); } if (definition.IsStatic != implementation.IsStatic) { diagnostics.Add(ErrorCode.ERR_PartialMethodStaticDifference, implementation.Locations[0]); } if (definition.IsDeclaredReadOnly != implementation.IsDeclaredReadOnly) { diagnostics.Add(ErrorCode.ERR_PartialMethodReadOnlyDifference, implementation.Locations[0]); } if (definition.IsExtensionMethod != implementation.IsExtensionMethod) { diagnostics.Add(ErrorCode.ERR_PartialMethodExtensionDifference, implementation.Locations[0]); } if (definition.IsUnsafe != implementation.IsUnsafe && definition.CompilationAllowsUnsafe()) // Don't cascade. { diagnostics.Add(ErrorCode.ERR_PartialMethodUnsafeDifference, implementation.Locations[0]); } if (definition.IsParams() != implementation.IsParams()) { diagnostics.Add(ErrorCode.ERR_PartialMethodParamsDifference, implementation.Locations[0]); } if (definition.HasExplicitAccessModifier != implementation.HasExplicitAccessModifier || definition.DeclaredAccessibility != implementation.DeclaredAccessibility) { diagnostics.Add(ErrorCode.ERR_PartialMethodAccessibilityDifference, implementation.Locations[0]); } if (definition.IsVirtual != implementation.IsVirtual || definition.IsOverride != implementation.IsOverride || definition.IsSealed != implementation.IsSealed || definition.IsNew != implementation.IsNew) { diagnostics.Add(ErrorCode.ERR_PartialMethodExtendedModDifference, implementation.Locations[0]); } PartialMethodConstraintsChecks(definition, implementation, diagnostics); if (SourceMemberContainerTypeSymbol.CheckValidNullableMethodOverride( implementation.DeclaringCompilation, constructedDefinition, implementation, diagnostics, static (diagnostics, implementedMethod, implementingMethod, topLevel, arg) => { // report only if this is an unsafe *nullability* difference diagnostics.Add(ErrorCode.WRN_NullabilityMismatchInReturnTypeOnPartial, implementingMethod.Locations[0]); }, static (diagnostics, implementedMethod, implementingMethod, implementingParameter, blameAttributes, arg) => { diagnostics.Add(ErrorCode.WRN_NullabilityMismatchInParameterTypeOnPartial, implementingMethod.Locations[0], new FormattedSymbol(implementingParameter, SymbolDisplayFormat.ShortFormat)); }, extraArgument: (object)null)) { hasTypeDifferences = true; } if ((!hasTypeDifferences && !MemberSignatureComparer.PartialMethodsStrictComparer.Equals(definition, implementation)) || hasDifferencesInParameterOrTypeParameterName(definition, implementation)) { diagnostics.Add(ErrorCode.WRN_PartialMethodTypeDifference, implementation.Locations[0], new FormattedSymbol(definition, SymbolDisplayFormat.MinimallyQualifiedFormat), new FormattedSymbol(implementation, SymbolDisplayFormat.MinimallyQualifiedFormat)); } static bool hasDifferencesInParameterOrTypeParameterName(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation) { return !definition.Parameters.SequenceEqual(implementation.Parameters, (a, b) => a.Name == b.Name) || !definition.TypeParameters.SequenceEqual(implementation.TypeParameters, (a, b) => a.Name == b.Name); } } private static void PartialMethodConstraintsChecks(SourceOrdinaryMethodSymbol definition, SourceOrdinaryMethodSymbol implementation, BindingDiagnosticBag diagnostics) { Debug.Assert(!ReferenceEquals(definition, implementation)); Debug.Assert(definition.Arity == implementation.Arity); var typeParameters1 = definition.TypeParameters; int arity = typeParameters1.Length; if (arity == 0) { return; } var typeParameters2 = implementation.TypeParameters; var indexedTypeParameters = IndexedTypeParameterSymbol.Take(arity); var typeMap1 = new TypeMap(typeParameters1, indexedTypeParameters, allowAlpha: true); var typeMap2 = new TypeMap(typeParameters2, indexedTypeParameters, allowAlpha: true); // Report any mismatched method constraints. for (int i = 0; i < arity; i++) { var typeParameter1 = typeParameters1[i]; var typeParameter2 = typeParameters2[i]; if (!MemberSignatureComparer.HaveSameConstraints(typeParameter1, typeMap1, typeParameter2, typeMap2)) { diagnostics.Add(ErrorCode.ERR_PartialMethodInconsistentConstraints, implementation.Locations[0], implementation, typeParameter2.Name); } else if (!MemberSignatureComparer.HaveSameNullabilityInConstraints(typeParameter1, typeMap1, typeParameter2, typeMap2)) { diagnostics.Add(ErrorCode.WRN_NullabilityMismatchInConstraintsOnPartialImplementation, implementation.Locations[0], implementation, typeParameter2.Name); } } } internal override bool CallsAreOmitted(SyntaxTree syntaxTree) { if (this.IsPartialWithoutImplementation) { return true; } return base.CallsAreOmitted(syntaxTree); } internal override bool GenerateDebugInfo => !IsAsync && !IsIterator; } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Features/CSharp/Portable/CodeFixes/AddExplicitCast/AttributeArgumentFixer.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.PooledObjects; namespace Microsoft.CodeAnalysis.CSharp.CodeFixes.AddExplicitCast { internal sealed partial class CSharpAddExplicitCastCodeFixProvider { private class AttributeArgumentFixer : Fixer<AttributeArgumentSyntax, AttributeArgumentListSyntax, AttributeSyntax> { public AttributeArgumentFixer(CSharpAddExplicitCastCodeFixProvider provider) : base(provider) { } protected override ExpressionSyntax GetExpressionOfArgument(AttributeArgumentSyntax argument) => argument.Expression; protected override AttributeArgumentSyntax GenerateNewArgument(AttributeArgumentSyntax oldArgument, ITypeSymbol conversionType) => oldArgument.WithExpression(oldArgument.Expression.Cast(conversionType)); protected override AttributeArgumentListSyntax GenerateNewArgumentList(AttributeArgumentListSyntax oldArgumentList, ArrayBuilder<AttributeArgumentSyntax> newArguments) => oldArgumentList.WithArguments(SyntaxFactory.SeparatedList(newArguments)); protected override SeparatedSyntaxList<AttributeArgumentSyntax> GetArgumentsOfArgumentList(AttributeArgumentListSyntax argumentList) => argumentList.Arguments; protected override SymbolInfo GetSpeculativeSymbolInfo(SemanticModel semanticModel, AttributeArgumentListSyntax newArgumentList) { var newAttribute = (AttributeSyntax)newArgumentList.Parent!; return semanticModel.GetSpeculativeSymbolInfo(newAttribute.SpanStart, newAttribute); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.PooledObjects; namespace Microsoft.CodeAnalysis.CSharp.CodeFixes.AddExplicitCast { internal sealed partial class CSharpAddExplicitCastCodeFixProvider { private class AttributeArgumentFixer : Fixer<AttributeArgumentSyntax, AttributeArgumentListSyntax, AttributeSyntax> { public AttributeArgumentFixer(CSharpAddExplicitCastCodeFixProvider provider) : base(provider) { } protected override ExpressionSyntax GetExpressionOfArgument(AttributeArgumentSyntax argument) => argument.Expression; protected override AttributeArgumentSyntax GenerateNewArgument(AttributeArgumentSyntax oldArgument, ITypeSymbol conversionType) => oldArgument.WithExpression(oldArgument.Expression.Cast(conversionType)); protected override AttributeArgumentListSyntax GenerateNewArgumentList(AttributeArgumentListSyntax oldArgumentList, ArrayBuilder<AttributeArgumentSyntax> newArguments) => oldArgumentList.WithArguments(SyntaxFactory.SeparatedList(newArguments)); protected override SeparatedSyntaxList<AttributeArgumentSyntax> GetArgumentsOfArgumentList(AttributeArgumentListSyntax argumentList) => argumentList.Arguments; protected override SymbolInfo GetSpeculativeSymbolInfo(SemanticModel semanticModel, AttributeArgumentListSyntax newArgumentList) { var newAttribute = (AttributeSyntax)newArgumentList.Parent!; return semanticModel.GetSpeculativeSymbolInfo(newAttribute.SpanStart, newAttribute); } } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/EditorFeatures/Test/RenameTracking/RenameTrackingTaggerProviderTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.Implementation.RenameTracking; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.VisualStudio.Text; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.UnitTests.RenameTracking { [UseExportProvider] public class RenameTrackingTaggerProviderTests { [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotOnCreation() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotInBlankFile() { var code = @"$$"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("d"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingTypingAtEnd() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("C", "Cat"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingTypingAtBeginning() { var code = @" class $$C { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("AB"); await state.AssertTag("C", "ABC"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingTypingInMiddle() { var code = @" class AB$$CD { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("ZZ"); await state.AssertTag("ABCD", "ABZZCD"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingDeleteFromEnd() { var code = @" class ABC$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); await state.AssertTag("ABC", "AB"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingDeleteFromBeginning() { var code = @" class $$ABC { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Delete(); await state.AssertTag("ABC", "BC"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingDeleteFromMiddle() { var code = @" class AB$$C { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); await state.AssertTag("ABC", "AC"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotOnClassKeyword() { var code = @" class$$ ABCD { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("d"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotAtMethodArgument() { var code = @" class ABCD { void Goo(int x) { int abc = 3; Goo($$ } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("a"); await state.AssertNoTag(); state.EditorOperations.InsertText("b"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingSessionContinuesAfterViewingTag() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("C", "Cat"); state.EditorOperations.InsertText("s"); await state.AssertTag("C", "Cats"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotInString() { var code = @" class C { void Goo() { string s = ""abc$$"" } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("d"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingHandlesAtSignAsCSharpEscape() { var code = @" class $$C { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("@"); await state.AssertTag("C", "@C"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingHandlesSquareBracketsAsVisualBasicEscape() { var code = @" Class $$C End Class"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText("["); await state.AssertNoTag(); state.MoveCaret(1); state.EditorOperations.InsertText("]"); await state.AssertTag("C", "[C]"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotOnSquareBracketsInCSharp() { var code = @" class $$C { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("["); await state.AssertNoTag(); state.MoveCaret(1); state.EditorOperations.InsertText("]"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingHandlesUnicode() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("\u0414\u046E\u046A\u00DB\u00CA\u00DB\u00C4\u00C1\u00CD\u00E4\u00E1\u0152\u0178\u00F5\u00E0\u0178\u00FC\u00C4\u00B5\u00C1i\u00DBE\u00EA\u00E0\u00EA\u00E8\u00E4\u00E5\u00ED\u00F2\u00E8\u00F4\u00E8\u00EA\u00E0\u00F2\u00EE\u00F0\u00F1\u00EB\u00EE\u00E2\u00EE"); await state.AssertTag("C", "C\u0414\u046E\u046A\u00DB\u00CA\u00DB\u00C4\u00C1\u00CD\u00E4\u00E1\u0152\u0178\u00F5\u00E0\u0178\u00FC\u00C4\u00B5\u00C1i\u00DBE\u00EA\u00E0\u00EA\u00E8\u00E4\u00E5\u00ED\u00F2\u00E8\u00F4\u00E8\u00EA\u00E0\u00F2\u00EE\u00F0\u00F1\u00EB\u00EE\u00E2\u00EE"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingThroughKeyword() { var code = @" class i$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("n"); await state.AssertNoTag(); state.EditorOperations.InsertText("t"); await state.AssertNoTag(); state.EditorOperations.InsertText("s"); await state.AssertTag("i", "ints"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingThroughIllegalStartCharacter() { var code = @" class $$abc { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("9"); await state.AssertNoTag(); state.MoveCaret(-1); state.EditorOperations.InsertText("t"); await state.AssertTag("abc", "t9abc"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingOnBothSidesOfIdentifier() { var code = @" class $$Def { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("Abc"); await state.AssertTag("Def", "AbcDef"); state.MoveCaret(3); state.EditorOperations.InsertText("Ghi"); await state.AssertTag("Def", "AbcDefGhi"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingThroughSameIdentifier() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("s"); await state.AssertTag("C", "Cs"); state.EditorOperations.Backspace(); await state.AssertNoTag(); state.EditorOperations.InsertText("s"); await state.AssertTag("C", "Cs"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingThroughEmptyString() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); await state.AssertNoTag(); state.EditorOperations.InsertText("D"); await state.AssertTag("C", "D"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingThroughEmptyStringWithCaretMove() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.MoveCaret(-4); state.MoveCaret(4); await state.AssertNoTag(); state.EditorOperations.InsertText("D"); await state.AssertTag("C", "D"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotThroughEmptyStringResumeOnDifferentSpace() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); // Move to previous space state.MoveCaret(-1); state.EditorOperations.InsertText("D"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingReplaceIdentifierSuffix() { var code = @" class Identifi[|er|]$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); var textSpan = state.HostDocument.SelectedSpans.Single(); state.EditorOperations.ReplaceText(new Span(textSpan.Start, textSpan.Length), "cation"); await state.AssertTag("Identifier", "Identification"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingReplaceIdentifierPrefix() { var code = @" class $$[|Ident|]ifier { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); var textSpan = state.HostDocument.SelectedSpans.Single(); state.EditorOperations.ReplaceText(new Span(textSpan.Start, textSpan.Length), "Complex"); await state.AssertTag("Identifier", "Complexifier"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingReplaceIdentifierCompletely() { var code = @" class [|Cat|]$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); var textSpan = state.HostDocument.SelectedSpans.Single(); state.EditorOperations.ReplaceText(new Span(textSpan.Start, textSpan.Length), "Dog"); await state.AssertTag("Cat", "Dog"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(34280, "https://github.com/dotnet/roslyn/issues/34280")] public async Task RenameTrackingReplaceIdentifierWithDiscard() { var code = @" class Class { int Method() { int i; [|i|]$$ = Method(); rteurn 0; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); var textSpan = state.HostDocument.SelectedSpans.Single(); state.EditorOperations.ReplaceText(new Span(textSpan.Start, textSpan.Length), "_"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotAfterInvoke() { var code = @" class Cat$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingInvokeAndChangeBackToOriginal() { var code = @" class Cat$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); await state.AssertNoTag(); state.EditorOperations.Backspace(); await state.AssertTag("Cats", "Cat"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingUndoOnceAndStartNewSession() { var code = @" class Cat$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("abc"); await state.AssertTag("Cat", "Catabc", invokeAction: true); await state.AssertNoTag(); // Back to original state.Undo(); await state.AssertNoTag(); state.EditorOperations.InsertText("xyz"); await state.AssertTag("Cat", "Catxyz"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingUndoTwiceAndContinueSession() { var code = @" class Cat$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("abc"); await state.AssertTag("Cat", "Catabc", invokeAction: true); await state.AssertNoTag(); // Resume rename tracking session state.Undo(2); await state.AssertTag("Cat", "Catabc"); state.EditorOperations.InsertText("xyz"); await state.AssertTag("Cat", "Catabcxyz"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingRedoAlwaysClearsState() { var code = @" class Cat$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); await state.AssertNoTag(); // Resume rename tracking session state.Undo(2); await state.AssertTag("Cat", "Cats"); state.Redo(); await state.AssertNoTag(); state.Redo(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingUndoTwiceRedoTwiceUndoStillWorks() { var code = @" class Cat$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); await state.AssertNoTag(); // Resume rename tracking session state.Undo(2); await state.AssertTag("Cat", "Cats"); state.Redo(2); await state.AssertNoTag(); // Back to original state.Undo(); await state.AssertNoTag(); // Resume rename tracking session state.Undo(); await state.AssertTag("Cat", "Cats"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingOnReference_ParameterAsArgument() { var code = @" class C { void M(int x) { M(x$$); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("yz"); await state.AssertTag("x", "xyz"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingOnReference_ParameterAsNamedArgument() { var code = @" class C { void M(int x) { M(x$$: x); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("yz"); await state.AssertTag("x", "xyz"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingOnReference_Namespace() { var code = @" namespace NS { class C { static void M() { NS$$.C.M(); } } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("A"); await state.AssertTag("NS", "NSA"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(21657, "https://github.com/dotnet/roslyn/issues/21657")] public async Task RenameTrackingOnReference_Attribute_CSharp() { var code = @" using System; class [|$$ustom|]Attribute : Attribute { } "; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("C"); await state.AssertTag("ustomAttribute", "CustomAttribute", invokeAction: true); var expectedCode = @" using System; class CustomAttribute : Attribute { } "; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(21657, "https://github.com/dotnet/roslyn/issues/21657")] public async Task RenameTrackingOnReference_Attribute_VB() { var code = @" Import System; Public Class [|$$ustom|]Attribute Inherits Attribute End Class "; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText("C"); await state.AssertTag("ustomAttribute", "CustomAttribute", invokeAction: true); var expectedCode = @" Import System; Public Class CustomAttribute Inherits Attribute End Class "; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(21657, "https://github.com/dotnet/roslyn/issues/21657")] public async Task RenameTrackingOnReference_Capitalized_Attribute_VB() { var code = @" Import System; Public Class [|$$ustom|]ATTRIBUTE Inherits Attribute End Class "; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText("C"); await state.AssertTag("ustomATTRIBUTE", "CustomATTRIBUTE", invokeAction: true); var expectedCode = @" Import System; Public Class CustomATTRIBUTE Inherits Attribute End Class "; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(21657, "https://github.com/dotnet/roslyn/issues/21657")] public async Task RenameTrackingOnReference_Not_Capitalized_Attribute_VB() { var code = @" Import System; Public Class [|$$ustom|]attribute Inherits Attribute End Class "; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText("C"); await state.AssertTag("ustomattribute", "Customattribute", invokeAction: true); var expectedCode = @" Import System; Public Class Customattribute Inherits Attribute End Class "; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotifiesThirdPartiesOfRenameOperation() { var code = @" class Cat$$ { public Cat() { } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); Assert.Equal(1, state.RefactorNotifyService.OnBeforeSymbolRenamedCount); Assert.Equal(1, state.RefactorNotifyService.OnAfterSymbolRenamedCount); var expectedCode = @" class Cats { public Cats() { } }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); state.AssertNoNotificationMessage(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingHonorsThirdPartyRequestsForCancellationBeforeRename() { var code = @" class Cat$$ { public Cat() { } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp, onBeforeGlobalSymbolRenamedReturnValue: false); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); Assert.Equal(1, state.RefactorNotifyService.OnBeforeSymbolRenamedCount); // Make sure the rename didn't proceed Assert.Equal(0, state.RefactorNotifyService.OnAfterSymbolRenamedCount); await state.AssertNoTag(); var expectedCode = @" class Cat { public Cat() { } }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); state.AssertNotificationMessage(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingAlertsAboutThirdPartyRequestsForCancellationAfterRename() { var code = @" class Cat$$ { public Cat() { } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp, onAfterGlobalSymbolRenamedReturnValue: false); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); Assert.Equal(1, state.RefactorNotifyService.OnBeforeSymbolRenamedCount); Assert.Equal(1, state.RefactorNotifyService.OnAfterSymbolRenamedCount); state.AssertNotificationMessage(); // Make sure the rename completed var expectedCode = @" class Cats { public Cats() { } }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); await state.AssertNoTag(); } [WpfFact, WorkItem(530469, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530469")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotWhenStartedFromTextualWordInTrivia() { var code = @" Module Program Sub Main() Dim [x$$ = 1 End Sub End Module"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText("]"); await state.AssertNoTag(); } [WpfFact, WorkItem(530495, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530495")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotWhenCaseCorrectingReference() { var code = @" Module Program Sub Main() $$main() End Sub End Module"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.Delete(); await state.AssertTag("main", "ain"); state.EditorOperations.InsertText("M"); await state.AssertNoTag(); } [WpfFact, WorkItem(599508, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/599508")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotWhenNewIdentifierReferenceBinds() { var code = @" Module Program Sub Main() $$[|main|]() End Sub Sub Goo() End Sub End Module"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); var textSpan = state.HostDocument.SelectedSpans.Single(); state.EditorOperations.ReplaceText(new Span(textSpan.Start, textSpan.Length), "Go"); await state.AssertTag("main", "Go"); state.EditorOperations.InsertText("o"); await state.AssertNoTag(); } [WpfFact, WorkItem(530400, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530400")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotWhenDeclaringEnumMembers() { var code = @" Enum E $$ End Enum"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText(" a"); state.EditorOperations.InsertText("b"); await state.AssertNoTag(); } [WpfFact, WorkItem(1028072, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1028072")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public void RenameTrackingDoesNotThrowAggregateException() { var waitForResult = false; var notRenamable = Task.FromResult(RenameTrackingTaggerProvider.TriggerIdentifierKind.NotRenamable); Assert.False(RenameTrackingTaggerProvider.IsRenamableIdentifier(notRenamable, waitForResult, CancellationToken.None)); var source = new TaskCompletionSource<RenameTrackingTaggerProvider.TriggerIdentifierKind>(); Assert.False(RenameTrackingTaggerProvider.IsRenamableIdentifier(source.Task, waitForResult, CancellationToken.None)); source.TrySetResult(RenameTrackingTaggerProvider.TriggerIdentifierKind.RenamableReference); Assert.True(RenameTrackingTaggerProvider.IsRenamableIdentifier(source.Task, waitForResult, CancellationToken.None)); source = new TaskCompletionSource<RenameTrackingTaggerProvider.TriggerIdentifierKind>(); source.TrySetCanceled(); Assert.False(RenameTrackingTaggerProvider.IsRenamableIdentifier(source.Task, waitForResult, CancellationToken.None)); Assert.False(RenameTrackingTaggerProvider.WaitForIsRenamableIdentifier(source.Task, CancellationToken.None)); source = new TaskCompletionSource<RenameTrackingTaggerProvider.TriggerIdentifierKind>(); source.TrySetException(new OperationCanceledException()); Assert.False(RenameTrackingTaggerProvider.IsRenamableIdentifier(source.Task, waitForResult, CancellationToken.None)); Assert.False(RenameTrackingTaggerProvider.WaitForIsRenamableIdentifier(source.Task, CancellationToken.None)); Assert.False(RenameTrackingTaggerProvider.WaitForIsRenamableIdentifier(source.Task, new CancellationTokenSource().Token)); source = new TaskCompletionSource<RenameTrackingTaggerProvider.TriggerIdentifierKind>(); Assert.Throws<OperationCanceledException>(() => RenameTrackingTaggerProvider.WaitForIsRenamableIdentifier(source.Task, new CancellationToken(canceled: true))); var thrownException = new Exception(); source.TrySetException(thrownException); var caughtException = Assert.Throws<Exception>(() => RenameTrackingTaggerProvider.WaitForIsRenamableIdentifier(source.Task, CancellationToken.None)); Assert.Same(thrownException, caughtException); } [WpfFact, WorkItem(1063943, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1063943")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotFromReferenceWithWrongNumberOfArguments() { var code = @" class C { void M(int x) { M$$(); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("eow"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task CancelRenameTracking() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("C", "Cat"); state.SendEscape(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotWhenDeclaringEnumMembersEvenAfterCancellation() { var code = @" Enum E $$ End Enum"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText(" a"); state.EditorOperations.InsertText("b"); await state.AssertNoTag(); state.SendEscape(); state.EditorOperations.InsertText("c"); await state.AssertNoTag(); } [WpfFact] [WorkItem(540, "https://github.com/dotnet/roslyn/issues/540")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingDoesNotProvideDiagnosticAfterCancellation() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("C", "Cat"); Assert.NotNull(await state.TryGetCodeActionAsync()); state.SendEscape(); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_Nameof_FromMethodGroupReference() { var code = @" class C { void M() { nameof(M$$).ToString(); } void M(int x) { } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("M", "Mat", invokeAction: true); // Make sure the rename completed var expectedCode = @" class C { void Mat() { nameof(Mat).ToString(); } void Mat(int x) { } }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_Nameof_FromMethodDefinition_NoOverloads() { var code = @" class C { void M$$() { nameof(M).ToString(); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("M", "Mat", invokeAction: true); // Make sure the rename completed var expectedCode = @" class C { void Mat() { nameof(Mat).ToString(); } }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_Nameof_FromMethodDefinition_WithOverloads() { var code = @" class C { void M$$() { nameof(M).ToString(); } void M(int x) { } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("M", "Mat", invokeAction: true); // Make sure the rename completed var expectedCode = @" class C { void Mat() { nameof(M).ToString(); } void M(int x) { } }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_Nameof_FromReferenceToMetadata_NoTag() { var code = @" class C { void M() { var x = nameof(ToString$$); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("z"); await state.AssertNoTag(); } [WpfFact] [WorkItem(762964, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/762964")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_NoTagWhenFirstEditChangesReferenceToAnotherSymbol() { var code = @" class C { void M() { int abc = 7; int ab = 8; int z = abc$$; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); await state.AssertNoTag(); } [WpfFact] [WorkItem(2605, "https://github.com/dotnet/roslyn/issues/2605")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_CannotRenameToVarInCSharp() { var code = @" class C { void M() { C$$ c; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.EditorOperations.InsertText("va"); await state.AssertTag("C", "va"); Assert.NotNull(await state.TryGetCodeActionAsync()); state.EditorOperations.InsertText("r"); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); state.EditorOperations.InsertText("p"); await state.AssertTag("C", "varp"); Assert.NotNull(await state.TryGetCodeActionAsync()); } [WpfFact] [WorkItem(2605, "https://github.com/dotnet/roslyn/issues/2605")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_CannotRenameFromVarInCSharp() { var code = @" class C { void M() { var$$ c = new C(); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); } [WpfFact] [WorkItem(2605, "https://github.com/dotnet/roslyn/issues/2605")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_CanRenameToVarInVisualBasic() { var code = @" Class C Sub M() Dim x as C$$ End Sub End Class"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.Backspace(); state.EditorOperations.InsertText("var"); await state.AssertTag("C", "var"); Assert.NotNull(await state.TryGetCodeActionAsync()); } [WpfFact] [WorkItem(2605, "https://github.com/dotnet/roslyn/issues/2605")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_CannotRenameToDynamicInCSharp() { var code = @" class C { void M() { C$$ c; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.EditorOperations.InsertText("dynami"); await state.AssertTag("C", "dynami"); Assert.NotNull(await state.TryGetCodeActionAsync()); state.EditorOperations.InsertText("c"); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); state.EditorOperations.InsertText("s"); await state.AssertTag("C", "dynamics"); Assert.NotNull(await state.TryGetCodeActionAsync()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameImplicitTupleField() { var code = @" class C { void M() { (int, int) x = (1, 2); var y = x.Item1$$; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameImplicitTupleFieldVB() { var code = @" class C Sub M() Dim x as (Integer, Integer) = (1, 2) Dim y = x.Item1$$ End Sub End Class "; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameImplicitTupleFieldExtended() { var code = @" class C { void M() { (int, int, int, int, int, int, int, int, int, int) x = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10); var y = x.Item9$$; } } "; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameImplicitTupleFieldExtendedVB() { var code = @" Class C Sub M() Dim x as (Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer) = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) Dim y = x.Item9$$ End Sub End Class "; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(371205, "https://devdiv.visualstudio.com/DevDiv/_workitems?_a=edit&id=371205")] public async Task RenameTrackingNotOnExplicitTupleReturnDeclaration_CSharp() { var code = @" class C { void M() { (int abc$$, int) x = (1, 2); var y = x.abc; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(371205, "https://devdiv.visualstudio.com/DevDiv/_workitems?_a=edit&id=371205")] public async Task RenameTrackingNotOnExplicitTupleReturnDeclaration_VB() { var code = @" class C Sub M() Dim x as (abc$$ as integer, int Item2 as integer) = (1, 2) Dim y = x.abc End Sub End Class"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(371205, "https://devdiv.visualstudio.com/DevDiv/_workitems?_a=edit&id=371205")] public async Task RenameTrackingNotOnExplicitTupleFieldReference_CSharp() { var code = @" class C { void M() { (int abc, int) x = (1, 2); var y = x.abc$$; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(371205, "https://devdiv.visualstudio.com/DevDiv/_workitems?_a=edit&id=371205")] public async Task RenameTrackingNotOnExplicitTupleFieldReference_VB() { var code = @" class C Sub M() Dim x as (abc as integer, int Item2 as integer) = (1, 2) Dim y = x.abc$$ End Sub End Class"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(371205, "https://devdiv.visualstudio.com/DevDiv/_workitems?_a=edit&id=371205")] public async Task RenameTrackingNotOnExplicitTupleElementsInDeclarations_CSharp() { var code = @" class C { void M() { var t = (x$$: 1, y: 2); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("2"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(371205, "https://devdiv.visualstudio.com/DevDiv/_workitems?_a=edit&id=371205")] public async Task RenameTrackingNotOnExplicitTupleElementsInDeclarations_VB() { var code = @" Class C Sub M() Dim t = (x$$:=1, y:=2) End Sub End Class"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText("2"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(14159, "https://github.com/dotnet/roslyn/issues/14159")] public async Task RenameTrackingNotOnWellKnownValueTupleType() { var workspaceXml = @" <Workspace> <Project Language=""C#"" CommonReferences=""true"" LanguageVersion=""7""> <Document> using System; class C { void M() { var x = new ValueTuple$$&lt;int&gt;(); } } namespace System { public struct ValueTuple&lt;T1&gt; { public T1 Item1; } } </Document> </Project> </Workspace>"; using var state = RenameTrackingTestState.CreateFromWorkspaceXml(workspaceXml, LanguageNames.CSharp); state.EditorOperations.InsertText("2"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(14159, "https://github.com/dotnet/roslyn/issues/14159")] public async Task RenameTrackingOnThingsCalledValueTupleThatAreNotTheWellKnownType() { var workspaceXml = @" <Workspace> <Project Language=""C#"" CommonReferences=""true"" LanguageVersion=""7""> <Document> class C { void M() { var x = new ValueTuple$$&lt;int&gt;(); } } public struct ValueTuple&lt;T1&gt; { public T1 Item1; } </Document> </Project> </Workspace>"; using var state = RenameTrackingTestState.CreateFromWorkspaceXml(workspaceXml, LanguageNames.CSharp); state.EditorOperations.InsertText("2"); await state.AssertTag("ValueTuple", "ValueTuple2"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingOnDeconstruct() { var code = @" class C { void Deconstruct$$(out int x1, out int x2) { x1 = 1; x2 = 2; } void M() { var (y1, y2) = this; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("2"); await state.AssertTag("Deconstruct", "Deconstruct2"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_UnmanagedConstraint_Keyword() { var code = @" class C&lt;T&gt; where T : $$unmanaged { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_UnmanagedConstraint_Type() { var code = @" interface unmanaged { } class C&lt;T&gt; where T : $$unmanaged { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("my"); await state.AssertTag("unmanaged", "myunmanaged", invokeAction: true); // Make sure the rename completed var expectedCode = @" interface myunmanaged { } class C<T> where T : myunmanaged { }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); await state.AssertNoTag(); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Editor.Implementation.RenameTracking; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.VisualStudio.Text; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.UnitTests.RenameTracking { [UseExportProvider] public class RenameTrackingTaggerProviderTests { [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotOnCreation() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotInBlankFile() { var code = @"$$"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("d"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingTypingAtEnd() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("C", "Cat"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingTypingAtBeginning() { var code = @" class $$C { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("AB"); await state.AssertTag("C", "ABC"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingTypingInMiddle() { var code = @" class AB$$CD { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("ZZ"); await state.AssertTag("ABCD", "ABZZCD"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingDeleteFromEnd() { var code = @" class ABC$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); await state.AssertTag("ABC", "AB"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingDeleteFromBeginning() { var code = @" class $$ABC { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Delete(); await state.AssertTag("ABC", "BC"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingDeleteFromMiddle() { var code = @" class AB$$C { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); await state.AssertTag("ABC", "AC"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotOnClassKeyword() { var code = @" class$$ ABCD { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("d"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotAtMethodArgument() { var code = @" class ABCD { void Goo(int x) { int abc = 3; Goo($$ } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("a"); await state.AssertNoTag(); state.EditorOperations.InsertText("b"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingSessionContinuesAfterViewingTag() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("C", "Cat"); state.EditorOperations.InsertText("s"); await state.AssertTag("C", "Cats"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotInString() { var code = @" class C { void Goo() { string s = ""abc$$"" } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("d"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingHandlesAtSignAsCSharpEscape() { var code = @" class $$C { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("@"); await state.AssertTag("C", "@C"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingHandlesSquareBracketsAsVisualBasicEscape() { var code = @" Class $$C End Class"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText("["); await state.AssertNoTag(); state.MoveCaret(1); state.EditorOperations.InsertText("]"); await state.AssertTag("C", "[C]"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotOnSquareBracketsInCSharp() { var code = @" class $$C { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("["); await state.AssertNoTag(); state.MoveCaret(1); state.EditorOperations.InsertText("]"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingHandlesUnicode() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("\u0414\u046E\u046A\u00DB\u00CA\u00DB\u00C4\u00C1\u00CD\u00E4\u00E1\u0152\u0178\u00F5\u00E0\u0178\u00FC\u00C4\u00B5\u00C1i\u00DBE\u00EA\u00E0\u00EA\u00E8\u00E4\u00E5\u00ED\u00F2\u00E8\u00F4\u00E8\u00EA\u00E0\u00F2\u00EE\u00F0\u00F1\u00EB\u00EE\u00E2\u00EE"); await state.AssertTag("C", "C\u0414\u046E\u046A\u00DB\u00CA\u00DB\u00C4\u00C1\u00CD\u00E4\u00E1\u0152\u0178\u00F5\u00E0\u0178\u00FC\u00C4\u00B5\u00C1i\u00DBE\u00EA\u00E0\u00EA\u00E8\u00E4\u00E5\u00ED\u00F2\u00E8\u00F4\u00E8\u00EA\u00E0\u00F2\u00EE\u00F0\u00F1\u00EB\u00EE\u00E2\u00EE"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingThroughKeyword() { var code = @" class i$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("n"); await state.AssertNoTag(); state.EditorOperations.InsertText("t"); await state.AssertNoTag(); state.EditorOperations.InsertText("s"); await state.AssertTag("i", "ints"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingThroughIllegalStartCharacter() { var code = @" class $$abc { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("9"); await state.AssertNoTag(); state.MoveCaret(-1); state.EditorOperations.InsertText("t"); await state.AssertTag("abc", "t9abc"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingOnBothSidesOfIdentifier() { var code = @" class $$Def { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("Abc"); await state.AssertTag("Def", "AbcDef"); state.MoveCaret(3); state.EditorOperations.InsertText("Ghi"); await state.AssertTag("Def", "AbcDefGhi"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingThroughSameIdentifier() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("s"); await state.AssertTag("C", "Cs"); state.EditorOperations.Backspace(); await state.AssertNoTag(); state.EditorOperations.InsertText("s"); await state.AssertTag("C", "Cs"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingThroughEmptyString() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); await state.AssertNoTag(); state.EditorOperations.InsertText("D"); await state.AssertTag("C", "D"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingThroughEmptyStringWithCaretMove() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.MoveCaret(-4); state.MoveCaret(4); await state.AssertNoTag(); state.EditorOperations.InsertText("D"); await state.AssertTag("C", "D"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotThroughEmptyStringResumeOnDifferentSpace() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); // Move to previous space state.MoveCaret(-1); state.EditorOperations.InsertText("D"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingReplaceIdentifierSuffix() { var code = @" class Identifi[|er|]$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); var textSpan = state.HostDocument.SelectedSpans.Single(); state.EditorOperations.ReplaceText(new Span(textSpan.Start, textSpan.Length), "cation"); await state.AssertTag("Identifier", "Identification"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingReplaceIdentifierPrefix() { var code = @" class $$[|Ident|]ifier { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); var textSpan = state.HostDocument.SelectedSpans.Single(); state.EditorOperations.ReplaceText(new Span(textSpan.Start, textSpan.Length), "Complex"); await state.AssertTag("Identifier", "Complexifier"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingReplaceIdentifierCompletely() { var code = @" class [|Cat|]$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); var textSpan = state.HostDocument.SelectedSpans.Single(); state.EditorOperations.ReplaceText(new Span(textSpan.Start, textSpan.Length), "Dog"); await state.AssertTag("Cat", "Dog"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(34280, "https://github.com/dotnet/roslyn/issues/34280")] public async Task RenameTrackingReplaceIdentifierWithDiscard() { var code = @" class Class { int Method() { int i; [|i|]$$ = Method(); rteurn 0; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); var textSpan = state.HostDocument.SelectedSpans.Single(); state.EditorOperations.ReplaceText(new Span(textSpan.Start, textSpan.Length), "_"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotAfterInvoke() { var code = @" class Cat$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingInvokeAndChangeBackToOriginal() { var code = @" class Cat$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); await state.AssertNoTag(); state.EditorOperations.Backspace(); await state.AssertTag("Cats", "Cat"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingUndoOnceAndStartNewSession() { var code = @" class Cat$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("abc"); await state.AssertTag("Cat", "Catabc", invokeAction: true); await state.AssertNoTag(); // Back to original state.Undo(); await state.AssertNoTag(); state.EditorOperations.InsertText("xyz"); await state.AssertTag("Cat", "Catxyz"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingUndoTwiceAndContinueSession() { var code = @" class Cat$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("abc"); await state.AssertTag("Cat", "Catabc", invokeAction: true); await state.AssertNoTag(); // Resume rename tracking session state.Undo(2); await state.AssertTag("Cat", "Catabc"); state.EditorOperations.InsertText("xyz"); await state.AssertTag("Cat", "Catabcxyz"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingRedoAlwaysClearsState() { var code = @" class Cat$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); await state.AssertNoTag(); // Resume rename tracking session state.Undo(2); await state.AssertTag("Cat", "Cats"); state.Redo(); await state.AssertNoTag(); state.Redo(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingUndoTwiceRedoTwiceUndoStillWorks() { var code = @" class Cat$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); await state.AssertNoTag(); // Resume rename tracking session state.Undo(2); await state.AssertTag("Cat", "Cats"); state.Redo(2); await state.AssertNoTag(); // Back to original state.Undo(); await state.AssertNoTag(); // Resume rename tracking session state.Undo(); await state.AssertTag("Cat", "Cats"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingOnReference_ParameterAsArgument() { var code = @" class C { void M(int x) { M(x$$); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("yz"); await state.AssertTag("x", "xyz"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingOnReference_ParameterAsNamedArgument() { var code = @" class C { void M(int x) { M(x$$: x); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("yz"); await state.AssertTag("x", "xyz"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingOnReference_Namespace() { var code = @" namespace NS { class C { static void M() { NS$$.C.M(); } } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("A"); await state.AssertTag("NS", "NSA"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(21657, "https://github.com/dotnet/roslyn/issues/21657")] public async Task RenameTrackingOnReference_Attribute_CSharp() { var code = @" using System; class [|$$ustom|]Attribute : Attribute { } "; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("C"); await state.AssertTag("ustomAttribute", "CustomAttribute", invokeAction: true); var expectedCode = @" using System; class CustomAttribute : Attribute { } "; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(21657, "https://github.com/dotnet/roslyn/issues/21657")] public async Task RenameTrackingOnReference_Attribute_VB() { var code = @" Import System; Public Class [|$$ustom|]Attribute Inherits Attribute End Class "; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText("C"); await state.AssertTag("ustomAttribute", "CustomAttribute", invokeAction: true); var expectedCode = @" Import System; Public Class CustomAttribute Inherits Attribute End Class "; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(21657, "https://github.com/dotnet/roslyn/issues/21657")] public async Task RenameTrackingOnReference_Capitalized_Attribute_VB() { var code = @" Import System; Public Class [|$$ustom|]ATTRIBUTE Inherits Attribute End Class "; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText("C"); await state.AssertTag("ustomATTRIBUTE", "CustomATTRIBUTE", invokeAction: true); var expectedCode = @" Import System; Public Class CustomATTRIBUTE Inherits Attribute End Class "; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(21657, "https://github.com/dotnet/roslyn/issues/21657")] public async Task RenameTrackingOnReference_Not_Capitalized_Attribute_VB() { var code = @" Import System; Public Class [|$$ustom|]attribute Inherits Attribute End Class "; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText("C"); await state.AssertTag("ustomattribute", "Customattribute", invokeAction: true); var expectedCode = @" Import System; Public Class Customattribute Inherits Attribute End Class "; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotifiesThirdPartiesOfRenameOperation() { var code = @" class Cat$$ { public Cat() { } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); Assert.Equal(1, state.RefactorNotifyService.OnBeforeSymbolRenamedCount); Assert.Equal(1, state.RefactorNotifyService.OnAfterSymbolRenamedCount); var expectedCode = @" class Cats { public Cats() { } }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); state.AssertNoNotificationMessage(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingHonorsThirdPartyRequestsForCancellationBeforeRename() { var code = @" class Cat$$ { public Cat() { } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp, onBeforeGlobalSymbolRenamedReturnValue: false); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); Assert.Equal(1, state.RefactorNotifyService.OnBeforeSymbolRenamedCount); // Make sure the rename didn't proceed Assert.Equal(0, state.RefactorNotifyService.OnAfterSymbolRenamedCount); await state.AssertNoTag(); var expectedCode = @" class Cat { public Cat() { } }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); state.AssertNotificationMessage(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingAlertsAboutThirdPartyRequestsForCancellationAfterRename() { var code = @" class Cat$$ { public Cat() { } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp, onAfterGlobalSymbolRenamedReturnValue: false); state.EditorOperations.InsertText("s"); await state.AssertTag("Cat", "Cats", invokeAction: true); Assert.Equal(1, state.RefactorNotifyService.OnBeforeSymbolRenamedCount); Assert.Equal(1, state.RefactorNotifyService.OnAfterSymbolRenamedCount); state.AssertNotificationMessage(); // Make sure the rename completed var expectedCode = @" class Cats { public Cats() { } }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); await state.AssertNoTag(); } [WpfFact, WorkItem(530469, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530469")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotWhenStartedFromTextualWordInTrivia() { var code = @" Module Program Sub Main() Dim [x$$ = 1 End Sub End Module"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText("]"); await state.AssertNoTag(); } [WpfFact, WorkItem(530495, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530495")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotWhenCaseCorrectingReference() { var code = @" Module Program Sub Main() $$main() End Sub End Module"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.Delete(); await state.AssertTag("main", "ain"); state.EditorOperations.InsertText("M"); await state.AssertNoTag(); } [WpfFact, WorkItem(599508, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/599508")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotWhenNewIdentifierReferenceBinds() { var code = @" Module Program Sub Main() $$[|main|]() End Sub Sub Goo() End Sub End Module"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); var textSpan = state.HostDocument.SelectedSpans.Single(); state.EditorOperations.ReplaceText(new Span(textSpan.Start, textSpan.Length), "Go"); await state.AssertTag("main", "Go"); state.EditorOperations.InsertText("o"); await state.AssertNoTag(); } [WpfFact, WorkItem(530400, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530400")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotWhenDeclaringEnumMembers() { var code = @" Enum E $$ End Enum"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText(" a"); state.EditorOperations.InsertText("b"); await state.AssertNoTag(); } [WpfFact, WorkItem(1028072, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1028072")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public void RenameTrackingDoesNotThrowAggregateException() { var waitForResult = false; var notRenamable = Task.FromResult(RenameTrackingTaggerProvider.TriggerIdentifierKind.NotRenamable); Assert.False(RenameTrackingTaggerProvider.IsRenamableIdentifier(notRenamable, waitForResult, CancellationToken.None)); var source = new TaskCompletionSource<RenameTrackingTaggerProvider.TriggerIdentifierKind>(); Assert.False(RenameTrackingTaggerProvider.IsRenamableIdentifier(source.Task, waitForResult, CancellationToken.None)); source.TrySetResult(RenameTrackingTaggerProvider.TriggerIdentifierKind.RenamableReference); Assert.True(RenameTrackingTaggerProvider.IsRenamableIdentifier(source.Task, waitForResult, CancellationToken.None)); source = new TaskCompletionSource<RenameTrackingTaggerProvider.TriggerIdentifierKind>(); source.TrySetCanceled(); Assert.False(RenameTrackingTaggerProvider.IsRenamableIdentifier(source.Task, waitForResult, CancellationToken.None)); Assert.False(RenameTrackingTaggerProvider.WaitForIsRenamableIdentifier(source.Task, CancellationToken.None)); source = new TaskCompletionSource<RenameTrackingTaggerProvider.TriggerIdentifierKind>(); source.TrySetException(new OperationCanceledException()); Assert.False(RenameTrackingTaggerProvider.IsRenamableIdentifier(source.Task, waitForResult, CancellationToken.None)); Assert.False(RenameTrackingTaggerProvider.WaitForIsRenamableIdentifier(source.Task, CancellationToken.None)); Assert.False(RenameTrackingTaggerProvider.WaitForIsRenamableIdentifier(source.Task, new CancellationTokenSource().Token)); source = new TaskCompletionSource<RenameTrackingTaggerProvider.TriggerIdentifierKind>(); Assert.Throws<OperationCanceledException>(() => RenameTrackingTaggerProvider.WaitForIsRenamableIdentifier(source.Task, new CancellationToken(canceled: true))); var thrownException = new Exception(); source.TrySetException(thrownException); var caughtException = Assert.Throws<Exception>(() => RenameTrackingTaggerProvider.WaitForIsRenamableIdentifier(source.Task, CancellationToken.None)); Assert.Same(thrownException, caughtException); } [WpfFact, WorkItem(1063943, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1063943")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotFromReferenceWithWrongNumberOfArguments() { var code = @" class C { void M(int x) { M$$(); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("eow"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task CancelRenameTracking() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("C", "Cat"); state.SendEscape(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingNotWhenDeclaringEnumMembersEvenAfterCancellation() { var code = @" Enum E $$ End Enum"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText(" a"); state.EditorOperations.InsertText("b"); await state.AssertNoTag(); state.SendEscape(); state.EditorOperations.InsertText("c"); await state.AssertNoTag(); } [WpfFact] [WorkItem(540, "https://github.com/dotnet/roslyn/issues/540")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingDoesNotProvideDiagnosticAfterCancellation() { var code = @" class C$$ { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("C", "Cat"); Assert.NotNull(await state.TryGetCodeActionAsync()); state.SendEscape(); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_Nameof_FromMethodGroupReference() { var code = @" class C { void M() { nameof(M$$).ToString(); } void M(int x) { } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("M", "Mat", invokeAction: true); // Make sure the rename completed var expectedCode = @" class C { void Mat() { nameof(Mat).ToString(); } void Mat(int x) { } }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_Nameof_FromMethodDefinition_NoOverloads() { var code = @" class C { void M$$() { nameof(M).ToString(); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("M", "Mat", invokeAction: true); // Make sure the rename completed var expectedCode = @" class C { void Mat() { nameof(Mat).ToString(); } }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_Nameof_FromMethodDefinition_WithOverloads() { var code = @" class C { void M$$() { nameof(M).ToString(); } void M(int x) { } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("at"); await state.AssertTag("M", "Mat", invokeAction: true); // Make sure the rename completed var expectedCode = @" class C { void Mat() { nameof(M).ToString(); } void M(int x) { } }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_Nameof_FromReferenceToMetadata_NoTag() { var code = @" class C { void M() { var x = nameof(ToString$$); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("z"); await state.AssertNoTag(); } [WpfFact] [WorkItem(762964, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/762964")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_NoTagWhenFirstEditChangesReferenceToAnotherSymbol() { var code = @" class C { void M() { int abc = 7; int ab = 8; int z = abc$$; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); await state.AssertNoTag(); } [WpfFact] [WorkItem(2605, "https://github.com/dotnet/roslyn/issues/2605")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_CannotRenameToVarInCSharp() { var code = @" class C { void M() { C$$ c; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.EditorOperations.InsertText("va"); await state.AssertTag("C", "va"); Assert.NotNull(await state.TryGetCodeActionAsync()); state.EditorOperations.InsertText("r"); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); state.EditorOperations.InsertText("p"); await state.AssertTag("C", "varp"); Assert.NotNull(await state.TryGetCodeActionAsync()); } [WpfFact] [WorkItem(2605, "https://github.com/dotnet/roslyn/issues/2605")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_CannotRenameFromVarInCSharp() { var code = @" class C { void M() { var$$ c = new C(); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); } [WpfFact] [WorkItem(2605, "https://github.com/dotnet/roslyn/issues/2605")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_CanRenameToVarInVisualBasic() { var code = @" Class C Sub M() Dim x as C$$ End Sub End Class"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.Backspace(); state.EditorOperations.InsertText("var"); await state.AssertTag("C", "var"); Assert.NotNull(await state.TryGetCodeActionAsync()); } [WpfFact] [WorkItem(2605, "https://github.com/dotnet/roslyn/issues/2605")] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_CannotRenameToDynamicInCSharp() { var code = @" class C { void M() { C$$ c; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.EditorOperations.InsertText("dynami"); await state.AssertTag("C", "dynami"); Assert.NotNull(await state.TryGetCodeActionAsync()); state.EditorOperations.InsertText("c"); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); state.EditorOperations.InsertText("s"); await state.AssertTag("C", "dynamics"); Assert.NotNull(await state.TryGetCodeActionAsync()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameImplicitTupleField() { var code = @" class C { void M() { (int, int) x = (1, 2); var y = x.Item1$$; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameImplicitTupleFieldVB() { var code = @" class C Sub M() Dim x as (Integer, Integer) = (1, 2) Dim y = x.Item1$$ End Sub End Class "; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameImplicitTupleFieldExtended() { var code = @" class C { void M() { (int, int, int, int, int, int, int, int, int, int) x = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10); var y = x.Item9$$; } } "; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameImplicitTupleFieldExtendedVB() { var code = @" Class C Sub M() Dim x as (Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer, Integer) = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) Dim y = x.Item9$$ End Sub End Class "; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); Assert.Null(await state.TryGetCodeActionAsync()); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(371205, "https://devdiv.visualstudio.com/DevDiv/_workitems?_a=edit&id=371205")] public async Task RenameTrackingNotOnExplicitTupleReturnDeclaration_CSharp() { var code = @" class C { void M() { (int abc$$, int) x = (1, 2); var y = x.abc; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(371205, "https://devdiv.visualstudio.com/DevDiv/_workitems?_a=edit&id=371205")] public async Task RenameTrackingNotOnExplicitTupleReturnDeclaration_VB() { var code = @" class C Sub M() Dim x as (abc$$ as integer, int Item2 as integer) = (1, 2) Dim y = x.abc End Sub End Class"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(371205, "https://devdiv.visualstudio.com/DevDiv/_workitems?_a=edit&id=371205")] public async Task RenameTrackingNotOnExplicitTupleFieldReference_CSharp() { var code = @" class C { void M() { (int abc, int) x = (1, 2); var y = x.abc$$; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(371205, "https://devdiv.visualstudio.com/DevDiv/_workitems?_a=edit&id=371205")] public async Task RenameTrackingNotOnExplicitTupleFieldReference_VB() { var code = @" class C Sub M() Dim x as (abc as integer, int Item2 as integer) = (1, 2) Dim y = x.abc$$ End Sub End Class"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.Backspace(); state.EditorOperations.Backspace(); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(371205, "https://devdiv.visualstudio.com/DevDiv/_workitems?_a=edit&id=371205")] public async Task RenameTrackingNotOnExplicitTupleElementsInDeclarations_CSharp() { var code = @" class C { void M() { var t = (x$$: 1, y: 2); } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("2"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(371205, "https://devdiv.visualstudio.com/DevDiv/_workitems?_a=edit&id=371205")] public async Task RenameTrackingNotOnExplicitTupleElementsInDeclarations_VB() { var code = @" Class C Sub M() Dim t = (x$$:=1, y:=2) End Sub End Class"; using var state = RenameTrackingTestState.Create(code, LanguageNames.VisualBasic); state.EditorOperations.InsertText("2"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(14159, "https://github.com/dotnet/roslyn/issues/14159")] public async Task RenameTrackingNotOnWellKnownValueTupleType() { var workspaceXml = @" <Workspace> <Project Language=""C#"" CommonReferences=""true"" LanguageVersion=""7""> <Document> using System; class C { void M() { var x = new ValueTuple$$&lt;int&gt;(); } } namespace System { public struct ValueTuple&lt;T1&gt; { public T1 Item1; } } </Document> </Project> </Workspace>"; using var state = RenameTrackingTestState.CreateFromWorkspaceXml(workspaceXml, LanguageNames.CSharp); state.EditorOperations.InsertText("2"); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] [WorkItem(14159, "https://github.com/dotnet/roslyn/issues/14159")] public async Task RenameTrackingOnThingsCalledValueTupleThatAreNotTheWellKnownType() { var workspaceXml = @" <Workspace> <Project Language=""C#"" CommonReferences=""true"" LanguageVersion=""7""> <Document> class C { void M() { var x = new ValueTuple$$&lt;int&gt;(); } } public struct ValueTuple&lt;T1&gt; { public T1 Item1; } </Document> </Project> </Workspace>"; using var state = RenameTrackingTestState.CreateFromWorkspaceXml(workspaceXml, LanguageNames.CSharp); state.EditorOperations.InsertText("2"); await state.AssertTag("ValueTuple", "ValueTuple2"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTrackingOnDeconstruct() { var code = @" class C { void Deconstruct$$(out int x1, out int x2) { x1 = 1; x2 = 2; } void M() { var (y1, y2) = this; } }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("2"); await state.AssertTag("Deconstruct", "Deconstruct2"); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_UnmanagedConstraint_Keyword() { var code = @" class C&lt;T&gt; where T : $$unmanaged { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); await state.AssertNoTag(); } [WpfFact] [Trait(Traits.Feature, Traits.Features.RenameTracking)] public async Task RenameTracking_UnmanagedConstraint_Type() { var code = @" interface unmanaged { } class C&lt;T&gt; where T : $$unmanaged { }"; using var state = RenameTrackingTestState.Create(code, LanguageNames.CSharp); state.EditorOperations.InsertText("my"); await state.AssertTag("unmanaged", "myunmanaged", invokeAction: true); // Make sure the rename completed var expectedCode = @" interface myunmanaged { } class C<T> where T : myunmanaged { }"; Assert.Equal(expectedCode, state.HostDocument.GetTextBuffer().CurrentSnapshot.GetText()); await state.AssertNoTag(); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/EditorFeatures/CSharpTest/CodeActions/SyncNamespace/SyncNamespaceTests_ChangeNamespace.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CodeActions.SyncNamespace { public partial class SyncNamespaceTests : CSharpSyncNamespaceTestsBase { [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_InvalidFolderName1() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar"; // No change namespace action because the folder name is not valid identifier var (folder, filePath) = CreateDocumentFilePath(new[] { "3B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} }} </Document> </Project> </Workspace>"; await TestChangeNamespaceAsync(code, expectedSourceOriginal: null); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_InvalidFolderName2() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar"; // No change namespace action because the folder name is not valid identifier var (folder, filePath) = CreateDocumentFilePath(new[] { "B.3C", "D" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} }} </Document> </Project> </Workspace>"; await TestChangeNamespaceAsync(code, expectedSourceOriginal: null); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_SingleDocumentNoReference() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_SingleDocumentNoReference_FileScopedNamespace() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace}; class Class1 {{ }} </Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C; class Class1 { } "; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_SingleDocumentLocalReference() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ delegate void D1; interface Class1 {{ void M1(); }} class Class2 : {declaredNamespace}.Class1 {{ {declaredNamespace}.D1 d; void {declaredNamespace}.Class1.M1(){{}} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { delegate void D1; interface Class1 { void M1(); } class Class2 : Class1 { D1 d; void Class1.M1() { } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithCrefReference() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// See &lt;see cref=""{declaredNamespace}.Class1""/&gt; /// See &lt;see cref=""global::{declaredNamespace}.Class1""/&gt; /// See &lt;see cref=""global::{declaredNamespace}.Class1.M1""/&gt; /// &lt;/summary&gt; public class Class1 {{ public void M1() {{ }} }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ using {declaredNamespace}; /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// See &lt;see cref=""{declaredNamespace}.Class1""/&gt; /// See &lt;see cref=""global::{declaredNamespace}.Class1""/&gt; /// See &lt;see cref=""global::{declaredNamespace}.Class1.M1""/&gt; /// &lt;/summary&gt; class RefClass {{ }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { /// <summary> /// See <see cref=""Class1""/> /// See <see cref=""Class1""/> /// See <see cref=""global::A.B.C.Class1""/> /// See <see cref=""global::A.B.C.Class1.M1""/> /// </summary> public class Class1 { public void M1() { } } }"; var expectedSourceReference = @" namespace Foo { using A.B.C; /// <summary> /// See <see cref=""Class1""/> /// See <see cref=""A.B.C.Class1""/> /// See <see cref=""global::A.B.C.Class1""/> /// See <see cref=""global::A.B.C.Class1.M1""/> /// </summary> class RefClass { } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithCrefReferencesInVB() { var defaultNamespace = "A.B.C"; var declaredNamespace = "A.B.C.D"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// See &lt;see cref=""{declaredNamespace}.Class1""/&gt; /// &lt;/summary&gt; public class Class1 {{ }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Imports {declaredNamespace} ''' &lt;summary&gt; ''' See &lt;see cref=""Class1""/&gt; ''' See &lt;see cref=""{declaredNamespace}.Class1""/&gt; ''' &lt;/summary&gt; Public Class VBClass Public ReadOnly Property C1 As Class1 End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { /// <summary> /// See <see cref=""Class1""/> /// See <see cref=""Class1""/> /// </summary> public class Class1 { } }"; var expectedSourceReference = @" Imports A.B.C ''' <summary> ''' See <see cref=""Class1""/> ''' See <see cref=""Class1""/> ''' </summary> Public Class VBClass Public ReadOnly Property C1 As Class1 End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_ReferencingTypesDeclaredInOtherDocument() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ private Class2 c2; private Class3 c3; private Class4 c4; }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class Class2 {{}} namespace Bar {{ class Class3 {{}} namespace Baz {{ class Class4 {{}} }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"using Foo; using Foo.Bar; using Foo.Bar.Baz; namespace A.B.C { class Class1 { private Class2 c2; private Class3 c3; private Class4 c4; } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_ReferencingQualifiedTypesDeclaredInOtherDocument() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ private Foo.Class2 c2; private Foo.Bar.Class3 c3; private Foo.Bar.Baz.Class4 c4; }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class Class2 {{}} namespace Bar {{ class Class3 {{}} namespace Baz {{ class Class4 {{}} }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"using Foo; using Foo.Bar; using Foo.Bar.Baz; namespace A.B.C { class Class1 { private Class2 c2; private Class3 c3; private Class4 c4; } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithReferencesInOtherDocument() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} class Class2 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using Foo.Bar.Baz; namespace Foo {{ class RefClass {{ private Class1 c1; void M1() {{ Bar.Baz.Class2 c2 = null; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } class Class2 { } }"; var expectedSourceReference = @" using A.B.C; namespace Foo { class RefClass { private Class1 c1; void M1() { Class2 c2 = null; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithQualifiedReferencesInOtherDocument() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ interface Interface1 {{ void M1(Interface1 c1); }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ using {declaredNamespace}; class RefClass : Interface1 {{ void {declaredNamespace}.Interface1.M1(Interface1 c1){{}} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { interface Interface1 { void M1(Interface1 c1); } }"; var expectedSourceReference = @" namespace Foo { using A.B.C; class RefClass : Interface1 { void Interface1.M1(Interface1 c1){} } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_ChangeUsingsInMultipleContainers() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace NS1 {{ using Foo.Bar.Baz; class Class2 {{ Class1 c2; }} namespace NS2 {{ using Foo.Bar.Baz; class Class2 {{ Class1 c1; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } }"; var expectedSourceReference = @" namespace NS1 { using A.B.C; class Class2 { Class1 c2; } namespace NS2 { class Class2 { Class1 c1; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithAliasReferencesInOtherDocument() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} class Class2 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using System; using Class1Alias = Foo.Bar.Baz.Class1; namespace Foo {{ class RefClass {{ private Class1Alias c1; void M1() {{ Bar.Baz.Class2 c2 = null; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } class Class2 { } }"; var expectedSourceReference = @" using System; using A.B.C; using Class1Alias = A.B.C.Class1; namespace Foo { class RefClass { private Class1Alias c1; void M1() { Class2 c2 = null; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_SingleDocumentNoRef() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> using System; // Comments before declaration. namespace [||]{declaredNamespace} {{ // Comments after opening brace class Class1 {{ }} // Comments before closing brace }} // Comments after declaration. </Document> </Project> </Workspace>"; var expectedSourceOriginal = @"using System; // Comments before declaration. // Comments after opening brace class Class1 { } // Comments before closing brace // Comments after declaration. "; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_SingleDocumentLocalRef() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ delegate void D1; interface Class1 {{ void M1(); }} class Class2 : {declaredNamespace}.Class1 {{ global::{declaredNamespace}.D1 d; void {declaredNamespace}.Class1.M1() {{ }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"delegate void D1; interface Class1 { void M1(); } class Class2 : Class1 { global::D1 d; void Class1.M1() { } } "; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithReferencesInOtherDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} class Class2 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using Foo.Bar.Baz; namespace Foo {{ class RefClass {{ private Class1 c1; void M1() {{ Bar.Baz.Class2 c2 = null; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"class Class1 { } class Class2 { } "; var expectedSourceReference = @"namespace Foo { class RefClass { private Class1 c1; void M1() { Class2 c2 = null; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithQualifiedReferencesInOtherDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ interface Interface1 {{ void M1(Interface1 c1); }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ using {declaredNamespace}; class RefClass : Interface1 {{ void {declaredNamespace}.Interface1.M1(Interface1 c1){{}} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"interface Interface1 { void M1(Interface1 c1); } "; var expectedSourceReference = @" namespace Foo { class RefClass : Interface1 { void Interface1.M1(Interface1 c1){} } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithReferenceAndConflictDeclarationInOtherDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class MyClass {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ using {declaredNamespace}; class RefClass {{ Foo.Bar.Baz.MyClass c; }} class MyClass {{ }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"class MyClass { } "; var expectedSourceReference = @" namespace Foo { class RefClass { global::MyClass c; } class MyClass { } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_ReferencingTypesDeclaredInOtherDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ private Class2 c2; private Class3 c3; private Class4 c4; }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class Class2 {{}} namespace Bar {{ class Class3 {{}} namespace Baz {{ class Class4 {{}} }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"using Foo; using Foo.Bar; using Foo.Bar.Baz; class Class1 { private Class2 c2; private Class3 c3; private Class4 c4; } "; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_ChangeUsingsInMultipleContainers() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace NS1 {{ using Foo.Bar.Baz; class Class2 {{ Class1 c2; }} namespace NS2 {{ using Foo.Bar.Baz; class Class2 {{ Class1 c1; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"class Class1 { } "; var expectedSourceReference = @" namespace NS1 { class Class2 { Class1 c2; } namespace NS2 { class Class2 { Class1 c1; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithAliasReferencesInOtherDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} class Class2 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using System; using Class1Alias = Foo.Bar.Baz.Class1; namespace Foo {{ class RefClass {{ private Class1Alias c1; void M1() {{ Bar.Baz.Class2 c2 = null; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"class Class1 { } class Class2 { } "; var expectedSourceReference = @"using System; using Class1Alias = Class1; namespace Foo { class RefClass { private Class1Alias c1; void M1() { Class2 c2 = null; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_SingleDocumentNoRef() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> using System; class [||]Class1 {{ }} </Document> </Project> </Workspace>"; var expectedSourceOriginal = @"using System; namespace A.B.C { class Class1 { } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_SingleDocumentLocalRef() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> delegate void [||]D1; interface Class1 {{ void M1(); }} class Class2 : Class1 {{ D1 d; void Class1.M1() {{ }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { delegate void D1; interface Class1 { void M1(); } class Class2 : Class1 { D1 d; void Class1.M1() { } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_WithReferencesInOtherDocument() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> class [||]Class1 {{ }} class Class2 {{ }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class RefClass {{ private Class1 c1; void M1() {{ Class2 c2 = null; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } class Class2 { } }"; var expectedSourceReference = @" using A.B.C; namespace Foo { class RefClass { private Class1 c1; void M1() { Class2 c2 = null; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_WithQualifiedReferencesInOtherDocument() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> interface [||]Interface1 {{ void M1(Interface1 c1); }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class RefClass : Interface1 {{ void Interface1.M1(Interface1 c1){{}} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { interface Interface1 { void M1(Interface1 c1); } }"; var expectedSourceReference = @" using A.B.C; namespace Foo { class RefClass : Interface1 { void Interface1.M1(Interface1 c1){} } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_ReferencingQualifiedTypesDeclaredInOtherDocument() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> class [||]Class1 {{ private A.Class2 c2; private A.B.Class3 c3; private A.B.C.Class4 c4; }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace A {{ class Class2 {{}} namespace B {{ class Class3 {{}} namespace C {{ class Class4 {{}} }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { private Class2 c2; private Class3 c3; private Class4 c4; } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_ChangeUsingsInMultipleContainers() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> class [||]Class1 {{ }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace NS1 {{ using System; class Class2 {{ Class1 c2; }} namespace NS2 {{ using System; class Class2 {{ Class1 c1; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } }"; var expectedSourceReference = @" namespace NS1 { using System; using A.B.C; class Class2 { Class1 c2; } namespace NS2 { using System; class Class2 { Class1 c1; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_WithAliasReferencesInOtherDocument() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> class [||]Class1 {{ }} class Class2 {{ }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using Class1Alias = Class1; namespace Foo {{ using System; class RefClass {{ private Class1Alias c1; void M1() {{ Class2 c2 = null; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } class Class2 { } }"; var expectedSourceReference = @" using A.B.C; using Class1Alias = Class1; namespace Foo { using System; class RefClass { private Class1Alias c1; void M1() { Class2 c2 = null; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithReferencesInVBDocument() { var defaultNamespace = "A.B.C"; var declaredNamespace = "A.B.C.D"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ public class Class1 {{ }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Imports {declaredNamespace} Public Class VBClass Public ReadOnly Property C1 As Class1 End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { public class Class1 { } }"; var expectedSourceReference = @" Imports A.B.C Public Class VBClass Public ReadOnly Property C1 As Class1 End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithQualifiedReferencesInVBDocument() { var defaultNamespace = "A.B.C"; var declaredNamespace = "A.B.C.D"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ public class Class1 {{ }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Public Class VBClass Public ReadOnly Property C1 As A.B.C.D.Class1 End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { public class Class1 { } }"; var expectedSourceReference = @"Public Class VBClass Public ReadOnly Property C1 As A.B.C.Class1 End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_WithReferencesInVBDocument() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> public class [||]Class1 {{ }} </Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Public Class VBClass Public ReadOnly Property C1 As Class1 End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { public class Class1 { } }"; var expectedSourceReference = @" Imports A.B.C Public Class VBClass Public ReadOnly Property C1 As Class1 End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_WithCredReferences() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// &lt;/summary&gt; class [||]Class1 {{ }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// &lt;/summary&gt; class Bar {{ }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { /// <summary> /// See <see cref=""Class1""/> /// </summary> class Class1 { } }"; var expectedSourceReference = @" using A.B.C; namespace Foo { /// <summary> /// See <see cref=""Class1""/> /// </summary> class Bar { } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithReferencesInVBDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ public class Class1 {{ }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Imports {declaredNamespace} Public Class VBClass Public ReadOnly Property C1 As Class1 End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"public class Class1 { } "; var expectedSourceReference = @"Public Class VBClass Public ReadOnly Property C1 As Class1 End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithReferenceAndConflictDeclarationInVBDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ public class MyClass {{ }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Namespace Foo Public Class VBClass Public ReadOnly Property C1 As Foo.Bar.Baz.MyClass End Class Public Class MyClass End Class End Namespace</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"public class MyClass { } "; var expectedSourceReference = @"Namespace Foo Public Class VBClass Public ReadOnly Property C1 As Global.MyClass End Class Public Class MyClass End Class End Namespace"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithCredReferences() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// See &lt;see cref=""{declaredNamespace}.Class1""/&gt; /// &lt;/summary&gt; public class Class1 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ using {declaredNamespace}; /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// See &lt;see cref=""{declaredNamespace}.Class1""/&gt; /// &lt;/summary&gt; class RefClass {{ }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"/// <summary> /// See <see cref=""Class1""/> /// See <see cref=""Class1""/> /// </summary> public class Class1 { } "; var expectedSourceReference = @" namespace Foo { /// <summary> /// See <see cref=""Class1""/> /// See <see cref=""Class1""/> /// </summary> class RefClass { } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(33890, "https://github.com/dotnet/roslyn/issues/33890")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_ExtensionMethodInReducedForm() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{defaultNamespace} {{ public static class Extensions {{ public static bool Foo(this Class1 c1) => true; }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace {defaultNamespace} {{ using System; public class Class1 {{ public bool Bar(Class1 c1) => c1.Foo(); }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = $@"namespace A.B.C {{ public static class Extensions {{ public static bool Foo(this Class1 c1) => true; }} }}"; var expectedSourceReference = $@" namespace {defaultNamespace} {{ using System; using A.B.C; public class Class1 {{ public bool Bar(Class1 c1) => c1.Foo(); }} }}"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(33890, "https://github.com/dotnet/roslyn/issues/33890")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_ExternsionMethodInRegularForm() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]A {{ public static class Extensions {{ public static bool Foo(this Class1 c1) => true; }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using System; namespace A {{ public class Class1 {{ public bool Bar(Class1 c1) => Extensions.Foo(c1); }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = $@"namespace A.B.C {{ public static class Extensions {{ public static bool Foo(this Class1 c1) => true; }} }}"; var expectedSourceReference = $@" using System; using A.B.C; namespace A {{ public class Class1 {{ public bool Bar(Class1 c1) => Extensions.Foo(c1); }} }}"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(33890, "https://github.com/dotnet/roslyn/issues/33890")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_ContainsBothTypeAndExternsionMethod() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]A {{ public static class Extensions {{ public static bool Foo(this Class1 c1) => true; }} public class Class2 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using System; namespace A {{ public class Class1 {{ public bool Bar(Class1 c1, Class2 c2) => c2 == null ? c1.Foo() : true; }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { public static class Extensions { public static bool Foo(this Class1 c1) => true; } public class Class2 { } }"; var expectedSourceReference = @" using System; using A.B.C; namespace A { public class Class1 { public bool Bar(Class1 c1, Class2 c2) => c2 == null ? c1.Foo() : true; } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(33890, "https://github.com/dotnet/roslyn/issues/33890")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithExtensionMethodReferencesInVBDocument() { var defaultNamespace = "A.B.C"; var declaredNamespace = "A.B.C.D"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> using System; namespace [||]{declaredNamespace} {{ public static class Extensions {{ public static bool Foo(this String s) => true; }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Imports {declaredNamespace} Public Class VBClass Public Function Foo(s As string) As Boolean Return s.Foo() End Function End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = $@" using System; namespace {defaultNamespace} {{ public static class Extensions {{ public static bool Foo(this string s) => true; }} }}"; var expectedSourceReference = $@" Imports {defaultNamespace} Public Class VBClass Public Function Foo(s As string) As Boolean Return s.Foo() End Function End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(37891, "https://github.com/dotnet/roslyn/issues/37891")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithMemberAccessReferencesInOtherDocument() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var documentPath1 = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{documentPath1.folder}"" FilePath=""{documentPath1.filePath}""> namespace [||]{declaredNamespace} {{ enum Enum1 {{ A, B, C }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class RefClass {{ Enum1 M1() {{ return {declaredNamespace}.Enum1.A; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { enum Enum1 { A, B, C } }"; var expectedSourceReference = @" using A.B.C; namespace Foo { class RefClass { Enum1 M1() { return Enum1.A; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(37891, "https://github.com/dotnet/roslyn/issues/37891")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithMemberAccessReferencesInOtherDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var documentPath1 = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{documentPath1.folder}"" FilePath=""{documentPath1.filePath}""> namespace [||]{declaredNamespace} {{ enum Enum1 {{ A, B, C }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class RefClass {{ Enum1 M1() {{ return {declaredNamespace}.Enum1.A; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"enum Enum1 { A, B, C } "; var expectedSourceReference = @"namespace Foo { class RefClass { Enum1 M1() { return Enum1.A; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(37891, "https://github.com/dotnet/roslyn/issues/37891")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithMemberAccessReferencesInVBDocument() { var defaultNamespace = "A.B.C"; var declaredNamespace = "A.B.C.D"; var documentPath1 = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{documentPath1.folder}"" FilePath=""{documentPath1.filePath}""> namespace [||]{declaredNamespace} {{ public enum Enum1 {{ A, B, C }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Public Class VBClass Sub M() Dim x = A.B.C.D.Enum1.A End Sub End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { public enum Enum1 { A, B, C } }"; var expectedSourceReference = @"Public Class VBClass Sub M() Dim x = A.B.C.Enum1.A End Sub End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(37891, "https://github.com/dotnet/roslyn/issues/37891")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithMemberAccessReferencesInVBDocument() { var defaultNamespace = ""; var declaredNamespace = "A.B.C.D"; var documentPath1 = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{documentPath1.folder}"" FilePath=""{documentPath1.filePath}""> namespace [||]{declaredNamespace} {{ public enum Enum1 {{ A, B, C }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Public Class VBClass Sub M() Dim x = A.B.C.D.Enum1.A End Sub End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"public enum Enum1 { A, B, C } "; var expectedSourceReference = @"Public Class VBClass Sub M() Dim x = Enum1.A End Sub End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CodeActions.SyncNamespace { public partial class SyncNamespaceTests : CSharpSyncNamespaceTestsBase { [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_InvalidFolderName1() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar"; // No change namespace action because the folder name is not valid identifier var (folder, filePath) = CreateDocumentFilePath(new[] { "3B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} }} </Document> </Project> </Workspace>"; await TestChangeNamespaceAsync(code, expectedSourceOriginal: null); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_InvalidFolderName2() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar"; // No change namespace action because the folder name is not valid identifier var (folder, filePath) = CreateDocumentFilePath(new[] { "B.3C", "D" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} }} </Document> </Project> </Workspace>"; await TestChangeNamespaceAsync(code, expectedSourceOriginal: null); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_SingleDocumentNoReference() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_SingleDocumentNoReference_FileScopedNamespace() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace}; class Class1 {{ }} </Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C; class Class1 { } "; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_SingleDocumentLocalReference() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ delegate void D1; interface Class1 {{ void M1(); }} class Class2 : {declaredNamespace}.Class1 {{ {declaredNamespace}.D1 d; void {declaredNamespace}.Class1.M1(){{}} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { delegate void D1; interface Class1 { void M1(); } class Class2 : Class1 { D1 d; void Class1.M1() { } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithCrefReference() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// See &lt;see cref=""{declaredNamespace}.Class1""/&gt; /// See &lt;see cref=""global::{declaredNamespace}.Class1""/&gt; /// See &lt;see cref=""global::{declaredNamespace}.Class1.M1""/&gt; /// &lt;/summary&gt; public class Class1 {{ public void M1() {{ }} }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ using {declaredNamespace}; /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// See &lt;see cref=""{declaredNamespace}.Class1""/&gt; /// See &lt;see cref=""global::{declaredNamespace}.Class1""/&gt; /// See &lt;see cref=""global::{declaredNamespace}.Class1.M1""/&gt; /// &lt;/summary&gt; class RefClass {{ }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { /// <summary> /// See <see cref=""Class1""/> /// See <see cref=""Class1""/> /// See <see cref=""global::A.B.C.Class1""/> /// See <see cref=""global::A.B.C.Class1.M1""/> /// </summary> public class Class1 { public void M1() { } } }"; var expectedSourceReference = @" namespace Foo { using A.B.C; /// <summary> /// See <see cref=""Class1""/> /// See <see cref=""A.B.C.Class1""/> /// See <see cref=""global::A.B.C.Class1""/> /// See <see cref=""global::A.B.C.Class1.M1""/> /// </summary> class RefClass { } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithCrefReferencesInVB() { var defaultNamespace = "A.B.C"; var declaredNamespace = "A.B.C.D"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// See &lt;see cref=""{declaredNamespace}.Class1""/&gt; /// &lt;/summary&gt; public class Class1 {{ }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Imports {declaredNamespace} ''' &lt;summary&gt; ''' See &lt;see cref=""Class1""/&gt; ''' See &lt;see cref=""{declaredNamespace}.Class1""/&gt; ''' &lt;/summary&gt; Public Class VBClass Public ReadOnly Property C1 As Class1 End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { /// <summary> /// See <see cref=""Class1""/> /// See <see cref=""Class1""/> /// </summary> public class Class1 { } }"; var expectedSourceReference = @" Imports A.B.C ''' <summary> ''' See <see cref=""Class1""/> ''' See <see cref=""Class1""/> ''' </summary> Public Class VBClass Public ReadOnly Property C1 As Class1 End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_ReferencingTypesDeclaredInOtherDocument() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ private Class2 c2; private Class3 c3; private Class4 c4; }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class Class2 {{}} namespace Bar {{ class Class3 {{}} namespace Baz {{ class Class4 {{}} }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"using Foo; using Foo.Bar; using Foo.Bar.Baz; namespace A.B.C { class Class1 { private Class2 c2; private Class3 c3; private Class4 c4; } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_ReferencingQualifiedTypesDeclaredInOtherDocument() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ private Foo.Class2 c2; private Foo.Bar.Class3 c3; private Foo.Bar.Baz.Class4 c4; }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class Class2 {{}} namespace Bar {{ class Class3 {{}} namespace Baz {{ class Class4 {{}} }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"using Foo; using Foo.Bar; using Foo.Bar.Baz; namespace A.B.C { class Class1 { private Class2 c2; private Class3 c3; private Class4 c4; } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithReferencesInOtherDocument() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} class Class2 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using Foo.Bar.Baz; namespace Foo {{ class RefClass {{ private Class1 c1; void M1() {{ Bar.Baz.Class2 c2 = null; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } class Class2 { } }"; var expectedSourceReference = @" using A.B.C; namespace Foo { class RefClass { private Class1 c1; void M1() { Class2 c2 = null; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithQualifiedReferencesInOtherDocument() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ interface Interface1 {{ void M1(Interface1 c1); }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ using {declaredNamespace}; class RefClass : Interface1 {{ void {declaredNamespace}.Interface1.M1(Interface1 c1){{}} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { interface Interface1 { void M1(Interface1 c1); } }"; var expectedSourceReference = @" namespace Foo { using A.B.C; class RefClass : Interface1 { void Interface1.M1(Interface1 c1){} } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_ChangeUsingsInMultipleContainers() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace NS1 {{ using Foo.Bar.Baz; class Class2 {{ Class1 c2; }} namespace NS2 {{ using Foo.Bar.Baz; class Class2 {{ Class1 c1; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } }"; var expectedSourceReference = @" namespace NS1 { using A.B.C; class Class2 { Class1 c2; } namespace NS2 { class Class2 { Class1 c1; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithAliasReferencesInOtherDocument() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} class Class2 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using System; using Class1Alias = Foo.Bar.Baz.Class1; namespace Foo {{ class RefClass {{ private Class1Alias c1; void M1() {{ Bar.Baz.Class2 c2 = null; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } class Class2 { } }"; var expectedSourceReference = @" using System; using A.B.C; using Class1Alias = A.B.C.Class1; namespace Foo { class RefClass { private Class1Alias c1; void M1() { Class2 c2 = null; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_SingleDocumentNoRef() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> using System; // Comments before declaration. namespace [||]{declaredNamespace} {{ // Comments after opening brace class Class1 {{ }} // Comments before closing brace }} // Comments after declaration. </Document> </Project> </Workspace>"; var expectedSourceOriginal = @"using System; // Comments before declaration. // Comments after opening brace class Class1 { } // Comments before closing brace // Comments after declaration. "; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_SingleDocumentLocalRef() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ delegate void D1; interface Class1 {{ void M1(); }} class Class2 : {declaredNamespace}.Class1 {{ global::{declaredNamespace}.D1 d; void {declaredNamespace}.Class1.M1() {{ }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"delegate void D1; interface Class1 { void M1(); } class Class2 : Class1 { global::D1 d; void Class1.M1() { } } "; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithReferencesInOtherDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} class Class2 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using Foo.Bar.Baz; namespace Foo {{ class RefClass {{ private Class1 c1; void M1() {{ Bar.Baz.Class2 c2 = null; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"class Class1 { } class Class2 { } "; var expectedSourceReference = @"namespace Foo { class RefClass { private Class1 c1; void M1() { Class2 c2 = null; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithQualifiedReferencesInOtherDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ interface Interface1 {{ void M1(Interface1 c1); }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ using {declaredNamespace}; class RefClass : Interface1 {{ void {declaredNamespace}.Interface1.M1(Interface1 c1){{}} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"interface Interface1 { void M1(Interface1 c1); } "; var expectedSourceReference = @" namespace Foo { class RefClass : Interface1 { void Interface1.M1(Interface1 c1){} } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithReferenceAndConflictDeclarationInOtherDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class MyClass {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ using {declaredNamespace}; class RefClass {{ Foo.Bar.Baz.MyClass c; }} class MyClass {{ }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"class MyClass { } "; var expectedSourceReference = @" namespace Foo { class RefClass { global::MyClass c; } class MyClass { } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_ReferencingTypesDeclaredInOtherDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ private Class2 c2; private Class3 c3; private Class4 c4; }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class Class2 {{}} namespace Bar {{ class Class3 {{}} namespace Baz {{ class Class4 {{}} }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"using Foo; using Foo.Bar; using Foo.Bar.Baz; class Class1 { private Class2 c2; private Class3 c3; private Class4 c4; } "; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_ChangeUsingsInMultipleContainers() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace NS1 {{ using Foo.Bar.Baz; class Class2 {{ Class1 c2; }} namespace NS2 {{ using Foo.Bar.Baz; class Class2 {{ Class1 c1; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"class Class1 { } "; var expectedSourceReference = @" namespace NS1 { class Class2 { Class1 c2; } namespace NS2 { class Class2 { Class1 c1; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithAliasReferencesInOtherDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ class Class1 {{ }} class Class2 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using System; using Class1Alias = Foo.Bar.Baz.Class1; namespace Foo {{ class RefClass {{ private Class1Alias c1; void M1() {{ Bar.Baz.Class2 c2 = null; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"class Class1 { } class Class2 { } "; var expectedSourceReference = @"using System; using Class1Alias = Class1; namespace Foo { class RefClass { private Class1Alias c1; void M1() { Class2 c2 = null; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_SingleDocumentNoRef() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> using System; class [||]Class1 {{ }} </Document> </Project> </Workspace>"; var expectedSourceOriginal = @"using System; namespace A.B.C { class Class1 { } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_SingleDocumentLocalRef() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> delegate void [||]D1; interface Class1 {{ void M1(); }} class Class2 : Class1 {{ D1 d; void Class1.M1() {{ }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { delegate void D1; interface Class1 { void M1(); } class Class2 : Class1 { D1 d; void Class1.M1() { } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_WithReferencesInOtherDocument() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> class [||]Class1 {{ }} class Class2 {{ }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class RefClass {{ private Class1 c1; void M1() {{ Class2 c2 = null; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } class Class2 { } }"; var expectedSourceReference = @" using A.B.C; namespace Foo { class RefClass { private Class1 c1; void M1() { Class2 c2 = null; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_WithQualifiedReferencesInOtherDocument() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> interface [||]Interface1 {{ void M1(Interface1 c1); }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class RefClass : Interface1 {{ void Interface1.M1(Interface1 c1){{}} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { interface Interface1 { void M1(Interface1 c1); } }"; var expectedSourceReference = @" using A.B.C; namespace Foo { class RefClass : Interface1 { void Interface1.M1(Interface1 c1){} } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_ReferencingQualifiedTypesDeclaredInOtherDocument() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> class [||]Class1 {{ private A.Class2 c2; private A.B.Class3 c3; private A.B.C.Class4 c4; }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace A {{ class Class2 {{}} namespace B {{ class Class3 {{}} namespace C {{ class Class4 {{}} }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { private Class2 c2; private Class3 c3; private Class4 c4; } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_ChangeUsingsInMultipleContainers() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> class [||]Class1 {{ }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace NS1 {{ using System; class Class2 {{ Class1 c2; }} namespace NS2 {{ using System; class Class2 {{ Class1 c1; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } }"; var expectedSourceReference = @" namespace NS1 { using System; using A.B.C; class Class2 { Class1 c2; } namespace NS2 { using System; class Class2 { Class1 c1; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_WithAliasReferencesInOtherDocument() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> class [||]Class1 {{ }} class Class2 {{ }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using Class1Alias = Class1; namespace Foo {{ using System; class RefClass {{ private Class1Alias c1; void M1() {{ Class2 c2 = null; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { class Class1 { } class Class2 { } }"; var expectedSourceReference = @" using A.B.C; using Class1Alias = Class1; namespace Foo { using System; class RefClass { private Class1Alias c1; void M1() { Class2 c2 = null; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithReferencesInVBDocument() { var defaultNamespace = "A.B.C"; var declaredNamespace = "A.B.C.D"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ public class Class1 {{ }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Imports {declaredNamespace} Public Class VBClass Public ReadOnly Property C1 As Class1 End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { public class Class1 { } }"; var expectedSourceReference = @" Imports A.B.C Public Class VBClass Public ReadOnly Property C1 As Class1 End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithQualifiedReferencesInVBDocument() { var defaultNamespace = "A.B.C"; var declaredNamespace = "A.B.C.D"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ public class Class1 {{ }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Public Class VBClass Public ReadOnly Property C1 As A.B.C.D.Class1 End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { public class Class1 { } }"; var expectedSourceReference = @"Public Class VBClass Public ReadOnly Property C1 As A.B.C.Class1 End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_WithReferencesInVBDocument() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> public class [||]Class1 {{ }} </Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Public Class VBClass Public ReadOnly Property C1 As Class1 End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { public class Class1 { } }"; var expectedSourceReference = @" Imports A.B.C Public Class VBClass Public ReadOnly Property C1 As Class1 End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeFromGlobalNamespace_WithCredReferences() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// &lt;/summary&gt; class [||]Class1 {{ }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// &lt;/summary&gt; class Bar {{ }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { /// <summary> /// See <see cref=""Class1""/> /// </summary> class Class1 { } }"; var expectedSourceReference = @" using A.B.C; namespace Foo { /// <summary> /// See <see cref=""Class1""/> /// </summary> class Bar { } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithReferencesInVBDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ public class Class1 {{ }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Imports {declaredNamespace} Public Class VBClass Public ReadOnly Property C1 As Class1 End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"public class Class1 { } "; var expectedSourceReference = @"Public Class VBClass Public ReadOnly Property C1 As Class1 End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithReferenceAndConflictDeclarationInVBDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ public class MyClass {{ }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Namespace Foo Public Class VBClass Public ReadOnly Property C1 As Foo.Bar.Baz.MyClass End Class Public Class MyClass End Class End Namespace</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"public class MyClass { } "; var expectedSourceReference = @"Namespace Foo Public Class VBClass Public ReadOnly Property C1 As Global.MyClass End Class Public Class MyClass End Class End Namespace"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithCredReferences() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{declaredNamespace} {{ /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// See &lt;see cref=""{declaredNamespace}.Class1""/&gt; /// &lt;/summary&gt; public class Class1 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ using {declaredNamespace}; /// &lt;summary&gt; /// See &lt;see cref=""Class1""/&gt; /// See &lt;see cref=""{declaredNamespace}.Class1""/&gt; /// &lt;/summary&gt; class RefClass {{ }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"/// <summary> /// See <see cref=""Class1""/> /// See <see cref=""Class1""/> /// </summary> public class Class1 { } "; var expectedSourceReference = @" namespace Foo { /// <summary> /// See <see cref=""Class1""/> /// See <see cref=""Class1""/> /// </summary> class RefClass { } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(33890, "https://github.com/dotnet/roslyn/issues/33890")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_ExtensionMethodInReducedForm() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]{defaultNamespace} {{ public static class Extensions {{ public static bool Foo(this Class1 c1) => true; }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace {defaultNamespace} {{ using System; public class Class1 {{ public bool Bar(Class1 c1) => c1.Foo(); }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = $@"namespace A.B.C {{ public static class Extensions {{ public static bool Foo(this Class1 c1) => true; }} }}"; var expectedSourceReference = $@" namespace {defaultNamespace} {{ using System; using A.B.C; public class Class1 {{ public bool Bar(Class1 c1) => c1.Foo(); }} }}"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(33890, "https://github.com/dotnet/roslyn/issues/33890")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_ExternsionMethodInRegularForm() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]A {{ public static class Extensions {{ public static bool Foo(this Class1 c1) => true; }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using System; namespace A {{ public class Class1 {{ public bool Bar(Class1 c1) => Extensions.Foo(c1); }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = $@"namespace A.B.C {{ public static class Extensions {{ public static bool Foo(this Class1 c1) => true; }} }}"; var expectedSourceReference = $@" using System; using A.B.C; namespace A {{ public class Class1 {{ public bool Bar(Class1 c1) => Extensions.Foo(c1); }} }}"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(33890, "https://github.com/dotnet/roslyn/issues/33890")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_ContainsBothTypeAndExternsionMethod() { var defaultNamespace = "A"; var (folder, filePath) = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> namespace [||]A {{ public static class Extensions {{ public static bool Foo(this Class1 c1) => true; }} public class Class2 {{ }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> using System; namespace A {{ public class Class1 {{ public bool Bar(Class1 c1, Class2 c2) => c2 == null ? c1.Foo() : true; }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { public static class Extensions { public static bool Foo(this Class1 c1) => true; } public class Class2 { } }"; var expectedSourceReference = @" using System; using A.B.C; namespace A { public class Class1 { public bool Bar(Class1 c1, Class2 c2) => c2 == null ? c1.Foo() : true; } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(33890, "https://github.com/dotnet/roslyn/issues/33890")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithExtensionMethodReferencesInVBDocument() { var defaultNamespace = "A.B.C"; var declaredNamespace = "A.B.C.D"; var (folder, filePath) = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{folder}"" FilePath=""{filePath}""> using System; namespace [||]{declaredNamespace} {{ public static class Extensions {{ public static bool Foo(this String s) => true; }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Imports {declaredNamespace} Public Class VBClass Public Function Foo(s As string) As Boolean Return s.Foo() End Function End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = $@" using System; namespace {defaultNamespace} {{ public static class Extensions {{ public static bool Foo(this string s) => true; }} }}"; var expectedSourceReference = $@" Imports {defaultNamespace} Public Class VBClass Public Function Foo(s As string) As Boolean Return s.Foo() End Function End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(37891, "https://github.com/dotnet/roslyn/issues/37891")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithMemberAccessReferencesInOtherDocument() { var defaultNamespace = "A"; var declaredNamespace = "Foo.Bar.Baz"; var documentPath1 = CreateDocumentFilePath(new[] { "B", "C" }, "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{documentPath1.folder}"" FilePath=""{documentPath1.filePath}""> namespace [||]{declaredNamespace} {{ enum Enum1 {{ A, B, C }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class RefClass {{ Enum1 M1() {{ return {declaredNamespace}.Enum1.A; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { enum Enum1 { A, B, C } }"; var expectedSourceReference = @" using A.B.C; namespace Foo { class RefClass { Enum1 M1() { return Enum1.A; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(37891, "https://github.com/dotnet/roslyn/issues/37891")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithMemberAccessReferencesInOtherDocument() { var defaultNamespace = ""; var declaredNamespace = "Foo.Bar.Baz"; var documentPath1 = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var documentPath2 = CreateDocumentFilePath(Array.Empty<string>(), "File2.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{documentPath1.folder}"" FilePath=""{documentPath1.filePath}""> namespace [||]{declaredNamespace} {{ enum Enum1 {{ A, B, C }} }}</Document> <Document Folders=""{documentPath2.folder}"" FilePath=""{documentPath2.filePath}""> namespace Foo {{ class RefClass {{ Enum1 M1() {{ return {declaredNamespace}.Enum1.A; }} }} }}</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"enum Enum1 { A, B, C } "; var expectedSourceReference = @"namespace Foo { class RefClass { Enum1 M1() { return Enum1.A; } } }"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(37891, "https://github.com/dotnet/roslyn/issues/37891")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeNamespace_WithMemberAccessReferencesInVBDocument() { var defaultNamespace = "A.B.C"; var declaredNamespace = "A.B.C.D"; var documentPath1 = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{documentPath1.folder}"" FilePath=""{documentPath1.filePath}""> namespace [||]{declaredNamespace} {{ public enum Enum1 {{ A, B, C }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Public Class VBClass Sub M() Dim x = A.B.C.D.Enum1.A End Sub End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"namespace A.B.C { public enum Enum1 { A, B, C } }"; var expectedSourceReference = @"Public Class VBClass Sub M() Dim x = A.B.C.Enum1.A End Sub End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } [WorkItem(37891, "https://github.com/dotnet/roslyn/issues/37891")] [WpfFact, Trait(Traits.Feature, Traits.Features.CodeActionsSyncNamespace)] public async Task ChangeToGlobalNamespace_WithMemberAccessReferencesInVBDocument() { var defaultNamespace = ""; var declaredNamespace = "A.B.C.D"; var documentPath1 = CreateDocumentFilePath(Array.Empty<string>(), "File1.cs"); var code = $@" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1"" FilePath=""{ProjectFilePath}"" RootNamespace=""{defaultNamespace}"" CommonReferences=""true""> <Document Folders=""{documentPath1.folder}"" FilePath=""{documentPath1.filePath}""> namespace [||]{declaredNamespace} {{ public enum Enum1 {{ A, B, C }} }}</Document> </Project> <Project Language=""Visual Basic"" AssemblyName=""Assembly2"" CommonReferences=""true""> <Document> Public Class VBClass Sub M() Dim x = A.B.C.D.Enum1.A End Sub End Class</Document> </Project> </Workspace>"; var expectedSourceOriginal = @"public enum Enum1 { A, B, C } "; var expectedSourceReference = @"Public Class VBClass Sub M() Dim x = Enum1.A End Sub End Class"; await TestChangeNamespaceAsync(code, expectedSourceOriginal, expectedSourceReference); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Features/Core/Portable/Common/GlyphTags.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Immutable; using Microsoft.CodeAnalysis.Tags; namespace Microsoft.CodeAnalysis { internal static class GlyphTags { public static ImmutableArray<string> GetTags(Glyph glyph) => glyph switch { Glyph.Assembly => WellKnownTagArrays.Assembly, Glyph.BasicFile => WellKnownTagArrays.VisualBasicFile, Glyph.BasicProject => WellKnownTagArrays.VisualBasicProject, Glyph.ClassPublic => WellKnownTagArrays.ClassPublic, Glyph.ClassProtected => WellKnownTagArrays.ClassProtected, Glyph.ClassPrivate => WellKnownTagArrays.ClassPrivate, Glyph.ClassInternal => WellKnownTagArrays.ClassInternal, Glyph.CSharpFile => WellKnownTagArrays.CSharpFile, Glyph.CSharpProject => WellKnownTagArrays.CSharpProject, Glyph.ConstantPublic => WellKnownTagArrays.ConstantPublic, Glyph.ConstantProtected => WellKnownTagArrays.ConstantProtected, Glyph.ConstantPrivate => WellKnownTagArrays.ConstantPrivate, Glyph.ConstantInternal => WellKnownTagArrays.ConstantInternal, Glyph.DelegatePublic => WellKnownTagArrays.DelegatePublic, Glyph.DelegateProtected => WellKnownTagArrays.DelegateProtected, Glyph.DelegatePrivate => WellKnownTagArrays.DelegatePrivate, Glyph.DelegateInternal => WellKnownTagArrays.DelegateInternal, Glyph.EnumPublic => WellKnownTagArrays.EnumPublic, Glyph.EnumProtected => WellKnownTagArrays.EnumProtected, Glyph.EnumPrivate => WellKnownTagArrays.EnumPrivate, Glyph.EnumInternal => WellKnownTagArrays.EnumInternal, Glyph.EnumMemberPublic => WellKnownTagArrays.EnumMemberPublic, Glyph.EnumMemberProtected => WellKnownTagArrays.EnumMemberProtected, Glyph.EnumMemberPrivate => WellKnownTagArrays.EnumMemberPrivate, Glyph.EnumMemberInternal => WellKnownTagArrays.EnumMemberInternal, Glyph.Error => WellKnownTagArrays.Error, Glyph.EventPublic => WellKnownTagArrays.EventPublic, Glyph.EventProtected => WellKnownTagArrays.EventProtected, Glyph.EventPrivate => WellKnownTagArrays.EventPrivate, Glyph.EventInternal => WellKnownTagArrays.EventInternal, Glyph.ExtensionMethodPublic => WellKnownTagArrays.ExtensionMethodPublic, Glyph.ExtensionMethodProtected => WellKnownTagArrays.ExtensionMethodProtected, Glyph.ExtensionMethodPrivate => WellKnownTagArrays.ExtensionMethodPrivate, Glyph.ExtensionMethodInternal => WellKnownTagArrays.ExtensionMethodInternal, Glyph.FieldPublic => WellKnownTagArrays.FieldPublic, Glyph.FieldProtected => WellKnownTagArrays.FieldProtected, Glyph.FieldPrivate => WellKnownTagArrays.FieldPrivate, Glyph.FieldInternal => WellKnownTagArrays.FieldInternal, Glyph.InterfacePublic => WellKnownTagArrays.InterfacePublic, Glyph.InterfaceProtected => WellKnownTagArrays.InterfaceProtected, Glyph.InterfacePrivate => WellKnownTagArrays.InterfacePrivate, Glyph.InterfaceInternal => WellKnownTagArrays.InterfaceInternal, Glyph.Intrinsic => WellKnownTagArrays.Intrinsic, Glyph.Keyword => WellKnownTagArrays.Keyword, Glyph.Label => WellKnownTagArrays.Label, Glyph.Local => WellKnownTagArrays.Local, Glyph.Namespace => WellKnownTagArrays.Namespace, Glyph.MethodPublic => WellKnownTagArrays.MethodPublic, Glyph.MethodProtected => WellKnownTagArrays.MethodProtected, Glyph.MethodPrivate => WellKnownTagArrays.MethodPrivate, Glyph.MethodInternal => WellKnownTagArrays.MethodInternal, Glyph.ModulePublic => WellKnownTagArrays.ModulePublic, Glyph.ModuleProtected => WellKnownTagArrays.ModuleProtected, Glyph.ModulePrivate => WellKnownTagArrays.ModulePrivate, Glyph.ModuleInternal => WellKnownTagArrays.ModuleInternal, Glyph.OpenFolder => WellKnownTagArrays.Folder, Glyph.Operator => WellKnownTagArrays.Operator, Glyph.Parameter => WellKnownTagArrays.Parameter, Glyph.PropertyPublic => WellKnownTagArrays.PropertyPublic, Glyph.PropertyProtected => WellKnownTagArrays.PropertyProtected, Glyph.PropertyPrivate => WellKnownTagArrays.PropertyPrivate, Glyph.PropertyInternal => WellKnownTagArrays.PropertyInternal, Glyph.RangeVariable => WellKnownTagArrays.RangeVariable, Glyph.Reference => WellKnownTagArrays.Reference, Glyph.StructurePublic => WellKnownTagArrays.StructurePublic, Glyph.StructureProtected => WellKnownTagArrays.StructureProtected, Glyph.StructurePrivate => WellKnownTagArrays.StructurePrivate, Glyph.StructureInternal => WellKnownTagArrays.StructureInternal, Glyph.TypeParameter => WellKnownTagArrays.TypeParameter, Glyph.Snippet => WellKnownTagArrays.Snippet, Glyph.CompletionWarning => WellKnownTagArrays.Warning, Glyph.StatusInformation => WellKnownTagArrays.StatusInformation, _ => ImmutableArray<string>.Empty, }; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Immutable; using Microsoft.CodeAnalysis.Tags; namespace Microsoft.CodeAnalysis { internal static class GlyphTags { public static ImmutableArray<string> GetTags(Glyph glyph) => glyph switch { Glyph.Assembly => WellKnownTagArrays.Assembly, Glyph.BasicFile => WellKnownTagArrays.VisualBasicFile, Glyph.BasicProject => WellKnownTagArrays.VisualBasicProject, Glyph.ClassPublic => WellKnownTagArrays.ClassPublic, Glyph.ClassProtected => WellKnownTagArrays.ClassProtected, Glyph.ClassPrivate => WellKnownTagArrays.ClassPrivate, Glyph.ClassInternal => WellKnownTagArrays.ClassInternal, Glyph.CSharpFile => WellKnownTagArrays.CSharpFile, Glyph.CSharpProject => WellKnownTagArrays.CSharpProject, Glyph.ConstantPublic => WellKnownTagArrays.ConstantPublic, Glyph.ConstantProtected => WellKnownTagArrays.ConstantProtected, Glyph.ConstantPrivate => WellKnownTagArrays.ConstantPrivate, Glyph.ConstantInternal => WellKnownTagArrays.ConstantInternal, Glyph.DelegatePublic => WellKnownTagArrays.DelegatePublic, Glyph.DelegateProtected => WellKnownTagArrays.DelegateProtected, Glyph.DelegatePrivate => WellKnownTagArrays.DelegatePrivate, Glyph.DelegateInternal => WellKnownTagArrays.DelegateInternal, Glyph.EnumPublic => WellKnownTagArrays.EnumPublic, Glyph.EnumProtected => WellKnownTagArrays.EnumProtected, Glyph.EnumPrivate => WellKnownTagArrays.EnumPrivate, Glyph.EnumInternal => WellKnownTagArrays.EnumInternal, Glyph.EnumMemberPublic => WellKnownTagArrays.EnumMemberPublic, Glyph.EnumMemberProtected => WellKnownTagArrays.EnumMemberProtected, Glyph.EnumMemberPrivate => WellKnownTagArrays.EnumMemberPrivate, Glyph.EnumMemberInternal => WellKnownTagArrays.EnumMemberInternal, Glyph.Error => WellKnownTagArrays.Error, Glyph.EventPublic => WellKnownTagArrays.EventPublic, Glyph.EventProtected => WellKnownTagArrays.EventProtected, Glyph.EventPrivate => WellKnownTagArrays.EventPrivate, Glyph.EventInternal => WellKnownTagArrays.EventInternal, Glyph.ExtensionMethodPublic => WellKnownTagArrays.ExtensionMethodPublic, Glyph.ExtensionMethodProtected => WellKnownTagArrays.ExtensionMethodProtected, Glyph.ExtensionMethodPrivate => WellKnownTagArrays.ExtensionMethodPrivate, Glyph.ExtensionMethodInternal => WellKnownTagArrays.ExtensionMethodInternal, Glyph.FieldPublic => WellKnownTagArrays.FieldPublic, Glyph.FieldProtected => WellKnownTagArrays.FieldProtected, Glyph.FieldPrivate => WellKnownTagArrays.FieldPrivate, Glyph.FieldInternal => WellKnownTagArrays.FieldInternal, Glyph.InterfacePublic => WellKnownTagArrays.InterfacePublic, Glyph.InterfaceProtected => WellKnownTagArrays.InterfaceProtected, Glyph.InterfacePrivate => WellKnownTagArrays.InterfacePrivate, Glyph.InterfaceInternal => WellKnownTagArrays.InterfaceInternal, Glyph.Intrinsic => WellKnownTagArrays.Intrinsic, Glyph.Keyword => WellKnownTagArrays.Keyword, Glyph.Label => WellKnownTagArrays.Label, Glyph.Local => WellKnownTagArrays.Local, Glyph.Namespace => WellKnownTagArrays.Namespace, Glyph.MethodPublic => WellKnownTagArrays.MethodPublic, Glyph.MethodProtected => WellKnownTagArrays.MethodProtected, Glyph.MethodPrivate => WellKnownTagArrays.MethodPrivate, Glyph.MethodInternal => WellKnownTagArrays.MethodInternal, Glyph.ModulePublic => WellKnownTagArrays.ModulePublic, Glyph.ModuleProtected => WellKnownTagArrays.ModuleProtected, Glyph.ModulePrivate => WellKnownTagArrays.ModulePrivate, Glyph.ModuleInternal => WellKnownTagArrays.ModuleInternal, Glyph.OpenFolder => WellKnownTagArrays.Folder, Glyph.Operator => WellKnownTagArrays.Operator, Glyph.Parameter => WellKnownTagArrays.Parameter, Glyph.PropertyPublic => WellKnownTagArrays.PropertyPublic, Glyph.PropertyProtected => WellKnownTagArrays.PropertyProtected, Glyph.PropertyPrivate => WellKnownTagArrays.PropertyPrivate, Glyph.PropertyInternal => WellKnownTagArrays.PropertyInternal, Glyph.RangeVariable => WellKnownTagArrays.RangeVariable, Glyph.Reference => WellKnownTagArrays.Reference, Glyph.StructurePublic => WellKnownTagArrays.StructurePublic, Glyph.StructureProtected => WellKnownTagArrays.StructureProtected, Glyph.StructurePrivate => WellKnownTagArrays.StructurePrivate, Glyph.StructureInternal => WellKnownTagArrays.StructureInternal, Glyph.TypeParameter => WellKnownTagArrays.TypeParameter, Glyph.Snippet => WellKnownTagArrays.Snippet, Glyph.CompletionWarning => WellKnownTagArrays.Warning, Glyph.StatusInformation => WellKnownTagArrays.StatusInformation, _ => ImmutableArray<string>.Empty, }; } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/Core/Portable/InternalUtilities/FileNameUtilities.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Diagnostics.CodeAnalysis; namespace Roslyn.Utilities { /// <summary> /// Implements a few file name utilities that are needed by the compiler. /// In general the compiler is not supposed to understand the format of the paths. /// In rare cases it needs to check if a string is a valid file name or change the extension /// (embedded resources, netmodules, output name). /// The APIs are intentionally limited to cover just these rare cases. Do not add more APIs. /// </summary> internal static class FileNameUtilities { internal const char DirectorySeparatorChar = '\\'; internal const char AltDirectorySeparatorChar = '/'; internal const char VolumeSeparatorChar = ':'; /// <summary> /// Returns true if the string represents an unqualified file name. /// The name may contain any characters but directory and volume separators. /// </summary> /// <param name="path">Path.</param> /// <returns> /// True if <paramref name="path"/> is a simple file name, false if it is null or includes a directory specification. /// </returns> internal static bool IsFileName([NotNullWhen(returnValue: true)] string? path) { return IndexOfFileName(path) == 0; } /// <summary> /// Returns the offset in <paramref name="path"/> where the dot that starts an extension is, or -1 if the path doesn't have an extension. /// </summary> /// <remarks> /// Returns 0 for path ".goo". /// Returns -1 for path "goo.". /// </remarks> private static int IndexOfExtension(string? path) => path is null ? -1 : IndexOfExtension(path.AsSpan()); private static int IndexOfExtension(ReadOnlySpan<char> path) { int length = path.Length; int i = length; while (--i >= 0) { char c = path[i]; if (c == '.') { if (i != length - 1) { return i; } return -1; } if (c == DirectorySeparatorChar || c == AltDirectorySeparatorChar || c == VolumeSeparatorChar) { break; } } return -1; } /// <summary> /// Returns an extension of the specified path string. /// </summary> /// <remarks> /// The same functionality as <see cref="System.IO.Path.GetExtension(string)"/> but doesn't throw an exception /// if there are invalid characters in the path. /// </remarks> [return: NotNullIfNotNull(parameterName: "path")] internal static string? GetExtension(string? path) { if (path == null) { return null; } int index = IndexOfExtension(path); return (index >= 0) ? path.Substring(index) : string.Empty; } internal static ReadOnlyMemory<char> GetExtension(ReadOnlyMemory<char> path) { int index = IndexOfExtension(path.Span); return (index >= 0) ? path.Slice(index) : default; } /// <summary> /// Removes extension from path. /// </summary> /// <remarks> /// Returns "goo" for path "goo.". /// Returns "goo.." for path "goo...". /// </remarks> [return: NotNullIfNotNull(parameterName: "path")] private static string? RemoveExtension(string? path) { if (path == null) { return null; } int index = IndexOfExtension(path); if (index >= 0) { return path.Substring(0, index); } // trim last ".", if present if (path.Length > 0 && path[path.Length - 1] == '.') { return path.Substring(0, path.Length - 1); } return path; } /// <summary> /// Returns path with the extension changed to <paramref name="extension"/>. /// </summary> /// <returns> /// Equivalent of <see cref="System.IO.Path.ChangeExtension(string, string)"/> /// /// If <paramref name="path"/> is null, returns null. /// If path does not end with an extension, the new extension is appended to the path. /// If extension is null, equivalent to <see cref="RemoveExtension"/>. /// </returns> [return: NotNullIfNotNull(parameterName: "path")] internal static string? ChangeExtension(string? path, string? extension) { if (path == null) { return null; } var pathWithoutExtension = RemoveExtension(path); if (extension == null || path.Length == 0) { return pathWithoutExtension; } if (extension.Length == 0 || extension[0] != '.') { return pathWithoutExtension + "." + extension; } return pathWithoutExtension + extension; } /// <summary> /// Returns the position in given path where the file name starts. /// </summary> /// <returns>-1 if path is null.</returns> internal static int IndexOfFileName(string? path) { if (path == null) { return -1; } for (int i = path.Length - 1; i >= 0; i--) { char ch = path[i]; if (ch == DirectorySeparatorChar || ch == AltDirectorySeparatorChar || ch == VolumeSeparatorChar) { return i + 1; } } return 0; } /// <summary> /// Get file name from path. /// </summary> /// <remarks>Unlike <see cref="System.IO.Path.GetFileName(string)"/> doesn't check for invalid path characters.</remarks> [return: NotNullIfNotNull(parameterName: "path")] internal static string? GetFileName(string? path, bool includeExtension = true) { int fileNameStart = IndexOfFileName(path); var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart); return includeExtension ? fileName : RemoveExtension(fileName); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Diagnostics.CodeAnalysis; namespace Roslyn.Utilities { /// <summary> /// Implements a few file name utilities that are needed by the compiler. /// In general the compiler is not supposed to understand the format of the paths. /// In rare cases it needs to check if a string is a valid file name or change the extension /// (embedded resources, netmodules, output name). /// The APIs are intentionally limited to cover just these rare cases. Do not add more APIs. /// </summary> internal static class FileNameUtilities { internal const char DirectorySeparatorChar = '\\'; internal const char AltDirectorySeparatorChar = '/'; internal const char VolumeSeparatorChar = ':'; /// <summary> /// Returns true if the string represents an unqualified file name. /// The name may contain any characters but directory and volume separators. /// </summary> /// <param name="path">Path.</param> /// <returns> /// True if <paramref name="path"/> is a simple file name, false if it is null or includes a directory specification. /// </returns> internal static bool IsFileName([NotNullWhen(returnValue: true)] string? path) { return IndexOfFileName(path) == 0; } /// <summary> /// Returns the offset in <paramref name="path"/> where the dot that starts an extension is, or -1 if the path doesn't have an extension. /// </summary> /// <remarks> /// Returns 0 for path ".goo". /// Returns -1 for path "goo.". /// </remarks> private static int IndexOfExtension(string? path) => path is null ? -1 : IndexOfExtension(path.AsSpan()); private static int IndexOfExtension(ReadOnlySpan<char> path) { int length = path.Length; int i = length; while (--i >= 0) { char c = path[i]; if (c == '.') { if (i != length - 1) { return i; } return -1; } if (c == DirectorySeparatorChar || c == AltDirectorySeparatorChar || c == VolumeSeparatorChar) { break; } } return -1; } /// <summary> /// Returns an extension of the specified path string. /// </summary> /// <remarks> /// The same functionality as <see cref="System.IO.Path.GetExtension(string)"/> but doesn't throw an exception /// if there are invalid characters in the path. /// </remarks> [return: NotNullIfNotNull(parameterName: "path")] internal static string? GetExtension(string? path) { if (path == null) { return null; } int index = IndexOfExtension(path); return (index >= 0) ? path.Substring(index) : string.Empty; } internal static ReadOnlyMemory<char> GetExtension(ReadOnlyMemory<char> path) { int index = IndexOfExtension(path.Span); return (index >= 0) ? path.Slice(index) : default; } /// <summary> /// Removes extension from path. /// </summary> /// <remarks> /// Returns "goo" for path "goo.". /// Returns "goo.." for path "goo...". /// </remarks> [return: NotNullIfNotNull(parameterName: "path")] private static string? RemoveExtension(string? path) { if (path == null) { return null; } int index = IndexOfExtension(path); if (index >= 0) { return path.Substring(0, index); } // trim last ".", if present if (path.Length > 0 && path[path.Length - 1] == '.') { return path.Substring(0, path.Length - 1); } return path; } /// <summary> /// Returns path with the extension changed to <paramref name="extension"/>. /// </summary> /// <returns> /// Equivalent of <see cref="System.IO.Path.ChangeExtension(string, string)"/> /// /// If <paramref name="path"/> is null, returns null. /// If path does not end with an extension, the new extension is appended to the path. /// If extension is null, equivalent to <see cref="RemoveExtension"/>. /// </returns> [return: NotNullIfNotNull(parameterName: "path")] internal static string? ChangeExtension(string? path, string? extension) { if (path == null) { return null; } var pathWithoutExtension = RemoveExtension(path); if (extension == null || path.Length == 0) { return pathWithoutExtension; } if (extension.Length == 0 || extension[0] != '.') { return pathWithoutExtension + "." + extension; } return pathWithoutExtension + extension; } /// <summary> /// Returns the position in given path where the file name starts. /// </summary> /// <returns>-1 if path is null.</returns> internal static int IndexOfFileName(string? path) { if (path == null) { return -1; } for (int i = path.Length - 1; i >= 0; i--) { char ch = path[i]; if (ch == DirectorySeparatorChar || ch == AltDirectorySeparatorChar || ch == VolumeSeparatorChar) { return i + 1; } } return 0; } /// <summary> /// Get file name from path. /// </summary> /// <remarks>Unlike <see cref="System.IO.Path.GetFileName(string)"/> doesn't check for invalid path characters.</remarks> [return: NotNullIfNotNull(parameterName: "path")] internal static string? GetFileName(string? path, bool includeExtension = true) { int fileNameStart = IndexOfFileName(path); var fileName = (fileNameStart <= 0) ? path : path!.Substring(fileNameStart); return includeExtension ? fileName : RemoveExtension(fileName); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Features/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Classification; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; using LSP = Microsoft.VisualStudio.LanguageServer.Protocol; namespace Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens { internal class SemanticTokensHelpers { internal static readonly string[] RoslynCustomTokenTypes = { ClassificationTypeNames.ClassName, ClassificationTypeNames.ConstantName, ClassificationTypeNames.ControlKeyword, ClassificationTypeNames.DelegateName, ClassificationTypeNames.EnumMemberName, ClassificationTypeNames.EnumName, ClassificationTypeNames.EventName, ClassificationTypeNames.ExcludedCode, ClassificationTypeNames.ExtensionMethodName, ClassificationTypeNames.FieldName, ClassificationTypeNames.InterfaceName, ClassificationTypeNames.LabelName, ClassificationTypeNames.LocalName, ClassificationTypeNames.MethodName, ClassificationTypeNames.ModuleName, ClassificationTypeNames.NamespaceName, ClassificationTypeNames.OperatorOverloaded, ClassificationTypeNames.ParameterName, ClassificationTypeNames.PropertyName, // Preprocessor ClassificationTypeNames.PreprocessorKeyword, ClassificationTypeNames.PreprocessorText, ClassificationTypeNames.Punctuation, ClassificationTypeNames.RecordClassName, ClassificationTypeNames.RecordStructName, // Regex ClassificationTypeNames.RegexAlternation, ClassificationTypeNames.RegexAnchor, ClassificationTypeNames.RegexCharacterClass, ClassificationTypeNames.RegexComment, ClassificationTypeNames.RegexGrouping, ClassificationTypeNames.RegexOtherEscape, ClassificationTypeNames.RegexQuantifier, ClassificationTypeNames.RegexSelfEscapedCharacter, ClassificationTypeNames.RegexText, ClassificationTypeNames.StringEscapeCharacter, ClassificationTypeNames.StructName, ClassificationTypeNames.Text, ClassificationTypeNames.TypeParameterName, ClassificationTypeNames.VerbatimStringLiteral, ClassificationTypeNames.WhiteSpace, // XML ClassificationTypeNames.XmlDocCommentAttributeName, ClassificationTypeNames.XmlDocCommentAttributeQuotes, ClassificationTypeNames.XmlDocCommentAttributeValue, ClassificationTypeNames.XmlDocCommentCDataSection, ClassificationTypeNames.XmlDocCommentComment, ClassificationTypeNames.XmlDocCommentDelimiter, ClassificationTypeNames.XmlDocCommentEntityReference, ClassificationTypeNames.XmlDocCommentName, ClassificationTypeNames.XmlDocCommentProcessingInstruction, ClassificationTypeNames.XmlDocCommentText, ClassificationTypeNames.XmlLiteralAttributeName, ClassificationTypeNames.XmlLiteralAttributeQuotes, ClassificationTypeNames.XmlLiteralAttributeValue, ClassificationTypeNames.XmlLiteralCDataSection, ClassificationTypeNames.XmlLiteralComment, ClassificationTypeNames.XmlLiteralDelimiter, ClassificationTypeNames.XmlLiteralEmbeddedExpression, ClassificationTypeNames.XmlLiteralEntityReference, ClassificationTypeNames.XmlLiteralName, ClassificationTypeNames.XmlLiteralProcessingInstruction, ClassificationTypeNames.XmlLiteralText }; // TO-DO: Expand this mapping once support for custom token types is added: // https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1085998 private static readonly Dictionary<string, string> s_classificationTypeToSemanticTokenTypeMap = new Dictionary<string, string> { [ClassificationTypeNames.Comment] = LSP.SemanticTokenTypes.Comment, [ClassificationTypeNames.Identifier] = LSP.SemanticTokenTypes.Variable, [ClassificationTypeNames.Keyword] = LSP.SemanticTokenTypes.Keyword, [ClassificationTypeNames.NumericLiteral] = LSP.SemanticTokenTypes.Number, [ClassificationTypeNames.Operator] = LSP.SemanticTokenTypes.Operator, [ClassificationTypeNames.StringLiteral] = LSP.SemanticTokenTypes.String, }; /// <summary> /// Returns the semantic tokens data for a given document with an optional range. /// </summary> internal static async Task<int[]> ComputeSemanticTokensDataAsync( Document document, Dictionary<string, int> tokenTypesToIndex, LSP.Range? range, CancellationToken cancellationToken) { var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); // By default we calculate the tokens for the full document span, although the user // can pass in a range if they wish. var textSpan = range == null ? root.FullSpan : ProtocolConversions.RangeToTextSpan(range, text); var classifiedSpans = await Classifier.GetClassifiedSpansAsync(document, textSpan, cancellationToken).ConfigureAwait(false); Contract.ThrowIfNull(classifiedSpans, "classifiedSpans is null"); // Multi-line tokens are not supported by VS (tracked by https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1265495). // Roslyn's classifier however can return multi-line classified spans, so we must break these up into single-line spans. var updatedClassifiedSpans = ConvertMultiLineToSingleLineSpans(text, classifiedSpans.ToArray()); // TO-DO: We should implement support for streaming if LSP adds support for it: // https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1276300 return ComputeTokens(text.Lines, updatedClassifiedSpans, tokenTypesToIndex); } private static ClassifiedSpan[] ConvertMultiLineToSingleLineSpans(SourceText text, ClassifiedSpan[] classifiedSpans) { using var _ = ArrayBuilder<ClassifiedSpan>.GetInstance(out var updatedClassifiedSpans); for (var spanIndex = 0; spanIndex < classifiedSpans.Length; spanIndex++) { var span = classifiedSpans[spanIndex]; text.GetLinesAndOffsets(span.TextSpan, out var startLine, out var startOffset, out var endLine, out var endOffSet); // If the start and end of the classified span are not on the same line, we're dealing with a multi-line span. // Since VS doesn't support multi-line spans/tokens, we need to break the span up into single-line spans. if (startLine != endLine) { spanIndex = ConvertToSingleLineSpan( text, classifiedSpans, updatedClassifiedSpans, spanIndex, span.ClassificationType, startLine, startOffset, endLine, endOffSet); } else { // This is already a single-line span, so no modification is necessary. updatedClassifiedSpans.Add(span); } } return updatedClassifiedSpans.ToArray(); static int ConvertToSingleLineSpan( SourceText text, ClassifiedSpan[] originalClassifiedSpans, ArrayBuilder<ClassifiedSpan> updatedClassifiedSpans, int spanIndex, string classificationType, int startLine, int startOffset, int endLine, int endOffSet) { var numLinesInSpan = endLine - startLine + 1; Contract.ThrowIfTrue(numLinesInSpan < 1); var updatedSpanIndex = spanIndex; for (var currentLine = 0; currentLine < numLinesInSpan; currentLine++) { TextSpan? textSpan; // Case 1: First line of span if (currentLine == 0) { var absoluteStartOffset = text.Lines[startLine].Start + startOffset; var spanLength = text.Lines[startLine].End - absoluteStartOffset; textSpan = new TextSpan(absoluteStartOffset, spanLength); } // Case 2: Any of the span's middle lines else if (currentLine != numLinesInSpan - 1) { textSpan = text.Lines[startLine + currentLine].Span; } // Case 3: Last line of span else { textSpan = new TextSpan(text.Lines[endLine].Start, endOffSet); } var updatedClassifiedSpan = new ClassifiedSpan(textSpan.Value, classificationType); updatedClassifiedSpans.Add(updatedClassifiedSpan); // Since spans are expected to be ordered, when breaking up a multi-line span, we may have to insert // other spans in-between. For example, we may encounter this case when breaking up a multi-line verbatim // string literal containing escape characters: // var x = @"one "" // two"; // The check below ensures we correctly return the spans in the correct order, i.e. 'one', '""', 'two'. while (updatedSpanIndex + 1 < originalClassifiedSpans.Length && textSpan.Value.Contains(originalClassifiedSpans[updatedSpanIndex + 1].TextSpan)) { updatedClassifiedSpans.Add(originalClassifiedSpans[updatedSpanIndex + 1]); updatedSpanIndex++; } } return updatedSpanIndex; } } private static int[] ComputeTokens( TextLineCollection lines, ClassifiedSpan[] classifiedSpans, Dictionary<string, int> tokenTypesToIndex) { using var _ = ArrayBuilder<int>.GetInstance(classifiedSpans.Length, out var data); // We keep track of the last line number and last start character since tokens are // reported relative to each other. var lastLineNumber = 0; var lastStartCharacter = 0; for (var currentClassifiedSpanIndex = 0; currentClassifiedSpanIndex < classifiedSpans.Length; currentClassifiedSpanIndex++) { currentClassifiedSpanIndex = ComputeNextToken( lines, ref lastLineNumber, ref lastStartCharacter, classifiedSpans, currentClassifiedSpanIndex, tokenTypesToIndex, out var deltaLine, out var startCharacterDelta, out var tokenLength, out var tokenType, out var tokenModifiers); data.AddRange(deltaLine, startCharacterDelta, tokenLength, tokenType, tokenModifiers); } return data.ToArray(); } private static int ComputeNextToken( TextLineCollection lines, ref int lastLineNumber, ref int lastStartCharacter, ClassifiedSpan[] classifiedSpans, int currentClassifiedSpanIndex, Dictionary<string, int> tokenTypesToIndex, out int deltaLineOut, out int startCharacterDeltaOut, out int tokenLengthOut, out int tokenTypeOut, out int tokenModifiersOut) { // Each semantic token is represented in LSP by five numbers: // 1. Token line number delta, relative to the previous token // 2. Token start character delta, relative to the previous token // 3. Token length // 4. Token type (index) - looked up in SemanticTokensLegend.tokenTypes // 5. Token modifiers - each set bit will be looked up in SemanticTokensLegend.tokenModifiers var classifiedSpan = classifiedSpans[currentClassifiedSpanIndex]; var originalTextSpan = classifiedSpan.TextSpan; var linePosition = lines.GetLinePositionSpan(originalTextSpan).Start; var lineNumber = linePosition.Line; // 1. Token line number delta, relative to the previous token var deltaLine = lineNumber - lastLineNumber; Contract.ThrowIfTrue(deltaLine < 0, $"deltaLine is less than 0: {deltaLine}"); // 2. Token start character delta, relative to the previous token // (Relative to 0 or the previous token’s start if they're on the same line) var deltaStartCharacter = linePosition.Character; if (lastLineNumber == lineNumber) { deltaStartCharacter -= lastStartCharacter; } lastLineNumber = lineNumber; lastStartCharacter = linePosition.Character; // 3. Token length var tokenLength = originalTextSpan.Length; // We currently only have one modifier (static). The logic below will need to change in the future if other // modifiers are added in the future. var modifierBits = TokenModifiers.None; var tokenTypeIndex = 0; // Classified spans with the same text span should be combined into one token. while (classifiedSpans[currentClassifiedSpanIndex].TextSpan == originalTextSpan) { var classificationType = classifiedSpans[currentClassifiedSpanIndex].ClassificationType; if (classificationType == ClassificationTypeNames.StaticSymbol) { // 4. Token modifiers - each set bit will be looked up in SemanticTokensLegend.tokenModifiers modifierBits = TokenModifiers.Static; } else if (classificationType == ClassificationTypeNames.ReassignedVariable) { // 5. Token modifiers - each set bit will be looked up in SemanticTokensLegend.tokenModifiers modifierBits = TokenModifiers.ReassignedVariable; } else { // 6. Token type - looked up in SemanticTokensLegend.tokenTypes (language server defined mapping // from integer to LSP token types). tokenTypeIndex = GetTokenTypeIndex(classificationType, tokenTypesToIndex); } // Break out of the loop if we have no more classified spans left, or if the next classified span has // a different text span than our current text span. if (currentClassifiedSpanIndex + 1 >= classifiedSpans.Length || classifiedSpans[currentClassifiedSpanIndex + 1].TextSpan != originalTextSpan) { break; } currentClassifiedSpanIndex++; } deltaLineOut = deltaLine; startCharacterDeltaOut = deltaStartCharacter; tokenLengthOut = tokenLength; tokenTypeOut = tokenTypeIndex; tokenModifiersOut = (int)modifierBits; return currentClassifiedSpanIndex; } private static int GetTokenTypeIndex(string classificationType, Dictionary<string, int> tokenTypesToIndex) { if (!s_classificationTypeToSemanticTokenTypeMap.TryGetValue(classificationType, out var tokenTypeStr)) { tokenTypeStr = classificationType; } Contract.ThrowIfFalse(tokenTypesToIndex.TryGetValue(tokenTypeStr, out var tokenTypeIndex), "No matching token type index found."); return tokenTypeIndex; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Classification; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; using LSP = Microsoft.VisualStudio.LanguageServer.Protocol; namespace Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens { internal class SemanticTokensHelpers { internal static readonly string[] RoslynCustomTokenTypes = { ClassificationTypeNames.ClassName, ClassificationTypeNames.ConstantName, ClassificationTypeNames.ControlKeyword, ClassificationTypeNames.DelegateName, ClassificationTypeNames.EnumMemberName, ClassificationTypeNames.EnumName, ClassificationTypeNames.EventName, ClassificationTypeNames.ExcludedCode, ClassificationTypeNames.ExtensionMethodName, ClassificationTypeNames.FieldName, ClassificationTypeNames.InterfaceName, ClassificationTypeNames.LabelName, ClassificationTypeNames.LocalName, ClassificationTypeNames.MethodName, ClassificationTypeNames.ModuleName, ClassificationTypeNames.NamespaceName, ClassificationTypeNames.OperatorOverloaded, ClassificationTypeNames.ParameterName, ClassificationTypeNames.PropertyName, // Preprocessor ClassificationTypeNames.PreprocessorKeyword, ClassificationTypeNames.PreprocessorText, ClassificationTypeNames.Punctuation, ClassificationTypeNames.RecordClassName, ClassificationTypeNames.RecordStructName, // Regex ClassificationTypeNames.RegexAlternation, ClassificationTypeNames.RegexAnchor, ClassificationTypeNames.RegexCharacterClass, ClassificationTypeNames.RegexComment, ClassificationTypeNames.RegexGrouping, ClassificationTypeNames.RegexOtherEscape, ClassificationTypeNames.RegexQuantifier, ClassificationTypeNames.RegexSelfEscapedCharacter, ClassificationTypeNames.RegexText, ClassificationTypeNames.StringEscapeCharacter, ClassificationTypeNames.StructName, ClassificationTypeNames.Text, ClassificationTypeNames.TypeParameterName, ClassificationTypeNames.VerbatimStringLiteral, ClassificationTypeNames.WhiteSpace, // XML ClassificationTypeNames.XmlDocCommentAttributeName, ClassificationTypeNames.XmlDocCommentAttributeQuotes, ClassificationTypeNames.XmlDocCommentAttributeValue, ClassificationTypeNames.XmlDocCommentCDataSection, ClassificationTypeNames.XmlDocCommentComment, ClassificationTypeNames.XmlDocCommentDelimiter, ClassificationTypeNames.XmlDocCommentEntityReference, ClassificationTypeNames.XmlDocCommentName, ClassificationTypeNames.XmlDocCommentProcessingInstruction, ClassificationTypeNames.XmlDocCommentText, ClassificationTypeNames.XmlLiteralAttributeName, ClassificationTypeNames.XmlLiteralAttributeQuotes, ClassificationTypeNames.XmlLiteralAttributeValue, ClassificationTypeNames.XmlLiteralCDataSection, ClassificationTypeNames.XmlLiteralComment, ClassificationTypeNames.XmlLiteralDelimiter, ClassificationTypeNames.XmlLiteralEmbeddedExpression, ClassificationTypeNames.XmlLiteralEntityReference, ClassificationTypeNames.XmlLiteralName, ClassificationTypeNames.XmlLiteralProcessingInstruction, ClassificationTypeNames.XmlLiteralText }; // TO-DO: Expand this mapping once support for custom token types is added: // https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1085998 private static readonly Dictionary<string, string> s_classificationTypeToSemanticTokenTypeMap = new Dictionary<string, string> { [ClassificationTypeNames.Comment] = LSP.SemanticTokenTypes.Comment, [ClassificationTypeNames.Identifier] = LSP.SemanticTokenTypes.Variable, [ClassificationTypeNames.Keyword] = LSP.SemanticTokenTypes.Keyword, [ClassificationTypeNames.NumericLiteral] = LSP.SemanticTokenTypes.Number, [ClassificationTypeNames.Operator] = LSP.SemanticTokenTypes.Operator, [ClassificationTypeNames.StringLiteral] = LSP.SemanticTokenTypes.String, }; /// <summary> /// Returns the semantic tokens data for a given document with an optional range. /// </summary> internal static async Task<int[]> ComputeSemanticTokensDataAsync( Document document, Dictionary<string, int> tokenTypesToIndex, LSP.Range? range, CancellationToken cancellationToken) { var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); // By default we calculate the tokens for the full document span, although the user // can pass in a range if they wish. var textSpan = range == null ? root.FullSpan : ProtocolConversions.RangeToTextSpan(range, text); var classifiedSpans = await Classifier.GetClassifiedSpansAsync(document, textSpan, cancellationToken).ConfigureAwait(false); Contract.ThrowIfNull(classifiedSpans, "classifiedSpans is null"); // Multi-line tokens are not supported by VS (tracked by https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1265495). // Roslyn's classifier however can return multi-line classified spans, so we must break these up into single-line spans. var updatedClassifiedSpans = ConvertMultiLineToSingleLineSpans(text, classifiedSpans.ToArray()); // TO-DO: We should implement support for streaming if LSP adds support for it: // https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1276300 return ComputeTokens(text.Lines, updatedClassifiedSpans, tokenTypesToIndex); } private static ClassifiedSpan[] ConvertMultiLineToSingleLineSpans(SourceText text, ClassifiedSpan[] classifiedSpans) { using var _ = ArrayBuilder<ClassifiedSpan>.GetInstance(out var updatedClassifiedSpans); for (var spanIndex = 0; spanIndex < classifiedSpans.Length; spanIndex++) { var span = classifiedSpans[spanIndex]; text.GetLinesAndOffsets(span.TextSpan, out var startLine, out var startOffset, out var endLine, out var endOffSet); // If the start and end of the classified span are not on the same line, we're dealing with a multi-line span. // Since VS doesn't support multi-line spans/tokens, we need to break the span up into single-line spans. if (startLine != endLine) { spanIndex = ConvertToSingleLineSpan( text, classifiedSpans, updatedClassifiedSpans, spanIndex, span.ClassificationType, startLine, startOffset, endLine, endOffSet); } else { // This is already a single-line span, so no modification is necessary. updatedClassifiedSpans.Add(span); } } return updatedClassifiedSpans.ToArray(); static int ConvertToSingleLineSpan( SourceText text, ClassifiedSpan[] originalClassifiedSpans, ArrayBuilder<ClassifiedSpan> updatedClassifiedSpans, int spanIndex, string classificationType, int startLine, int startOffset, int endLine, int endOffSet) { var numLinesInSpan = endLine - startLine + 1; Contract.ThrowIfTrue(numLinesInSpan < 1); var updatedSpanIndex = spanIndex; for (var currentLine = 0; currentLine < numLinesInSpan; currentLine++) { TextSpan? textSpan; // Case 1: First line of span if (currentLine == 0) { var absoluteStartOffset = text.Lines[startLine].Start + startOffset; var spanLength = text.Lines[startLine].End - absoluteStartOffset; textSpan = new TextSpan(absoluteStartOffset, spanLength); } // Case 2: Any of the span's middle lines else if (currentLine != numLinesInSpan - 1) { textSpan = text.Lines[startLine + currentLine].Span; } // Case 3: Last line of span else { textSpan = new TextSpan(text.Lines[endLine].Start, endOffSet); } var updatedClassifiedSpan = new ClassifiedSpan(textSpan.Value, classificationType); updatedClassifiedSpans.Add(updatedClassifiedSpan); // Since spans are expected to be ordered, when breaking up a multi-line span, we may have to insert // other spans in-between. For example, we may encounter this case when breaking up a multi-line verbatim // string literal containing escape characters: // var x = @"one "" // two"; // The check below ensures we correctly return the spans in the correct order, i.e. 'one', '""', 'two'. while (updatedSpanIndex + 1 < originalClassifiedSpans.Length && textSpan.Value.Contains(originalClassifiedSpans[updatedSpanIndex + 1].TextSpan)) { updatedClassifiedSpans.Add(originalClassifiedSpans[updatedSpanIndex + 1]); updatedSpanIndex++; } } return updatedSpanIndex; } } private static int[] ComputeTokens( TextLineCollection lines, ClassifiedSpan[] classifiedSpans, Dictionary<string, int> tokenTypesToIndex) { using var _ = ArrayBuilder<int>.GetInstance(classifiedSpans.Length, out var data); // We keep track of the last line number and last start character since tokens are // reported relative to each other. var lastLineNumber = 0; var lastStartCharacter = 0; for (var currentClassifiedSpanIndex = 0; currentClassifiedSpanIndex < classifiedSpans.Length; currentClassifiedSpanIndex++) { currentClassifiedSpanIndex = ComputeNextToken( lines, ref lastLineNumber, ref lastStartCharacter, classifiedSpans, currentClassifiedSpanIndex, tokenTypesToIndex, out var deltaLine, out var startCharacterDelta, out var tokenLength, out var tokenType, out var tokenModifiers); data.AddRange(deltaLine, startCharacterDelta, tokenLength, tokenType, tokenModifiers); } return data.ToArray(); } private static int ComputeNextToken( TextLineCollection lines, ref int lastLineNumber, ref int lastStartCharacter, ClassifiedSpan[] classifiedSpans, int currentClassifiedSpanIndex, Dictionary<string, int> tokenTypesToIndex, out int deltaLineOut, out int startCharacterDeltaOut, out int tokenLengthOut, out int tokenTypeOut, out int tokenModifiersOut) { // Each semantic token is represented in LSP by five numbers: // 1. Token line number delta, relative to the previous token // 2. Token start character delta, relative to the previous token // 3. Token length // 4. Token type (index) - looked up in SemanticTokensLegend.tokenTypes // 5. Token modifiers - each set bit will be looked up in SemanticTokensLegend.tokenModifiers var classifiedSpan = classifiedSpans[currentClassifiedSpanIndex]; var originalTextSpan = classifiedSpan.TextSpan; var linePosition = lines.GetLinePositionSpan(originalTextSpan).Start; var lineNumber = linePosition.Line; // 1. Token line number delta, relative to the previous token var deltaLine = lineNumber - lastLineNumber; Contract.ThrowIfTrue(deltaLine < 0, $"deltaLine is less than 0: {deltaLine}"); // 2. Token start character delta, relative to the previous token // (Relative to 0 or the previous token’s start if they're on the same line) var deltaStartCharacter = linePosition.Character; if (lastLineNumber == lineNumber) { deltaStartCharacter -= lastStartCharacter; } lastLineNumber = lineNumber; lastStartCharacter = linePosition.Character; // 3. Token length var tokenLength = originalTextSpan.Length; // We currently only have one modifier (static). The logic below will need to change in the future if other // modifiers are added in the future. var modifierBits = TokenModifiers.None; var tokenTypeIndex = 0; // Classified spans with the same text span should be combined into one token. while (classifiedSpans[currentClassifiedSpanIndex].TextSpan == originalTextSpan) { var classificationType = classifiedSpans[currentClassifiedSpanIndex].ClassificationType; if (classificationType == ClassificationTypeNames.StaticSymbol) { // 4. Token modifiers - each set bit will be looked up in SemanticTokensLegend.tokenModifiers modifierBits = TokenModifiers.Static; } else if (classificationType == ClassificationTypeNames.ReassignedVariable) { // 5. Token modifiers - each set bit will be looked up in SemanticTokensLegend.tokenModifiers modifierBits = TokenModifiers.ReassignedVariable; } else { // 6. Token type - looked up in SemanticTokensLegend.tokenTypes (language server defined mapping // from integer to LSP token types). tokenTypeIndex = GetTokenTypeIndex(classificationType, tokenTypesToIndex); } // Break out of the loop if we have no more classified spans left, or if the next classified span has // a different text span than our current text span. if (currentClassifiedSpanIndex + 1 >= classifiedSpans.Length || classifiedSpans[currentClassifiedSpanIndex + 1].TextSpan != originalTextSpan) { break; } currentClassifiedSpanIndex++; } deltaLineOut = deltaLine; startCharacterDeltaOut = deltaStartCharacter; tokenLengthOut = tokenLength; tokenTypeOut = tokenTypeIndex; tokenModifiersOut = (int)modifierBits; return currentClassifiedSpanIndex; } private static int GetTokenTypeIndex(string classificationType, Dictionary<string, int> tokenTypesToIndex) { if (!s_classificationTypeToSemanticTokenTypeMap.TryGetValue(classificationType, out var tokenTypeStr)) { tokenTypeStr = classificationType; } Contract.ThrowIfFalse(tokenTypesToIndex.TryGetValue(tokenTypeStr, out var tokenTypeIndex), "No matching token type index found."); return tokenTypeIndex; } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/ExpressionEvaluator/VisualBasic/Source/ExpressionCompiler/VisualBasicMetadataContext.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Namespace Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator Friend Structure VisualBasicMetadataContext Friend ReadOnly Compilation As VisualBasicCompilation Friend ReadOnly EvaluationContext As EvaluationContext Friend Sub New(compilation As VisualBasicCompilation, Optional evaluationContext As EvaluationContext = Nothing) Me.Compilation = compilation Me.EvaluationContext = evaluationContext End Sub End Structure End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Namespace Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator Friend Structure VisualBasicMetadataContext Friend ReadOnly Compilation As VisualBasicCompilation Friend ReadOnly EvaluationContext As EvaluationContext Friend Sub New(compilation As VisualBasicCompilation, Optional evaluationContext As EvaluationContext = Nothing) Me.Compilation = compilation Me.EvaluationContext = evaluationContext End Sub End Structure End Namespace
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Workspaces/SharedUtilitiesAndExtensions/Compiler/VisualBasic/Extensions/SyntaxTreeExtensions.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Runtime.CompilerServices Imports System.Runtime.InteropServices Imports System.Threading Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions Partial Friend Module SyntaxTreeExtensions ''' <summary> ''' check whether given token is the last token of a statement that ends with end of line trivia or an elastic trivia ''' </summary> <Extension()> Public Function IsLastTokenOfStatementWithEndOfLine(token As SyntaxToken) As Boolean If Not token.HasTrailingTrivia Then Return False End If ' easy case Dim trailing = token.TrailingTrivia If trailing.Count = 1 Then Dim trivia = trailing.First() If trivia.Kind = SyntaxKind.EndOfLineTrivia Then Return token.IsLastTokenOfStatement() End If Return False End If ' little bit more expansive case For Each trivia In trailing If trivia.Kind = SyntaxKind.EndOfLineTrivia Then Return token.IsLastTokenOfStatement() End If Next Return False End Function ''' <summary> ''' check whether given token is the last token of a statement by walking up the spine ''' </summary> <Extension()> Public Function IsLastTokenOfStatement( token As SyntaxToken, Optional checkColonTrivia As Boolean = False, <Out> Optional ByRef statement As StatementSyntax = Nothing) As Boolean Dim current = token.Parent While current IsNot Nothing If current.FullSpan.End <> token.FullSpan.End Then Return False End If If TypeOf current Is StatementSyntax Then statement = DirectCast(current, StatementSyntax) Dim colonTrivia = GetTrailingColonTrivia(DirectCast(current, StatementSyntax)) If Not PartOfSingleLineLambda(current) AndAlso Not PartOfMultilineLambdaFooter(current) Then If checkColonTrivia Then If colonTrivia Is Nothing Then Return current.GetLastToken(includeZeroWidth:=True) = token End If Else Return current.GetLastToken(includeZeroWidth:=True) = token End If End If End If current = current.Parent End While Return False End Function <PerformanceSensitive("https://github.com/dotnet/roslyn/issues/30819", AllowImplicitBoxing:=False)> Private Function GetTrailingColonTrivia(statement As StatementSyntax) As SyntaxTrivia? If Not statement.HasTrailingTrivia Then Return Nothing End If Return statement _ .GetTrailingTrivia() _ .FirstOrNull(Function(t) t.Kind = SyntaxKind.ColonTrivia) End Function Private Function PartOfSingleLineLambda(node As SyntaxNode) As Boolean While node IsNot Nothing If TypeOf node Is MultiLineLambdaExpressionSyntax Then Return False If TypeOf node Is SingleLineLambdaExpressionSyntax Then Return True node = node.Parent End While Return False End Function <PerformanceSensitive("https://github.com/dotnet/roslyn/issues/30819", AllowCaptures:=False)> Private Function PartOfMultilineLambdaFooter(node As SyntaxNode) As Boolean For Each n In node.AncestorsAndSelf Dim multiLine = TryCast(n, MultiLineLambdaExpressionSyntax) If multiLine Is Nothing Then Continue For End If If (multiLine.EndSubOrFunctionStatement Is node) Then Return True End If Next Return False End Function ''' <summary> ''' Finds the token being touched by this position. Unlike the normal FindTrivia helper, this helper will prefer ''' trivia to the left rather than the right if the position is on the border. ''' </summary> ''' <param name="syntaxTree">The syntaxTree to search.</param> ''' <param name="position">The position to find trivia.</param> <Extension()> Public Function FindTriviaToLeft(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As SyntaxTrivia Return FindTriviaToLeft(syntaxTree.GetRoot(cancellationToken), position) End Function Private Function FindTriviaToLeft(nodeOrToken As SyntaxNodeOrToken, position As Integer) As SyntaxTrivia recurse: For Each child In nodeOrToken.ChildNodesAndTokens().Reverse() If (child.FullSpan.Start < position) AndAlso (position <= child.FullSpan.End) Then If child.IsNode Then nodeOrToken = child GoTo recurse Else For Each trivia In child.GetTrailingTrivia.Reverse If (trivia.SpanStart < position) AndAlso (position <= child.FullSpan.End) Then Return trivia End If Next For Each trivia In child.GetLeadingTrivia.Reverse If (trivia.SpanStart < position) AndAlso (position <= child.FullSpan.End) Then Return trivia End If Next End If End If Next Return Nothing End Function <Extension()> Public Function IsInNonUserCode(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Return _ syntaxTree.IsEntirelyWithinComment(position, cancellationToken) OrElse syntaxTree.IsEntirelyWithinStringOrCharOrNumericLiteral(position, cancellationToken) OrElse syntaxTree.IsInInactiveRegion(position, cancellationToken) OrElse syntaxTree.IsWithinPartialMethodDeclaration(position, cancellationToken) End Function <Extension()> Public Function IsWithinPartialMethodDeclaration(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) Dim declaration = token.GetAncestor(Of MethodStatementSyntax) If declaration IsNot Nothing AndAlso declaration.Modifiers.Any(SyntaxKind.PartialKeyword) Then Return True End If Dim block = token.GetAncestor(Of MethodBlockSyntax) If block IsNot Nothing AndAlso block.BlockStatement.Modifiers.Any(SyntaxKind.PartialKeyword) Then Return True End If Return False End Function <Extension()> Public Function IsEntirelyWithinComment(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim trivia = syntaxTree.FindTriviaToLeft(position, cancellationToken) If trivia.IsKind(SyntaxKind.CommentTrivia, SyntaxKind.DocumentationCommentTrivia) AndAlso trivia.SpanStart <> position Then Return True End If Return False End Function <Extension()> Public Function IsEntirelyWithinStringLiteral(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken, includeDirectives:=True, includeDocumentationComments:=True) If token.IsKind(SyntaxKind.StringLiteralToken) Then Return token.SpanStart < position AndAlso position < token.Span.End OrElse AtEndOfIncompleteStringOrCharLiteral(token, position, """") End If Return False End Function <Extension()> Public Function IsEntirelyWithinStringOrCharOrNumericLiteral(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken, includeDirectives:=True, includeDocumentationComments:=True) If Not token.IsKind(SyntaxKind.StringLiteralToken, SyntaxKind.CharacterLiteralToken, SyntaxKind.DecimalLiteralToken, SyntaxKind.IntegerLiteralToken, SyntaxKind.DateLiteralToken, SyntaxKind.FloatingLiteralToken) Then Return False End If ' Check if it's within a completed token. If token.SpanStart < position AndAlso position < token.Span.End Then Return True End If ' If it is a numeric literal, all checks are done and we're okay. If token.IsKind(SyntaxKind.IntegerLiteralToken, SyntaxKind.DecimalLiteralToken, SyntaxKind.DateLiteralToken, SyntaxKind.FloatingLiteralToken) Then Return False End If ' For char or string literals, check if we're at the end of an incomplete literal. Dim lastChar = If(token.IsKind(SyntaxKind.CharacterLiteralToken), "'", """") Return AtEndOfIncompleteStringOrCharLiteral(token, position, lastChar) End Function Private Function AtEndOfIncompleteStringOrCharLiteral(token As SyntaxToken, position As Integer, lastChar As String) As Boolean ' Check if it's a token that was started, but not ended Dim startLength = 1 If token.IsKind(SyntaxKind.CharacterLiteralToken) Then startLength = 2 End If Return _ position = token.Span.End AndAlso (token.Span.Length = startLength OrElse (token.Span.Length > startLength AndAlso Not token.ToString().EndsWith(lastChar, StringComparison.Ordinal))) End Function <Extension()> Public Function IsInInactiveRegion(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Contract.ThrowIfNull(syntaxTree) ' cases: ' $ is EOF ' #IF false Then ' | ' #IF false Then ' |$ ' #IF false Then ' | ' #IF false Then ' |$ If syntaxTree.FindTriviaToLeft(position, cancellationToken).Kind = SyntaxKind.DisabledTextTrivia Then Return True End If ' TODO : insert point at the same line as preprocessor? Return False End Function <Extension()> Public Function IsInSkippedText(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim trivia = syntaxTree.FindTriviaToLeft(position, cancellationToken) Return trivia.IsKind(SyntaxKind.SkippedTokensTrivia) End Function Private Function IsGlobalStatementContext(token As SyntaxToken, position As Integer) As Boolean If Not token.IsLastTokenOfStatement() Then Return False End If ' NB: Checks whether the caret is placed after a colon or an end of line. ' Otherwise the typed expression would still be a part of the previous statement. If Not token.HasTrailingTrivia OrElse token.HasAncestor(Of IncompleteMemberSyntax) Then Return False End If For Each trivia In token.TrailingTrivia If trivia.Span.Start > position Then Return False ElseIf trivia.IsKind(SyntaxKind.ColonTrivia) Then Return True ElseIf trivia.IsKind(SyntaxKind.EndOfLineTrivia) Then Return True End If Next Return False End Function <Extension()> Public Function IsGlobalStatementContext(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean If Not syntaxTree.IsScript() Then Return False End If Dim token As SyntaxToken = syntaxTree.FindTokenOnLeftOfPosition( position, cancellationToken, includeDirectives:=True).GetPreviousTokenIfTouchingWord(position) If token.IsKind(SyntaxKind.None) Then Dim compilationUnit = TryCast(syntaxTree.GetRoot(cancellationToken), CompilationUnitSyntax) Return compilationUnit Is Nothing OrElse compilationUnit.Imports.Count = 0 End If Return IsGlobalStatementContext(token, position) End Function <Extension()> Public Function IsRightOfDot(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) If token.Kind = SyntaxKind.None Then Return False End If token = token.GetPreviousTokenIfTouchingWord(position) Return token.Kind = SyntaxKind.DotToken End Function <Extension()> Public Function IsRightOfIntegerLiteral(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) Return token.Kind = SyntaxKind.IntegerLiteralToken End Function <Extension()> Public Function IsInPreprocessorDirectiveContext(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim directive As DirectiveTriviaSyntax = Nothing Return IsInPreprocessorDirectiveContext(syntaxTree, position, cancellationToken, directive) End Function Friend Function IsInPreprocessorDirectiveContext( syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken, ByRef directive As DirectiveTriviaSyntax) As Boolean Dim token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken, includeDirectives:=True, includeDocumentationComments:=True) directive = token.GetAncestor(Of DirectiveTriviaSyntax)() ' Directives contain the EOL, so if the position is within the full span of the ' directive, then it is on that line, the only exception is if the directive is on the ' last line, the position at the end if technically not contained by the directive but ' its also not on a new line, so it should be considered part of the preprocessor ' context. If directive Is Nothing Then Return False End If Return directive.FullSpan.Contains(position) OrElse directive.FullSpan.End = syntaxTree.GetRoot(cancellationToken).FullSpan.End End Function <Extension()> Public Function GetFirstStatementOnLine(syntaxTree As SyntaxTree, lineNumber As Integer, cancellationToken As CancellationToken) As StatementSyntax Dim line = syntaxTree.GetText(cancellationToken).Lines(lineNumber) Dim token = syntaxTree.GetRoot(cancellationToken).FindToken(line.Start) Dim statement = token.Parent.FirstAncestorOrSelf(Of StatementSyntax)() If statement IsNot Nothing AndAlso syntaxTree.GetText(cancellationToken).Lines.IndexOf(statement.SpanStart) = lineNumber Then Return statement End If Return Nothing End Function <Extension()> Public Function GetFirstEnclosingStatement(node As SyntaxNode) As StatementSyntax Return node.AncestorsAndSelf().Where(Function(n) TypeOf n Is StatementSyntax).OfType(Of StatementSyntax).FirstOrDefault() End Function End Module End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Runtime.CompilerServices Imports System.Runtime.InteropServices Imports System.Threading Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions Partial Friend Module SyntaxTreeExtensions ''' <summary> ''' check whether given token is the last token of a statement that ends with end of line trivia or an elastic trivia ''' </summary> <Extension()> Public Function IsLastTokenOfStatementWithEndOfLine(token As SyntaxToken) As Boolean If Not token.HasTrailingTrivia Then Return False End If ' easy case Dim trailing = token.TrailingTrivia If trailing.Count = 1 Then Dim trivia = trailing.First() If trivia.Kind = SyntaxKind.EndOfLineTrivia Then Return token.IsLastTokenOfStatement() End If Return False End If ' little bit more expansive case For Each trivia In trailing If trivia.Kind = SyntaxKind.EndOfLineTrivia Then Return token.IsLastTokenOfStatement() End If Next Return False End Function ''' <summary> ''' check whether given token is the last token of a statement by walking up the spine ''' </summary> <Extension()> Public Function IsLastTokenOfStatement( token As SyntaxToken, Optional checkColonTrivia As Boolean = False, <Out> Optional ByRef statement As StatementSyntax = Nothing) As Boolean Dim current = token.Parent While current IsNot Nothing If current.FullSpan.End <> token.FullSpan.End Then Return False End If If TypeOf current Is StatementSyntax Then statement = DirectCast(current, StatementSyntax) Dim colonTrivia = GetTrailingColonTrivia(DirectCast(current, StatementSyntax)) If Not PartOfSingleLineLambda(current) AndAlso Not PartOfMultilineLambdaFooter(current) Then If checkColonTrivia Then If colonTrivia Is Nothing Then Return current.GetLastToken(includeZeroWidth:=True) = token End If Else Return current.GetLastToken(includeZeroWidth:=True) = token End If End If End If current = current.Parent End While Return False End Function <PerformanceSensitive("https://github.com/dotnet/roslyn/issues/30819", AllowImplicitBoxing:=False)> Private Function GetTrailingColonTrivia(statement As StatementSyntax) As SyntaxTrivia? If Not statement.HasTrailingTrivia Then Return Nothing End If Return statement _ .GetTrailingTrivia() _ .FirstOrNull(Function(t) t.Kind = SyntaxKind.ColonTrivia) End Function Private Function PartOfSingleLineLambda(node As SyntaxNode) As Boolean While node IsNot Nothing If TypeOf node Is MultiLineLambdaExpressionSyntax Then Return False If TypeOf node Is SingleLineLambdaExpressionSyntax Then Return True node = node.Parent End While Return False End Function <PerformanceSensitive("https://github.com/dotnet/roslyn/issues/30819", AllowCaptures:=False)> Private Function PartOfMultilineLambdaFooter(node As SyntaxNode) As Boolean For Each n In node.AncestorsAndSelf Dim multiLine = TryCast(n, MultiLineLambdaExpressionSyntax) If multiLine Is Nothing Then Continue For End If If (multiLine.EndSubOrFunctionStatement Is node) Then Return True End If Next Return False End Function ''' <summary> ''' Finds the token being touched by this position. Unlike the normal FindTrivia helper, this helper will prefer ''' trivia to the left rather than the right if the position is on the border. ''' </summary> ''' <param name="syntaxTree">The syntaxTree to search.</param> ''' <param name="position">The position to find trivia.</param> <Extension()> Public Function FindTriviaToLeft(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As SyntaxTrivia Return FindTriviaToLeft(syntaxTree.GetRoot(cancellationToken), position) End Function Private Function FindTriviaToLeft(nodeOrToken As SyntaxNodeOrToken, position As Integer) As SyntaxTrivia recurse: For Each child In nodeOrToken.ChildNodesAndTokens().Reverse() If (child.FullSpan.Start < position) AndAlso (position <= child.FullSpan.End) Then If child.IsNode Then nodeOrToken = child GoTo recurse Else For Each trivia In child.GetTrailingTrivia.Reverse If (trivia.SpanStart < position) AndAlso (position <= child.FullSpan.End) Then Return trivia End If Next For Each trivia In child.GetLeadingTrivia.Reverse If (trivia.SpanStart < position) AndAlso (position <= child.FullSpan.End) Then Return trivia End If Next End If End If Next Return Nothing End Function <Extension()> Public Function IsInNonUserCode(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Return _ syntaxTree.IsEntirelyWithinComment(position, cancellationToken) OrElse syntaxTree.IsEntirelyWithinStringOrCharOrNumericLiteral(position, cancellationToken) OrElse syntaxTree.IsInInactiveRegion(position, cancellationToken) OrElse syntaxTree.IsWithinPartialMethodDeclaration(position, cancellationToken) End Function <Extension()> Public Function IsWithinPartialMethodDeclaration(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) Dim declaration = token.GetAncestor(Of MethodStatementSyntax) If declaration IsNot Nothing AndAlso declaration.Modifiers.Any(SyntaxKind.PartialKeyword) Then Return True End If Dim block = token.GetAncestor(Of MethodBlockSyntax) If block IsNot Nothing AndAlso block.BlockStatement.Modifiers.Any(SyntaxKind.PartialKeyword) Then Return True End If Return False End Function <Extension()> Public Function IsEntirelyWithinComment(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim trivia = syntaxTree.FindTriviaToLeft(position, cancellationToken) If trivia.IsKind(SyntaxKind.CommentTrivia, SyntaxKind.DocumentationCommentTrivia) AndAlso trivia.SpanStart <> position Then Return True End If Return False End Function <Extension()> Public Function IsEntirelyWithinStringLiteral(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken, includeDirectives:=True, includeDocumentationComments:=True) If token.IsKind(SyntaxKind.StringLiteralToken) Then Return token.SpanStart < position AndAlso position < token.Span.End OrElse AtEndOfIncompleteStringOrCharLiteral(token, position, """") End If Return False End Function <Extension()> Public Function IsEntirelyWithinStringOrCharOrNumericLiteral(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken, includeDirectives:=True, includeDocumentationComments:=True) If Not token.IsKind(SyntaxKind.StringLiteralToken, SyntaxKind.CharacterLiteralToken, SyntaxKind.DecimalLiteralToken, SyntaxKind.IntegerLiteralToken, SyntaxKind.DateLiteralToken, SyntaxKind.FloatingLiteralToken) Then Return False End If ' Check if it's within a completed token. If token.SpanStart < position AndAlso position < token.Span.End Then Return True End If ' If it is a numeric literal, all checks are done and we're okay. If token.IsKind(SyntaxKind.IntegerLiteralToken, SyntaxKind.DecimalLiteralToken, SyntaxKind.DateLiteralToken, SyntaxKind.FloatingLiteralToken) Then Return False End If ' For char or string literals, check if we're at the end of an incomplete literal. Dim lastChar = If(token.IsKind(SyntaxKind.CharacterLiteralToken), "'", """") Return AtEndOfIncompleteStringOrCharLiteral(token, position, lastChar) End Function Private Function AtEndOfIncompleteStringOrCharLiteral(token As SyntaxToken, position As Integer, lastChar As String) As Boolean ' Check if it's a token that was started, but not ended Dim startLength = 1 If token.IsKind(SyntaxKind.CharacterLiteralToken) Then startLength = 2 End If Return _ position = token.Span.End AndAlso (token.Span.Length = startLength OrElse (token.Span.Length > startLength AndAlso Not token.ToString().EndsWith(lastChar, StringComparison.Ordinal))) End Function <Extension()> Public Function IsInInactiveRegion(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Contract.ThrowIfNull(syntaxTree) ' cases: ' $ is EOF ' #IF false Then ' | ' #IF false Then ' |$ ' #IF false Then ' | ' #IF false Then ' |$ If syntaxTree.FindTriviaToLeft(position, cancellationToken).Kind = SyntaxKind.DisabledTextTrivia Then Return True End If ' TODO : insert point at the same line as preprocessor? Return False End Function <Extension()> Public Function IsInSkippedText(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim trivia = syntaxTree.FindTriviaToLeft(position, cancellationToken) Return trivia.IsKind(SyntaxKind.SkippedTokensTrivia) End Function Private Function IsGlobalStatementContext(token As SyntaxToken, position As Integer) As Boolean If Not token.IsLastTokenOfStatement() Then Return False End If ' NB: Checks whether the caret is placed after a colon or an end of line. ' Otherwise the typed expression would still be a part of the previous statement. If Not token.HasTrailingTrivia OrElse token.HasAncestor(Of IncompleteMemberSyntax) Then Return False End If For Each trivia In token.TrailingTrivia If trivia.Span.Start > position Then Return False ElseIf trivia.IsKind(SyntaxKind.ColonTrivia) Then Return True ElseIf trivia.IsKind(SyntaxKind.EndOfLineTrivia) Then Return True End If Next Return False End Function <Extension()> Public Function IsGlobalStatementContext(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean If Not syntaxTree.IsScript() Then Return False End If Dim token As SyntaxToken = syntaxTree.FindTokenOnLeftOfPosition( position, cancellationToken, includeDirectives:=True).GetPreviousTokenIfTouchingWord(position) If token.IsKind(SyntaxKind.None) Then Dim compilationUnit = TryCast(syntaxTree.GetRoot(cancellationToken), CompilationUnitSyntax) Return compilationUnit Is Nothing OrElse compilationUnit.Imports.Count = 0 End If Return IsGlobalStatementContext(token, position) End Function <Extension()> Public Function IsRightOfDot(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) If token.Kind = SyntaxKind.None Then Return False End If token = token.GetPreviousTokenIfTouchingWord(position) Return token.Kind = SyntaxKind.DotToken End Function <Extension()> Public Function IsRightOfIntegerLiteral(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) Return token.Kind = SyntaxKind.IntegerLiteralToken End Function <Extension()> Public Function IsInPreprocessorDirectiveContext(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean Dim directive As DirectiveTriviaSyntax = Nothing Return IsInPreprocessorDirectiveContext(syntaxTree, position, cancellationToken, directive) End Function Friend Function IsInPreprocessorDirectiveContext( syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken, ByRef directive As DirectiveTriviaSyntax) As Boolean Dim token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken, includeDirectives:=True, includeDocumentationComments:=True) directive = token.GetAncestor(Of DirectiveTriviaSyntax)() ' Directives contain the EOL, so if the position is within the full span of the ' directive, then it is on that line, the only exception is if the directive is on the ' last line, the position at the end if technically not contained by the directive but ' its also not on a new line, so it should be considered part of the preprocessor ' context. If directive Is Nothing Then Return False End If Return directive.FullSpan.Contains(position) OrElse directive.FullSpan.End = syntaxTree.GetRoot(cancellationToken).FullSpan.End End Function <Extension()> Public Function GetFirstStatementOnLine(syntaxTree As SyntaxTree, lineNumber As Integer, cancellationToken As CancellationToken) As StatementSyntax Dim line = syntaxTree.GetText(cancellationToken).Lines(lineNumber) Dim token = syntaxTree.GetRoot(cancellationToken).FindToken(line.Start) Dim statement = token.Parent.FirstAncestorOrSelf(Of StatementSyntax)() If statement IsNot Nothing AndAlso syntaxTree.GetText(cancellationToken).Lines.IndexOf(statement.SpanStart) = lineNumber Then Return statement End If Return Nothing End Function <Extension()> Public Function GetFirstEnclosingStatement(node As SyntaxNode) As StatementSyntax Return node.AncestorsAndSelf().Where(Function(n) TypeOf n Is StatementSyntax).OfType(Of StatementSyntax).FirstOrDefault() End Function End Module End Namespace
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/EditorFeatures/Core.Wpf/NavigateTo/NavigateToItemProvider.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.NavigateTo; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Shared.TestHooks; using Microsoft.VisualStudio.Language.NavigateTo.Interfaces; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.Implementation.NavigateTo { internal partial class NavigateToItemProvider : INavigateToItemProvider2 { private readonly Workspace _workspace; private readonly IAsynchronousOperationListener _asyncListener; private readonly INavigateToItemDisplayFactory _displayFactory; private readonly IThreadingContext _threadingContext; private CancellationTokenSource _cancellationTokenSource = new(); public NavigateToItemProvider( Workspace workspace, IAsynchronousOperationListener asyncListener, IThreadingContext threadingContext) { Contract.ThrowIfNull(workspace); Contract.ThrowIfNull(asyncListener); _workspace = workspace; _asyncListener = asyncListener; _displayFactory = new NavigateToItemDisplayFactory(); _threadingContext = threadingContext; } ISet<string> INavigateToItemProvider2.KindsProvided => KindsProvided; public ImmutableHashSet<string> KindsProvided => NavigateToUtilities.GetKindsProvided(_workspace.CurrentSolution); public bool CanFilter { get { foreach (var project in _workspace.CurrentSolution.Projects) { var navigateToSearchService = project.GetLanguageService<INavigateToSearchService>(); if (navigateToSearchService is null) { // If we reach here, it means the current project does not support Navigate To, which is // functionally equivalent to supporting filtering. continue; } if (!navigateToSearchService.CanFilter) { return false; } } // All projects either support filtering or do not support Navigate To at all return true; } } public void StopSearch() { _cancellationTokenSource.Cancel(); _cancellationTokenSource = new CancellationTokenSource(); } public void Dispose() { this.StopSearch(); (_displayFactory as IDisposable)?.Dispose(); } public void StartSearch(INavigateToCallback callback, string searchValue) => StartSearch(callback, searchValue, KindsProvided); public void StartSearch(INavigateToCallback callback, string searchValue, INavigateToFilterParameters filter) => StartSearch(callback, searchValue, filter.Kinds.ToImmutableHashSet(StringComparer.Ordinal)); private void StartSearch(INavigateToCallback callback, string searchValue, IImmutableSet<string> kinds) { this.StopSearch(); if (string.IsNullOrWhiteSpace(searchValue)) { callback.Done(); return; } if (kinds == null || kinds.Count == 0) { kinds = KindsProvided; } var searchCurrentDocument = (callback.Options as INavigateToOptions2)?.SearchCurrentDocument ?? false; var roslynCallback = new NavigateToItemProviderCallback(_displayFactory, callback); var searcher = NavigateToSearcher.Create( _workspace.CurrentSolution, _asyncListener, roslynCallback, searchValue, searchCurrentDocument, kinds, _threadingContext.DisposalToken); _ = searcher.SearchAsync(_cancellationTokenSource.Token); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.NavigateTo; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Shared.TestHooks; using Microsoft.VisualStudio.Language.NavigateTo.Interfaces; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.Implementation.NavigateTo { internal partial class NavigateToItemProvider : INavigateToItemProvider2 { private readonly Workspace _workspace; private readonly IAsynchronousOperationListener _asyncListener; private readonly INavigateToItemDisplayFactory _displayFactory; private readonly IThreadingContext _threadingContext; private CancellationTokenSource _cancellationTokenSource = new(); public NavigateToItemProvider( Workspace workspace, IAsynchronousOperationListener asyncListener, IThreadingContext threadingContext) { Contract.ThrowIfNull(workspace); Contract.ThrowIfNull(asyncListener); _workspace = workspace; _asyncListener = asyncListener; _displayFactory = new NavigateToItemDisplayFactory(); _threadingContext = threadingContext; } ISet<string> INavigateToItemProvider2.KindsProvided => KindsProvided; public ImmutableHashSet<string> KindsProvided => NavigateToUtilities.GetKindsProvided(_workspace.CurrentSolution); public bool CanFilter { get { foreach (var project in _workspace.CurrentSolution.Projects) { var navigateToSearchService = project.GetLanguageService<INavigateToSearchService>(); if (navigateToSearchService is null) { // If we reach here, it means the current project does not support Navigate To, which is // functionally equivalent to supporting filtering. continue; } if (!navigateToSearchService.CanFilter) { return false; } } // All projects either support filtering or do not support Navigate To at all return true; } } public void StopSearch() { _cancellationTokenSource.Cancel(); _cancellationTokenSource = new CancellationTokenSource(); } public void Dispose() { this.StopSearch(); (_displayFactory as IDisposable)?.Dispose(); } public void StartSearch(INavigateToCallback callback, string searchValue) => StartSearch(callback, searchValue, KindsProvided); public void StartSearch(INavigateToCallback callback, string searchValue, INavigateToFilterParameters filter) => StartSearch(callback, searchValue, filter.Kinds.ToImmutableHashSet(StringComparer.Ordinal)); private void StartSearch(INavigateToCallback callback, string searchValue, IImmutableSet<string> kinds) { this.StopSearch(); if (string.IsNullOrWhiteSpace(searchValue)) { callback.Done(); return; } if (kinds == null || kinds.Count == 0) { kinds = KindsProvided; } var searchCurrentDocument = (callback.Options as INavigateToOptions2)?.SearchCurrentDocument ?? false; var roslynCallback = new NavigateToItemProviderCallback(_displayFactory, callback); var searcher = NavigateToSearcher.Create( _workspace.CurrentSolution, _asyncListener, roslynCallback, searchValue, searchCurrentDocument, kinds, _threadingContext.DisposalToken); _ = searcher.SearchAsync(_cancellationTokenSource.Token); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/VisualBasic/Test/Semantic/Semantics/EraseStatementTests.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports Microsoft.CodeAnalysis.VisualBasic.UnitTests.Emit Imports Roslyn.Test.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics Public Class EraseStatementTests Inherits BasicTestBase <Fact> <CompilerTrait(CompilerFeature.IOperation)> Public Sub Simple() Dim compilationDef = <compilation> <file name="a.vb"> Module Module1 Sub Main() Dim x(1) As Integer Dim y As System.Array = New Integer(1) {} Dim z As Object = New Integer(1) {} Erase x Erase y, z System.Console.WriteLine(x Is Nothing) System.Console.WriteLine(y Is Nothing) System.Console.WriteLine(z Is Nothing) End Sub End Module </file> </compilation> Dim verifier = CompileAndVerify(compilationDef, expectedOutput:= <![CDATA[ True True True ]]>) Dim compilation = verifier.Compilation Dim tree = compilation.SyntaxTrees.Single() Dim node = tree.GetRoot().DescendantNodes().OfType(Of EraseStatementSyntax)().Last() Assert.Equal("Erase y, z", node.ToString()) compilation.VerifyOperationTree(node, expectedOperationTree:= <![CDATA[ IOperation: (OperationKind.None, Type: null) (Syntax: 'Erase y, z') Children(2): ISimpleAssignmentOperation (OperationKind.SimpleAssignment, Type: System.Array, IsImplicit) (Syntax: 'y') Left: ILocalReferenceOperation: y (OperationKind.LocalReference, Type: System.Array) (Syntax: 'y') Right: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Array, Constant: null, IsImplicit) (Syntax: 'y') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: null, Constant: null, IsImplicit) (Syntax: 'y') ISimpleAssignmentOperation (OperationKind.SimpleAssignment, Type: System.Object, IsImplicit) (Syntax: 'z') Left: ILocalReferenceOperation: z (OperationKind.LocalReference, Type: System.Object) (Syntax: 'z') Right: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Object, Constant: null, IsImplicit) (Syntax: 'z') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: null, Constant: null, IsImplicit) (Syntax: 'z') ]]>.Value) End Sub <Fact> Public Sub Flow() Dim compilationDef = <compilation> <file name="a.vb"> Module Module1 Sub Main() Dim x() As Integer x(0).ToString() End Sub Sub Test() Dim y() As Integer Erase y y(0).ToString() End Sub End Module </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef) AssertTheseDiagnostics(compilation, <expected> BC42104: Variable 'x' is used before it has been assigned a value. A null reference exception could result at runtime. x(0).ToString() ~ </expected>) End Sub <Fact> Public Sub Errors1() Dim compilationDef = <compilation> <file name="a.vb"> Module Module1 Sub Main() Dim x As String = "" Erase x Dim y As String = "" Dim z As Integer = 1 Erase y, z End Sub End Module </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef) AssertTheseDiagnostics(compilation, <expected> BC30049: 'Erase' statement requires an array. Erase x ~ BC30049: 'Erase' statement requires an array. Erase y, z ~ BC30049: 'Erase' statement requires an array. Erase y, z ~ </expected>) End Sub <Fact> Public Sub Errors2() Dim compilationDef = <compilation> <file name="a.vb"> Module Module1 Sub Main() Erase x1 Erase x2 Erase y Erase z End Sub ReadOnly Property x1 As String Get Return Nothing End Get End Property ReadOnly Property x2 As Integer() Get Return Nothing End Get End Property Property y As Integer() WriteOnly Property z As Integer() Set(value As Integer()) End Set End Property End Module </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef) AssertTheseDiagnostics(compilation, <expected> BC30049: 'Erase' statement requires an array. Erase x1 ~~ BC30526: Property 'x2' is 'ReadOnly'. Erase x2 ~~ </expected>) End Sub <Fact> Public Sub Errors3() Dim compilationDef = <compilation> <file name="a.vb"> Module Module1 Sub Main() Erase x End Sub Function x() As Integer() Return Nothing End Function End Module </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef) AssertTheseDiagnostics(compilation, <expected> BC30068: Expression is a value and therefore cannot be the target of an assignment. Erase x ~ </expected>) End Sub End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports Microsoft.CodeAnalysis.VisualBasic.UnitTests.Emit Imports Roslyn.Test.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics Public Class EraseStatementTests Inherits BasicTestBase <Fact> <CompilerTrait(CompilerFeature.IOperation)> Public Sub Simple() Dim compilationDef = <compilation> <file name="a.vb"> Module Module1 Sub Main() Dim x(1) As Integer Dim y As System.Array = New Integer(1) {} Dim z As Object = New Integer(1) {} Erase x Erase y, z System.Console.WriteLine(x Is Nothing) System.Console.WriteLine(y Is Nothing) System.Console.WriteLine(z Is Nothing) End Sub End Module </file> </compilation> Dim verifier = CompileAndVerify(compilationDef, expectedOutput:= <![CDATA[ True True True ]]>) Dim compilation = verifier.Compilation Dim tree = compilation.SyntaxTrees.Single() Dim node = tree.GetRoot().DescendantNodes().OfType(Of EraseStatementSyntax)().Last() Assert.Equal("Erase y, z", node.ToString()) compilation.VerifyOperationTree(node, expectedOperationTree:= <![CDATA[ IOperation: (OperationKind.None, Type: null) (Syntax: 'Erase y, z') Children(2): ISimpleAssignmentOperation (OperationKind.SimpleAssignment, Type: System.Array, IsImplicit) (Syntax: 'y') Left: ILocalReferenceOperation: y (OperationKind.LocalReference, Type: System.Array) (Syntax: 'y') Right: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Array, Constant: null, IsImplicit) (Syntax: 'y') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: null, Constant: null, IsImplicit) (Syntax: 'y') ISimpleAssignmentOperation (OperationKind.SimpleAssignment, Type: System.Object, IsImplicit) (Syntax: 'z') Left: ILocalReferenceOperation: z (OperationKind.LocalReference, Type: System.Object) (Syntax: 'z') Right: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Object, Constant: null, IsImplicit) (Syntax: 'z') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: null, Constant: null, IsImplicit) (Syntax: 'z') ]]>.Value) End Sub <Fact> Public Sub Flow() Dim compilationDef = <compilation> <file name="a.vb"> Module Module1 Sub Main() Dim x() As Integer x(0).ToString() End Sub Sub Test() Dim y() As Integer Erase y y(0).ToString() End Sub End Module </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef) AssertTheseDiagnostics(compilation, <expected> BC42104: Variable 'x' is used before it has been assigned a value. A null reference exception could result at runtime. x(0).ToString() ~ </expected>) End Sub <Fact> Public Sub Errors1() Dim compilationDef = <compilation> <file name="a.vb"> Module Module1 Sub Main() Dim x As String = "" Erase x Dim y As String = "" Dim z As Integer = 1 Erase y, z End Sub End Module </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef) AssertTheseDiagnostics(compilation, <expected> BC30049: 'Erase' statement requires an array. Erase x ~ BC30049: 'Erase' statement requires an array. Erase y, z ~ BC30049: 'Erase' statement requires an array. Erase y, z ~ </expected>) End Sub <Fact> Public Sub Errors2() Dim compilationDef = <compilation> <file name="a.vb"> Module Module1 Sub Main() Erase x1 Erase x2 Erase y Erase z End Sub ReadOnly Property x1 As String Get Return Nothing End Get End Property ReadOnly Property x2 As Integer() Get Return Nothing End Get End Property Property y As Integer() WriteOnly Property z As Integer() Set(value As Integer()) End Set End Property End Module </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef) AssertTheseDiagnostics(compilation, <expected> BC30049: 'Erase' statement requires an array. Erase x1 ~~ BC30526: Property 'x2' is 'ReadOnly'. Erase x2 ~~ </expected>) End Sub <Fact> Public Sub Errors3() Dim compilationDef = <compilation> <file name="a.vb"> Module Module1 Sub Main() Erase x End Sub Function x() As Integer() Return Nothing End Function End Module </file> </compilation> Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(compilationDef) AssertTheseDiagnostics(compilation, <expected> BC30068: Expression is a value and therefore cannot be the target of an assignment. Erase x ~ </expected>) End Sub End Class End Namespace
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/VisualBasic/Portable/Lowering/IteratorRewriter/IteratorRewriter.IteratorMethodToClassRewriter.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Immutable Imports Microsoft.CodeAnalysis.CodeGen Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Namespace Microsoft.CodeAnalysis.VisualBasic Partial Friend NotInheritable Class IteratorRewriter Inherits StateMachineRewriter(Of FieldSymbol) Private Class IteratorMethodToClassRewriter Inherits StateMachineMethodToClassRewriter ''' <summary> ''' The field of the generated iterator class that underlies the Current property. ''' </summary> Private ReadOnly _current As FieldSymbol Private _exitLabel As LabelSymbol Private _methodValue As LocalSymbol Private _tryNestingLevel As Integer Friend Sub New(method As MethodSymbol, F As SyntheticBoundNodeFactory, state As FieldSymbol, current As FieldSymbol, hoistedVariables As IReadOnlySet(Of Symbol), localProxies As Dictionary(Of Symbol, FieldSymbol), SynthesizedLocalOrdinals As SynthesizedLocalOrdinalsDispenser, slotAllocatorOpt As VariableSlotAllocator, nextFreeHoistedLocalSlot As Integer, diagnostics As BindingDiagnosticBag) MyBase.New(F, state, hoistedVariables, localProxies, SynthesizedLocalOrdinals, slotAllocatorOpt, nextFreeHoistedLocalSlot, diagnostics) Me._current = current End Sub Public Sub GenerateMoveNextAndDispose(Body As BoundStatement, moveNextMethod As SynthesizedMethod, disposeMethod As SynthesizedMethod) ' Generate the body for MoveNext() F.CurrentMethod = moveNextMethod Dim initialStateInfo = AddState() Dim initialState As Integer = initialStateInfo.Number Dim initialLabel As GeneratedLabelSymbol = initialStateInfo.ResumeLabel Me._methodValue = Me.F.SynthesizedLocal(F.CurrentMethod.ReturnType, SynthesizedLocalKind.StateMachineReturnValue, F.Syntax) Dim newBody = DirectCast(Visit(Body), BoundStatement) ' Select Me.state ' Case 0: ' GoTo state_0 ' Case 1: ' GoTo state_1 ' 'etc ' Case Else: ' return false ' } ' state_0: ' state = -1 ' [[rewritten body]] F.CloseMethod( F.Block( ImmutableArray.Create(Me._methodValue, Me.CachedState), SyntheticBoundNodeFactory.HiddenSequencePoint(), F.Assignment(Me.F.Local(Me.CachedState, True), F.Field(F.Me, Me.StateField, False)), Dispatch(), GenerateReturn(finished:=True), F.Label(initialLabel), F.Assignment(F.Field(F.Me, Me.StateField, True), Me.F.AssignmentExpression(Me.F.Local(Me.CachedState, True), Me.F.Literal(StateMachineStates.NotStartedStateMachine))), newBody, HandleReturn() )) Me._exitLabel = Nothing Me._methodValue = Nothing ' Generate the body for Dispose(). F.CurrentMethod = disposeMethod Dim breakLabel = F.GenerateLabel("break") Dim sections = (From ft In FinalizerStateMap Where ft.Value <> -1 Group ft.Key By ft.Value Into Group Select F.SwitchSection( New List(Of Integer)(Group), F.Assignment(F.Field(F.Me, Me.StateField, True), F.Literal(Value)), F.Goto(breakLabel))).ToArray() If (sections.Length > 0) Then F.CloseMethod(F.Block( F.Select( F.Field(F.Me, Me.StateField, False), sections), F.Assignment(F.Field(F.Me, Me.StateField, True), F.Literal(StateMachineStates.NotStartedStateMachine)), F.Label(breakLabel), F.ExpressionStatement(F.Call(F.Me, moveNextMethod)), F.Return() )) Else F.CloseMethod(F.Return()) End If End Sub Private Function HandleReturn() As BoundStatement If Me._exitLabel Is Nothing Then ' did not see indirect returns Return F.StatementList() Else ' _methodValue = False ' exitlabel: ' Return _methodValue Return F.Block( SyntheticBoundNodeFactory.HiddenSequencePoint(), F.Assignment(F.Local(Me._methodValue, True), F.Literal(True)), F.Label(Me._exitLabel), F.Return(Me.F.Local(Me._methodValue, False)) ) End If End Function Protected Overrides Function GenerateReturn(finished As Boolean) As BoundStatement Dim result = F.Literal(Not finished) If Me._tryNestingLevel = 0 Then ' direct return Return F.Return(result) Else ' indirect return If Me._exitLabel Is Nothing Then Me._exitLabel = F.GenerateLabel("exitLabel") End If Return Me.F.Block( Me.F.Assignment(Me.F.Local(Me._methodValue, True), result), Me.F.Goto(Me._exitLabel) ) End If End Function Public Overrides Function VisitTryStatement(node As BoundTryStatement) As BoundNode Me._tryNestingLevel += 1 Dim result = MyBase.VisitTryStatement(node) Me._tryNestingLevel -= 1 Return result End Function Protected Overrides ReadOnly Property IsInExpressionLambda As Boolean Get Return False End Get End Property Protected Overrides ReadOnly Property ResumeLabelName As String Get Return "iteratorLabel" End Get End Property #Region "Visitors" Public Overrides Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode Return GenerateReturn(finished:=True) End Function Public Overrides Function VisitYieldStatement(node As BoundYieldStatement) As BoundNode ' Yield expression ' is translated to - ' Me.current = expression ' Me.state = <next_state> ' return true ' <next_state_label>: ' Me.state = -1 Dim newState = AddState() Return F.SequencePoint( node.Syntax, F.Block( F.Assignment(F.Field(F.Me, Me._current, True), DirectCast(Visit(node.Expression), BoundExpression)), F.Assignment(F.Field(F.Me, Me.StateField, True), F.AssignmentExpression(F.Local(Me.CachedState, True), F.Literal(newState.Number))), GenerateReturn(finished:=False), F.Label(newState.ResumeLabel), F.Assignment(F.Field(F.Me, Me.StateField, True), F.AssignmentExpression(F.Local(Me.CachedState, True), F.Literal(StateMachineStates.NotStartedStateMachine))) ) ) End Function #End Region 'Visitors Friend Overrides Sub AddProxyFieldsForStateMachineScope(proxy As FieldSymbol, proxyFields As ArrayBuilder(Of FieldSymbol)) proxyFields.Add(proxy) End Sub Protected Overrides Function MaterializeProxy(origExpression As BoundExpression, proxy As FieldSymbol) As BoundNode Dim syntax As SyntaxNode = Me.F.Syntax Dim framePointer As BoundExpression = Me.FramePointer(syntax, proxy.ContainingType) Dim proxyFieldParented = proxy.AsMember(DirectCast(framePointer.Type, NamedTypeSymbol)) Return Me.F.Field(framePointer, proxyFieldParented, origExpression.IsLValue) End Function End Class End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Immutable Imports Microsoft.CodeAnalysis.CodeGen Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Namespace Microsoft.CodeAnalysis.VisualBasic Partial Friend NotInheritable Class IteratorRewriter Inherits StateMachineRewriter(Of FieldSymbol) Private Class IteratorMethodToClassRewriter Inherits StateMachineMethodToClassRewriter ''' <summary> ''' The field of the generated iterator class that underlies the Current property. ''' </summary> Private ReadOnly _current As FieldSymbol Private _exitLabel As LabelSymbol Private _methodValue As LocalSymbol Private _tryNestingLevel As Integer Friend Sub New(method As MethodSymbol, F As SyntheticBoundNodeFactory, state As FieldSymbol, current As FieldSymbol, hoistedVariables As IReadOnlySet(Of Symbol), localProxies As Dictionary(Of Symbol, FieldSymbol), SynthesizedLocalOrdinals As SynthesizedLocalOrdinalsDispenser, slotAllocatorOpt As VariableSlotAllocator, nextFreeHoistedLocalSlot As Integer, diagnostics As BindingDiagnosticBag) MyBase.New(F, state, hoistedVariables, localProxies, SynthesizedLocalOrdinals, slotAllocatorOpt, nextFreeHoistedLocalSlot, diagnostics) Me._current = current End Sub Public Sub GenerateMoveNextAndDispose(Body As BoundStatement, moveNextMethod As SynthesizedMethod, disposeMethod As SynthesizedMethod) ' Generate the body for MoveNext() F.CurrentMethod = moveNextMethod Dim initialStateInfo = AddState() Dim initialState As Integer = initialStateInfo.Number Dim initialLabel As GeneratedLabelSymbol = initialStateInfo.ResumeLabel Me._methodValue = Me.F.SynthesizedLocal(F.CurrentMethod.ReturnType, SynthesizedLocalKind.StateMachineReturnValue, F.Syntax) Dim newBody = DirectCast(Visit(Body), BoundStatement) ' Select Me.state ' Case 0: ' GoTo state_0 ' Case 1: ' GoTo state_1 ' 'etc ' Case Else: ' return false ' } ' state_0: ' state = -1 ' [[rewritten body]] F.CloseMethod( F.Block( ImmutableArray.Create(Me._methodValue, Me.CachedState), SyntheticBoundNodeFactory.HiddenSequencePoint(), F.Assignment(Me.F.Local(Me.CachedState, True), F.Field(F.Me, Me.StateField, False)), Dispatch(), GenerateReturn(finished:=True), F.Label(initialLabel), F.Assignment(F.Field(F.Me, Me.StateField, True), Me.F.AssignmentExpression(Me.F.Local(Me.CachedState, True), Me.F.Literal(StateMachineStates.NotStartedStateMachine))), newBody, HandleReturn() )) Me._exitLabel = Nothing Me._methodValue = Nothing ' Generate the body for Dispose(). F.CurrentMethod = disposeMethod Dim breakLabel = F.GenerateLabel("break") Dim sections = (From ft In FinalizerStateMap Where ft.Value <> -1 Group ft.Key By ft.Value Into Group Select F.SwitchSection( New List(Of Integer)(Group), F.Assignment(F.Field(F.Me, Me.StateField, True), F.Literal(Value)), F.Goto(breakLabel))).ToArray() If (sections.Length > 0) Then F.CloseMethod(F.Block( F.Select( F.Field(F.Me, Me.StateField, False), sections), F.Assignment(F.Field(F.Me, Me.StateField, True), F.Literal(StateMachineStates.NotStartedStateMachine)), F.Label(breakLabel), F.ExpressionStatement(F.Call(F.Me, moveNextMethod)), F.Return() )) Else F.CloseMethod(F.Return()) End If End Sub Private Function HandleReturn() As BoundStatement If Me._exitLabel Is Nothing Then ' did not see indirect returns Return F.StatementList() Else ' _methodValue = False ' exitlabel: ' Return _methodValue Return F.Block( SyntheticBoundNodeFactory.HiddenSequencePoint(), F.Assignment(F.Local(Me._methodValue, True), F.Literal(True)), F.Label(Me._exitLabel), F.Return(Me.F.Local(Me._methodValue, False)) ) End If End Function Protected Overrides Function GenerateReturn(finished As Boolean) As BoundStatement Dim result = F.Literal(Not finished) If Me._tryNestingLevel = 0 Then ' direct return Return F.Return(result) Else ' indirect return If Me._exitLabel Is Nothing Then Me._exitLabel = F.GenerateLabel("exitLabel") End If Return Me.F.Block( Me.F.Assignment(Me.F.Local(Me._methodValue, True), result), Me.F.Goto(Me._exitLabel) ) End If End Function Public Overrides Function VisitTryStatement(node As BoundTryStatement) As BoundNode Me._tryNestingLevel += 1 Dim result = MyBase.VisitTryStatement(node) Me._tryNestingLevel -= 1 Return result End Function Protected Overrides ReadOnly Property IsInExpressionLambda As Boolean Get Return False End Get End Property Protected Overrides ReadOnly Property ResumeLabelName As String Get Return "iteratorLabel" End Get End Property #Region "Visitors" Public Overrides Function VisitReturnStatement(node As BoundReturnStatement) As BoundNode Return GenerateReturn(finished:=True) End Function Public Overrides Function VisitYieldStatement(node As BoundYieldStatement) As BoundNode ' Yield expression ' is translated to - ' Me.current = expression ' Me.state = <next_state> ' return true ' <next_state_label>: ' Me.state = -1 Dim newState = AddState() Return F.SequencePoint( node.Syntax, F.Block( F.Assignment(F.Field(F.Me, Me._current, True), DirectCast(Visit(node.Expression), BoundExpression)), F.Assignment(F.Field(F.Me, Me.StateField, True), F.AssignmentExpression(F.Local(Me.CachedState, True), F.Literal(newState.Number))), GenerateReturn(finished:=False), F.Label(newState.ResumeLabel), F.Assignment(F.Field(F.Me, Me.StateField, True), F.AssignmentExpression(F.Local(Me.CachedState, True), F.Literal(StateMachineStates.NotStartedStateMachine))) ) ) End Function #End Region 'Visitors Friend Overrides Sub AddProxyFieldsForStateMachineScope(proxy As FieldSymbol, proxyFields As ArrayBuilder(Of FieldSymbol)) proxyFields.Add(proxy) End Sub Protected Overrides Function MaterializeProxy(origExpression As BoundExpression, proxy As FieldSymbol) As BoundNode Dim syntax As SyntaxNode = Me.F.Syntax Dim framePointer As BoundExpression = Me.FramePointer(syntax, proxy.ContainingType) Dim proxyFieldParented = proxy.AsMember(DirectCast(framePointer.Type, NamedTypeSymbol)) Return Me.F.Field(framePointer, proxyFieldParented, origExpression.IsLValue) End Function End Class End Class End Namespace
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Features/Core/Portable/IntroduceVariable/IIntroduceVariableService.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeActions; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.IntroduceVariable { internal interface IIntroduceVariableService : ILanguageService { Task<CodeAction> IntroduceVariableAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeActions; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.IntroduceVariable { internal interface IIntroduceVariableService : ILanguageService { Task<CodeAction> IntroduceVariableAsync(Document document, TextSpan textSpan, CancellationToken cancellationToken); } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/VisualStudio/Core/Impl/CodeModel/PrototypeFlags.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable namespace Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel { /// <summary> /// Map vsCMPrototype flags to sane names /// </summary> internal enum PrototypeFlags { Signature = EnvDTE.vsCMPrototype.vsCMPrototypeUniqueSignature, FullName = EnvDTE.vsCMPrototype.vsCMPrototypeFullname, NoName = EnvDTE.vsCMPrototype.vsCMPrototypeNoName, TypeName = EnvDTE.vsCMPrototype.vsCMPrototypeClassName, BaseName = 0, NameMask = (FullName | NoName | TypeName | BaseName), ParameterTypes = EnvDTE.vsCMPrototype.vsCMPrototypeParamTypes, ParameterNames = EnvDTE.vsCMPrototype.vsCMPrototypeParamNames, ParameterDefaultValues = EnvDTE.vsCMPrototype.vsCMPrototypeParamDefaultValues, ParametersMask = (ParameterTypes | ParameterNames | ParameterDefaultValues), Type = EnvDTE.vsCMPrototype.vsCMPrototypeType, Initializer = EnvDTE.vsCMPrototype.vsCMPrototypeInitExpression } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable namespace Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel { /// <summary> /// Map vsCMPrototype flags to sane names /// </summary> internal enum PrototypeFlags { Signature = EnvDTE.vsCMPrototype.vsCMPrototypeUniqueSignature, FullName = EnvDTE.vsCMPrototype.vsCMPrototypeFullname, NoName = EnvDTE.vsCMPrototype.vsCMPrototypeNoName, TypeName = EnvDTE.vsCMPrototype.vsCMPrototypeClassName, BaseName = 0, NameMask = (FullName | NoName | TypeName | BaseName), ParameterTypes = EnvDTE.vsCMPrototype.vsCMPrototypeParamTypes, ParameterNames = EnvDTE.vsCMPrototype.vsCMPrototypeParamNames, ParameterDefaultValues = EnvDTE.vsCMPrototype.vsCMPrototypeParamDefaultValues, ParametersMask = (ParameterTypes | ParameterNames | ParameterDefaultValues), Type = EnvDTE.vsCMPrototype.vsCMPrototypeType, Initializer = EnvDTE.vsCMPrototype.vsCMPrototypeInitExpression } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/VisualStudio/LiveShare/Impl/CustomProtocol/LspRequestExtensions.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using Microsoft.VisualStudio.LanguageServices.Implementation.LanguageService; using LSP = Microsoft.VisualStudio.LanguageServer.Protocol; using LS = Microsoft.VisualStudio.LiveShare.LanguageServices; namespace Microsoft.VisualStudio.LanguageServices.LiveShare.Protocol { public static class LspRequestExtensions { public static LS.LspRequest<TIn, TOut> ToLSRequest<TIn, TOut>(this LSP.LspRequest<TIn, TOut> lspRequest) => new LS.LspRequest<TIn, TOut>(lspRequest.Name); public static LSP.ClientCapabilities GetClientCapabilities(this LS.RequestContext requestContext) => requestContext.ClientCapabilities?.ToObject<LSP.ClientCapabilities>() ?? new LSP.VSInternalClientCapabilities(); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using Microsoft.VisualStudio.LanguageServices.Implementation.LanguageService; using LSP = Microsoft.VisualStudio.LanguageServer.Protocol; using LS = Microsoft.VisualStudio.LiveShare.LanguageServices; namespace Microsoft.VisualStudio.LanguageServices.LiveShare.Protocol { public static class LspRequestExtensions { public static LS.LspRequest<TIn, TOut> ToLSRequest<TIn, TOut>(this LSP.LspRequest<TIn, TOut> lspRequest) => new LS.LspRequest<TIn, TOut>(lspRequest.Name); public static LSP.ClientCapabilities GetClientCapabilities(this LS.RequestContext requestContext) => requestContext.ClientCapabilities?.ToObject<LSP.ClientCapabilities>() ?? new LSP.VSInternalClientCapabilities(); } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/Server/VBCSCompilerTests/TouchedFileLoggingTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Runtime.InteropServices; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; using static Roslyn.Test.Utilities.SharedResourceHelpers; using System.Reflection; using Microsoft.CodeAnalysis.CompilerServer; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.VisualBasic; namespace Microsoft.CodeAnalysis.CompilerServer.UnitTests { public class TouchedFileLoggingTests : TestBase { private static readonly string s_libDirectory = Environment.GetEnvironmentVariable("LIB"); private readonly string _baseDirectory = TempRoot.Root; private const string HelloWorldCS = @"using System; class C { public static void Main(string[] args) { Console.WriteLine(""Hello, world""); } }"; private const string HelloWorldVB = @"Imports System Class C Shared Sub Main(args As String()) Console.WriteLine(""Hello, world"") End Sub End Class "; [ConditionalFact(typeof(DesktopOnly))] public void CSharpTrivialMetadataCaching() { var filelist = new List<string>(); // Do the following compilation twice. // The compiler server API should hold on to the mscorlib bits // in memory, but the file tracker should still map that it was // touched. for (int i = 0; i < 2; i++) { var source1 = Temp.CreateFile().WriteAllText(HelloWorldCS).Path; var touchedDir = Temp.CreateDirectory(); var touchedBase = Path.Combine(touchedDir.Path, "touched"); var clientDirectory = AppContext.BaseDirectory; filelist.Add(source1); var outWriter = new StringWriter(); var cmd = new CSharpCompilerServer( CompilerServerHost.SharedAssemblyReferenceProvider, responseFile: null, new[] { "/nologo", "/touchedfiles:" + touchedBase, source1 }, new BuildPaths(clientDirectory, _baseDirectory, RuntimeEnvironment.GetRuntimeDirectory(), Path.GetTempPath()), s_libDirectory, new TestAnalyzerAssemblyLoader()); List<string> expectedReads; List<string> expectedWrites; BuildTouchedFiles(cmd, Path.ChangeExtension(source1, "exe"), out expectedReads, out expectedWrites); var exitCode = cmd.Run(outWriter); Assert.Equal(string.Empty, outWriter.ToString().Trim()); Assert.Equal(0, exitCode); AssertTouchedFilesEqual(expectedReads, expectedWrites, touchedBase); } foreach (String f in filelist) { CleanupAllGeneratedFiles(f); } } [ConditionalFact(typeof(DesktopOnly))] public void VisualBasicTrivialMetadataCaching() { var filelist = new List<string>(); // Do the following compilation twice. // The compiler server API should hold on to the mscorlib bits // in memory, but the file tracker should still map that it was // touched. for (int i = 0; i < 2; i++) { var source1 = Temp.CreateFile().WriteAllText(HelloWorldVB).Path; var touchedDir = Temp.CreateDirectory(); var touchedBase = Path.Combine(touchedDir.Path, "touched"); var clientDirectory = AppContext.BaseDirectory; filelist.Add(source1); var outWriter = new StringWriter(); var cmd = new VisualBasicCompilerServer( CompilerServerHost.SharedAssemblyReferenceProvider, responseFile: null, new[] { "/nologo", "/touchedfiles:" + touchedBase, source1 }, new BuildPaths(clientDirectory, _baseDirectory, RuntimeEnvironment.GetRuntimeDirectory(), Path.GetTempPath()), s_libDirectory, new TestAnalyzerAssemblyLoader()); List<string> expectedReads; List<string> expectedWrites; BuildTouchedFiles(cmd, Path.ChangeExtension(source1, "exe"), out expectedReads, out expectedWrites); var exitCode = cmd.Run(outWriter); Assert.Equal(string.Empty, outWriter.ToString().Trim()); Assert.Equal(0, exitCode); AssertTouchedFilesEqual(expectedReads, expectedWrites, touchedBase); } foreach (string f in filelist) { CleanupAllGeneratedFiles(f); } } /// <summary> /// Builds the expected base of touched files. /// Adds a hook for temporary file creation as well, /// so this method must be called before the execution of /// Csc.Run. /// </summary> private static void BuildTouchedFiles(CommonCompiler cmd, string outputPath, out List<string> expectedReads, out List<string> expectedWrites) { expectedReads = new List<string>(); expectedReads.AddRange(cmd.Arguments.MetadataReferences.Select(r => r.Reference)); if (cmd.Arguments is VisualBasicCommandLineArguments { DefaultCoreLibraryReference: { } reference }) { expectedReads.Add(reference.Reference); } foreach (var file in cmd.Arguments.SourceFiles) { expectedReads.Add(file.Path); } var writes = new List<string>(); writes.Add(outputPath); expectedWrites = writes; } private static void AssertTouchedFilesEqual( List<string> expectedReads, List<string> expectedWrites, string touchedFilesBase) { var touchedReadPath = touchedFilesBase + ".read"; var touchedWritesPath = touchedFilesBase + ".write"; var expected = expectedReads.Select(s => s.ToUpperInvariant()).OrderBy(s => s); Assert.Equal(string.Join("\r\n", expected), File.ReadAllText(touchedReadPath).Trim()); expected = expectedWrites.Select(s => s.ToUpperInvariant()).OrderBy(s => s); Assert.Equal(string.Join("\r\n", expected), File.ReadAllText(touchedWritesPath).Trim()); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Runtime.InteropServices; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; using static Roslyn.Test.Utilities.SharedResourceHelpers; using System.Reflection; using Microsoft.CodeAnalysis.CompilerServer; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.VisualBasic; namespace Microsoft.CodeAnalysis.CompilerServer.UnitTests { public class TouchedFileLoggingTests : TestBase { private static readonly string s_libDirectory = Environment.GetEnvironmentVariable("LIB"); private readonly string _baseDirectory = TempRoot.Root; private const string HelloWorldCS = @"using System; class C { public static void Main(string[] args) { Console.WriteLine(""Hello, world""); } }"; private const string HelloWorldVB = @"Imports System Class C Shared Sub Main(args As String()) Console.WriteLine(""Hello, world"") End Sub End Class "; [ConditionalFact(typeof(DesktopOnly))] public void CSharpTrivialMetadataCaching() { var filelist = new List<string>(); // Do the following compilation twice. // The compiler server API should hold on to the mscorlib bits // in memory, but the file tracker should still map that it was // touched. for (int i = 0; i < 2; i++) { var source1 = Temp.CreateFile().WriteAllText(HelloWorldCS).Path; var touchedDir = Temp.CreateDirectory(); var touchedBase = Path.Combine(touchedDir.Path, "touched"); var clientDirectory = AppContext.BaseDirectory; filelist.Add(source1); var outWriter = new StringWriter(); var cmd = new CSharpCompilerServer( CompilerServerHost.SharedAssemblyReferenceProvider, responseFile: null, new[] { "/nologo", "/touchedfiles:" + touchedBase, source1 }, new BuildPaths(clientDirectory, _baseDirectory, RuntimeEnvironment.GetRuntimeDirectory(), Path.GetTempPath()), s_libDirectory, new TestAnalyzerAssemblyLoader()); List<string> expectedReads; List<string> expectedWrites; BuildTouchedFiles(cmd, Path.ChangeExtension(source1, "exe"), out expectedReads, out expectedWrites); var exitCode = cmd.Run(outWriter); Assert.Equal(string.Empty, outWriter.ToString().Trim()); Assert.Equal(0, exitCode); AssertTouchedFilesEqual(expectedReads, expectedWrites, touchedBase); } foreach (String f in filelist) { CleanupAllGeneratedFiles(f); } } [ConditionalFact(typeof(DesktopOnly))] public void VisualBasicTrivialMetadataCaching() { var filelist = new List<string>(); // Do the following compilation twice. // The compiler server API should hold on to the mscorlib bits // in memory, but the file tracker should still map that it was // touched. for (int i = 0; i < 2; i++) { var source1 = Temp.CreateFile().WriteAllText(HelloWorldVB).Path; var touchedDir = Temp.CreateDirectory(); var touchedBase = Path.Combine(touchedDir.Path, "touched"); var clientDirectory = AppContext.BaseDirectory; filelist.Add(source1); var outWriter = new StringWriter(); var cmd = new VisualBasicCompilerServer( CompilerServerHost.SharedAssemblyReferenceProvider, responseFile: null, new[] { "/nologo", "/touchedfiles:" + touchedBase, source1 }, new BuildPaths(clientDirectory, _baseDirectory, RuntimeEnvironment.GetRuntimeDirectory(), Path.GetTempPath()), s_libDirectory, new TestAnalyzerAssemblyLoader()); List<string> expectedReads; List<string> expectedWrites; BuildTouchedFiles(cmd, Path.ChangeExtension(source1, "exe"), out expectedReads, out expectedWrites); var exitCode = cmd.Run(outWriter); Assert.Equal(string.Empty, outWriter.ToString().Trim()); Assert.Equal(0, exitCode); AssertTouchedFilesEqual(expectedReads, expectedWrites, touchedBase); } foreach (string f in filelist) { CleanupAllGeneratedFiles(f); } } /// <summary> /// Builds the expected base of touched files. /// Adds a hook for temporary file creation as well, /// so this method must be called before the execution of /// Csc.Run. /// </summary> private static void BuildTouchedFiles(CommonCompiler cmd, string outputPath, out List<string> expectedReads, out List<string> expectedWrites) { expectedReads = new List<string>(); expectedReads.AddRange(cmd.Arguments.MetadataReferences.Select(r => r.Reference)); if (cmd.Arguments is VisualBasicCommandLineArguments { DefaultCoreLibraryReference: { } reference }) { expectedReads.Add(reference.Reference); } foreach (var file in cmd.Arguments.SourceFiles) { expectedReads.Add(file.Path); } var writes = new List<string>(); writes.Add(outputPath); expectedWrites = writes; } private static void AssertTouchedFilesEqual( List<string> expectedReads, List<string> expectedWrites, string touchedFilesBase) { var touchedReadPath = touchedFilesBase + ".read"; var touchedWritesPath = touchedFilesBase + ".write"; var expected = expectedReads.Select(s => s.ToUpperInvariant()).OrderBy(s => s); Assert.Equal(string.Join("\r\n", expected), File.ReadAllText(touchedReadPath).Trim()); expected = expectedWrites.Select(s => s.ToUpperInvariant()).OrderBy(s => s); Assert.Equal(string.Join("\r\n", expected), File.ReadAllText(touchedWritesPath).Trim()); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/EditorFeatures/DiagnosticsTestUtilities/ChangeSignature/ChangeSignatureTestState.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using System.Xml.Linq; using Microsoft.CodeAnalysis.ChangeSignature; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions; using Microsoft.CodeAnalysis.Editor.UnitTests.Extensions; using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces; using Microsoft.CodeAnalysis.Notification; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.VisualBasic; using Roslyn.Test.Utilities; namespace Microsoft.CodeAnalysis.Editor.UnitTests.ChangeSignature { internal sealed class ChangeSignatureTestState : IDisposable { private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeatures.AddParts(typeof(TestChangeSignatureOptionsService)); private readonly TestHostDocument _testDocument; public TestWorkspace Workspace { get; } public Document InvocationDocument { get; } public AbstractChangeSignatureService ChangeSignatureService { get; } public static ChangeSignatureTestState Create(string markup, string languageName, ParseOptions parseOptions = null, OptionsCollection options = null) { var workspace = languageName switch { "XML" => TestWorkspace.Create(markup, composition: s_composition), LanguageNames.CSharp => TestWorkspace.CreateCSharp(markup, composition: s_composition, parseOptions: (CSharpParseOptions)parseOptions), LanguageNames.VisualBasic => TestWorkspace.CreateVisualBasic(markup, composition: s_composition, parseOptions: parseOptions, compilationOptions: new VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)), _ => throw new ArgumentException("Invalid language name.") }; if (options != null) { workspace.ApplyOptions(options); } return new ChangeSignatureTestState(workspace); } public static ChangeSignatureTestState Create(XElement workspaceXml) { var workspace = TestWorkspace.Create(workspaceXml, composition: s_composition); return new ChangeSignatureTestState(workspace); } public ChangeSignatureTestState(TestWorkspace workspace) { Workspace = workspace; _testDocument = Workspace.Documents.SingleOrDefault(d => d.CursorPosition.HasValue); if (_testDocument == null) { throw new ArgumentException("markup does not contain a cursor position", nameof(workspace)); } InvocationDocument = Workspace.CurrentSolution.GetDocument(_testDocument.Id); ChangeSignatureService = InvocationDocument.GetLanguageService<AbstractChangeSignatureService>(); } public TestChangeSignatureOptionsService TestChangeSignatureOptionsService { get { return (TestChangeSignatureOptionsService)InvocationDocument.Project.Solution.Workspace.Services.GetRequiredService<IChangeSignatureOptionsService>(); } } public async Task<ChangeSignatureResult> ChangeSignatureAsync() { var context = await ChangeSignatureService.GetChangeSignatureContextAsync(InvocationDocument, _testDocument.CursorPosition.Value, restrictToDeclarations: false, CancellationToken.None).ConfigureAwait(false); var options = AbstractChangeSignatureService.GetChangeSignatureOptions(context); return await ChangeSignatureService.ChangeSignatureWithContextAsync(context, options, CancellationToken.None); } public async Task<ParameterConfiguration> GetParameterConfigurationAsync() { var context = await ChangeSignatureService.GetChangeSignatureContextAsync(InvocationDocument, _testDocument.CursorPosition.Value, restrictToDeclarations: false, CancellationToken.None); if (context is ChangeSignatureAnalysisSucceededContext changeSignatureAnalyzedSucceedContext) { return changeSignatureAnalyzedSucceedContext.ParameterConfiguration; } throw Roslyn.Utilities.ExceptionUtilities.UnexpectedValue(((CannotChangeSignatureAnalyzedContext)context).CannotChangeSignatureReason.ToString()); } public void Dispose() { if (Workspace != null) { Workspace.Dispose(); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Linq; using System.Threading; using System.Threading.Tasks; using System.Xml.Linq; using Microsoft.CodeAnalysis.ChangeSignature; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions; using Microsoft.CodeAnalysis.Editor.UnitTests.Extensions; using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces; using Microsoft.CodeAnalysis.Notification; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.VisualBasic; using Roslyn.Test.Utilities; namespace Microsoft.CodeAnalysis.Editor.UnitTests.ChangeSignature { internal sealed class ChangeSignatureTestState : IDisposable { private static readonly TestComposition s_composition = EditorTestCompositions.EditorFeatures.AddParts(typeof(TestChangeSignatureOptionsService)); private readonly TestHostDocument _testDocument; public TestWorkspace Workspace { get; } public Document InvocationDocument { get; } public AbstractChangeSignatureService ChangeSignatureService { get; } public static ChangeSignatureTestState Create(string markup, string languageName, ParseOptions parseOptions = null, OptionsCollection options = null) { var workspace = languageName switch { "XML" => TestWorkspace.Create(markup, composition: s_composition), LanguageNames.CSharp => TestWorkspace.CreateCSharp(markup, composition: s_composition, parseOptions: (CSharpParseOptions)parseOptions), LanguageNames.VisualBasic => TestWorkspace.CreateVisualBasic(markup, composition: s_composition, parseOptions: parseOptions, compilationOptions: new VisualBasicCompilationOptions(OutputKind.DynamicallyLinkedLibrary)), _ => throw new ArgumentException("Invalid language name.") }; if (options != null) { workspace.ApplyOptions(options); } return new ChangeSignatureTestState(workspace); } public static ChangeSignatureTestState Create(XElement workspaceXml) { var workspace = TestWorkspace.Create(workspaceXml, composition: s_composition); return new ChangeSignatureTestState(workspace); } public ChangeSignatureTestState(TestWorkspace workspace) { Workspace = workspace; _testDocument = Workspace.Documents.SingleOrDefault(d => d.CursorPosition.HasValue); if (_testDocument == null) { throw new ArgumentException("markup does not contain a cursor position", nameof(workspace)); } InvocationDocument = Workspace.CurrentSolution.GetDocument(_testDocument.Id); ChangeSignatureService = InvocationDocument.GetLanguageService<AbstractChangeSignatureService>(); } public TestChangeSignatureOptionsService TestChangeSignatureOptionsService { get { return (TestChangeSignatureOptionsService)InvocationDocument.Project.Solution.Workspace.Services.GetRequiredService<IChangeSignatureOptionsService>(); } } public async Task<ChangeSignatureResult> ChangeSignatureAsync() { var context = await ChangeSignatureService.GetChangeSignatureContextAsync(InvocationDocument, _testDocument.CursorPosition.Value, restrictToDeclarations: false, CancellationToken.None).ConfigureAwait(false); var options = AbstractChangeSignatureService.GetChangeSignatureOptions(context); return await ChangeSignatureService.ChangeSignatureWithContextAsync(context, options, CancellationToken.None); } public async Task<ParameterConfiguration> GetParameterConfigurationAsync() { var context = await ChangeSignatureService.GetChangeSignatureContextAsync(InvocationDocument, _testDocument.CursorPosition.Value, restrictToDeclarations: false, CancellationToken.None); if (context is ChangeSignatureAnalysisSucceededContext changeSignatureAnalyzedSucceedContext) { return changeSignatureAnalyzedSucceedContext.ParameterConfiguration; } throw Roslyn.Utilities.ExceptionUtilities.UnexpectedValue(((CannotChangeSignatureAnalyzedContext)context).CannotChangeSignatureReason.ToString()); } public void Dispose() { if (Workspace != null) { Workspace.Dispose(); } } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Analyzers/Core/Analyzers/UseObjectInitializer/AbstractUseObjectInitializerDiagnosticAnalyzer.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis.CodeStyle; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.LanguageServices; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.UseObjectInitializer { internal abstract partial class AbstractUseObjectInitializerDiagnosticAnalyzer< TSyntaxKind, TExpressionSyntax, TStatementSyntax, TObjectCreationExpressionSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax, TVariableDeclaratorSyntax> : AbstractBuiltInCodeStyleDiagnosticAnalyzer where TSyntaxKind : struct where TExpressionSyntax : SyntaxNode where TStatementSyntax : SyntaxNode where TObjectCreationExpressionSyntax : TExpressionSyntax where TMemberAccessExpressionSyntax : TExpressionSyntax where TAssignmentStatementSyntax : TStatementSyntax where TVariableDeclaratorSyntax : SyntaxNode { protected abstract bool FadeOutOperatorToken { get; } protected AbstractUseObjectInitializerDiagnosticAnalyzer() : base(IDEDiagnosticIds.UseObjectInitializerDiagnosticId, EnforceOnBuildValues.UseObjectInitializer, CodeStyleOptions2.PreferObjectInitializer, new LocalizableResourceString(nameof(AnalyzersResources.Simplify_object_initialization), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)), new LocalizableResourceString(nameof(AnalyzersResources.Object_initialization_can_be_simplified), AnalyzersResources.ResourceManager, typeof(AnalyzersResources))) { } protected override void InitializeWorker(AnalysisContext context) { var syntaxKinds = GetSyntaxFacts().SyntaxKinds; context.RegisterCompilationStartAction(context => { if (!AreObjectInitializersSupported(context.Compilation)) { return; } context.RegisterSyntaxNodeAction( AnalyzeNode, syntaxKinds.Convert<TSyntaxKind>(syntaxKinds.ObjectCreationExpression)); }); } protected abstract bool AreObjectInitializersSupported(Compilation compilation); protected abstract bool IsValidContainingStatement(TStatementSyntax node); private void AnalyzeNode(SyntaxNodeAnalysisContext context) { var objectCreationExpression = (TObjectCreationExpressionSyntax)context.Node; var language = objectCreationExpression.Language; var option = context.GetOption(CodeStyleOptions2.PreferObjectInitializer, language); if (!option.Value) { // not point in analyzing if the option is off. return; } var syntaxFacts = GetSyntaxFacts(); var matches = ObjectCreationExpressionAnalyzer<TExpressionSyntax, TStatementSyntax, TObjectCreationExpressionSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax, TVariableDeclaratorSyntax>.Analyze( context.SemanticModel, syntaxFacts, objectCreationExpression, context.CancellationToken); if (matches == null || matches.Value.Length == 0) { return; } var containingStatement = objectCreationExpression.FirstAncestorOrSelf<TStatementSyntax>(); if (containingStatement == null) { return; } if (!IsValidContainingStatement(containingStatement)) { return; } var nodes = ImmutableArray.Create<SyntaxNode>(containingStatement).AddRange(matches.Value.Select(m => m.Statement)); if (syntaxFacts.ContainsInterleavedDirective(nodes, context.CancellationToken)) { return; } var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); var severity = option.Notification.Severity; context.ReportDiagnostic(DiagnosticHelper.Create( Descriptor, objectCreationExpression.GetLocation(), severity, additionalLocations: locations, properties: null)); FadeOutCode(context, matches.Value, locations); } private void FadeOutCode( SyntaxNodeAnalysisContext context, ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> matches, ImmutableArray<Location> locations) { var syntaxTree = context.Node.SyntaxTree; var fadeOutCode = context.GetOption( CodeStyleOptions2.PreferObjectInitializer_FadeOutCode, context.Node.Language); if (!fadeOutCode) { return; } var syntaxFacts = GetSyntaxFacts(); foreach (var match in matches) { var end = FadeOutOperatorToken ? syntaxFacts.GetOperatorTokenOfMemberAccessExpression(match.MemberAccessExpression).Span.End : syntaxFacts.GetExpressionOfMemberAccessExpression(match.MemberAccessExpression)!.Span.End; var location1 = Location.Create(syntaxTree, TextSpan.FromBounds( match.MemberAccessExpression.SpanStart, end)); if (match.Statement.Span.End > match.Initializer.FullSpan.End) { context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags( Descriptor, location1, ReportDiagnostic.Default, additionalLocations: locations, additionalUnnecessaryLocations: ImmutableArray.Create( syntaxTree.GetLocation(TextSpan.FromBounds(match.Initializer.FullSpan.End, match.Statement.Span.End))))); } else { context.ReportDiagnostic(Diagnostic.Create( Descriptor, location1, additionalLocations: locations)); } } } protected abstract ISyntaxFacts GetSyntaxFacts(); public override DiagnosticAnalyzerCategory GetAnalyzerCategory() => DiagnosticAnalyzerCategory.SemanticSpanAnalysis; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; using System.Linq; using Microsoft.CodeAnalysis.CodeStyle; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.LanguageServices; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.UseObjectInitializer { internal abstract partial class AbstractUseObjectInitializerDiagnosticAnalyzer< TSyntaxKind, TExpressionSyntax, TStatementSyntax, TObjectCreationExpressionSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax, TVariableDeclaratorSyntax> : AbstractBuiltInCodeStyleDiagnosticAnalyzer where TSyntaxKind : struct where TExpressionSyntax : SyntaxNode where TStatementSyntax : SyntaxNode where TObjectCreationExpressionSyntax : TExpressionSyntax where TMemberAccessExpressionSyntax : TExpressionSyntax where TAssignmentStatementSyntax : TStatementSyntax where TVariableDeclaratorSyntax : SyntaxNode { protected abstract bool FadeOutOperatorToken { get; } protected AbstractUseObjectInitializerDiagnosticAnalyzer() : base(IDEDiagnosticIds.UseObjectInitializerDiagnosticId, EnforceOnBuildValues.UseObjectInitializer, CodeStyleOptions2.PreferObjectInitializer, new LocalizableResourceString(nameof(AnalyzersResources.Simplify_object_initialization), AnalyzersResources.ResourceManager, typeof(AnalyzersResources)), new LocalizableResourceString(nameof(AnalyzersResources.Object_initialization_can_be_simplified), AnalyzersResources.ResourceManager, typeof(AnalyzersResources))) { } protected override void InitializeWorker(AnalysisContext context) { var syntaxKinds = GetSyntaxFacts().SyntaxKinds; context.RegisterCompilationStartAction(context => { if (!AreObjectInitializersSupported(context.Compilation)) { return; } context.RegisterSyntaxNodeAction( AnalyzeNode, syntaxKinds.Convert<TSyntaxKind>(syntaxKinds.ObjectCreationExpression)); }); } protected abstract bool AreObjectInitializersSupported(Compilation compilation); protected abstract bool IsValidContainingStatement(TStatementSyntax node); private void AnalyzeNode(SyntaxNodeAnalysisContext context) { var objectCreationExpression = (TObjectCreationExpressionSyntax)context.Node; var language = objectCreationExpression.Language; var option = context.GetOption(CodeStyleOptions2.PreferObjectInitializer, language); if (!option.Value) { // not point in analyzing if the option is off. return; } var syntaxFacts = GetSyntaxFacts(); var matches = ObjectCreationExpressionAnalyzer<TExpressionSyntax, TStatementSyntax, TObjectCreationExpressionSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax, TVariableDeclaratorSyntax>.Analyze( context.SemanticModel, syntaxFacts, objectCreationExpression, context.CancellationToken); if (matches == null || matches.Value.Length == 0) { return; } var containingStatement = objectCreationExpression.FirstAncestorOrSelf<TStatementSyntax>(); if (containingStatement == null) { return; } if (!IsValidContainingStatement(containingStatement)) { return; } var nodes = ImmutableArray.Create<SyntaxNode>(containingStatement).AddRange(matches.Value.Select(m => m.Statement)); if (syntaxFacts.ContainsInterleavedDirective(nodes, context.CancellationToken)) { return; } var locations = ImmutableArray.Create(objectCreationExpression.GetLocation()); var severity = option.Notification.Severity; context.ReportDiagnostic(DiagnosticHelper.Create( Descriptor, objectCreationExpression.GetLocation(), severity, additionalLocations: locations, properties: null)); FadeOutCode(context, matches.Value, locations); } private void FadeOutCode( SyntaxNodeAnalysisContext context, ImmutableArray<Match<TExpressionSyntax, TStatementSyntax, TMemberAccessExpressionSyntax, TAssignmentStatementSyntax>> matches, ImmutableArray<Location> locations) { var syntaxTree = context.Node.SyntaxTree; var fadeOutCode = context.GetOption( CodeStyleOptions2.PreferObjectInitializer_FadeOutCode, context.Node.Language); if (!fadeOutCode) { return; } var syntaxFacts = GetSyntaxFacts(); foreach (var match in matches) { var end = FadeOutOperatorToken ? syntaxFacts.GetOperatorTokenOfMemberAccessExpression(match.MemberAccessExpression).Span.End : syntaxFacts.GetExpressionOfMemberAccessExpression(match.MemberAccessExpression)!.Span.End; var location1 = Location.Create(syntaxTree, TextSpan.FromBounds( match.MemberAccessExpression.SpanStart, end)); if (match.Statement.Span.End > match.Initializer.FullSpan.End) { context.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags( Descriptor, location1, ReportDiagnostic.Default, additionalLocations: locations, additionalUnnecessaryLocations: ImmutableArray.Create( syntaxTree.GetLocation(TextSpan.FromBounds(match.Initializer.FullSpan.End, match.Statement.Span.End))))); } else { context.ReportDiagnostic(Diagnostic.Create( Descriptor, location1, additionalLocations: locations)); } } } protected abstract ISyntaxFacts GetSyntaxFacts(); public override DiagnosticAnalyzerCategory GetAnalyzerCategory() => DiagnosticAnalyzerCategory.SemanticSpanAnalysis; } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/VisualStudio/Xaml/Impl/Features/Completion/XamlCommitCharacters.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; namespace Microsoft.VisualStudio.LanguageServices.Xaml.Features.Completion { public readonly struct XamlCommitCharacters { /// <summary> /// Commit characters. /// </summary> public ImmutableArray<char> Characters { get; } /// <summary> /// Commit characters that will not be inserted when commit /// </summary> public ImmutableArray<char> NonInsertCharacters { get; } private XamlCommitCharacters(ImmutableArray<char> characters, ImmutableArray<char> nonInsertCharacters) { Characters = characters; NonInsertCharacters = nonInsertCharacters; } public static XamlCommitCharacters Create(ImmutableArray<char> characters, ImmutableArray<char> nonInsertCharacters) => new(characters, nonInsertCharacters); public static XamlCommitCharacters Create(ImmutableArray<char> characters, params char[] nonInsertCharacters) => new(characters, nonInsertCharacters?.ToImmutableArray() ?? ImmutableArray<char>.Empty); public static XamlCommitCharacters Create(char[] characters, params char[] nonInsertCharacters) => Create(characters.ToImmutableArray(), nonInsertCharacters); } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Immutable; namespace Microsoft.VisualStudio.LanguageServices.Xaml.Features.Completion { public readonly struct XamlCommitCharacters { /// <summary> /// Commit characters. /// </summary> public ImmutableArray<char> Characters { get; } /// <summary> /// Commit characters that will not be inserted when commit /// </summary> public ImmutableArray<char> NonInsertCharacters { get; } private XamlCommitCharacters(ImmutableArray<char> characters, ImmutableArray<char> nonInsertCharacters) { Characters = characters; NonInsertCharacters = nonInsertCharacters; } public static XamlCommitCharacters Create(ImmutableArray<char> characters, ImmutableArray<char> nonInsertCharacters) => new(characters, nonInsertCharacters); public static XamlCommitCharacters Create(ImmutableArray<char> characters, params char[] nonInsertCharacters) => new(characters, nonInsertCharacters?.ToImmutableArray() ?? ImmutableArray<char>.Empty); public static XamlCommitCharacters Create(char[] characters, params char[] nonInsertCharacters) => Create(characters.ToImmutableArray(), nonInsertCharacters); } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Workspaces/Core/Portable/xlf/WorkspacesResources.fr.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="fr" original="../WorkspacesResources.resx"> <body> <trans-unit id="A_project_may_not_reference_itself"> <source>A project may not reference itself.</source> <target state="translated">Un projet ne peut pas se référencer lui-même.</target> <note /> </trans-unit> <trans-unit id="Adding_analyzer_config_documents_is_not_supported"> <source>Adding analyzer config documents is not supported.</source> <target state="translated">L'ajout de documents de configuration de l'analyseur n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="An_error_occurred_while_reading_the_specified_configuration_file_colon_0"> <source>An error occurred while reading the specified configuration file: {0}</source> <target state="translated">Une erreur s'est produite lors de la lecture du fichier de configuration spécifié : {0}</target> <note /> </trans-unit> <trans-unit id="CSharp_files"> <source>C# files</source> <target state="translated">Fichiers C#</target> <note /> </trans-unit> <trans-unit id="Cannot_apply_action_that_is_not_in_0"> <source>Cannot apply action that is not in '{0}'</source> <target state="translated">Impossible d'appliquer l'action qui n'est pas dans '{0}'</target> <note /> </trans-unit> <trans-unit id="Changing_analyzer_config_documents_is_not_supported"> <source>Changing analyzer config documents is not supported.</source> <target state="translated">L'apport de changements aux documents de configuration de l'analyseur n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Changing_document_0_is_not_supported"> <source>Changing document '{0}' is not supported.</source> <target state="translated">Le changement du document '{0}' n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="CodeAction_{0}_did_not_produce_a_changed_solution"> <source>CodeAction '{0}' did not produce a changed solution</source> <target state="translated">Le CodeAction '{0}' n'a pas produit de solution contenant des changements</target> <note>"CodeAction" is a specific type, and {0} represents the title shown by the action.</note> </trans-unit> <trans-unit id="Core_EditorConfig_Options"> <source>Core EditorConfig Options</source> <target state="translated">Options EditorConfig principales</target> <note /> </trans-unit> <trans-unit id="DateTimeKind_must_be_Utc"> <source>DateTimeKind must be Utc</source> <target state="translated">DateTimeKind doit être UTC</target> <note /> </trans-unit> <trans-unit id="Destination_type_must_be_a_0_1_2_or_3_but_given_one_is_4"> <source>Destination type must be a {0}, {1}, {2} or {3}, but given one is {4}.</source> <target state="translated">Le type de destination doit être {0}, {1}, {2} ou {3}, mais le type spécifié est {4}.</target> <note /> </trans-unit> <trans-unit id="Document_does_not_support_syntax_trees"> <source>Document does not support syntax trees</source> <target state="translated">Le document ne prend pas en charge les arborescences de syntaxe</target> <note /> </trans-unit> <trans-unit id="Error_reading_content_of_source_file_0_1"> <source>Error reading content of source file '{0}' -- '{1}'.</source> <target state="translated">Erreur durant la lecture du contenu du fichier source '{0}' -- '{1}'.</target> <note /> </trans-unit> <trans-unit id="Indentation_and_spacing"> <source>Indentation and spacing</source> <target state="translated">Indentation et espacement</target> <note /> </trans-unit> <trans-unit id="New_line_preferences"> <source>New line preferences</source> <target state="translated">Préférences de nouvelle ligne</target> <note /> </trans-unit> <trans-unit id="Only_submission_project_can_reference_submission_projects"> <source>Only submission project can reference submission projects.</source> <target state="translated">Seul un projet de soumission peut référencer des projets de soumission.</target> <note /> </trans-unit> <trans-unit id="Options_did_not_come_from_specified_Solution"> <source>Options did not come from specified Solution</source> <target state="translated">Les options ne proviennent pas de la solution spécifiée</target> <note /> </trans-unit> <trans-unit id="Predefined_conversion_from_0_to_1"> <source>Predefined conversion from {0} to {1}.</source> <target state="translated">Conversion prédéfinie de {0} en {1}.</target> <note /> </trans-unit> <trans-unit id="Project_does_not_contain_specified_reference"> <source>Project does not contain specified reference</source> <target state="translated">Le projet ne contient pas la référence spécifiée</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Refactorisation uniquement</target> <note /> </trans-unit> <trans-unit id="Remove_the_line_below_if_you_want_to_inherit_dot_editorconfig_settings_from_higher_directories"> <source>Remove the line below if you want to inherit .editorconfig settings from higher directories</source> <target state="translated">Supprimer la ligne ci-dessous si vous voulez hériter les paramètres .editorconfig des répertoires supérieurs</target> <note /> </trans-unit> <trans-unit id="Removing_analyzer_config_documents_is_not_supported"> <source>Removing analyzer config documents is not supported.</source> <target state="translated">La suppression de documents de configuration de l'analyseur n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename '{0}' to '{1}'</source> <target state="translated">Renommer '{0}' en '{1}'</target> <note /> </trans-unit> <trans-unit id="Solution_does_not_contain_specified_reference"> <source>Solution does not contain specified reference</source> <target state="translated">La solution ne contient pas la référence spécifiée</target> <note /> </trans-unit> <trans-unit id="Symbol_0_is_not_from_source"> <source>Symbol "{0}" is not from source.</source> <target state="translated">Le symbole "{0}" ne provient pas de la source.</target> <note /> </trans-unit> <trans-unit id="Documentation_comment_id_must_start_with_E_F_M_N_P_or_T"> <source>Documentation comment id must start with E, F, M, N, P or T</source> <target state="translated">L'ID du commentaire de documentation doit commencer par E, F, M, N, P ou T</target> <note /> </trans-unit> <trans-unit id="Cycle_detected_in_extensions"> <source>Cycle detected in extensions</source> <target state="translated">Cycle détecté dans les extensions</target> <note /> </trans-unit> <trans-unit id="Destination_type_must_be_a_0_but_given_one_is_1"> <source>Destination type must be a {0}, but given one is {1}.</source> <target state="translated">Le type de destination doit être un {0}, mais le type donné est {1}.</target> <note /> </trans-unit> <trans-unit id="Destination_type_must_be_a_0_or_a_1_but_given_one_is_2"> <source>Destination type must be a {0} or a {1}, but given one is {2}.</source> <target state="translated">Le type de destination doit être un {0} ou un {1}, mais le type donné est {2}.</target> <note /> </trans-unit> <trans-unit id="Destination_type_must_be_a_0_1_or_2_but_given_one_is_3"> <source>Destination type must be a {0}, {1} or {2}, but given one is {3}.</source> <target state="translated">Le type de destination doit être un {0}, {1} ou {2}, mais le type donné est {3}.</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_to_generation_symbol_into"> <source>Could not find location to generation symbol into.</source> <target state="translated">L'emplacement dans lequel générer le symbole est introuvable.</target> <note /> </trans-unit> <trans-unit id="No_location_provided_to_add_statements_to"> <source>No location provided to add statements to.</source> <target state="translated">Aucun emplacement n'a été fourni pour l'ajout d'instructions.</target> <note /> </trans-unit> <trans-unit id="Destination_location_was_not_in_source"> <source>Destination location was not in source.</source> <target state="translated">L'emplacement de destination n'était pas dans la source.</target> <note /> </trans-unit> <trans-unit id="Destination_location_was_from_a_different_tree"> <source>Destination location was from a different tree.</source> <target state="translated">L'emplacement de destination provient d'une arborescence différente.</target> <note /> </trans-unit> <trans-unit id="Node_is_of_the_wrong_type"> <source>Node is of the wrong type.</source> <target state="translated">Le type de nœud est incorrect.</target> <note /> </trans-unit> <trans-unit id="Location_must_be_null_or_from_source"> <source>Location must be null or from source.</source> <target state="translated">L'emplacement doit être null ou dans la source.</target> <note /> </trans-unit> <trans-unit id="Duplicate_source_file_0_in_project_1"> <source>Duplicate source file '{0}' in project '{1}'</source> <target state="translated">Dupliquer le fichier source '{0}' dans le projet '{1}'</target> <note /> </trans-unit> <trans-unit id="Removing_projects_is_not_supported"> <source>Removing projects is not supported.</source> <target state="translated">La suppression de projets n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Adding_projects_is_not_supported"> <source>Adding projects is not supported.</source> <target state="translated">L'ajout de projets n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution"> <source>Symbol's project could not be found in the provided solution</source> <target state="translated">Le projet de symbole est introuvable dans la solution fournie</target> <note /> </trans-unit> <trans-unit id="Sync_namespace_to_folder_structure"> <source>Sync namespace to folder structure</source> <target state="translated">Synchroniser l'espace de noms avec la structure de dossier</target> <note /> </trans-unit> <trans-unit id="The_contents_of_a_SourceGeneratedDocument_may_not_be_changed"> <source>The contents of a SourceGeneratedDocument may not be changed.</source> <target state="translated">Le contenu de SourceGeneratedDocument ne doit pas être changé.</target> <note>{locked:SourceGeneratedDocument}</note> </trans-unit> <trans-unit id="The_project_already_contains_the_specified_reference"> <source>The project already contains the specified reference.</source> <target state="translated">Le projet contient déjà la référence spécifiée.</target> <note /> </trans-unit> <trans-unit id="The_solution_already_contains_the_specified_reference"> <source>The solution already contains the specified reference.</source> <target state="translated">La solution contient déjà la référence spécifiée.</target> <note /> </trans-unit> <trans-unit id="Unknown"> <source>Unknown</source> <target state="translated">Inconnue</target> <note /> </trans-unit> <trans-unit id="Visual_Basic_files"> <source>Visual Basic files</source> <target state="translated">Fichiers Visual Basic</target> <note /> </trans-unit> <trans-unit id="Warning_adding_imports_will_bring_an_extension_method_into_scope_with_the_same_name_as_member_access"> <source>Adding imports will bring an extension method into scope with the same name as '{0}'</source> <target state="translated">L'ajout d'importations place une méthode d'extension dans l'étendue avec le même nom que « {0} »</target> <note /> </trans-unit> <trans-unit id="Workspace_error"> <source>Workspace error</source> <target state="translated">Erreur de l'espace de travail</target> <note /> </trans-unit> <trans-unit id="Workspace_is_not_empty"> <source>Workspace is not empty.</source> <target state="translated">L'espace de travail n'est pas vide.</target> <note /> </trans-unit> <trans-unit id="_0_is_in_a_different_project"> <source>{0} is in a different project.</source> <target state="translated">{0} est dans un autre projet.</target> <note /> </trans-unit> <trans-unit id="_0_is_not_part_of_the_workspace"> <source>'{0}' is not part of the workspace.</source> <target state="translated">'{0}' ne fait pas partie de l'espace de travail.</target> <note /> </trans-unit> <trans-unit id="_0_is_already_part_of_the_workspace"> <source>'{0}' is already part of the workspace.</source> <target state="translated">'{0}' fait déjà partie de l'espace de travail.</target> <note /> </trans-unit> <trans-unit id="_0_is_not_referenced"> <source>'{0}' is not referenced.</source> <target state="translated">'{0}' n'est pas référencé.</target> <note /> </trans-unit> <trans-unit id="_0_is_already_referenced"> <source>'{0}' is already referenced.</source> <target state="translated">'{0}' est déjà référencé.</target> <note /> </trans-unit> <trans-unit id="Adding_project_reference_from_0_to_1_will_cause_a_circular_reference"> <source>Adding project reference from '{0}' to '{1}' will cause a circular reference.</source> <target state="translated">L'ajout d'une référence de projet de '{0}' à '{1}' provoquera une référence circulaire.</target> <note /> </trans-unit> <trans-unit id="Metadata_is_not_referenced"> <source>Metadata is not referenced.</source> <target state="translated">Les métadonnées ne sont pas référencées.</target> <note /> </trans-unit> <trans-unit id="Metadata_is_already_referenced"> <source>Metadata is already referenced.</source> <target state="translated">Les métadonnées sont déjà référencées.</target> <note /> </trans-unit> <trans-unit id="_0_is_not_present"> <source>{0} is not present.</source> <target state="translated">{0} n'est pas présent.</target> <note /> </trans-unit> <trans-unit id="_0_is_already_present"> <source>{0} is already present.</source> <target state="translated">{0} est déjà présent.</target> <note /> </trans-unit> <trans-unit id="The_specified_document_is_not_a_version_of_this_document"> <source>The specified document is not a version of this document.</source> <target state="translated">Le document spécifié n'est pas une version de ce document.</target> <note /> </trans-unit> <trans-unit id="The_language_0_is_not_supported"> <source>The language '{0}' is not supported.</source> <target state="translated">Le langage '{0}' n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="The_solution_already_contains_the_specified_project"> <source>The solution already contains the specified project.</source> <target state="translated">La solution contient déjà le projet spécifié.</target> <note /> </trans-unit> <trans-unit id="The_solution_does_not_contain_the_specified_project"> <source>The solution does not contain the specified project.</source> <target state="translated">La solution ne contient pas le projet spécifié.</target> <note /> </trans-unit> <trans-unit id="The_project_already_references_the_target_project"> <source>The project already references the target project.</source> <target state="translated">Le projet référence déjà le projet cible.</target> <note /> </trans-unit> <trans-unit id="The_solution_already_contains_the_specified_document"> <source>The solution already contains the specified document.</source> <target state="translated">La solution contient déjà le document spécifié.</target> <note /> </trans-unit> <trans-unit id="Temporary_storage_cannot_be_written_more_than_once"> <source>Temporary storage cannot be written more than once.</source> <target state="translated">Il est impossible d'écrire plusieurs fois dans le stockage temporaire.</target> <note /> </trans-unit> <trans-unit id="_0_is_not_open"> <source>'{0}' is not open.</source> <target state="translated">'{0}' n'est pas ouvert.</target> <note /> </trans-unit> <trans-unit id="A_language_name_cannot_be_specified_for_this_option"> <source>A language name cannot be specified for this option.</source> <target state="translated">Impossible de spécifier un nom de langage pour cette option.</target> <note /> </trans-unit> <trans-unit id="A_language_name_must_be_specified_for_this_option"> <source>A language name must be specified for this option.</source> <target state="translated">Un nom de langage doit être spécifié pour cette option.</target> <note /> </trans-unit> <trans-unit id="File_was_externally_modified_colon_0"> <source>File was externally modified: {0}.</source> <target state="translated">Le fichier a été modifié en externe : {0}.</target> <note /> </trans-unit> <trans-unit id="Unrecognized_language_name"> <source>Unrecognized language name.</source> <target state="translated">Nom de langage non reconnu.</target> <note /> </trans-unit> <trans-unit id="Can_t_resolve_metadata_reference_colon_0"> <source>Can't resolve metadata reference: '{0}'.</source> <target state="translated">Impossible de résoudre la référence de métadonnées : '{0}'.</target> <note /> </trans-unit> <trans-unit id="Can_t_resolve_analyzer_reference_colon_0"> <source>Can't resolve analyzer reference: '{0}'.</source> <target state="translated">Impossible de résoudre la référence de l'analyseur : '{0}'.</target> <note /> </trans-unit> <trans-unit id="Invalid_project_block_expected_after_Project"> <source>Invalid project block, expected "=" after Project.</source> <target state="translated">Bloc de projet non valide, "=" attendu après Project.</target> <note /> </trans-unit> <trans-unit id="Invalid_project_block_expected_after_project_name"> <source>Invalid project block, expected "," after project name.</source> <target state="translated">Bloc de projet non valide, "," attendu après le nom du projet.</target> <note /> </trans-unit> <trans-unit id="Invalid_project_block_expected_after_project_path"> <source>Invalid project block, expected "," after project path.</source> <target state="translated">Bloc de projet non valide, "," attendu après le chemin d'accès au projet.</target> <note /> </trans-unit> <trans-unit id="Expected_0"> <source>Expected {0}.</source> <target state="translated">{0} attendu.</target> <note /> </trans-unit> <trans-unit id="_0_must_be_a_non_null_and_non_empty_string"> <source>"{0}" must be a non-null and non-empty string.</source> <target state="translated">"{0}" doit être une chaîne non null et non vide.</target> <note /> </trans-unit> <trans-unit id="Expected_header_colon_0"> <source>Expected header: "{0}".</source> <target state="translated">En-tête attendu : "{0}".</target> <note /> </trans-unit> <trans-unit id="Expected_end_of_file"> <source>Expected end-of-file.</source> <target state="translated">Fin de fichier attendue.</target> <note /> </trans-unit> <trans-unit id="Expected_0_line"> <source>Expected {0} line.</source> <target state="translated">Ligne {0} attendue.</target> <note /> </trans-unit> <trans-unit id="This_submission_already_references_another_submission_project"> <source>This submission already references another submission project.</source> <target state="translated">Cette soumission référence déjà un autre projet de soumission.</target> <note /> </trans-unit> <trans-unit id="_0_still_contains_open_documents"> <source>{0} still contains open documents.</source> <target state="translated">{0} contient encore des documents ouverts.</target> <note /> </trans-unit> <trans-unit id="_0_is_still_open"> <source>{0} is still open.</source> <target state="translated">{0} est toujours ouvert.</target> <note /> </trans-unit> <trans-unit id="Arrays_with_more_than_one_dimension_cannot_be_serialized"> <source>Arrays with more than one dimension cannot be serialized.</source> <target state="translated">Impossible de sérialiser les tableaux de plus d'une dimension.</target> <note /> </trans-unit> <trans-unit id="Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer"> <source>Value too large to be represented as a 30 bit unsigned integer.</source> <target state="translated">La valeur est trop grande pour être représentée comme un entier non signé 30 bits.</target> <note /> </trans-unit> <trans-unit id="Specified_path_must_be_absolute"> <source>Specified path must be absolute.</source> <target state="translated">Le chemin d'accès spécifié doit être absolu.</target> <note /> </trans-unit> <trans-unit id="Name_can_be_simplified"> <source>Name can be simplified.</source> <target state="translated">Le nom peut être simplifié.</target> <note /> </trans-unit> <trans-unit id="Unknown_identifier"> <source>Unknown identifier.</source> <target state="translated">Identificateur inconnu.</target> <note /> </trans-unit> <trans-unit id="Cannot_generate_code_for_unsupported_operator_0"> <source>Cannot generate code for unsupported operator '{0}'</source> <target state="translated">Impossible de générer du code pour l'opérateur non pris en charge '{0}'</target> <note /> </trans-unit> <trans-unit id="Invalid_number_of_parameters_for_binary_operator"> <source>Invalid number of parameters for binary operator.</source> <target state="translated">Nombre de paramètres non valide pour l'opérateur binaire.</target> <note /> </trans-unit> <trans-unit id="Invalid_number_of_parameters_for_unary_operator"> <source>Invalid number of parameters for unary operator.</source> <target state="translated">Nombre de paramètres non valide pour l'opérateur unaire.</target> <note /> </trans-unit> <trans-unit id="Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language"> <source>Cannot open project '{0}' because the file extension '{1}' is not associated with a language.</source> <target state="translated">Impossible d'ouvrir le projet '{0}', car l'extension de fichier '{1}' n'est pas associée à un langage.</target> <note /> </trans-unit> <trans-unit id="Cannot_open_project_0_because_the_language_1_is_not_supported"> <source>Cannot open project '{0}' because the language '{1}' is not supported.</source> <target state="translated">Impossible d'ouvrir le projet '{0}', car le langage '{1}' n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Invalid_project_file_path_colon_0"> <source>Invalid project file path: '{0}'</source> <target state="translated">Chemin d'accès au fichier de projet non valide : '{0}'</target> <note /> </trans-unit> <trans-unit id="Invalid_solution_file_path_colon_0"> <source>Invalid solution file path: '{0}'</source> <target state="translated">Chemin d'accès au fichier de solution non valide : '{0}'</target> <note /> </trans-unit> <trans-unit id="Project_file_not_found_colon_0"> <source>Project file not found: '{0}'</source> <target state="translated">Fichier de projet introuvable : '{0}'</target> <note /> </trans-unit> <trans-unit id="Solution_file_not_found_colon_0"> <source>Solution file not found: '{0}'</source> <target state="translated">Fichier solution introuvable : '{0}'</target> <note /> </trans-unit> <trans-unit id="Unmerged_change_from_project_0"> <source>Unmerged change from project '{0}'</source> <target state="translated">Modification non fusionnée à partir du projet '{0}'</target> <note /> </trans-unit> <trans-unit id="Added_colon"> <source>Added:</source> <target state="translated">Ajouté :</target> <note /> </trans-unit> <trans-unit id="After_colon"> <source>After:</source> <target state="translated">Après :</target> <note /> </trans-unit> <trans-unit id="Before_colon"> <source>Before:</source> <target state="translated">Avant :</target> <note /> </trans-unit> <trans-unit id="Removed_colon"> <source>Removed:</source> <target state="translated">Supprimé :</target> <note /> </trans-unit> <trans-unit id="Invalid_CodePage_value_colon_0"> <source>Invalid CodePage value: {0}</source> <target state="translated">Valeur de CodePage non valide : {0}</target> <note /> </trans-unit> <trans-unit id="Adding_additional_documents_is_not_supported"> <source>Adding additional documents is not supported.</source> <target state="translated">L'ajout de documents supplémentaires n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Adding_analyzer_references_is_not_supported"> <source>Adding analyzer references is not supported.</source> <target state="translated">L'ajout de références de l'analyseur n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Adding_documents_is_not_supported"> <source>Adding documents is not supported.</source> <target state="translated">L'ajout de documents n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Adding_metadata_references_is_not_supported"> <source>Adding metadata references is not supported.</source> <target state="translated">L'ajout de références de métadonnées n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Adding_project_references_is_not_supported"> <source>Adding project references is not supported.</source> <target state="translated">L'ajout de références de projet n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Changing_additional_documents_is_not_supported"> <source>Changing additional documents is not supported.</source> <target state="translated">La modification de documents supplémentaires n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Changing_documents_is_not_supported"> <source>Changing documents is not supported.</source> <target state="translated">La modification de documents n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Changing_project_properties_is_not_supported"> <source>Changing project properties is not supported.</source> <target state="translated">La modification des propriétés de projet n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Removing_additional_documents_is_not_supported"> <source>Removing additional documents is not supported.</source> <target state="translated">La suppression de documents supplémentaires n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Removing_analyzer_references_is_not_supported"> <source>Removing analyzer references is not supported.</source> <target state="translated">La suppression de références de l'analyseur n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Removing_documents_is_not_supported"> <source>Removing documents is not supported.</source> <target state="translated">La suppression de documents n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Removing_metadata_references_is_not_supported"> <source>Removing metadata references is not supported.</source> <target state="translated">La suppression de références de métadonnées n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Removing_project_references_is_not_supported"> <source>Removing project references is not supported.</source> <target state="translated">La suppression de références de projet n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Service_of_type_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_workspace"> <source>Service of type '{0}' is required to accomplish the task but is not available from the workspace.</source> <target state="translated">Le service de type '{0}' est nécessaire pour accomplir la tâche mais n'est pas disponible dans l'espace de travail.</target> <note /> </trans-unit> <trans-unit id="At_least_one_diagnostic_must_be_supplied"> <source>At least one diagnostic must be supplied.</source> <target state="translated">Au moins un diagnostic doit être fourni.</target> <note /> </trans-unit> <trans-unit id="Diagnostic_must_have_span_0"> <source>Diagnostic must have span '{0}'</source> <target state="translated">Le diagnostic doit avoir l'étendue '{0}'</target> <note /> </trans-unit> <trans-unit id="Cannot_deserialize_type_0"> <source>Cannot deserialize type '{0}'.</source> <target state="translated">Impossible de désérialiser le type '{0}'.</target> <note /> </trans-unit> <trans-unit id="Cannot_serialize_type_0"> <source>Cannot serialize type '{0}'.</source> <target state="translated">Impossible de sérialiser le type '{0}'.</target> <note /> </trans-unit> <trans-unit id="The_type_0_is_not_understood_by_the_serialization_binder"> <source>The type '{0}' is not understood by the serialization binder.</source> <target state="translated">Le type '{0}' n'est pas pris en charge par le binder de sérialisation.</target> <note /> </trans-unit> <trans-unit id="Label_for_node_0_is_invalid_it_must_be_within_bracket_0_1"> <source>Label for node '{0}' is invalid, it must be within [0, {1}).</source> <target state="translated">L’étiquette pour le nœud « {0} » n’est pas valide. Elle doit être comprise dans l’intervalle suivant [0, {1}).</target> <note /> </trans-unit> <trans-unit id="Matching_nodes_0_and_1_must_have_the_same_label"> <source>Matching nodes '{0}' and '{1}' must have the same label.</source> <target state="translated">Les nœuds correspondants « {0} » et « {1} » doivent avoir la même étiquette.</target> <note /> </trans-unit> <trans-unit id="Node_0_must_be_contained_in_the_new_tree"> <source>Node '{0}' must be contained in the new tree.</source> <target state="translated">Le nœud « {0} » doit figurer dans la nouvelle arborescence.</target> <note /> </trans-unit> <trans-unit id="Node_0_must_be_contained_in_the_old_tree"> <source>Node '{0}' must be contained in the old tree.</source> <target state="translated">Le nœud « {0} » doit figurer dans l’ancienne arborescence.</target> <note /> </trans-unit> <trans-unit id="The_member_0_is_not_declared_within_the_declaration_of_the_symbol"> <source>The member '{0}' is not declared within the declaration of the symbol.</source> <target state="translated">Le membre « {0} » n’est pas déclaré dans la déclaration du symbole.</target> <note /> </trans-unit> <trans-unit id="The_position_is_not_within_the_symbol_s_declaration"> <source>The position is not within the symbol's declaration</source> <target state="translated">La position ne se trouve pas dans la déclaration du symbole</target> <note /> </trans-unit> <trans-unit id="The_symbol_0_cannot_be_located_within_the_current_solution"> <source>The symbol '{0}' cannot be located within the current solution.</source> <target state="translated">Le symbole « {0} » ne peut pas se trouver dans la solution actuelle.</target> <note /> </trans-unit> <trans-unit id="Changing_compilation_options_is_not_supported"> <source>Changing compilation options is not supported.</source> <target state="translated">La modification des options de compilation n’est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Changing_parse_options_is_not_supported"> <source>Changing parse options is not supported.</source> <target state="translated">La modification des options d’analyse n’est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="The_node_is_not_part_of_the_tree"> <source>The node is not part of the tree.</source> <target state="translated">Le nœud ne fait pas partie de l'arborescence.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_opening_and_closing_documents"> <source>This workspace does not support opening and closing documents.</source> <target state="translated">Cet espace de travail ne prend pas en charge l'ouverture et la fermeture de documents.</target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Exceptions :</target> <note /> </trans-unit> <trans-unit id="_0_returned_an_uninitialized_ImmutableArray"> <source>'{0}' returned an uninitialized ImmutableArray</source> <target state="translated">'{0}' a retourné un ImmutableArray non initialisé</target> <note /> </trans-unit> <trans-unit id="Failure"> <source>Failure</source> <target state="translated">Échec</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Avertissement</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Activer</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Activer et ignorer les futures erreurs</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' a rencontré une erreur et a été désactivé.</target> <note /> </trans-unit> <trans-unit id="Show_Stack_Trace"> <source>Show Stack Trace</source> <target state="translated">Afficher l'arborescence des appels de procédure</target> <note /> </trans-unit> <trans-unit id="Stream_is_too_long"> <source>Stream is too long.</source> <target state="translated">Le flux est trop long.</target> <note /> </trans-unit> <trans-unit id="Deserialization_reader_for_0_read_incorrect_number_of_values"> <source>Deserialization reader for '{0}' read incorrect number of values.</source> <target state="translated">Le lecteur de désérialisation pour '{0}' a lu un nombre incorrect de valeurs.</target> <note /> </trans-unit> <trans-unit id="Async_Method"> <source>Async Method</source> <target state="translated">Méthode async</target> <note>{locked: async}{locked: method} These are keywords (unless the order of words or capitalization should be handled differently)</note> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Erreur</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">Aucun(e)</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Suggestion</target> <note /> </trans-unit> <trans-unit id="File_0_size_of_1_exceeds_maximum_allowed_size_of_2"> <source>File '{0}' size of {1} exceeds maximum allowed size of {2}</source> <target state="translated">Le fichier '{0}' de {1} dépasse la taille maximale autorisée de {2}</target> <note /> </trans-unit> <trans-unit id="Changing_document_property_is_not_supported"> <source>Changing document properties is not supported</source> <target state="translated">Le changement des propriétés du document n'est pas pris en charge</target> <note /> </trans-unit> <trans-unit id="dot_NET_Coding_Conventions"> <source>.NET Coding Conventions</source> <target state="translated">Conventions de codage .NET</target> <note /> </trans-unit> <trans-unit id="Variables_captured_colon"> <source>Variables captured:</source> <target state="translated">Variables capturées :</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="fr" original="../WorkspacesResources.resx"> <body> <trans-unit id="A_project_may_not_reference_itself"> <source>A project may not reference itself.</source> <target state="translated">Un projet ne peut pas se référencer lui-même.</target> <note /> </trans-unit> <trans-unit id="Adding_analyzer_config_documents_is_not_supported"> <source>Adding analyzer config documents is not supported.</source> <target state="translated">L'ajout de documents de configuration de l'analyseur n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="An_error_occurred_while_reading_the_specified_configuration_file_colon_0"> <source>An error occurred while reading the specified configuration file: {0}</source> <target state="translated">Une erreur s'est produite lors de la lecture du fichier de configuration spécifié : {0}</target> <note /> </trans-unit> <trans-unit id="CSharp_files"> <source>C# files</source> <target state="translated">Fichiers C#</target> <note /> </trans-unit> <trans-unit id="Cannot_apply_action_that_is_not_in_0"> <source>Cannot apply action that is not in '{0}'</source> <target state="translated">Impossible d'appliquer l'action qui n'est pas dans '{0}'</target> <note /> </trans-unit> <trans-unit id="Changing_analyzer_config_documents_is_not_supported"> <source>Changing analyzer config documents is not supported.</source> <target state="translated">L'apport de changements aux documents de configuration de l'analyseur n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Changing_document_0_is_not_supported"> <source>Changing document '{0}' is not supported.</source> <target state="translated">Le changement du document '{0}' n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="CodeAction_{0}_did_not_produce_a_changed_solution"> <source>CodeAction '{0}' did not produce a changed solution</source> <target state="translated">Le CodeAction '{0}' n'a pas produit de solution contenant des changements</target> <note>"CodeAction" is a specific type, and {0} represents the title shown by the action.</note> </trans-unit> <trans-unit id="Core_EditorConfig_Options"> <source>Core EditorConfig Options</source> <target state="translated">Options EditorConfig principales</target> <note /> </trans-unit> <trans-unit id="DateTimeKind_must_be_Utc"> <source>DateTimeKind must be Utc</source> <target state="translated">DateTimeKind doit être UTC</target> <note /> </trans-unit> <trans-unit id="Destination_type_must_be_a_0_1_2_or_3_but_given_one_is_4"> <source>Destination type must be a {0}, {1}, {2} or {3}, but given one is {4}.</source> <target state="translated">Le type de destination doit être {0}, {1}, {2} ou {3}, mais le type spécifié est {4}.</target> <note /> </trans-unit> <trans-unit id="Document_does_not_support_syntax_trees"> <source>Document does not support syntax trees</source> <target state="translated">Le document ne prend pas en charge les arborescences de syntaxe</target> <note /> </trans-unit> <trans-unit id="Error_reading_content_of_source_file_0_1"> <source>Error reading content of source file '{0}' -- '{1}'.</source> <target state="translated">Erreur durant la lecture du contenu du fichier source '{0}' -- '{1}'.</target> <note /> </trans-unit> <trans-unit id="Indentation_and_spacing"> <source>Indentation and spacing</source> <target state="translated">Indentation et espacement</target> <note /> </trans-unit> <trans-unit id="New_line_preferences"> <source>New line preferences</source> <target state="translated">Préférences de nouvelle ligne</target> <note /> </trans-unit> <trans-unit id="Only_submission_project_can_reference_submission_projects"> <source>Only submission project can reference submission projects.</source> <target state="translated">Seul un projet de soumission peut référencer des projets de soumission.</target> <note /> </trans-unit> <trans-unit id="Options_did_not_come_from_specified_Solution"> <source>Options did not come from specified Solution</source> <target state="translated">Les options ne proviennent pas de la solution spécifiée</target> <note /> </trans-unit> <trans-unit id="Predefined_conversion_from_0_to_1"> <source>Predefined conversion from {0} to {1}.</source> <target state="translated">Conversion prédéfinie de {0} en {1}.</target> <note /> </trans-unit> <trans-unit id="Project_does_not_contain_specified_reference"> <source>Project does not contain specified reference</source> <target state="translated">Le projet ne contient pas la référence spécifiée</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Refactorisation uniquement</target> <note /> </trans-unit> <trans-unit id="Remove_the_line_below_if_you_want_to_inherit_dot_editorconfig_settings_from_higher_directories"> <source>Remove the line below if you want to inherit .editorconfig settings from higher directories</source> <target state="translated">Supprimer la ligne ci-dessous si vous voulez hériter les paramètres .editorconfig des répertoires supérieurs</target> <note /> </trans-unit> <trans-unit id="Removing_analyzer_config_documents_is_not_supported"> <source>Removing analyzer config documents is not supported.</source> <target state="translated">La suppression de documents de configuration de l'analyseur n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename '{0}' to '{1}'</source> <target state="translated">Renommer '{0}' en '{1}'</target> <note /> </trans-unit> <trans-unit id="Solution_does_not_contain_specified_reference"> <source>Solution does not contain specified reference</source> <target state="translated">La solution ne contient pas la référence spécifiée</target> <note /> </trans-unit> <trans-unit id="Symbol_0_is_not_from_source"> <source>Symbol "{0}" is not from source.</source> <target state="translated">Le symbole "{0}" ne provient pas de la source.</target> <note /> </trans-unit> <trans-unit id="Documentation_comment_id_must_start_with_E_F_M_N_P_or_T"> <source>Documentation comment id must start with E, F, M, N, P or T</source> <target state="translated">L'ID du commentaire de documentation doit commencer par E, F, M, N, P ou T</target> <note /> </trans-unit> <trans-unit id="Cycle_detected_in_extensions"> <source>Cycle detected in extensions</source> <target state="translated">Cycle détecté dans les extensions</target> <note /> </trans-unit> <trans-unit id="Destination_type_must_be_a_0_but_given_one_is_1"> <source>Destination type must be a {0}, but given one is {1}.</source> <target state="translated">Le type de destination doit être un {0}, mais le type donné est {1}.</target> <note /> </trans-unit> <trans-unit id="Destination_type_must_be_a_0_or_a_1_but_given_one_is_2"> <source>Destination type must be a {0} or a {1}, but given one is {2}.</source> <target state="translated">Le type de destination doit être un {0} ou un {1}, mais le type donné est {2}.</target> <note /> </trans-unit> <trans-unit id="Destination_type_must_be_a_0_1_or_2_but_given_one_is_3"> <source>Destination type must be a {0}, {1} or {2}, but given one is {3}.</source> <target state="translated">Le type de destination doit être un {0}, {1} ou {2}, mais le type donné est {3}.</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_to_generation_symbol_into"> <source>Could not find location to generation symbol into.</source> <target state="translated">L'emplacement dans lequel générer le symbole est introuvable.</target> <note /> </trans-unit> <trans-unit id="No_location_provided_to_add_statements_to"> <source>No location provided to add statements to.</source> <target state="translated">Aucun emplacement n'a été fourni pour l'ajout d'instructions.</target> <note /> </trans-unit> <trans-unit id="Destination_location_was_not_in_source"> <source>Destination location was not in source.</source> <target state="translated">L'emplacement de destination n'était pas dans la source.</target> <note /> </trans-unit> <trans-unit id="Destination_location_was_from_a_different_tree"> <source>Destination location was from a different tree.</source> <target state="translated">L'emplacement de destination provient d'une arborescence différente.</target> <note /> </trans-unit> <trans-unit id="Node_is_of_the_wrong_type"> <source>Node is of the wrong type.</source> <target state="translated">Le type de nœud est incorrect.</target> <note /> </trans-unit> <trans-unit id="Location_must_be_null_or_from_source"> <source>Location must be null or from source.</source> <target state="translated">L'emplacement doit être null ou dans la source.</target> <note /> </trans-unit> <trans-unit id="Duplicate_source_file_0_in_project_1"> <source>Duplicate source file '{0}' in project '{1}'</source> <target state="translated">Dupliquer le fichier source '{0}' dans le projet '{1}'</target> <note /> </trans-unit> <trans-unit id="Removing_projects_is_not_supported"> <source>Removing projects is not supported.</source> <target state="translated">La suppression de projets n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Adding_projects_is_not_supported"> <source>Adding projects is not supported.</source> <target state="translated">L'ajout de projets n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Symbols_project_could_not_be_found_in_the_provided_solution"> <source>Symbol's project could not be found in the provided solution</source> <target state="translated">Le projet de symbole est introuvable dans la solution fournie</target> <note /> </trans-unit> <trans-unit id="Sync_namespace_to_folder_structure"> <source>Sync namespace to folder structure</source> <target state="translated">Synchroniser l'espace de noms avec la structure de dossier</target> <note /> </trans-unit> <trans-unit id="The_contents_of_a_SourceGeneratedDocument_may_not_be_changed"> <source>The contents of a SourceGeneratedDocument may not be changed.</source> <target state="translated">Le contenu de SourceGeneratedDocument ne doit pas être changé.</target> <note>{locked:SourceGeneratedDocument}</note> </trans-unit> <trans-unit id="The_project_already_contains_the_specified_reference"> <source>The project already contains the specified reference.</source> <target state="translated">Le projet contient déjà la référence spécifiée.</target> <note /> </trans-unit> <trans-unit id="The_solution_already_contains_the_specified_reference"> <source>The solution already contains the specified reference.</source> <target state="translated">La solution contient déjà la référence spécifiée.</target> <note /> </trans-unit> <trans-unit id="Unknown"> <source>Unknown</source> <target state="translated">Inconnue</target> <note /> </trans-unit> <trans-unit id="Visual_Basic_files"> <source>Visual Basic files</source> <target state="translated">Fichiers Visual Basic</target> <note /> </trans-unit> <trans-unit id="Warning_adding_imports_will_bring_an_extension_method_into_scope_with_the_same_name_as_member_access"> <source>Adding imports will bring an extension method into scope with the same name as '{0}'</source> <target state="translated">L'ajout d'importations place une méthode d'extension dans l'étendue avec le même nom que « {0} »</target> <note /> </trans-unit> <trans-unit id="Workspace_error"> <source>Workspace error</source> <target state="translated">Erreur de l'espace de travail</target> <note /> </trans-unit> <trans-unit id="Workspace_is_not_empty"> <source>Workspace is not empty.</source> <target state="translated">L'espace de travail n'est pas vide.</target> <note /> </trans-unit> <trans-unit id="_0_is_in_a_different_project"> <source>{0} is in a different project.</source> <target state="translated">{0} est dans un autre projet.</target> <note /> </trans-unit> <trans-unit id="_0_is_not_part_of_the_workspace"> <source>'{0}' is not part of the workspace.</source> <target state="translated">'{0}' ne fait pas partie de l'espace de travail.</target> <note /> </trans-unit> <trans-unit id="_0_is_already_part_of_the_workspace"> <source>'{0}' is already part of the workspace.</source> <target state="translated">'{0}' fait déjà partie de l'espace de travail.</target> <note /> </trans-unit> <trans-unit id="_0_is_not_referenced"> <source>'{0}' is not referenced.</source> <target state="translated">'{0}' n'est pas référencé.</target> <note /> </trans-unit> <trans-unit id="_0_is_already_referenced"> <source>'{0}' is already referenced.</source> <target state="translated">'{0}' est déjà référencé.</target> <note /> </trans-unit> <trans-unit id="Adding_project_reference_from_0_to_1_will_cause_a_circular_reference"> <source>Adding project reference from '{0}' to '{1}' will cause a circular reference.</source> <target state="translated">L'ajout d'une référence de projet de '{0}' à '{1}' provoquera une référence circulaire.</target> <note /> </trans-unit> <trans-unit id="Metadata_is_not_referenced"> <source>Metadata is not referenced.</source> <target state="translated">Les métadonnées ne sont pas référencées.</target> <note /> </trans-unit> <trans-unit id="Metadata_is_already_referenced"> <source>Metadata is already referenced.</source> <target state="translated">Les métadonnées sont déjà référencées.</target> <note /> </trans-unit> <trans-unit id="_0_is_not_present"> <source>{0} is not present.</source> <target state="translated">{0} n'est pas présent.</target> <note /> </trans-unit> <trans-unit id="_0_is_already_present"> <source>{0} is already present.</source> <target state="translated">{0} est déjà présent.</target> <note /> </trans-unit> <trans-unit id="The_specified_document_is_not_a_version_of_this_document"> <source>The specified document is not a version of this document.</source> <target state="translated">Le document spécifié n'est pas une version de ce document.</target> <note /> </trans-unit> <trans-unit id="The_language_0_is_not_supported"> <source>The language '{0}' is not supported.</source> <target state="translated">Le langage '{0}' n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="The_solution_already_contains_the_specified_project"> <source>The solution already contains the specified project.</source> <target state="translated">La solution contient déjà le projet spécifié.</target> <note /> </trans-unit> <trans-unit id="The_solution_does_not_contain_the_specified_project"> <source>The solution does not contain the specified project.</source> <target state="translated">La solution ne contient pas le projet spécifié.</target> <note /> </trans-unit> <trans-unit id="The_project_already_references_the_target_project"> <source>The project already references the target project.</source> <target state="translated">Le projet référence déjà le projet cible.</target> <note /> </trans-unit> <trans-unit id="The_solution_already_contains_the_specified_document"> <source>The solution already contains the specified document.</source> <target state="translated">La solution contient déjà le document spécifié.</target> <note /> </trans-unit> <trans-unit id="Temporary_storage_cannot_be_written_more_than_once"> <source>Temporary storage cannot be written more than once.</source> <target state="translated">Il est impossible d'écrire plusieurs fois dans le stockage temporaire.</target> <note /> </trans-unit> <trans-unit id="_0_is_not_open"> <source>'{0}' is not open.</source> <target state="translated">'{0}' n'est pas ouvert.</target> <note /> </trans-unit> <trans-unit id="A_language_name_cannot_be_specified_for_this_option"> <source>A language name cannot be specified for this option.</source> <target state="translated">Impossible de spécifier un nom de langage pour cette option.</target> <note /> </trans-unit> <trans-unit id="A_language_name_must_be_specified_for_this_option"> <source>A language name must be specified for this option.</source> <target state="translated">Un nom de langage doit être spécifié pour cette option.</target> <note /> </trans-unit> <trans-unit id="File_was_externally_modified_colon_0"> <source>File was externally modified: {0}.</source> <target state="translated">Le fichier a été modifié en externe : {0}.</target> <note /> </trans-unit> <trans-unit id="Unrecognized_language_name"> <source>Unrecognized language name.</source> <target state="translated">Nom de langage non reconnu.</target> <note /> </trans-unit> <trans-unit id="Can_t_resolve_metadata_reference_colon_0"> <source>Can't resolve metadata reference: '{0}'.</source> <target state="translated">Impossible de résoudre la référence de métadonnées : '{0}'.</target> <note /> </trans-unit> <trans-unit id="Can_t_resolve_analyzer_reference_colon_0"> <source>Can't resolve analyzer reference: '{0}'.</source> <target state="translated">Impossible de résoudre la référence de l'analyseur : '{0}'.</target> <note /> </trans-unit> <trans-unit id="Invalid_project_block_expected_after_Project"> <source>Invalid project block, expected "=" after Project.</source> <target state="translated">Bloc de projet non valide, "=" attendu après Project.</target> <note /> </trans-unit> <trans-unit id="Invalid_project_block_expected_after_project_name"> <source>Invalid project block, expected "," after project name.</source> <target state="translated">Bloc de projet non valide, "," attendu après le nom du projet.</target> <note /> </trans-unit> <trans-unit id="Invalid_project_block_expected_after_project_path"> <source>Invalid project block, expected "," after project path.</source> <target state="translated">Bloc de projet non valide, "," attendu après le chemin d'accès au projet.</target> <note /> </trans-unit> <trans-unit id="Expected_0"> <source>Expected {0}.</source> <target state="translated">{0} attendu.</target> <note /> </trans-unit> <trans-unit id="_0_must_be_a_non_null_and_non_empty_string"> <source>"{0}" must be a non-null and non-empty string.</source> <target state="translated">"{0}" doit être une chaîne non null et non vide.</target> <note /> </trans-unit> <trans-unit id="Expected_header_colon_0"> <source>Expected header: "{0}".</source> <target state="translated">En-tête attendu : "{0}".</target> <note /> </trans-unit> <trans-unit id="Expected_end_of_file"> <source>Expected end-of-file.</source> <target state="translated">Fin de fichier attendue.</target> <note /> </trans-unit> <trans-unit id="Expected_0_line"> <source>Expected {0} line.</source> <target state="translated">Ligne {0} attendue.</target> <note /> </trans-unit> <trans-unit id="This_submission_already_references_another_submission_project"> <source>This submission already references another submission project.</source> <target state="translated">Cette soumission référence déjà un autre projet de soumission.</target> <note /> </trans-unit> <trans-unit id="_0_still_contains_open_documents"> <source>{0} still contains open documents.</source> <target state="translated">{0} contient encore des documents ouverts.</target> <note /> </trans-unit> <trans-unit id="_0_is_still_open"> <source>{0} is still open.</source> <target state="translated">{0} est toujours ouvert.</target> <note /> </trans-unit> <trans-unit id="Arrays_with_more_than_one_dimension_cannot_be_serialized"> <source>Arrays with more than one dimension cannot be serialized.</source> <target state="translated">Impossible de sérialiser les tableaux de plus d'une dimension.</target> <note /> </trans-unit> <trans-unit id="Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer"> <source>Value too large to be represented as a 30 bit unsigned integer.</source> <target state="translated">La valeur est trop grande pour être représentée comme un entier non signé 30 bits.</target> <note /> </trans-unit> <trans-unit id="Specified_path_must_be_absolute"> <source>Specified path must be absolute.</source> <target state="translated">Le chemin d'accès spécifié doit être absolu.</target> <note /> </trans-unit> <trans-unit id="Name_can_be_simplified"> <source>Name can be simplified.</source> <target state="translated">Le nom peut être simplifié.</target> <note /> </trans-unit> <trans-unit id="Unknown_identifier"> <source>Unknown identifier.</source> <target state="translated">Identificateur inconnu.</target> <note /> </trans-unit> <trans-unit id="Cannot_generate_code_for_unsupported_operator_0"> <source>Cannot generate code for unsupported operator '{0}'</source> <target state="translated">Impossible de générer du code pour l'opérateur non pris en charge '{0}'</target> <note /> </trans-unit> <trans-unit id="Invalid_number_of_parameters_for_binary_operator"> <source>Invalid number of parameters for binary operator.</source> <target state="translated">Nombre de paramètres non valide pour l'opérateur binaire.</target> <note /> </trans-unit> <trans-unit id="Invalid_number_of_parameters_for_unary_operator"> <source>Invalid number of parameters for unary operator.</source> <target state="translated">Nombre de paramètres non valide pour l'opérateur unaire.</target> <note /> </trans-unit> <trans-unit id="Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language"> <source>Cannot open project '{0}' because the file extension '{1}' is not associated with a language.</source> <target state="translated">Impossible d'ouvrir le projet '{0}', car l'extension de fichier '{1}' n'est pas associée à un langage.</target> <note /> </trans-unit> <trans-unit id="Cannot_open_project_0_because_the_language_1_is_not_supported"> <source>Cannot open project '{0}' because the language '{1}' is not supported.</source> <target state="translated">Impossible d'ouvrir le projet '{0}', car le langage '{1}' n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Invalid_project_file_path_colon_0"> <source>Invalid project file path: '{0}'</source> <target state="translated">Chemin d'accès au fichier de projet non valide : '{0}'</target> <note /> </trans-unit> <trans-unit id="Invalid_solution_file_path_colon_0"> <source>Invalid solution file path: '{0}'</source> <target state="translated">Chemin d'accès au fichier de solution non valide : '{0}'</target> <note /> </trans-unit> <trans-unit id="Project_file_not_found_colon_0"> <source>Project file not found: '{0}'</source> <target state="translated">Fichier de projet introuvable : '{0}'</target> <note /> </trans-unit> <trans-unit id="Solution_file_not_found_colon_0"> <source>Solution file not found: '{0}'</source> <target state="translated">Fichier solution introuvable : '{0}'</target> <note /> </trans-unit> <trans-unit id="Unmerged_change_from_project_0"> <source>Unmerged change from project '{0}'</source> <target state="translated">Modification non fusionnée à partir du projet '{0}'</target> <note /> </trans-unit> <trans-unit id="Added_colon"> <source>Added:</source> <target state="translated">Ajouté :</target> <note /> </trans-unit> <trans-unit id="After_colon"> <source>After:</source> <target state="translated">Après :</target> <note /> </trans-unit> <trans-unit id="Before_colon"> <source>Before:</source> <target state="translated">Avant :</target> <note /> </trans-unit> <trans-unit id="Removed_colon"> <source>Removed:</source> <target state="translated">Supprimé :</target> <note /> </trans-unit> <trans-unit id="Invalid_CodePage_value_colon_0"> <source>Invalid CodePage value: {0}</source> <target state="translated">Valeur de CodePage non valide : {0}</target> <note /> </trans-unit> <trans-unit id="Adding_additional_documents_is_not_supported"> <source>Adding additional documents is not supported.</source> <target state="translated">L'ajout de documents supplémentaires n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Adding_analyzer_references_is_not_supported"> <source>Adding analyzer references is not supported.</source> <target state="translated">L'ajout de références de l'analyseur n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Adding_documents_is_not_supported"> <source>Adding documents is not supported.</source> <target state="translated">L'ajout de documents n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Adding_metadata_references_is_not_supported"> <source>Adding metadata references is not supported.</source> <target state="translated">L'ajout de références de métadonnées n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Adding_project_references_is_not_supported"> <source>Adding project references is not supported.</source> <target state="translated">L'ajout de références de projet n'est pas pris en charge.</target> <note /> </trans-unit> <trans-unit id="Changing_additional_documents_is_not_supported"> <source>Changing additional documents is not supported.</source> <target state="translated">La modification de documents supplémentaires n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Changing_documents_is_not_supported"> <source>Changing documents is not supported.</source> <target state="translated">La modification de documents n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Changing_project_properties_is_not_supported"> <source>Changing project properties is not supported.</source> <target state="translated">La modification des propriétés de projet n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Removing_additional_documents_is_not_supported"> <source>Removing additional documents is not supported.</source> <target state="translated">La suppression de documents supplémentaires n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Removing_analyzer_references_is_not_supported"> <source>Removing analyzer references is not supported.</source> <target state="translated">La suppression de références de l'analyseur n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Removing_documents_is_not_supported"> <source>Removing documents is not supported.</source> <target state="translated">La suppression de documents n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Removing_metadata_references_is_not_supported"> <source>Removing metadata references is not supported.</source> <target state="translated">La suppression de références de métadonnées n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Removing_project_references_is_not_supported"> <source>Removing project references is not supported.</source> <target state="translated">La suppression de références de projet n'est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Service_of_type_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_workspace"> <source>Service of type '{0}' is required to accomplish the task but is not available from the workspace.</source> <target state="translated">Le service de type '{0}' est nécessaire pour accomplir la tâche mais n'est pas disponible dans l'espace de travail.</target> <note /> </trans-unit> <trans-unit id="At_least_one_diagnostic_must_be_supplied"> <source>At least one diagnostic must be supplied.</source> <target state="translated">Au moins un diagnostic doit être fourni.</target> <note /> </trans-unit> <trans-unit id="Diagnostic_must_have_span_0"> <source>Diagnostic must have span '{0}'</source> <target state="translated">Le diagnostic doit avoir l'étendue '{0}'</target> <note /> </trans-unit> <trans-unit id="Cannot_deserialize_type_0"> <source>Cannot deserialize type '{0}'.</source> <target state="translated">Impossible de désérialiser le type '{0}'.</target> <note /> </trans-unit> <trans-unit id="Cannot_serialize_type_0"> <source>Cannot serialize type '{0}'.</source> <target state="translated">Impossible de sérialiser le type '{0}'.</target> <note /> </trans-unit> <trans-unit id="The_type_0_is_not_understood_by_the_serialization_binder"> <source>The type '{0}' is not understood by the serialization binder.</source> <target state="translated">Le type '{0}' n'est pas pris en charge par le binder de sérialisation.</target> <note /> </trans-unit> <trans-unit id="Label_for_node_0_is_invalid_it_must_be_within_bracket_0_1"> <source>Label for node '{0}' is invalid, it must be within [0, {1}).</source> <target state="translated">L’étiquette pour le nœud « {0} » n’est pas valide. Elle doit être comprise dans l’intervalle suivant [0, {1}).</target> <note /> </trans-unit> <trans-unit id="Matching_nodes_0_and_1_must_have_the_same_label"> <source>Matching nodes '{0}' and '{1}' must have the same label.</source> <target state="translated">Les nœuds correspondants « {0} » et « {1} » doivent avoir la même étiquette.</target> <note /> </trans-unit> <trans-unit id="Node_0_must_be_contained_in_the_new_tree"> <source>Node '{0}' must be contained in the new tree.</source> <target state="translated">Le nœud « {0} » doit figurer dans la nouvelle arborescence.</target> <note /> </trans-unit> <trans-unit id="Node_0_must_be_contained_in_the_old_tree"> <source>Node '{0}' must be contained in the old tree.</source> <target state="translated">Le nœud « {0} » doit figurer dans l’ancienne arborescence.</target> <note /> </trans-unit> <trans-unit id="The_member_0_is_not_declared_within_the_declaration_of_the_symbol"> <source>The member '{0}' is not declared within the declaration of the symbol.</source> <target state="translated">Le membre « {0} » n’est pas déclaré dans la déclaration du symbole.</target> <note /> </trans-unit> <trans-unit id="The_position_is_not_within_the_symbol_s_declaration"> <source>The position is not within the symbol's declaration</source> <target state="translated">La position ne se trouve pas dans la déclaration du symbole</target> <note /> </trans-unit> <trans-unit id="The_symbol_0_cannot_be_located_within_the_current_solution"> <source>The symbol '{0}' cannot be located within the current solution.</source> <target state="translated">Le symbole « {0} » ne peut pas se trouver dans la solution actuelle.</target> <note /> </trans-unit> <trans-unit id="Changing_compilation_options_is_not_supported"> <source>Changing compilation options is not supported.</source> <target state="translated">La modification des options de compilation n’est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="Changing_parse_options_is_not_supported"> <source>Changing parse options is not supported.</source> <target state="translated">La modification des options d’analyse n’est pas prise en charge.</target> <note /> </trans-unit> <trans-unit id="The_node_is_not_part_of_the_tree"> <source>The node is not part of the tree.</source> <target state="translated">Le nœud ne fait pas partie de l'arborescence.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_opening_and_closing_documents"> <source>This workspace does not support opening and closing documents.</source> <target state="translated">Cet espace de travail ne prend pas en charge l'ouverture et la fermeture de documents.</target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Exceptions :</target> <note /> </trans-unit> <trans-unit id="_0_returned_an_uninitialized_ImmutableArray"> <source>'{0}' returned an uninitialized ImmutableArray</source> <target state="translated">'{0}' a retourné un ImmutableArray non initialisé</target> <note /> </trans-unit> <trans-unit id="Failure"> <source>Failure</source> <target state="translated">Échec</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Avertissement</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Activer</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Activer et ignorer les futures erreurs</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' a rencontré une erreur et a été désactivé.</target> <note /> </trans-unit> <trans-unit id="Show_Stack_Trace"> <source>Show Stack Trace</source> <target state="translated">Afficher l'arborescence des appels de procédure</target> <note /> </trans-unit> <trans-unit id="Stream_is_too_long"> <source>Stream is too long.</source> <target state="translated">Le flux est trop long.</target> <note /> </trans-unit> <trans-unit id="Deserialization_reader_for_0_read_incorrect_number_of_values"> <source>Deserialization reader for '{0}' read incorrect number of values.</source> <target state="translated">Le lecteur de désérialisation pour '{0}' a lu un nombre incorrect de valeurs.</target> <note /> </trans-unit> <trans-unit id="Async_Method"> <source>Async Method</source> <target state="translated">Méthode async</target> <note>{locked: async}{locked: method} These are keywords (unless the order of words or capitalization should be handled differently)</note> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Erreur</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">Aucun(e)</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Suggestion</target> <note /> </trans-unit> <trans-unit id="File_0_size_of_1_exceeds_maximum_allowed_size_of_2"> <source>File '{0}' size of {1} exceeds maximum allowed size of {2}</source> <target state="translated">Le fichier '{0}' de {1} dépasse la taille maximale autorisée de {2}</target> <note /> </trans-unit> <trans-unit id="Changing_document_property_is_not_supported"> <source>Changing document properties is not supported</source> <target state="translated">Le changement des propriétés du document n'est pas pris en charge</target> <note /> </trans-unit> <trans-unit id="dot_NET_Coding_Conventions"> <source>.NET Coding Conventions</source> <target state="translated">Conventions de codage .NET</target> <note /> </trans-unit> <trans-unit id="Variables_captured_colon"> <source>Variables captured:</source> <target state="translated">Variables capturées :</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/CSharp/Test/Symbol/Symbols/Metadata/PE/LoadingIndexers.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.Symbols.Metadata.PE { // CONSIDER: it might be worthwhile to promote some of these sample types to a test resource DLL public class LoadingIndexers : CSharpTestBase { [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadReadWriteIndexer() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('Item')} .method public hidebysig specialname instance int32 get_Item(int32 x) cil managed { ldc.i4.0 ret } .method public hidebysig specialname instance void set_Item(int32 x, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 Item(int32) { .get instance int32 C::get_Item(int32) .set instance void C::set_Item(int32, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("Item", @class.DefaultMemberName); var indexer = @class.GetIndexer<PEPropertySymbol>("Item"); CheckIndexer(indexer, true, true, "System.Int32 C.this[System.Int32 x] { get; set; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadWriteOnlyIndexer() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('Item')} .method public hidebysig specialname instance void set_Item(int32 x, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 Item(int32) { .set instance void C::set_Item(int32, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("Item", @class.DefaultMemberName); var indexer = @class.GetIndexer<PEPropertySymbol>("Item"); CheckIndexer(indexer, false, true, "System.Int32 C.this[System.Int32 x] { set; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadReadOnlyIndexer() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('Item')} .method public hidebysig specialname instance int32 get_Item(int32 x) cil managed { ldc.i4.0 ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 Item(int32) { .get instance int32 C::get_Item(int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("Item", @class.DefaultMemberName); var indexer = @class.GetIndexer<PEPropertySymbol>("Item"); CheckIndexer(indexer, true, false, "System.Int32 C.this[System.Int32 x] { get; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadIndexerWithAlternateName() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('NotItem')} .method public hidebysig specialname instance int32 get_NotItem(int32 x) cil managed { ldc.i4.0 ret } .method public hidebysig specialname instance void set_NotItem(int32 x, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 NotItem(int32) { .get instance int32 C::get_NotItem(int32) .set instance void C::set_NotItem(int32, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("NotItem", @class.DefaultMemberName); var indexer = @class.GetIndexer<PEPropertySymbol>("NotItem"); CheckIndexer(indexer, true, true, "System.Int32 C.this[System.Int32 x] { get; set; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadIndexerWithAccessorAsDefaultMember() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('get_NotItem')} .method public hidebysig specialname instance int32 get_NotItem(int32 x) cil managed { ldc.i4.0 ret } .method public hidebysig specialname instance void set_NotItem(int32 x, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 NotItem(int32) { .get instance int32 C::get_NotItem(int32) .set instance void C::set_NotItem(int32, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("get_NotItem", @class.DefaultMemberName); var indexer = @class.GetIndexer<PEPropertySymbol>("NotItem"); CheckIndexer(indexer, true, true, "System.Int32 C.this[System.Int32 x] { get; set; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadComplexIndexers() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('Accessor1')} .method public hidebysig specialname instance int32 Accessor1(int32 x, int64 y) cil managed { ldc.i4.0 ret } .method public hidebysig specialname instance void Accessor2(int32 x, int64 y, int32 'value') cil managed { ret } .method public hidebysig specialname instance void Accessor3(int32 x, int64 y, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 Indexer1(int32, int64) { .get instance int32 C::Accessor1(int32, int64) .set instance void C::Accessor2(int32, int64, int32) } .property instance int32 Indexer2(int32, int64) { .get instance int32 C::Accessor1(int32, int64) .set instance void C::Accessor3(int32, int64, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("Accessor1", @class.DefaultMemberName); var indexer1 = @class.GetIndexer<PEPropertySymbol>("Indexer1"); CheckIndexer(indexer1, true, true, "System.Int32 C.this[System.Int32 x, System.Int64 y] { get; set; }", suppressAssociatedPropertyCheck: true); var indexer2 = @class.GetIndexer<PEPropertySymbol>("Indexer2"); CheckIndexer(indexer2, true, true, "System.Int32 C.this[System.Int32 x, System.Int64 y] { get; set; }", suppressAssociatedPropertyCheck: true); }); } [ClrOnlyFact] public void LoadNonIndexer_NoDefaultMember() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .method public hidebysig specialname instance int32 get_Item(int32 x) cil managed { ldc.i4.0 ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 Item(int32) { .get instance int32 C::get_Item(int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("", @class.DefaultMemberName); //placeholder value to avoid refetching var property = @class.GetMember<PEPropertySymbol>("Item"); CheckNonIndexer(property, true, false, "System.Int32 C.Item[System.Int32 x] { get; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadNonIndexer_NotDefaultMember() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('NotItem')} .method public hidebysig specialname instance int32 get_Item(int32 x) cil managed { ldc.i4.0 ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 Item(int32) { .get instance int32 C::get_Item(int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("NotItem", @class.DefaultMemberName); var property = @class.GetMember<PEPropertySymbol>("Item"); CheckNonIndexer(property, true, false, "System.Int32 C.Item[System.Int32 x] { get; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadNonGenericIndexers() { string ilSource = @" .class public auto ansi beforefieldinit NonGeneric extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('get_Item')} .method public hidebysig newslot specialname virtual instance int32 get_Item(int64 x) cil managed { ldnull throw } .method public hidebysig newslot specialname virtual instance void set_Item(int64 x, int32 'value') cil managed { ldnull throw } .method public hidebysig newslot specialname virtual static int32 get_Item(int64 x) cil managed { ldnull throw } .method public hidebysig newslot specialname virtual static void set_Item(int64 x, int32 'value') cil managed { ldnull throw } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldnull throw } .property instance int32 Instance(int64) { .get instance int32 NonGeneric::get_Item(int64) .set instance void NonGeneric::set_Item(int64, int32) } .property int32 Static(int64) { .get int32 NonGeneric::get_Item(int64) .set void NonGeneric::set_Item(int64, int32) } } // end of class NonGeneric "; CompileWithCustomILSource("", ilSource, compilation => CheckInstanceAndStaticIndexers(compilation, "NonGeneric", "System.Int32 NonGeneric.this[System.Int64 x] { get; set; }")); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadGenericIndexers() { string ilSource = @" .class public auto ansi beforefieldinit Generic`2<T,U> extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('get_Item')} .method public hidebysig newslot specialname virtual instance !T get_Item(!U u) cil managed { ldnull throw } .method public hidebysig newslot specialname virtual instance void set_Item(!U u, !T 'value') cil managed { ldnull throw } .method public hidebysig newslot specialname virtual static !T get_Item(!U u) cil managed { ldnull throw } .method public hidebysig newslot specialname virtual static void set_Item(!U u, !T 'value') cil managed { ldnull throw } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldnull throw } .property instance !T Instance(!U) { .get instance !T Generic`2::get_Item(!U) .set instance void Generic`2::set_Item(!U, !T) } .property !T Static(!U) { .get !T Generic`2::get_Item(!U) .set void Generic`2::set_Item(!U, !T) } } // end of class Generic`2 "; CompileWithCustomILSource("", ilSource, compilation => CheckInstanceAndStaticIndexers(compilation, "Generic", "T Generic<T, U>.this[U u] { get; set; }")); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadClosedGenericIndexers() { string ilSource = @" .class public auto ansi beforefieldinit ClosedGeneric extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('get_Item')} .method public hidebysig newslot specialname virtual instance class [mscorlib]System.Collections.Generic.List`1<int32> get_Item(class [mscorlib]System.Action`1<int16> u) cil managed { ldnull throw } .method public hidebysig newslot specialname virtual instance void set_Item(class [mscorlib]System.Action`1<int16> u, class [mscorlib]System.Collections.Generic.List`1<int32> 'value') cil managed { ldnull throw } .method public hidebysig newslot specialname virtual static class [mscorlib]System.Collections.Generic.List`1<int32> get_Item(class [mscorlib]System.Action`1<int16> u) cil managed { ldnull throw } .method public hidebysig newslot specialname virtual static void set_Item(class [mscorlib]System.Action`1<int16> u, class [mscorlib]System.Collections.Generic.List`1<int32> 'value') cil managed { ldnull throw } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldnull throw } .property instance class [mscorlib]System.Collections.Generic.List`1<int32> Instance(class [mscorlib]System.Action`1<int16>) { .get instance class [mscorlib]System.Collections.Generic.List`1<int32> ClosedGeneric::get_Item(class [mscorlib]System.Action`1<int16>) .set instance void ClosedGeneric::set_Item(class [mscorlib]System.Action`1<int16>, class [mscorlib]System.Collections.Generic.List`1<int32>) } .property class [mscorlib]System.Collections.Generic.List`1<int32> Static(class [mscorlib]System.Action`1<int16>) { .get class [mscorlib]System.Collections.Generic.List`1<int32> ClosedGeneric::get_Item(class [mscorlib]System.Action`1<int16>) .set void ClosedGeneric::set_Item(class [mscorlib]System.Action`1<int16>, class [mscorlib]System.Collections.Generic.List`1<int32>) } } // end of class ClosedGeneric "; CompileWithCustomILSource("", ilSource, compilation => CheckInstanceAndStaticIndexers(compilation, "ClosedGeneric", "System.Collections.Generic.List<System.Int32> ClosedGeneric.this[System.Action<System.Int16> u] { get; set; }")); } [Fact] public void LoadIndexerWithRefParam() { var assembly = MetadataTestHelpers.GetSymbolForReference(TestReferences.SymbolsTests.Indexers); var @class = assembly.GlobalNamespace.GetMember<NamedTypeSymbol>("RefIndexer"); var indexer = (PropertySymbol)@class.GetMembers().Where(m => m.Kind == SymbolKind.Property).Single(); Assert.Equal(RefKind.Ref, indexer.Parameters.Single().RefKind); Assert.True(indexer.MustCallMethodsDirectly); } private static void CheckInstanceAndStaticIndexers(CSharpCompilation compilation, string className, string indexerDisplayString) { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>(className); var instanceIndexer = @class.GetIndexer<PEPropertySymbol>("Instance"); Assert.False(instanceIndexer.IsStatic); CheckIndexer(instanceIndexer, true, true, indexerDisplayString); var staticIndexer = @class.GetIndexer<PEPropertySymbol>("Static"); //not allowed in C# Assert.True(staticIndexer.IsStatic); CheckIndexer(staticIndexer, true, true, indexerDisplayString); } /// <summary> /// The accessor and the property have signatures. /// </summary> [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadAccessorPropertySignatureMismatch() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('get_Item')} .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .method public hidebysig specialname instance int32 get_Item(string s) cil managed { ldc.i4.0 ret } .property instance int32 ParameterCount(string, char) { .get instance int32 C::get_Item(string) } .method public hidebysig specialname instance int32 get_Item(string s, string c) cil managed { ldc.i4.0 ret } .property instance int32 ParameterTypes(string, char) { .get instance int32 C::get_Item(string, string) } .method public hidebysig specialname instance int32 get_Item(string s, char modopt(int32) c) cil managed { ldc.i4.0 ret } .property instance int32 ReturnType(string, char) { .get instance char C::get_Item(string, string) } .property instance int32 ParameterModopt(string, char) { .get instance int32 C::get_Item(string, char modopt(int32)) } .method public hidebysig specialname instance char get_Item(string s, string c) cil managed { ldc.i4.0 ret } .method public hidebysig specialname instance int32 modopt(int32) get_Item(string s, char c) cil managed { ldc.i4.0 ret } .property instance int32 ReturnTypeModopt(string, char) { .get instance int32 modopt(int32) C::get_Item(string, char) } } // end of class C "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); var parameterCountIndexer = @class.GetIndexer<PEPropertySymbol>("ParameterCount"); Assert.True(parameterCountIndexer.IsIndexer); Assert.True(parameterCountIndexer.MustCallMethodsDirectly); Assert.NotEqual(parameterCountIndexer.ParameterCount, parameterCountIndexer.GetMethod.ParameterCount); var parameterTypesIndexer = @class.GetIndexer<PEPropertySymbol>("ParameterTypes"); Assert.True(parameterTypesIndexer.IsIndexer); Assert.True(parameterTypesIndexer.MustCallMethodsDirectly); Assert.NotEqual(parameterTypesIndexer.Parameters.Last().Type, parameterTypesIndexer.GetMethod.Parameters.Last().Type); var returnTypeIndexer = @class.GetIndexer<PEPropertySymbol>("ReturnType"); Assert.True(returnTypeIndexer.IsIndexer); Assert.True(returnTypeIndexer.MustCallMethodsDirectly); Assert.NotEqual(returnTypeIndexer.Type, returnTypeIndexer.GetMethod.ReturnType); var parameterModoptIndexer = @class.GetIndexer<PEPropertySymbol>("ParameterModopt"); Assert.True(parameterModoptIndexer.IsIndexer); Assert.False(parameterModoptIndexer.MustCallMethodsDirectly); //NB: we allow this amount of variation (modopt is on, rather than in parameter type) Assert.NotEqual(parameterModoptIndexer.Parameters.Last().TypeWithAnnotations.CustomModifiers.Length, parameterModoptIndexer.GetMethod.Parameters.Last().TypeWithAnnotations.CustomModifiers.Length); var returnTypeModoptIndexer = @class.GetIndexer<PEPropertySymbol>("ReturnTypeModopt"); Assert.True(returnTypeModoptIndexer.IsIndexer); Assert.False(returnTypeModoptIndexer.MustCallMethodsDirectly); //NB: we allow this amount of variation (modopt is on, rather than in return type) Assert.NotEqual(returnTypeModoptIndexer.TypeWithAnnotations.CustomModifiers.Length, returnTypeModoptIndexer.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.Length); }); } [ClrOnlyFact] public void LoadParameterNames() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .method public hidebysig specialname instance int32 get_Item(int32 x) cil managed { ldc.i4.0 ret } // NB: getter and setter have different parameter names .method public hidebysig specialname instance void set_Item(int32 y, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 ReadWrite(int32) { .get instance int32 C::get_Item(int32) .set instance void C::set_Item(int32, int32) } .property instance int32 ReadOnly(int32) { .get instance int32 C::get_Item(int32) } .property instance int32 WriteOnly(int32) { .set instance void C::set_Item(int32, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); var property1 = @class.GetMember<PEPropertySymbol>("ReadWrite"); var property1ParamName = property1.Parameters.Single().Name; // NOTE: prefer setter Assert.NotEqual(property1ParamName, property1.GetMethod.Parameters.Single().Name); Assert.Equal(property1ParamName, property1.SetMethod.Parameters.First().Name); var property2 = @class.GetMember<PEPropertySymbol>("ReadOnly"); var property2ParamName = property2.Parameters.Single().Name; Assert.Equal(property2ParamName, property2.GetMethod.Parameters.Single().Name); var property3 = @class.GetMember<PEPropertySymbol>("WriteOnly"); var property3ParamName = property3.Parameters.Single().Name; Assert.Equal(property3ParamName, property3.SetMethod.Parameters.First().Name); }); } /// <remarks> /// Only testing parameter count mismatch. There isn't specific handling for other /// types of bogus properties - just setter param name if setter available and getter /// param name if getter available (i.e. same as success case). /// </remarks> [ClrOnlyFact] public void LoadBogusParameterNames() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .method public hidebysig specialname instance int32 get_Item(int32 x, int32 y) cil managed { ldc.i4.0 ret } // accessor has too many parameters .property instance int32 TooMany(int32) { .get instance int32 C::get_Item(int32, int32) } // accessor has too few parameters .property instance int32 TooFew(int32, int32, int32) { .get instance int32 C::get_Item(int32, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); var accessor = @class.GetMember<MethodSymbol>("get_Item"); var accessParam0Name = accessor.Parameters[0].Name; var accessParam1Name = accessor.Parameters[1].Name; var property1 = @class.GetMember<PEPropertySymbol>("TooMany"); Assert.Equal(accessParam0Name, property1.Parameters[0].Name); var property2 = @class.GetMember<PEPropertySymbol>("TooFew"); var property2Params = property2.Parameters; Assert.Equal(accessParam0Name, property2Params[0].Name); Assert.Equal(accessParam1Name, property2Params[1].Name); Assert.Equal("value", property2Params[2].Name); //filler name }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadParamArrayAttribute() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('accessor')} .method public hidebysig specialname instance int32 accessor(int32[] a) cil managed { .param [1] .custom instance void [mscorlib]System.ParamArrayAttribute::.ctor() = {} ldc.i4.0 ret } .method public hidebysig specialname instance void accessor(int32[] a, int32 'value') cil managed { .param [1] .custom instance void [mscorlib]System.ParamArrayAttribute::.ctor() = {} ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 ReadWrite(int32[]) { .get instance int32 C::accessor(int32[]) .set instance void C::accessor(int32[], int32) } .property instance int32 ReadOnly(int32[]) { .get instance int32 C::accessor(int32[]) } .property instance int32 WriteOnly(int32[]) { .set instance void C::accessor(int32[], int32) } } // end of class C "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); var readWrite = @class.GetIndexer<PEPropertySymbol>("ReadWrite"); Assert.True(readWrite.IsIndexer); Assert.False(readWrite.MustCallMethodsDirectly); Assert.True(readWrite.Parameters.Last().IsParams); var readOnly = @class.GetIndexer<PEPropertySymbol>("ReadOnly"); Assert.True(readOnly.IsIndexer); Assert.False(readOnly.MustCallMethodsDirectly); Assert.True(readOnly.Parameters.Last().IsParams); var writeOnly = @class.GetIndexer<PEPropertySymbol>("WriteOnly"); Assert.True(writeOnly.IsIndexer); Assert.False(writeOnly.MustCallMethodsDirectly); Assert.True(writeOnly.Parameters.Last().IsParams); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadBogusParamArrayAttribute() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('params')} .method public hidebysig specialname instance int32 params(int32[] a) cil managed { .param [1] .custom instance void [mscorlib]System.ParamArrayAttribute::.ctor() = {} ldc.i4.0 ret } .method public hidebysig specialname instance int32 noParams(int32[] a) cil managed { ldc.i4.0 ret } .method public hidebysig specialname instance void params(int32[] a, int32 'value') cil managed { .param [1] .custom instance void [mscorlib]System.ParamArrayAttribute::.ctor() = {} ret } .method public hidebysig specialname instance void noParams(int32[] a, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 OnlyGetter(int32[]) { .get instance int32 C::params(int32[]) .set instance void C::noParams(int32[], int32) } .property instance int32 OnlySetter(int32[]) { .get instance int32 C::noParams(int32[]) .set instance void C::params(int32[], int32) } } // end of class C "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); var readWrite = @class.GetIndexer<PEPropertySymbol>("OnlyGetter"); Assert.True(readWrite.IsIndexer); Assert.True(readWrite.MustCallMethodsDirectly); Assert.False(readWrite.Parameters.Last().IsParams); //favour setter var readOnly = @class.GetIndexer<PEPropertySymbol>("OnlySetter"); Assert.True(readWrite.IsIndexer); Assert.True(readOnly.MustCallMethodsDirectly); Assert.True(readOnly.Parameters.Last().IsParams); //favour setter }); } private static void CheckIndexer(PropertySymbol indexer, bool expectGetter, bool expectSetter, string indexerDisplayString, bool suppressAssociatedPropertyCheck = false) { CheckParameterizedProperty(indexer, expectGetter, expectSetter, indexerDisplayString, true, suppressAssociatedPropertyCheck); } private static void CheckNonIndexer(PropertySymbol property, bool expectGetter, bool expectSetter, string propertyDisplayString) { CheckParameterizedProperty(property, expectGetter, expectSetter, propertyDisplayString, false, true); } private static void CheckParameterizedProperty(PropertySymbol property, bool expectGetter, bool expectSetter, string propertyDisplayString, bool expectIndexer, bool suppressAssociatedPropertyCheck) { Assert.Equal(SymbolKind.Property, property.Kind); Assert.Equal(expectIndexer, property.IsIndexer); Assert.NotEqual(expectIndexer, property.MustCallMethodsDirectly); Assert.Equal(propertyDisplayString, property.ToTestDisplayString()); if (expectGetter) { CheckAccessorShape(property.GetMethod, true, property, expectIndexer, suppressAssociatedPropertyCheck); } else { Assert.Null(property.GetMethod); } if (expectSetter) { CheckAccessorShape(property.SetMethod, false, property, expectIndexer, suppressAssociatedPropertyCheck); } else { Assert.Null(property.SetMethod); } } private static void CheckAccessorShape(MethodSymbol accessor, bool accessorIsGetMethod, PropertySymbol property, bool propertyIsIndexer, bool suppressAssociatedPropertyCheck) { Assert.NotNull(accessor); if (propertyIsIndexer) { if (!suppressAssociatedPropertyCheck) { Assert.Same(property, accessor.AssociatedSymbol); } } else { Assert.Null(accessor.AssociatedSymbol); Assert.Equal(MethodKind.Ordinary, accessor.MethodKind); } if (accessorIsGetMethod) { Assert.Equal(propertyIsIndexer ? MethodKind.PropertyGet : MethodKind.Ordinary, accessor.MethodKind); Assert.Equal(property.Type, accessor.ReturnType); Assert.Equal(property.ParameterCount, accessor.ParameterCount); } else { Assert.Equal(propertyIsIndexer ? MethodKind.PropertySet : MethodKind.Ordinary, accessor.MethodKind); Assert.Equal(SpecialType.System_Void, accessor.ReturnType.SpecialType); Assert.Equal(property.Type, accessor.Parameters.Last().Type); Assert.Equal(property.ParameterCount + 1, accessor.ParameterCount); } // NOTE: won't check last param of setter - that was handled above. for (int i = 0; i < property.ParameterCount; i++) { Assert.Equal(property.Parameters[i].Type, accessor.Parameters[i].Type); } Assert.Equal(property.IsAbstract, accessor.IsAbstract); Assert.Equal(property.IsOverride, @accessor.IsOverride); Assert.Equal(property.IsVirtual, @accessor.IsVirtual); Assert.Equal(property.IsSealed, @accessor.IsSealed); Assert.Equal(property.IsExtern, @accessor.IsExtern); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadExplicitImplementation() { string ilSource = @" .class interface public abstract auto ansi I { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('Item')} .method public hidebysig newslot specialname abstract virtual instance int32 get_Item(int32 x) cil managed { } // end of method I::get_Item .method public hidebysig newslot specialname abstract virtual instance void set_Item(int32 x, int32 'value') cil managed { } // end of method I::set_Item .property instance int32 Item(int32) { .get instance int32 I::get_Item(int32) .set instance void I::set_Item(int32, int32) } // end of property I::Item } // end of class I .class public auto ansi beforefieldinit C extends [mscorlib]System.Object implements I { .method private hidebysig newslot specialname virtual final instance int32 I.get_Item(int32 x) cil managed { .override I::get_Item ldnull throw } .method private hidebysig newslot specialname virtual final instance void I.set_Item(int32 x, int32 'value') cil managed { .override I::set_Item ldnull throw } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 I.Item(int32) { .get instance int32 C::I.get_Item(int32) .set instance void C::I.set_Item(int32, int32) } } // end of class C "; CompileWithCustomILSource("", ilSource, compilation => { var @interface = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("I"); var interfaceIndexer = @interface.Indexers.Single(); Assert.True(interfaceIndexer.IsIndexer); var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); var classIndexer = (PropertySymbol)@class.GetMembers().Single(s => s.Kind == SymbolKind.Property); Assert.False(classIndexer.IsIndexer); Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interfaceIndexer)); Assert.Equal(interfaceIndexer, classIndexer.ExplicitInterfaceImplementations.Single()); }); } [Fact] public void LoadImplicitImplementation() { } [Fact] public void LoadOverriding() { } [Fact] public void LoadHiding() { } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Linq; using Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.Symbols.Metadata.PE { // CONSIDER: it might be worthwhile to promote some of these sample types to a test resource DLL public class LoadingIndexers : CSharpTestBase { [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadReadWriteIndexer() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('Item')} .method public hidebysig specialname instance int32 get_Item(int32 x) cil managed { ldc.i4.0 ret } .method public hidebysig specialname instance void set_Item(int32 x, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 Item(int32) { .get instance int32 C::get_Item(int32) .set instance void C::set_Item(int32, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("Item", @class.DefaultMemberName); var indexer = @class.GetIndexer<PEPropertySymbol>("Item"); CheckIndexer(indexer, true, true, "System.Int32 C.this[System.Int32 x] { get; set; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadWriteOnlyIndexer() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('Item')} .method public hidebysig specialname instance void set_Item(int32 x, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 Item(int32) { .set instance void C::set_Item(int32, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("Item", @class.DefaultMemberName); var indexer = @class.GetIndexer<PEPropertySymbol>("Item"); CheckIndexer(indexer, false, true, "System.Int32 C.this[System.Int32 x] { set; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadReadOnlyIndexer() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('Item')} .method public hidebysig specialname instance int32 get_Item(int32 x) cil managed { ldc.i4.0 ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 Item(int32) { .get instance int32 C::get_Item(int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("Item", @class.DefaultMemberName); var indexer = @class.GetIndexer<PEPropertySymbol>("Item"); CheckIndexer(indexer, true, false, "System.Int32 C.this[System.Int32 x] { get; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadIndexerWithAlternateName() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('NotItem')} .method public hidebysig specialname instance int32 get_NotItem(int32 x) cil managed { ldc.i4.0 ret } .method public hidebysig specialname instance void set_NotItem(int32 x, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 NotItem(int32) { .get instance int32 C::get_NotItem(int32) .set instance void C::set_NotItem(int32, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("NotItem", @class.DefaultMemberName); var indexer = @class.GetIndexer<PEPropertySymbol>("NotItem"); CheckIndexer(indexer, true, true, "System.Int32 C.this[System.Int32 x] { get; set; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadIndexerWithAccessorAsDefaultMember() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('get_NotItem')} .method public hidebysig specialname instance int32 get_NotItem(int32 x) cil managed { ldc.i4.0 ret } .method public hidebysig specialname instance void set_NotItem(int32 x, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 NotItem(int32) { .get instance int32 C::get_NotItem(int32) .set instance void C::set_NotItem(int32, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("get_NotItem", @class.DefaultMemberName); var indexer = @class.GetIndexer<PEPropertySymbol>("NotItem"); CheckIndexer(indexer, true, true, "System.Int32 C.this[System.Int32 x] { get; set; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadComplexIndexers() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('Accessor1')} .method public hidebysig specialname instance int32 Accessor1(int32 x, int64 y) cil managed { ldc.i4.0 ret } .method public hidebysig specialname instance void Accessor2(int32 x, int64 y, int32 'value') cil managed { ret } .method public hidebysig specialname instance void Accessor3(int32 x, int64 y, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 Indexer1(int32, int64) { .get instance int32 C::Accessor1(int32, int64) .set instance void C::Accessor2(int32, int64, int32) } .property instance int32 Indexer2(int32, int64) { .get instance int32 C::Accessor1(int32, int64) .set instance void C::Accessor3(int32, int64, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("Accessor1", @class.DefaultMemberName); var indexer1 = @class.GetIndexer<PEPropertySymbol>("Indexer1"); CheckIndexer(indexer1, true, true, "System.Int32 C.this[System.Int32 x, System.Int64 y] { get; set; }", suppressAssociatedPropertyCheck: true); var indexer2 = @class.GetIndexer<PEPropertySymbol>("Indexer2"); CheckIndexer(indexer2, true, true, "System.Int32 C.this[System.Int32 x, System.Int64 y] { get; set; }", suppressAssociatedPropertyCheck: true); }); } [ClrOnlyFact] public void LoadNonIndexer_NoDefaultMember() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .method public hidebysig specialname instance int32 get_Item(int32 x) cil managed { ldc.i4.0 ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 Item(int32) { .get instance int32 C::get_Item(int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("", @class.DefaultMemberName); //placeholder value to avoid refetching var property = @class.GetMember<PEPropertySymbol>("Item"); CheckNonIndexer(property, true, false, "System.Int32 C.Item[System.Int32 x] { get; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadNonIndexer_NotDefaultMember() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('NotItem')} .method public hidebysig specialname instance int32 get_Item(int32 x) cil managed { ldc.i4.0 ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 Item(int32) { .get instance int32 C::get_Item(int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); Assert.Equal("NotItem", @class.DefaultMemberName); var property = @class.GetMember<PEPropertySymbol>("Item"); CheckNonIndexer(property, true, false, "System.Int32 C.Item[System.Int32 x] { get; }"); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadNonGenericIndexers() { string ilSource = @" .class public auto ansi beforefieldinit NonGeneric extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('get_Item')} .method public hidebysig newslot specialname virtual instance int32 get_Item(int64 x) cil managed { ldnull throw } .method public hidebysig newslot specialname virtual instance void set_Item(int64 x, int32 'value') cil managed { ldnull throw } .method public hidebysig newslot specialname virtual static int32 get_Item(int64 x) cil managed { ldnull throw } .method public hidebysig newslot specialname virtual static void set_Item(int64 x, int32 'value') cil managed { ldnull throw } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldnull throw } .property instance int32 Instance(int64) { .get instance int32 NonGeneric::get_Item(int64) .set instance void NonGeneric::set_Item(int64, int32) } .property int32 Static(int64) { .get int32 NonGeneric::get_Item(int64) .set void NonGeneric::set_Item(int64, int32) } } // end of class NonGeneric "; CompileWithCustomILSource("", ilSource, compilation => CheckInstanceAndStaticIndexers(compilation, "NonGeneric", "System.Int32 NonGeneric.this[System.Int64 x] { get; set; }")); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadGenericIndexers() { string ilSource = @" .class public auto ansi beforefieldinit Generic`2<T,U> extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('get_Item')} .method public hidebysig newslot specialname virtual instance !T get_Item(!U u) cil managed { ldnull throw } .method public hidebysig newslot specialname virtual instance void set_Item(!U u, !T 'value') cil managed { ldnull throw } .method public hidebysig newslot specialname virtual static !T get_Item(!U u) cil managed { ldnull throw } .method public hidebysig newslot specialname virtual static void set_Item(!U u, !T 'value') cil managed { ldnull throw } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldnull throw } .property instance !T Instance(!U) { .get instance !T Generic`2::get_Item(!U) .set instance void Generic`2::set_Item(!U, !T) } .property !T Static(!U) { .get !T Generic`2::get_Item(!U) .set void Generic`2::set_Item(!U, !T) } } // end of class Generic`2 "; CompileWithCustomILSource("", ilSource, compilation => CheckInstanceAndStaticIndexers(compilation, "Generic", "T Generic<T, U>.this[U u] { get; set; }")); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadClosedGenericIndexers() { string ilSource = @" .class public auto ansi beforefieldinit ClosedGeneric extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('get_Item')} .method public hidebysig newslot specialname virtual instance class [mscorlib]System.Collections.Generic.List`1<int32> get_Item(class [mscorlib]System.Action`1<int16> u) cil managed { ldnull throw } .method public hidebysig newslot specialname virtual instance void set_Item(class [mscorlib]System.Action`1<int16> u, class [mscorlib]System.Collections.Generic.List`1<int32> 'value') cil managed { ldnull throw } .method public hidebysig newslot specialname virtual static class [mscorlib]System.Collections.Generic.List`1<int32> get_Item(class [mscorlib]System.Action`1<int16> u) cil managed { ldnull throw } .method public hidebysig newslot specialname virtual static void set_Item(class [mscorlib]System.Action`1<int16> u, class [mscorlib]System.Collections.Generic.List`1<int32> 'value') cil managed { ldnull throw } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldnull throw } .property instance class [mscorlib]System.Collections.Generic.List`1<int32> Instance(class [mscorlib]System.Action`1<int16>) { .get instance class [mscorlib]System.Collections.Generic.List`1<int32> ClosedGeneric::get_Item(class [mscorlib]System.Action`1<int16>) .set instance void ClosedGeneric::set_Item(class [mscorlib]System.Action`1<int16>, class [mscorlib]System.Collections.Generic.List`1<int32>) } .property class [mscorlib]System.Collections.Generic.List`1<int32> Static(class [mscorlib]System.Action`1<int16>) { .get class [mscorlib]System.Collections.Generic.List`1<int32> ClosedGeneric::get_Item(class [mscorlib]System.Action`1<int16>) .set void ClosedGeneric::set_Item(class [mscorlib]System.Action`1<int16>, class [mscorlib]System.Collections.Generic.List`1<int32>) } } // end of class ClosedGeneric "; CompileWithCustomILSource("", ilSource, compilation => CheckInstanceAndStaticIndexers(compilation, "ClosedGeneric", "System.Collections.Generic.List<System.Int32> ClosedGeneric.this[System.Action<System.Int16> u] { get; set; }")); } [Fact] public void LoadIndexerWithRefParam() { var assembly = MetadataTestHelpers.GetSymbolForReference(TestReferences.SymbolsTests.Indexers); var @class = assembly.GlobalNamespace.GetMember<NamedTypeSymbol>("RefIndexer"); var indexer = (PropertySymbol)@class.GetMembers().Where(m => m.Kind == SymbolKind.Property).Single(); Assert.Equal(RefKind.Ref, indexer.Parameters.Single().RefKind); Assert.True(indexer.MustCallMethodsDirectly); } private static void CheckInstanceAndStaticIndexers(CSharpCompilation compilation, string className, string indexerDisplayString) { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>(className); var instanceIndexer = @class.GetIndexer<PEPropertySymbol>("Instance"); Assert.False(instanceIndexer.IsStatic); CheckIndexer(instanceIndexer, true, true, indexerDisplayString); var staticIndexer = @class.GetIndexer<PEPropertySymbol>("Static"); //not allowed in C# Assert.True(staticIndexer.IsStatic); CheckIndexer(staticIndexer, true, true, indexerDisplayString); } /// <summary> /// The accessor and the property have signatures. /// </summary> [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadAccessorPropertySignatureMismatch() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('get_Item')} .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .method public hidebysig specialname instance int32 get_Item(string s) cil managed { ldc.i4.0 ret } .property instance int32 ParameterCount(string, char) { .get instance int32 C::get_Item(string) } .method public hidebysig specialname instance int32 get_Item(string s, string c) cil managed { ldc.i4.0 ret } .property instance int32 ParameterTypes(string, char) { .get instance int32 C::get_Item(string, string) } .method public hidebysig specialname instance int32 get_Item(string s, char modopt(int32) c) cil managed { ldc.i4.0 ret } .property instance int32 ReturnType(string, char) { .get instance char C::get_Item(string, string) } .property instance int32 ParameterModopt(string, char) { .get instance int32 C::get_Item(string, char modopt(int32)) } .method public hidebysig specialname instance char get_Item(string s, string c) cil managed { ldc.i4.0 ret } .method public hidebysig specialname instance int32 modopt(int32) get_Item(string s, char c) cil managed { ldc.i4.0 ret } .property instance int32 ReturnTypeModopt(string, char) { .get instance int32 modopt(int32) C::get_Item(string, char) } } // end of class C "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); var parameterCountIndexer = @class.GetIndexer<PEPropertySymbol>("ParameterCount"); Assert.True(parameterCountIndexer.IsIndexer); Assert.True(parameterCountIndexer.MustCallMethodsDirectly); Assert.NotEqual(parameterCountIndexer.ParameterCount, parameterCountIndexer.GetMethod.ParameterCount); var parameterTypesIndexer = @class.GetIndexer<PEPropertySymbol>("ParameterTypes"); Assert.True(parameterTypesIndexer.IsIndexer); Assert.True(parameterTypesIndexer.MustCallMethodsDirectly); Assert.NotEqual(parameterTypesIndexer.Parameters.Last().Type, parameterTypesIndexer.GetMethod.Parameters.Last().Type); var returnTypeIndexer = @class.GetIndexer<PEPropertySymbol>("ReturnType"); Assert.True(returnTypeIndexer.IsIndexer); Assert.True(returnTypeIndexer.MustCallMethodsDirectly); Assert.NotEqual(returnTypeIndexer.Type, returnTypeIndexer.GetMethod.ReturnType); var parameterModoptIndexer = @class.GetIndexer<PEPropertySymbol>("ParameterModopt"); Assert.True(parameterModoptIndexer.IsIndexer); Assert.False(parameterModoptIndexer.MustCallMethodsDirectly); //NB: we allow this amount of variation (modopt is on, rather than in parameter type) Assert.NotEqual(parameterModoptIndexer.Parameters.Last().TypeWithAnnotations.CustomModifiers.Length, parameterModoptIndexer.GetMethod.Parameters.Last().TypeWithAnnotations.CustomModifiers.Length); var returnTypeModoptIndexer = @class.GetIndexer<PEPropertySymbol>("ReturnTypeModopt"); Assert.True(returnTypeModoptIndexer.IsIndexer); Assert.False(returnTypeModoptIndexer.MustCallMethodsDirectly); //NB: we allow this amount of variation (modopt is on, rather than in return type) Assert.NotEqual(returnTypeModoptIndexer.TypeWithAnnotations.CustomModifiers.Length, returnTypeModoptIndexer.GetMethod.ReturnTypeWithAnnotations.CustomModifiers.Length); }); } [ClrOnlyFact] public void LoadParameterNames() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .method public hidebysig specialname instance int32 get_Item(int32 x) cil managed { ldc.i4.0 ret } // NB: getter and setter have different parameter names .method public hidebysig specialname instance void set_Item(int32 y, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 ReadWrite(int32) { .get instance int32 C::get_Item(int32) .set instance void C::set_Item(int32, int32) } .property instance int32 ReadOnly(int32) { .get instance int32 C::get_Item(int32) } .property instance int32 WriteOnly(int32) { .set instance void C::set_Item(int32, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); var property1 = @class.GetMember<PEPropertySymbol>("ReadWrite"); var property1ParamName = property1.Parameters.Single().Name; // NOTE: prefer setter Assert.NotEqual(property1ParamName, property1.GetMethod.Parameters.Single().Name); Assert.Equal(property1ParamName, property1.SetMethod.Parameters.First().Name); var property2 = @class.GetMember<PEPropertySymbol>("ReadOnly"); var property2ParamName = property2.Parameters.Single().Name; Assert.Equal(property2ParamName, property2.GetMethod.Parameters.Single().Name); var property3 = @class.GetMember<PEPropertySymbol>("WriteOnly"); var property3ParamName = property3.Parameters.Single().Name; Assert.Equal(property3ParamName, property3.SetMethod.Parameters.First().Name); }); } /// <remarks> /// Only testing parameter count mismatch. There isn't specific handling for other /// types of bogus properties - just setter param name if setter available and getter /// param name if getter available (i.e. same as success case). /// </remarks> [ClrOnlyFact] public void LoadBogusParameterNames() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .method public hidebysig specialname instance int32 get_Item(int32 x, int32 y) cil managed { ldc.i4.0 ret } // accessor has too many parameters .property instance int32 TooMany(int32) { .get instance int32 C::get_Item(int32, int32) } // accessor has too few parameters .property instance int32 TooFew(int32, int32, int32) { .get instance int32 C::get_Item(int32, int32) } } "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); var accessor = @class.GetMember<MethodSymbol>("get_Item"); var accessParam0Name = accessor.Parameters[0].Name; var accessParam1Name = accessor.Parameters[1].Name; var property1 = @class.GetMember<PEPropertySymbol>("TooMany"); Assert.Equal(accessParam0Name, property1.Parameters[0].Name); var property2 = @class.GetMember<PEPropertySymbol>("TooFew"); var property2Params = property2.Parameters; Assert.Equal(accessParam0Name, property2Params[0].Name); Assert.Equal(accessParam1Name, property2Params[1].Name); Assert.Equal("value", property2Params[2].Name); //filler name }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadParamArrayAttribute() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('accessor')} .method public hidebysig specialname instance int32 accessor(int32[] a) cil managed { .param [1] .custom instance void [mscorlib]System.ParamArrayAttribute::.ctor() = {} ldc.i4.0 ret } .method public hidebysig specialname instance void accessor(int32[] a, int32 'value') cil managed { .param [1] .custom instance void [mscorlib]System.ParamArrayAttribute::.ctor() = {} ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 ReadWrite(int32[]) { .get instance int32 C::accessor(int32[]) .set instance void C::accessor(int32[], int32) } .property instance int32 ReadOnly(int32[]) { .get instance int32 C::accessor(int32[]) } .property instance int32 WriteOnly(int32[]) { .set instance void C::accessor(int32[], int32) } } // end of class C "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); var readWrite = @class.GetIndexer<PEPropertySymbol>("ReadWrite"); Assert.True(readWrite.IsIndexer); Assert.False(readWrite.MustCallMethodsDirectly); Assert.True(readWrite.Parameters.Last().IsParams); var readOnly = @class.GetIndexer<PEPropertySymbol>("ReadOnly"); Assert.True(readOnly.IsIndexer); Assert.False(readOnly.MustCallMethodsDirectly); Assert.True(readOnly.Parameters.Last().IsParams); var writeOnly = @class.GetIndexer<PEPropertySymbol>("WriteOnly"); Assert.True(writeOnly.IsIndexer); Assert.False(writeOnly.MustCallMethodsDirectly); Assert.True(writeOnly.Parameters.Last().IsParams); }); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadBogusParamArrayAttribute() { string ilSource = @" .class public auto ansi beforefieldinit C extends [mscorlib]System.Object { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('params')} .method public hidebysig specialname instance int32 params(int32[] a) cil managed { .param [1] .custom instance void [mscorlib]System.ParamArrayAttribute::.ctor() = {} ldc.i4.0 ret } .method public hidebysig specialname instance int32 noParams(int32[] a) cil managed { ldc.i4.0 ret } .method public hidebysig specialname instance void params(int32[] a, int32 'value') cil managed { .param [1] .custom instance void [mscorlib]System.ParamArrayAttribute::.ctor() = {} ret } .method public hidebysig specialname instance void noParams(int32[] a, int32 'value') cil managed { ret } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 OnlyGetter(int32[]) { .get instance int32 C::params(int32[]) .set instance void C::noParams(int32[], int32) } .property instance int32 OnlySetter(int32[]) { .get instance int32 C::noParams(int32[]) .set instance void C::params(int32[], int32) } } // end of class C "; CompileWithCustomILSource("", ilSource, compilation => { var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); var readWrite = @class.GetIndexer<PEPropertySymbol>("OnlyGetter"); Assert.True(readWrite.IsIndexer); Assert.True(readWrite.MustCallMethodsDirectly); Assert.False(readWrite.Parameters.Last().IsParams); //favour setter var readOnly = @class.GetIndexer<PEPropertySymbol>("OnlySetter"); Assert.True(readWrite.IsIndexer); Assert.True(readOnly.MustCallMethodsDirectly); Assert.True(readOnly.Parameters.Last().IsParams); //favour setter }); } private static void CheckIndexer(PropertySymbol indexer, bool expectGetter, bool expectSetter, string indexerDisplayString, bool suppressAssociatedPropertyCheck = false) { CheckParameterizedProperty(indexer, expectGetter, expectSetter, indexerDisplayString, true, suppressAssociatedPropertyCheck); } private static void CheckNonIndexer(PropertySymbol property, bool expectGetter, bool expectSetter, string propertyDisplayString) { CheckParameterizedProperty(property, expectGetter, expectSetter, propertyDisplayString, false, true); } private static void CheckParameterizedProperty(PropertySymbol property, bool expectGetter, bool expectSetter, string propertyDisplayString, bool expectIndexer, bool suppressAssociatedPropertyCheck) { Assert.Equal(SymbolKind.Property, property.Kind); Assert.Equal(expectIndexer, property.IsIndexer); Assert.NotEqual(expectIndexer, property.MustCallMethodsDirectly); Assert.Equal(propertyDisplayString, property.ToTestDisplayString()); if (expectGetter) { CheckAccessorShape(property.GetMethod, true, property, expectIndexer, suppressAssociatedPropertyCheck); } else { Assert.Null(property.GetMethod); } if (expectSetter) { CheckAccessorShape(property.SetMethod, false, property, expectIndexer, suppressAssociatedPropertyCheck); } else { Assert.Null(property.SetMethod); } } private static void CheckAccessorShape(MethodSymbol accessor, bool accessorIsGetMethod, PropertySymbol property, bool propertyIsIndexer, bool suppressAssociatedPropertyCheck) { Assert.NotNull(accessor); if (propertyIsIndexer) { if (!suppressAssociatedPropertyCheck) { Assert.Same(property, accessor.AssociatedSymbol); } } else { Assert.Null(accessor.AssociatedSymbol); Assert.Equal(MethodKind.Ordinary, accessor.MethodKind); } if (accessorIsGetMethod) { Assert.Equal(propertyIsIndexer ? MethodKind.PropertyGet : MethodKind.Ordinary, accessor.MethodKind); Assert.Equal(property.Type, accessor.ReturnType); Assert.Equal(property.ParameterCount, accessor.ParameterCount); } else { Assert.Equal(propertyIsIndexer ? MethodKind.PropertySet : MethodKind.Ordinary, accessor.MethodKind); Assert.Equal(SpecialType.System_Void, accessor.ReturnType.SpecialType); Assert.Equal(property.Type, accessor.Parameters.Last().Type); Assert.Equal(property.ParameterCount + 1, accessor.ParameterCount); } // NOTE: won't check last param of setter - that was handled above. for (int i = 0; i < property.ParameterCount; i++) { Assert.Equal(property.Parameters[i].Type, accessor.Parameters[i].Type); } Assert.Equal(property.IsAbstract, accessor.IsAbstract); Assert.Equal(property.IsOverride, @accessor.IsOverride); Assert.Equal(property.IsVirtual, @accessor.IsVirtual); Assert.Equal(property.IsSealed, @accessor.IsSealed); Assert.Equal(property.IsExtern, @accessor.IsExtern); } [ClrOnlyFact(ClrOnlyReason.Ilasm)] public void LoadExplicitImplementation() { string ilSource = @" .class interface public abstract auto ansi I { .custom instance void [mscorlib]System.Reflection.DefaultMemberAttribute::.ctor(string) = {string('Item')} .method public hidebysig newslot specialname abstract virtual instance int32 get_Item(int32 x) cil managed { } // end of method I::get_Item .method public hidebysig newslot specialname abstract virtual instance void set_Item(int32 x, int32 'value') cil managed { } // end of method I::set_Item .property instance int32 Item(int32) { .get instance int32 I::get_Item(int32) .set instance void I::set_Item(int32, int32) } // end of property I::Item } // end of class I .class public auto ansi beforefieldinit C extends [mscorlib]System.Object implements I { .method private hidebysig newslot specialname virtual final instance int32 I.get_Item(int32 x) cil managed { .override I::get_Item ldnull throw } .method private hidebysig newslot specialname virtual final instance void I.set_Item(int32 x, int32 'value') cil managed { .override I::set_Item ldnull throw } .method public hidebysig specialname rtspecialname instance void .ctor() cil managed { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } .property instance int32 I.Item(int32) { .get instance int32 C::I.get_Item(int32) .set instance void C::I.set_Item(int32, int32) } } // end of class C "; CompileWithCustomILSource("", ilSource, compilation => { var @interface = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("I"); var interfaceIndexer = @interface.Indexers.Single(); Assert.True(interfaceIndexer.IsIndexer); var @class = compilation.GlobalNamespace.GetMember<PENamedTypeSymbol>("C"); var classIndexer = (PropertySymbol)@class.GetMembers().Single(s => s.Kind == SymbolKind.Property); Assert.False(classIndexer.IsIndexer); Assert.Equal(classIndexer, @class.FindImplementationForInterfaceMember(interfaceIndexer)); Assert.Equal(interfaceIndexer, classIndexer.ExplicitInterfaceImplementations.Single()); }); } [Fact] public void LoadImplicitImplementation() { } [Fact] public void LoadOverriding() { } [Fact] public void LoadHiding() { } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Collections/NormalizedTextSpanCollection.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Text; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.Shared { internal class NormalizedTextSpanCollection : ReadOnlyCollection<TextSpan> { /// <summary> /// Initializes a new instance of <see cref="NormalizedTextSpanCollection"/> that is /// empty. /// </summary> public NormalizedTextSpanCollection() : base(new List<TextSpan>(0)) { } /// <summary> /// Initializes a new instance of <see cref="NormalizedTextSpanCollection"/> that contains the specified span. /// </summary> /// <param name="span">TextSpan contained by the span set.</param> public NormalizedTextSpanCollection(TextSpan span) : base(ListFromSpan(span)) { } /// <summary> /// Initializes a new instance of <see cref="NormalizedTextSpanCollection"/> that contains the specified list of spans. /// </summary> /// <param name="spans">The spans to be added.</param> /// <remarks> /// <para>The list of spans will be sorted and normalized (overlapping and adjoining spans will be combined).</para> /// <para>This constructor runs in O(N log N) time, where N = spans.Count.</para></remarks> /// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> public NormalizedTextSpanCollection(IEnumerable<TextSpan> spans) : base(NormalizedTextSpanCollection.NormalizeSpans(spans)) { // NormalizeSpans will throw if spans == null. } /// <summary> /// Finds the union of two span sets. /// </summary> /// <param name="left"> /// The first span set. /// </param> /// <param name="right"> /// The second span set. /// </param> /// <returns> /// The new span set that corresponds to the union of <paramref name="left"/> and <paramref name="right"/>. /// </returns> /// <remarks>This operator runs in O(N+M) time where N = left.Count, M = right.Count.</remarks> /// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> public static NormalizedTextSpanCollection Union(NormalizedTextSpanCollection left, NormalizedTextSpanCollection right) { if (left == null) { throw new ArgumentNullException(nameof(left)); } if (right == null) { throw new ArgumentNullException(nameof(right)); } if (left.Count == 0) { return right; } if (right.Count == 0) { return left; } var spans = new OrderedSpanList(); var index1 = 0; var index2 = 0; var start = -1; var end = int.MaxValue; while (index1 < left.Count && index2 < right.Count) { var span1 = left[index1]; var span2 = right[index2]; if (span1.Start < span2.Start) { NormalizedTextSpanCollection.UpdateSpanUnion(span1, spans, ref start, ref end); ++index1; } else { NormalizedTextSpanCollection.UpdateSpanUnion(span2, spans, ref start, ref end); ++index2; } } while (index1 < left.Count) { NormalizedTextSpanCollection.UpdateSpanUnion(left[index1], spans, ref start, ref end); ++index1; } while (index2 < right.Count) { NormalizedTextSpanCollection.UpdateSpanUnion(right[index2], spans, ref start, ref end); ++index2; } if (end != int.MaxValue) { spans.Add(TextSpan.FromBounds(start, end)); } return new NormalizedTextSpanCollection(spans); } /// <summary> /// Finds the overlap of two span sets. /// </summary> /// <param name="left">The first span set.</param> /// <param name="right">The second span set.</param> /// <returns>The new span set that corresponds to the overlap of <paramref name="left"/> and <paramref name="right"/>.</returns> /// <remarks>This operator runs in O(N+M) time where N = left.Count, M = right.Count.</remarks> /// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> public static NormalizedTextSpanCollection Overlap(NormalizedTextSpanCollection left, NormalizedTextSpanCollection right) { if (left == null) { throw new ArgumentNullException(nameof(left)); } if (right == null) { throw new ArgumentNullException(nameof(right)); } if (left.Count == 0) { return left; } if (right.Count == 0) { return right; } var spans = new OrderedSpanList(); for (int index1 = 0, index2 = 0; index1 < left.Count && index2 < right.Count;) { var span1 = left[index1]; var span2 = right[index2]; if (span1.OverlapsWith(span2)) { spans.Add(span1.Overlap(span2)!.Value); } if (span1.End < span2.End) { ++index1; } else if (span1.End == span2.End) { ++index1; ++index2; } else { ++index2; } } return new NormalizedTextSpanCollection(spans); } /// <summary> /// Finds the intersection of two span sets. /// </summary> /// <param name="left">The first span set.</param> /// <param name="right">The second span set.</param> /// <returns>The new span set that corresponds to the intersection of <paramref name="left"/> and <paramref name="right"/>.</returns> /// <remarks>This operator runs in O(N+M) time where N = left.Count, M = right.Count.</remarks> /// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> /// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> public static NormalizedTextSpanCollection Intersection(NormalizedTextSpanCollection left, NormalizedTextSpanCollection right) { if (left == null) { throw new ArgumentNullException(nameof(left)); } if (right == null) { throw new ArgumentNullException(nameof(right)); } if (left.Count == 0) { return left; } if (right.Count == 0) { return right; } var spans = new OrderedSpanList(); for (int index1 = 0, index2 = 0; (index1 < left.Count) && (index2 < right.Count);) { var span1 = left[index1]; var span2 = right[index2]; if (span1.IntersectsWith(span2)) { spans.Add(span1.Intersection(span2)!.Value); } if (span1.End < span2.End) { ++index1; } else { ++index2; } } return new NormalizedTextSpanCollection(spans); } /// <summary> /// Finds the difference between two sets. The difference is defined as everything in the first span set that is not in the second span set. /// </summary> /// <param name="left">The first span set.</param> /// <param name="right">The second span set.</param> /// <returns>The new span set that corresponds to the difference between <paramref name="left"/> and <paramref name="right"/>.</returns> /// <remarks> /// Empty spans in the second set do not affect the first set at all. This method returns empty spans in the first set that are not contained by any set in /// the second set. /// </remarks> /// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> /// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> public static NormalizedTextSpanCollection Difference(NormalizedTextSpanCollection left, NormalizedTextSpanCollection right) { if (left == null) { throw new ArgumentNullException(nameof(left)); } if (right == null) { throw new ArgumentNullException(nameof(right)); } if (left.Count == 0) { return left; } if (right.Count == 0) { return left; } var spans = new OrderedSpanList(); var index1 = 0; var index2 = 0; var lastEnd = -1; do { var span1 = left[index1]; var span2 = right[index2]; if ((span2.Length == 0) || (span1.Start >= span2.End)) { ++index2; } else if (span1.End <= span2.Start) { // lastEnd is set to the end of the previously encountered intersecting span // from right when it ended before the end of span1 (so it must still be less // than the end of span1). Debug.Assert(lastEnd < span1.End); spans.Add(TextSpan.FromBounds(Math.Max(lastEnd, span1.Start), span1.End)); ++index1; } else { // The spans intersect, so add anything from span1 that extends to the left of span2. if (span1.Start < span2.Start) { // lastEnd is set to the end of the previously encountered intersecting span // on span2, so it must be less than the start of the current span on span2. Debug.Assert(lastEnd < span2.Start); spans.Add(TextSpan.FromBounds(Math.Max(lastEnd, span1.Start), span2.Start)); } if (span1.End < span2.End) { ++index1; } else if (span1.End == span2.End) { // Both spans ended at the same place so we're done with both. ++index1; ++index2; } else { // span2 ends before span1, so keep track of where it ended so that we don't // try to add the excluded portion the next time we add a span. lastEnd = span2.End; ++index2; } } } while ((index1 < left.Count) && (index2 < right.Count)); while (index1 < left.Count) { var span1 = left[index1++]; spans.Add(TextSpan.FromBounds(Math.Max(lastEnd, span1.Start), span1.End)); } return new NormalizedTextSpanCollection(spans); } /// <summary> /// Determines whether two span sets are the same. /// </summary> /// <param name="left">The first set.</param> /// <param name="right">The second set.</param> /// <returns><c>true</c> if the two sets are equivalent, otherwise <c>false</c>.</returns> public static bool operator ==(NormalizedTextSpanCollection? left, NormalizedTextSpanCollection? right) { if (object.ReferenceEquals(left, right)) { return true; } if (left is null || right is null) { return false; } if (left.Count != right.Count) { return false; } for (var i = 0; i < left.Count; ++i) { if (left[i] != right[i]) { return false; } } return true; } /// <summary> /// Determines whether two span sets are not the same. /// </summary> /// <param name="left">The first set.</param> /// <param name="right">The second set.</param> /// <returns><c>true</c> if the two sets are not equivalent, otherwise <c>false</c>.</returns> public static bool operator !=(NormalizedTextSpanCollection? left, NormalizedTextSpanCollection? right) => !(left == right); /// <summary> /// Determines whether this span set overlaps with another span set. /// </summary> /// <param name="set">The span set to test.</param> /// <returns><c>true</c> if the span sets overlap, otherwise <c>false</c>.</returns> /// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> public bool OverlapsWith(NormalizedTextSpanCollection set) { if (set == null) { throw new ArgumentNullException(nameof(set)); } for (int index1 = 0, index2 = 0; (index1 < this.Count) && (index2 < set.Count);) { var span1 = this[index1]; var span2 = set[index2]; if (span1.OverlapsWith(span2)) { return true; } if (span1.End < span2.End) { ++index1; } else if (span1.End == span2.End) { ++index1; ++index2; } else { ++index2; } } return false; } /// <summary> /// Determines whether this span set overlaps with another span. /// </summary> /// <param name="span">The span to test.</param> /// <returns><c>true</c> if this span set overlaps with the given span, otherwise <c>false</c>.</returns> public bool OverlapsWith(TextSpan span) { // TODO: binary search for (var index = 0; index < this.Count; ++index) { if (this[index].OverlapsWith(span)) { return true; } } return false; } /// <summary> /// Determines whether this span set intersects with another span set. /// </summary> /// <param name="set">Set to test.</param> /// <returns><c>true</c> if the span sets intersect, otherwise <c>false</c>.</returns> /// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> public bool IntersectsWith(NormalizedTextSpanCollection set) { if (set == null) { throw new ArgumentNullException(nameof(set)); } for (int index1 = 0, index2 = 0; (index1 < this.Count) && (index2 < set.Count);) { var span1 = this[index1]; var span2 = set[index2]; if (span1.IntersectsWith(span2)) { return true; } if (span1.End < span2.End) { ++index1; } else { ++index2; } } return false; } /// <summary> /// Determines whether this span set intersects with another span. /// </summary> /// <returns><c>true</c> if this span set intersects with the given span, otherwise <c>false</c>.</returns> public bool IntersectsWith(TextSpan span) { // TODO: binary search for (var index = 0; index < this.Count; ++index) { if (this[index].IntersectsWith(span)) { return true; } } return false; } #region Overridden methods and operators /// <summary> /// Gets a unique hash code for the span set. /// </summary> /// <returns>A 32-bit hash code associated with the set.</returns> public override int GetHashCode() { var hc = 0; foreach (var s in this) { hc ^= s.GetHashCode(); } return hc; } /// <summary> /// Determines whether this span set is the same as another object. /// </summary> /// <param name="obj">The object to test.</param> /// <returns><c>true</c> if the two objects are equal, otherwise <c>false</c>.</returns> public override bool Equals(object? obj) { var set = obj as NormalizedTextSpanCollection; return this == set; } /// <summary> /// Provides a string representation of the set. /// </summary> /// <returns>The string representation of the set.</returns> public override string ToString() { var value = new StringBuilder("{"); foreach (var s in this) { value.Append(s.ToString()); } value.Append("}"); return value.ToString(); } #endregion // Overridden methods and operators #region Private Helpers private static IList<TextSpan> ListFromSpan(TextSpan span) { IList<TextSpan> list = new List<TextSpan>(1); list.Add(span); return list; } /// <summary> /// Private constructor for use when the span list is already normalized. /// </summary> /// <param name="normalizedSpans">An already normalized span list.</param> private NormalizedTextSpanCollection(OrderedSpanList normalizedSpans) : base(normalizedSpans) { } private static void UpdateSpanUnion(TextSpan span, IList<TextSpan> spans, ref int start, ref int end) { if (end < span.Start) { spans.Add(TextSpan.FromBounds(start, end)); start = -1; end = int.MaxValue; } if (end == int.MaxValue) { start = span.Start; end = span.End; } else { end = Math.Max(end, span.End); } } private static IList<TextSpan> NormalizeSpans(IEnumerable<TextSpan> spans) { if (spans == null) { throw new ArgumentNullException(nameof(spans)); } var sorted = new List<TextSpan>(spans); if (sorted.Count <= 1) { return sorted; } else { sorted.Sort(delegate (TextSpan s1, TextSpan s2) { return s1.Start.CompareTo(s2.Start); }); IList<TextSpan> normalized = new List<TextSpan>(sorted.Count); var oldStart = sorted[0].Start; var oldEnd = sorted[0].End; for (var i = 1; i < sorted.Count; ++i) { var newStart = sorted[i].Start; var newEnd = sorted[i].End; if (oldEnd < newStart) { normalized.Add(TextSpan.FromBounds(oldStart, oldEnd)); oldStart = newStart; oldEnd = newEnd; } else { oldEnd = Math.Max(oldEnd, newEnd); } } normalized.Add(TextSpan.FromBounds(oldStart, oldEnd)); return normalized; } } private class OrderedSpanList : List<TextSpan> { } #endregion // Private Helpers } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.Text; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.Shared { internal class NormalizedTextSpanCollection : ReadOnlyCollection<TextSpan> { /// <summary> /// Initializes a new instance of <see cref="NormalizedTextSpanCollection"/> that is /// empty. /// </summary> public NormalizedTextSpanCollection() : base(new List<TextSpan>(0)) { } /// <summary> /// Initializes a new instance of <see cref="NormalizedTextSpanCollection"/> that contains the specified span. /// </summary> /// <param name="span">TextSpan contained by the span set.</param> public NormalizedTextSpanCollection(TextSpan span) : base(ListFromSpan(span)) { } /// <summary> /// Initializes a new instance of <see cref="NormalizedTextSpanCollection"/> that contains the specified list of spans. /// </summary> /// <param name="spans">The spans to be added.</param> /// <remarks> /// <para>The list of spans will be sorted and normalized (overlapping and adjoining spans will be combined).</para> /// <para>This constructor runs in O(N log N) time, where N = spans.Count.</para></remarks> /// <exception cref="ArgumentNullException"><paramref name="spans"/> is null.</exception> public NormalizedTextSpanCollection(IEnumerable<TextSpan> spans) : base(NormalizedTextSpanCollection.NormalizeSpans(spans)) { // NormalizeSpans will throw if spans == null. } /// <summary> /// Finds the union of two span sets. /// </summary> /// <param name="left"> /// The first span set. /// </param> /// <param name="right"> /// The second span set. /// </param> /// <returns> /// The new span set that corresponds to the union of <paramref name="left"/> and <paramref name="right"/>. /// </returns> /// <remarks>This operator runs in O(N+M) time where N = left.Count, M = right.Count.</remarks> /// <exception cref="ArgumentNullException">Either <paramref name="left"/> or <paramref name="right"/> is null.</exception> public static NormalizedTextSpanCollection Union(NormalizedTextSpanCollection left, NormalizedTextSpanCollection right) { if (left == null) { throw new ArgumentNullException(nameof(left)); } if (right == null) { throw new ArgumentNullException(nameof(right)); } if (left.Count == 0) { return right; } if (right.Count == 0) { return left; } var spans = new OrderedSpanList(); var index1 = 0; var index2 = 0; var start = -1; var end = int.MaxValue; while (index1 < left.Count && index2 < right.Count) { var span1 = left[index1]; var span2 = right[index2]; if (span1.Start < span2.Start) { NormalizedTextSpanCollection.UpdateSpanUnion(span1, spans, ref start, ref end); ++index1; } else { NormalizedTextSpanCollection.UpdateSpanUnion(span2, spans, ref start, ref end); ++index2; } } while (index1 < left.Count) { NormalizedTextSpanCollection.UpdateSpanUnion(left[index1], spans, ref start, ref end); ++index1; } while (index2 < right.Count) { NormalizedTextSpanCollection.UpdateSpanUnion(right[index2], spans, ref start, ref end); ++index2; } if (end != int.MaxValue) { spans.Add(TextSpan.FromBounds(start, end)); } return new NormalizedTextSpanCollection(spans); } /// <summary> /// Finds the overlap of two span sets. /// </summary> /// <param name="left">The first span set.</param> /// <param name="right">The second span set.</param> /// <returns>The new span set that corresponds to the overlap of <paramref name="left"/> and <paramref name="right"/>.</returns> /// <remarks>This operator runs in O(N+M) time where N = left.Count, M = right.Count.</remarks> /// <exception cref="ArgumentNullException"><paramref name="left"/> or <paramref name="right"/> is null.</exception> public static NormalizedTextSpanCollection Overlap(NormalizedTextSpanCollection left, NormalizedTextSpanCollection right) { if (left == null) { throw new ArgumentNullException(nameof(left)); } if (right == null) { throw new ArgumentNullException(nameof(right)); } if (left.Count == 0) { return left; } if (right.Count == 0) { return right; } var spans = new OrderedSpanList(); for (int index1 = 0, index2 = 0; index1 < left.Count && index2 < right.Count;) { var span1 = left[index1]; var span2 = right[index2]; if (span1.OverlapsWith(span2)) { spans.Add(span1.Overlap(span2)!.Value); } if (span1.End < span2.End) { ++index1; } else if (span1.End == span2.End) { ++index1; ++index2; } else { ++index2; } } return new NormalizedTextSpanCollection(spans); } /// <summary> /// Finds the intersection of two span sets. /// </summary> /// <param name="left">The first span set.</param> /// <param name="right">The second span set.</param> /// <returns>The new span set that corresponds to the intersection of <paramref name="left"/> and <paramref name="right"/>.</returns> /// <remarks>This operator runs in O(N+M) time where N = left.Count, M = right.Count.</remarks> /// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> /// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> public static NormalizedTextSpanCollection Intersection(NormalizedTextSpanCollection left, NormalizedTextSpanCollection right) { if (left == null) { throw new ArgumentNullException(nameof(left)); } if (right == null) { throw new ArgumentNullException(nameof(right)); } if (left.Count == 0) { return left; } if (right.Count == 0) { return right; } var spans = new OrderedSpanList(); for (int index1 = 0, index2 = 0; (index1 < left.Count) && (index2 < right.Count);) { var span1 = left[index1]; var span2 = right[index2]; if (span1.IntersectsWith(span2)) { spans.Add(span1.Intersection(span2)!.Value); } if (span1.End < span2.End) { ++index1; } else { ++index2; } } return new NormalizedTextSpanCollection(spans); } /// <summary> /// Finds the difference between two sets. The difference is defined as everything in the first span set that is not in the second span set. /// </summary> /// <param name="left">The first span set.</param> /// <param name="right">The second span set.</param> /// <returns>The new span set that corresponds to the difference between <paramref name="left"/> and <paramref name="right"/>.</returns> /// <remarks> /// Empty spans in the second set do not affect the first set at all. This method returns empty spans in the first set that are not contained by any set in /// the second set. /// </remarks> /// <exception cref="ArgumentNullException"><paramref name="left"/> is null.</exception> /// <exception cref="ArgumentNullException"><paramref name="right"/> is null.</exception> public static NormalizedTextSpanCollection Difference(NormalizedTextSpanCollection left, NormalizedTextSpanCollection right) { if (left == null) { throw new ArgumentNullException(nameof(left)); } if (right == null) { throw new ArgumentNullException(nameof(right)); } if (left.Count == 0) { return left; } if (right.Count == 0) { return left; } var spans = new OrderedSpanList(); var index1 = 0; var index2 = 0; var lastEnd = -1; do { var span1 = left[index1]; var span2 = right[index2]; if ((span2.Length == 0) || (span1.Start >= span2.End)) { ++index2; } else if (span1.End <= span2.Start) { // lastEnd is set to the end of the previously encountered intersecting span // from right when it ended before the end of span1 (so it must still be less // than the end of span1). Debug.Assert(lastEnd < span1.End); spans.Add(TextSpan.FromBounds(Math.Max(lastEnd, span1.Start), span1.End)); ++index1; } else { // The spans intersect, so add anything from span1 that extends to the left of span2. if (span1.Start < span2.Start) { // lastEnd is set to the end of the previously encountered intersecting span // on span2, so it must be less than the start of the current span on span2. Debug.Assert(lastEnd < span2.Start); spans.Add(TextSpan.FromBounds(Math.Max(lastEnd, span1.Start), span2.Start)); } if (span1.End < span2.End) { ++index1; } else if (span1.End == span2.End) { // Both spans ended at the same place so we're done with both. ++index1; ++index2; } else { // span2 ends before span1, so keep track of where it ended so that we don't // try to add the excluded portion the next time we add a span. lastEnd = span2.End; ++index2; } } } while ((index1 < left.Count) && (index2 < right.Count)); while (index1 < left.Count) { var span1 = left[index1++]; spans.Add(TextSpan.FromBounds(Math.Max(lastEnd, span1.Start), span1.End)); } return new NormalizedTextSpanCollection(spans); } /// <summary> /// Determines whether two span sets are the same. /// </summary> /// <param name="left">The first set.</param> /// <param name="right">The second set.</param> /// <returns><c>true</c> if the two sets are equivalent, otherwise <c>false</c>.</returns> public static bool operator ==(NormalizedTextSpanCollection? left, NormalizedTextSpanCollection? right) { if (object.ReferenceEquals(left, right)) { return true; } if (left is null || right is null) { return false; } if (left.Count != right.Count) { return false; } for (var i = 0; i < left.Count; ++i) { if (left[i] != right[i]) { return false; } } return true; } /// <summary> /// Determines whether two span sets are not the same. /// </summary> /// <param name="left">The first set.</param> /// <param name="right">The second set.</param> /// <returns><c>true</c> if the two sets are not equivalent, otherwise <c>false</c>.</returns> public static bool operator !=(NormalizedTextSpanCollection? left, NormalizedTextSpanCollection? right) => !(left == right); /// <summary> /// Determines whether this span set overlaps with another span set. /// </summary> /// <param name="set">The span set to test.</param> /// <returns><c>true</c> if the span sets overlap, otherwise <c>false</c>.</returns> /// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> public bool OverlapsWith(NormalizedTextSpanCollection set) { if (set == null) { throw new ArgumentNullException(nameof(set)); } for (int index1 = 0, index2 = 0; (index1 < this.Count) && (index2 < set.Count);) { var span1 = this[index1]; var span2 = set[index2]; if (span1.OverlapsWith(span2)) { return true; } if (span1.End < span2.End) { ++index1; } else if (span1.End == span2.End) { ++index1; ++index2; } else { ++index2; } } return false; } /// <summary> /// Determines whether this span set overlaps with another span. /// </summary> /// <param name="span">The span to test.</param> /// <returns><c>true</c> if this span set overlaps with the given span, otherwise <c>false</c>.</returns> public bool OverlapsWith(TextSpan span) { // TODO: binary search for (var index = 0; index < this.Count; ++index) { if (this[index].OverlapsWith(span)) { return true; } } return false; } /// <summary> /// Determines whether this span set intersects with another span set. /// </summary> /// <param name="set">Set to test.</param> /// <returns><c>true</c> if the span sets intersect, otherwise <c>false</c>.</returns> /// <exception cref="ArgumentNullException"><paramref name="set"/> is null.</exception> public bool IntersectsWith(NormalizedTextSpanCollection set) { if (set == null) { throw new ArgumentNullException(nameof(set)); } for (int index1 = 0, index2 = 0; (index1 < this.Count) && (index2 < set.Count);) { var span1 = this[index1]; var span2 = set[index2]; if (span1.IntersectsWith(span2)) { return true; } if (span1.End < span2.End) { ++index1; } else { ++index2; } } return false; } /// <summary> /// Determines whether this span set intersects with another span. /// </summary> /// <returns><c>true</c> if this span set intersects with the given span, otherwise <c>false</c>.</returns> public bool IntersectsWith(TextSpan span) { // TODO: binary search for (var index = 0; index < this.Count; ++index) { if (this[index].IntersectsWith(span)) { return true; } } return false; } #region Overridden methods and operators /// <summary> /// Gets a unique hash code for the span set. /// </summary> /// <returns>A 32-bit hash code associated with the set.</returns> public override int GetHashCode() { var hc = 0; foreach (var s in this) { hc ^= s.GetHashCode(); } return hc; } /// <summary> /// Determines whether this span set is the same as another object. /// </summary> /// <param name="obj">The object to test.</param> /// <returns><c>true</c> if the two objects are equal, otherwise <c>false</c>.</returns> public override bool Equals(object? obj) { var set = obj as NormalizedTextSpanCollection; return this == set; } /// <summary> /// Provides a string representation of the set. /// </summary> /// <returns>The string representation of the set.</returns> public override string ToString() { var value = new StringBuilder("{"); foreach (var s in this) { value.Append(s.ToString()); } value.Append("}"); return value.ToString(); } #endregion // Overridden methods and operators #region Private Helpers private static IList<TextSpan> ListFromSpan(TextSpan span) { IList<TextSpan> list = new List<TextSpan>(1); list.Add(span); return list; } /// <summary> /// Private constructor for use when the span list is already normalized. /// </summary> /// <param name="normalizedSpans">An already normalized span list.</param> private NormalizedTextSpanCollection(OrderedSpanList normalizedSpans) : base(normalizedSpans) { } private static void UpdateSpanUnion(TextSpan span, IList<TextSpan> spans, ref int start, ref int end) { if (end < span.Start) { spans.Add(TextSpan.FromBounds(start, end)); start = -1; end = int.MaxValue; } if (end == int.MaxValue) { start = span.Start; end = span.End; } else { end = Math.Max(end, span.End); } } private static IList<TextSpan> NormalizeSpans(IEnumerable<TextSpan> spans) { if (spans == null) { throw new ArgumentNullException(nameof(spans)); } var sorted = new List<TextSpan>(spans); if (sorted.Count <= 1) { return sorted; } else { sorted.Sort(delegate (TextSpan s1, TextSpan s2) { return s1.Start.CompareTo(s2.Start); }); IList<TextSpan> normalized = new List<TextSpan>(sorted.Count); var oldStart = sorted[0].Start; var oldEnd = sorted[0].End; for (var i = 1; i < sorted.Count; ++i) { var newStart = sorted[i].Start; var newEnd = sorted[i].End; if (oldEnd < newStart) { normalized.Add(TextSpan.FromBounds(oldStart, oldEnd)); oldStart = newStart; oldEnd = newEnd; } else { oldEnd = Math.Max(oldEnd, newEnd); } } normalized.Add(TextSpan.FromBounds(oldStart, oldEnd)); return normalized; } } private class OrderedSpanList : List<TextSpan> { } #endregion // Private Helpers } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Features/CSharp/Portable/ConvertIfToSwitch/CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Operations; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.ConvertIfToSwitch { using static SyntaxFactory; internal sealed partial class CSharpConvertIfToSwitchCodeRefactoringProvider { private static readonly Dictionary<BinaryOperatorKind, SyntaxKind> s_operatorMap = new Dictionary<BinaryOperatorKind, SyntaxKind> { { BinaryOperatorKind.LessThan, SyntaxKind.LessThanToken }, { BinaryOperatorKind.GreaterThan, SyntaxKind.GreaterThanToken }, { BinaryOperatorKind.LessThanOrEqual, SyntaxKind.LessThanEqualsToken }, { BinaryOperatorKind.GreaterThanOrEqual, SyntaxKind.GreaterThanEqualsToken }, }; public override SyntaxNode CreateSwitchExpressionStatement(SyntaxNode target, ImmutableArray<AnalyzedSwitchSection> sections, Feature feature) { return ReturnStatement( SwitchExpression( (ExpressionSyntax)target, SeparatedList(sections.Select(section => AsSwitchExpressionArmSyntax(section, feature))))); } private static SwitchExpressionArmSyntax AsSwitchExpressionArmSyntax(AnalyzedSwitchSection section, Feature feature) { if (section.Labels.IsDefault) return SwitchExpressionArm(DiscardPattern(), AsExpressionSyntax(section.Body)); var pattern = AsPatternSyntax(section.Labels[0].Pattern, feature); var whenClause = AsWhenClause(section.Labels[0]); Debug.Assert(whenClause == null || section.Labels.Length == 1, "We shouldn't have guards when we're combining multiple cases into a single arm"); for (var i = 1; i < section.Labels.Length; i++) { var label = section.Labels[i]; Debug.Assert(label.Guards.Length == 0, "We shouldn't have guards when we're combining multiple cases into a single arm"); var nextPattern = AsPatternSyntax(label.Pattern, feature); pattern = BinaryPattern(SyntaxKind.OrPattern, pattern.Parenthesize(), nextPattern.Parenthesize()); } return SwitchExpressionArm(pattern, whenClause, AsExpressionSyntax(section.Body)); } private static ExpressionSyntax AsExpressionSyntax(IOperation operation) => operation switch { IReturnOperation { ReturnedValue: { } value } => (ExpressionSyntax)value.Syntax, IThrowOperation { Exception: { } exception } => ThrowExpression((ExpressionSyntax)exception.Syntax), IBlockOperation op => AsExpressionSyntax(op.Operations.Single()), var v => throw ExceptionUtilities.UnexpectedValue(v.Kind) }; public override SyntaxNode CreateSwitchStatement(IfStatementSyntax ifStatement, SyntaxNode expression, IEnumerable<SyntaxNode> sectionList) { var block = ifStatement.Statement as BlockSyntax; return SwitchStatement( switchKeyword: Token(SyntaxKind.SwitchKeyword).WithTriviaFrom(ifStatement.IfKeyword), openParenToken: ifStatement.OpenParenToken, expression: (ExpressionSyntax)expression, closeParenToken: ifStatement.CloseParenToken.WithPrependedLeadingTrivia(ElasticMarker), openBraceToken: block?.OpenBraceToken ?? Token(SyntaxKind.OpenBraceToken), sections: List(sectionList.Cast<SwitchSectionSyntax>()), closeBraceToken: block?.CloseBraceToken.WithoutLeadingTrivia() ?? Token(SyntaxKind.CloseBraceToken)); } private static WhenClauseSyntax? AsWhenClause(AnalyzedSwitchLabel label) => AsWhenClause(label.Guards .Select(e => e.WalkUpParentheses()) .AggregateOrDefault((prev, current) => BinaryExpression(SyntaxKind.LogicalAndExpression, prev, current))); private static WhenClauseSyntax? AsWhenClause(ExpressionSyntax? expression) => expression is null ? null : WhenClause(expression); public override SyntaxNode AsSwitchLabelSyntax(AnalyzedSwitchLabel label, Feature feature) => CasePatternSwitchLabel( AsPatternSyntax(label.Pattern, feature), AsWhenClause(label), Token(SyntaxKind.ColonToken)); private static PatternSyntax AsPatternSyntax(AnalyzedPattern pattern, Feature feature) => pattern switch { AnalyzedPattern.And p => BinaryPattern(SyntaxKind.AndPattern, AsPatternSyntax(p.LeftPattern, feature).Parenthesize(), AsPatternSyntax(p.RightPattern, feature).Parenthesize()), AnalyzedPattern.Constant p => ConstantPattern(p.ExpressionSyntax), AnalyzedPattern.Source p => p.PatternSyntax, AnalyzedPattern.Type p when feature.HasFlag(Feature.TypePattern) => TypePattern((TypeSyntax)p.IsExpressionSyntax.Right), AnalyzedPattern.Type p => DeclarationPattern((TypeSyntax)p.IsExpressionSyntax.Right, DiscardDesignation()), AnalyzedPattern.Relational p => RelationalPattern(Token(s_operatorMap[p.OperatorKind]), p.Value), var p => throw ExceptionUtilities.UnexpectedValue(p) }; public override IEnumerable<SyntaxNode> AsSwitchSectionStatements(IOperation operation) { var node = operation.Syntax; Debug.Assert(operation.SemanticModel is not null); var requiresBreak = operation.SemanticModel.AnalyzeControlFlow(node).EndPointIsReachable; var requiresBlock = !operation.SemanticModel.AnalyzeDataFlow(node).VariablesDeclared.IsDefaultOrEmpty; var statements = ArrayBuilder<SyntaxNode>.GetInstance(); if (node is BlockSyntax block) { if (block.Statements.Count == 0) { statements.Add(BreakStatement()); } else if (requiresBlock) { statements.Add(requiresBreak ? block.AddStatements(BreakStatement()) : block); } else { statements.AddRange(block.Statements); if (requiresBreak) { statements.Add(BreakStatement().WithLeadingTrivia(block.CloseBraceToken.LeadingTrivia)); } } } else { statements.Add(node); if (requiresBreak) { statements.Add(BreakStatement()); } } return statements.ToArrayAndFree(); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Operations; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.ConvertIfToSwitch { using static SyntaxFactory; internal sealed partial class CSharpConvertIfToSwitchCodeRefactoringProvider { private static readonly Dictionary<BinaryOperatorKind, SyntaxKind> s_operatorMap = new Dictionary<BinaryOperatorKind, SyntaxKind> { { BinaryOperatorKind.LessThan, SyntaxKind.LessThanToken }, { BinaryOperatorKind.GreaterThan, SyntaxKind.GreaterThanToken }, { BinaryOperatorKind.LessThanOrEqual, SyntaxKind.LessThanEqualsToken }, { BinaryOperatorKind.GreaterThanOrEqual, SyntaxKind.GreaterThanEqualsToken }, }; public override SyntaxNode CreateSwitchExpressionStatement(SyntaxNode target, ImmutableArray<AnalyzedSwitchSection> sections, Feature feature) { return ReturnStatement( SwitchExpression( (ExpressionSyntax)target, SeparatedList(sections.Select(section => AsSwitchExpressionArmSyntax(section, feature))))); } private static SwitchExpressionArmSyntax AsSwitchExpressionArmSyntax(AnalyzedSwitchSection section, Feature feature) { if (section.Labels.IsDefault) return SwitchExpressionArm(DiscardPattern(), AsExpressionSyntax(section.Body)); var pattern = AsPatternSyntax(section.Labels[0].Pattern, feature); var whenClause = AsWhenClause(section.Labels[0]); Debug.Assert(whenClause == null || section.Labels.Length == 1, "We shouldn't have guards when we're combining multiple cases into a single arm"); for (var i = 1; i < section.Labels.Length; i++) { var label = section.Labels[i]; Debug.Assert(label.Guards.Length == 0, "We shouldn't have guards when we're combining multiple cases into a single arm"); var nextPattern = AsPatternSyntax(label.Pattern, feature); pattern = BinaryPattern(SyntaxKind.OrPattern, pattern.Parenthesize(), nextPattern.Parenthesize()); } return SwitchExpressionArm(pattern, whenClause, AsExpressionSyntax(section.Body)); } private static ExpressionSyntax AsExpressionSyntax(IOperation operation) => operation switch { IReturnOperation { ReturnedValue: { } value } => (ExpressionSyntax)value.Syntax, IThrowOperation { Exception: { } exception } => ThrowExpression((ExpressionSyntax)exception.Syntax), IBlockOperation op => AsExpressionSyntax(op.Operations.Single()), var v => throw ExceptionUtilities.UnexpectedValue(v.Kind) }; public override SyntaxNode CreateSwitchStatement(IfStatementSyntax ifStatement, SyntaxNode expression, IEnumerable<SyntaxNode> sectionList) { var block = ifStatement.Statement as BlockSyntax; return SwitchStatement( switchKeyword: Token(SyntaxKind.SwitchKeyword).WithTriviaFrom(ifStatement.IfKeyword), openParenToken: ifStatement.OpenParenToken, expression: (ExpressionSyntax)expression, closeParenToken: ifStatement.CloseParenToken.WithPrependedLeadingTrivia(ElasticMarker), openBraceToken: block?.OpenBraceToken ?? Token(SyntaxKind.OpenBraceToken), sections: List(sectionList.Cast<SwitchSectionSyntax>()), closeBraceToken: block?.CloseBraceToken.WithoutLeadingTrivia() ?? Token(SyntaxKind.CloseBraceToken)); } private static WhenClauseSyntax? AsWhenClause(AnalyzedSwitchLabel label) => AsWhenClause(label.Guards .Select(e => e.WalkUpParentheses()) .AggregateOrDefault((prev, current) => BinaryExpression(SyntaxKind.LogicalAndExpression, prev, current))); private static WhenClauseSyntax? AsWhenClause(ExpressionSyntax? expression) => expression is null ? null : WhenClause(expression); public override SyntaxNode AsSwitchLabelSyntax(AnalyzedSwitchLabel label, Feature feature) => CasePatternSwitchLabel( AsPatternSyntax(label.Pattern, feature), AsWhenClause(label), Token(SyntaxKind.ColonToken)); private static PatternSyntax AsPatternSyntax(AnalyzedPattern pattern, Feature feature) => pattern switch { AnalyzedPattern.And p => BinaryPattern(SyntaxKind.AndPattern, AsPatternSyntax(p.LeftPattern, feature).Parenthesize(), AsPatternSyntax(p.RightPattern, feature).Parenthesize()), AnalyzedPattern.Constant p => ConstantPattern(p.ExpressionSyntax), AnalyzedPattern.Source p => p.PatternSyntax, AnalyzedPattern.Type p when feature.HasFlag(Feature.TypePattern) => TypePattern((TypeSyntax)p.IsExpressionSyntax.Right), AnalyzedPattern.Type p => DeclarationPattern((TypeSyntax)p.IsExpressionSyntax.Right, DiscardDesignation()), AnalyzedPattern.Relational p => RelationalPattern(Token(s_operatorMap[p.OperatorKind]), p.Value), var p => throw ExceptionUtilities.UnexpectedValue(p) }; public override IEnumerable<SyntaxNode> AsSwitchSectionStatements(IOperation operation) { var node = operation.Syntax; Debug.Assert(operation.SemanticModel is not null); var requiresBreak = operation.SemanticModel.AnalyzeControlFlow(node).EndPointIsReachable; var requiresBlock = !operation.SemanticModel.AnalyzeDataFlow(node).VariablesDeclared.IsDefaultOrEmpty; var statements = ArrayBuilder<SyntaxNode>.GetInstance(); if (node is BlockSyntax block) { if (block.Statements.Count == 0) { statements.Add(BreakStatement()); } else if (requiresBlock) { statements.Add(requiresBreak ? block.AddStatements(BreakStatement()) : block); } else { statements.AddRange(block.Statements); if (requiresBreak) { statements.Add(BreakStatement().WithLeadingTrivia(block.CloseBraceToken.LeadingTrivia)); } } } else { statements.Add(node); if (requiresBreak) { statements.Add(BreakStatement()); } } return statements.ToArrayAndFree(); } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/EditorFeatures/CSharpTest/Completion/CompletionProviders/SnippetCompletionProviderTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Composition; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Completion; using Microsoft.CodeAnalysis.CSharp.Completion.Providers; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Snippets; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Completion.CompletionProviders { public class SnippetCompletionProviderTests : AbstractCSharpCompletionProviderTests { internal override Type GetCompletionProviderType() => typeof(SnippetCompletionProvider); protected override TestComposition GetComposition() => base.GetComposition().AddParts(typeof(MockSnippetInfoService)); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsInEmptyFile() => await VerifyItemExistsAsync(@"$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetDescriptions() => await VerifyItemExistsAsync(@"$$", MockSnippetInfoService.SnippetShortcut, MockSnippetInfoService.SnippetTitle + Environment.NewLine + MockSnippetInfoService.SnippetDescription + Environment.NewLine + string.Format(FeaturesResources.Note_colon_Tab_twice_to_insert_the_0_snippet, MockSnippetInfoService.SnippetShortcut), SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsInNamespace() => await VerifyItemExistsAsync(@"namespace NS { $$ }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsInClass() => await VerifyItemExistsAsync(@"namespace NS { class C { $$ } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsInMethod() => await VerifyItemExistsAsync(@"namespace NS { class C { void M() { $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsNotInLocalDeclarationIdentifier() => await VerifyItemIsAbsentAsync(@"namespace NS { class C { void M() { int $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsNotInEnum() => await VerifyItemIsAbsentAsync(@"namespace NS { enum E { $$ } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsInExpression() => await VerifyItemExistsAsync(@"namespace NS { class C { void M() { bool b = true && $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] [WorkItem(608860, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/608860")] public async Task SnippetsInPreProcessorContextWhenShortcutBeginsWithHash() => await VerifyItemExistsAsync(@"#$$", MockSnippetInfoService.PreProcessorSnippetShortcut.Substring(1), sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] [WorkItem(608860, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/608860")] public async Task SnippetsNotInPreProcessorContextWhenShortcutDoesNotBeginWithHash() => await VerifyItemIsAbsentAsync(@"#$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] [WorkItem(770156, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/770156")] public async Task SnippetsNotInPreProcessorContextDirectiveNameAlreadyTyped() => await VerifyItemIsAbsentAsync(@"#region $$", MockSnippetInfoService.PreProcessorSnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] [WorkItem(839555, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/839555")] public async Task ShowRegionSnippetWithHashRTyped() => await VerifyItemExistsAsync(@"#r$$", MockSnippetInfoService.PreProcessorSnippetShortcut.Substring(1), sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsInLineSpanDirective() => await VerifyItemIsAbsentAsync(@"#line (1, 2) - (3, 4) $$", MockSnippetInfoService.PreProcessorSnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [WorkItem(968256, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/968256")] [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task ShowSnippetsFromOtherContext() { var markup = @"<Workspace> <Project Language=""C#"" CommonReferences=""true"" AssemblyName=""Proj1""> <Document FilePath=""CurrentDocument.cs""><![CDATA[ class C { #if GOO $$ #endif } ]]> </Document> </Project> <Project Language=""C#"" CommonReferences=""true"" AssemblyName=""Proj2"" PreprocessorSymbols=""GOO""> <Document IsLinkFile=""true"" LinkAssemblyName=""Proj1"" LinkFilePath=""CurrentDocument.cs""/> </Project> </Workspace>"; await VerifyItemInLinkedFilesAsync(markup, MockSnippetInfoService.SnippetShortcut, null); } [WorkItem(1140893, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1140893")] [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task CommitWithEnterObeysOption() { await VerifySendEnterThroughToEnterAsync("$$", "SnippetShortcu", sendThroughEnterOption: EnterKeyRule.Always, expected: true); await VerifySendEnterThroughToEnterAsync("$$", "SnippetShortcut", sendThroughEnterOption: EnterKeyRule.Always, expected: true); await VerifySendEnterThroughToEnterAsync("$$", "SnippetShortcu", sendThroughEnterOption: EnterKeyRule.AfterFullyTypedWord, expected: false); await VerifySendEnterThroughToEnterAsync("$$", "SnippetShortcut", sendThroughEnterOption: EnterKeyRule.AfterFullyTypedWord, expected: true); await VerifySendEnterThroughToEnterAsync("$$", "SnippetShortcu", sendThroughEnterOption: EnterKeyRule.Never, expected: false); await VerifySendEnterThroughToEnterAsync("$$", "SnippetShortcut", sendThroughEnterOption: EnterKeyRule.Never, expected: false); } [Fact, Trait(Traits.Feature, Traits.Features.Completion)] [WorkItem(6405, "https://github.com/dotnet/roslyn/issues/6405")] public async Task SnippetsNotInPreProcessorContextForScriptDirectives() { await VerifyItemIsAbsentAsync(@"#r f$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Script); await VerifyItemIsAbsentAsync(@"#load f$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Script); await VerifyItemIsAbsentAsync(@"#!$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Script); } [ExportLanguageService(typeof(ISnippetInfoService), LanguageNames.CSharp, ServiceLayer.Test), Shared, PartNotDiscoverable] private class MockSnippetInfoService : ISnippetInfoService { internal const string SnippetShortcut = nameof(SnippetShortcut); internal const string SnippetDescription = nameof(SnippetDescription); internal const string SnippetTitle = nameof(SnippetTitle); internal const string SnippetPath = nameof(SnippetPath); internal const string PreProcessorSnippetShortcut = "#PreProcessorSnippetShortcut"; internal const string PreProcessorSnippetDescription = nameof(PreProcessorSnippetDescription); internal const string PreProcessorSnippetTitle = "#PreProcessorSnippetTitle"; internal const string PreProcessorSnippetPath = nameof(PreProcessorSnippetPath); [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public MockSnippetInfoService() { } public IEnumerable<SnippetInfo> GetSnippetsIfAvailable() { return new List<SnippetInfo> { new SnippetInfo(SnippetShortcut, SnippetTitle, SnippetDescription, SnippetPath), new SnippetInfo(PreProcessorSnippetShortcut, PreProcessorSnippetTitle, PreProcessorSnippetDescription, PreProcessorSnippetPath) }; } public bool SnippetShortcutExists_NonBlocking(string shortcut) { return string.Equals(shortcut, SnippetShortcut, StringComparison.OrdinalIgnoreCase) || string.Equals(shortcut, PreProcessorSnippetShortcut, StringComparison.OrdinalIgnoreCase); } public bool ShouldFormatSnippet(SnippetInfo snippetInfo) => false; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Composition; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Completion; using Microsoft.CodeAnalysis.CSharp.Completion.Providers; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Snippets; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Completion.CompletionProviders { public class SnippetCompletionProviderTests : AbstractCSharpCompletionProviderTests { internal override Type GetCompletionProviderType() => typeof(SnippetCompletionProvider); protected override TestComposition GetComposition() => base.GetComposition().AddParts(typeof(MockSnippetInfoService)); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsInEmptyFile() => await VerifyItemExistsAsync(@"$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetDescriptions() => await VerifyItemExistsAsync(@"$$", MockSnippetInfoService.SnippetShortcut, MockSnippetInfoService.SnippetTitle + Environment.NewLine + MockSnippetInfoService.SnippetDescription + Environment.NewLine + string.Format(FeaturesResources.Note_colon_Tab_twice_to_insert_the_0_snippet, MockSnippetInfoService.SnippetShortcut), SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsInNamespace() => await VerifyItemExistsAsync(@"namespace NS { $$ }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsInClass() => await VerifyItemExistsAsync(@"namespace NS { class C { $$ } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsInMethod() => await VerifyItemExistsAsync(@"namespace NS { class C { void M() { $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsNotInLocalDeclarationIdentifier() => await VerifyItemIsAbsentAsync(@"namespace NS { class C { void M() { int $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsNotInEnum() => await VerifyItemIsAbsentAsync(@"namespace NS { enum E { $$ } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsInExpression() => await VerifyItemExistsAsync(@"namespace NS { class C { void M() { bool b = true && $$ } } }", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] [WorkItem(608860, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/608860")] public async Task SnippetsInPreProcessorContextWhenShortcutBeginsWithHash() => await VerifyItemExistsAsync(@"#$$", MockSnippetInfoService.PreProcessorSnippetShortcut.Substring(1), sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] [WorkItem(608860, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/608860")] public async Task SnippetsNotInPreProcessorContextWhenShortcutDoesNotBeginWithHash() => await VerifyItemIsAbsentAsync(@"#$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] [WorkItem(770156, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/770156")] public async Task SnippetsNotInPreProcessorContextDirectiveNameAlreadyTyped() => await VerifyItemIsAbsentAsync(@"#region $$", MockSnippetInfoService.PreProcessorSnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] [WorkItem(839555, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/839555")] public async Task ShowRegionSnippetWithHashRTyped() => await VerifyItemExistsAsync(@"#r$$", MockSnippetInfoService.PreProcessorSnippetShortcut.Substring(1), sourceCodeKind: SourceCodeKind.Regular); [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task SnippetsInLineSpanDirective() => await VerifyItemIsAbsentAsync(@"#line (1, 2) - (3, 4) $$", MockSnippetInfoService.PreProcessorSnippetShortcut, sourceCodeKind: SourceCodeKind.Regular); [WorkItem(968256, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/968256")] [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task ShowSnippetsFromOtherContext() { var markup = @"<Workspace> <Project Language=""C#"" CommonReferences=""true"" AssemblyName=""Proj1""> <Document FilePath=""CurrentDocument.cs""><![CDATA[ class C { #if GOO $$ #endif } ]]> </Document> </Project> <Project Language=""C#"" CommonReferences=""true"" AssemblyName=""Proj2"" PreprocessorSymbols=""GOO""> <Document IsLinkFile=""true"" LinkAssemblyName=""Proj1"" LinkFilePath=""CurrentDocument.cs""/> </Project> </Workspace>"; await VerifyItemInLinkedFilesAsync(markup, MockSnippetInfoService.SnippetShortcut, null); } [WorkItem(1140893, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/1140893")] [Fact, Trait(Traits.Feature, Traits.Features.Completion)] public async Task CommitWithEnterObeysOption() { await VerifySendEnterThroughToEnterAsync("$$", "SnippetShortcu", sendThroughEnterOption: EnterKeyRule.Always, expected: true); await VerifySendEnterThroughToEnterAsync("$$", "SnippetShortcut", sendThroughEnterOption: EnterKeyRule.Always, expected: true); await VerifySendEnterThroughToEnterAsync("$$", "SnippetShortcu", sendThroughEnterOption: EnterKeyRule.AfterFullyTypedWord, expected: false); await VerifySendEnterThroughToEnterAsync("$$", "SnippetShortcut", sendThroughEnterOption: EnterKeyRule.AfterFullyTypedWord, expected: true); await VerifySendEnterThroughToEnterAsync("$$", "SnippetShortcu", sendThroughEnterOption: EnterKeyRule.Never, expected: false); await VerifySendEnterThroughToEnterAsync("$$", "SnippetShortcut", sendThroughEnterOption: EnterKeyRule.Never, expected: false); } [Fact, Trait(Traits.Feature, Traits.Features.Completion)] [WorkItem(6405, "https://github.com/dotnet/roslyn/issues/6405")] public async Task SnippetsNotInPreProcessorContextForScriptDirectives() { await VerifyItemIsAbsentAsync(@"#r f$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Script); await VerifyItemIsAbsentAsync(@"#load f$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Script); await VerifyItemIsAbsentAsync(@"#!$$", MockSnippetInfoService.SnippetShortcut, sourceCodeKind: SourceCodeKind.Script); } [ExportLanguageService(typeof(ISnippetInfoService), LanguageNames.CSharp, ServiceLayer.Test), Shared, PartNotDiscoverable] private class MockSnippetInfoService : ISnippetInfoService { internal const string SnippetShortcut = nameof(SnippetShortcut); internal const string SnippetDescription = nameof(SnippetDescription); internal const string SnippetTitle = nameof(SnippetTitle); internal const string SnippetPath = nameof(SnippetPath); internal const string PreProcessorSnippetShortcut = "#PreProcessorSnippetShortcut"; internal const string PreProcessorSnippetDescription = nameof(PreProcessorSnippetDescription); internal const string PreProcessorSnippetTitle = "#PreProcessorSnippetTitle"; internal const string PreProcessorSnippetPath = nameof(PreProcessorSnippetPath); [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public MockSnippetInfoService() { } public IEnumerable<SnippetInfo> GetSnippetsIfAvailable() { return new List<SnippetInfo> { new SnippetInfo(SnippetShortcut, SnippetTitle, SnippetDescription, SnippetPath), new SnippetInfo(PreProcessorSnippetShortcut, PreProcessorSnippetTitle, PreProcessorSnippetDescription, PreProcessorSnippetPath) }; } public bool SnippetShortcutExists_NonBlocking(string shortcut) { return string.Equals(shortcut, SnippetShortcut, StringComparison.OrdinalIgnoreCase) || string.Equals(shortcut, PreProcessorSnippetShortcut, StringComparison.OrdinalIgnoreCase); } public bool ShouldFormatSnippet(SnippetInfo snippetInfo) => false; } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/Core/Portable/Desktop/AssemblyPortabilityPolicy.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.IO; using System.Xml; namespace Microsoft.CodeAnalysis { /// <summary> /// Policy to be used when matching assembly reference to an assembly definition across platforms. /// </summary> internal struct AssemblyPortabilityPolicy : IEquatable<AssemblyPortabilityPolicy> { // 7cec85d7bea7798e (System, System.Core) public readonly bool SuppressSilverlightPlatformAssembliesPortability; // 31bf3856ad364e35 (Microsoft.VisualBasic, System.ComponentModel.Composition) public readonly bool SuppressSilverlightLibraryAssembliesPortability; public AssemblyPortabilityPolicy( bool suppressSilverlightPlatformAssembliesPortability, bool suppressSilverlightLibraryAssembliesPortability) { this.SuppressSilverlightLibraryAssembliesPortability = suppressSilverlightLibraryAssembliesPortability; this.SuppressSilverlightPlatformAssembliesPortability = suppressSilverlightPlatformAssembliesPortability; } public override bool Equals(object obj) { return obj is AssemblyPortabilityPolicy && Equals((AssemblyPortabilityPolicy)obj); } public bool Equals(AssemblyPortabilityPolicy other) { return this.SuppressSilverlightLibraryAssembliesPortability == other.SuppressSilverlightLibraryAssembliesPortability && this.SuppressSilverlightPlatformAssembliesPortability == other.SuppressSilverlightPlatformAssembliesPortability; } public override int GetHashCode() { return (this.SuppressSilverlightLibraryAssembliesPortability ? 1 : 0) | (this.SuppressSilverlightPlatformAssembliesPortability ? 2 : 0); } private static bool ReadToChild(XmlReader reader, int depth, string elementName, string elementNamespace = "") { return reader.ReadToDescendant(elementName, elementNamespace) && reader.Depth == depth; } private static readonly XmlReaderSettings s_xmlSettings = new XmlReaderSettings() { DtdProcessing = DtdProcessing.Prohibit, }; internal static AssemblyPortabilityPolicy LoadFromXml(Stream input) { // Note: Unlike Fusion XML reader the XmlReader doesn't allow whitespace in front of <?xml version=""1.0"" encoding=""utf-8"" ?> const string ns = "urn:schemas-microsoft-com:asm.v1"; using (XmlReader xml = XmlReader.Create(input, s_xmlSettings)) { if (!ReadToChild(xml, 0, "configuration") || !ReadToChild(xml, 1, "runtime") || !ReadToChild(xml, 2, "assemblyBinding", ns) || !ReadToChild(xml, 3, "supportPortability", ns)) { return default(AssemblyPortabilityPolicy); } // 31bf3856ad364e35 bool suppressLibrary = false; // 7cec85d7bea7798e bool suppressPlatform = false; do { // see CNodeFactory::ProcessSupportPortabilityTag in fusion\inc\nodefact.cpp for details // - unrecognized attributes ignored. // - syntax errors within tags causes this tag to be ignored (but not reject entire app.config) // - multiple <supportPortability> tags ok (if two specify same PKT, all but (implementation defined) one ignored.) string pkt = xml.GetAttribute("PKT"); string enableAttribute = xml.GetAttribute("enable"); bool? enable = string.Equals(enableAttribute, "false", StringComparison.OrdinalIgnoreCase) ? false : string.Equals(enableAttribute, "true", StringComparison.OrdinalIgnoreCase) ? true : (bool?)null; if (enable != null) { if (string.Equals(pkt, "31bf3856ad364e35", StringComparison.OrdinalIgnoreCase)) { suppressLibrary = !enable.Value; } else if (string.Equals(pkt, "7cec85d7bea7798e", StringComparison.OrdinalIgnoreCase)) { suppressPlatform = !enable.Value; } } } while (xml.ReadToNextSibling("supportPortability", ns)); return new AssemblyPortabilityPolicy(suppressPlatform, suppressLibrary); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.IO; using System.Xml; namespace Microsoft.CodeAnalysis { /// <summary> /// Policy to be used when matching assembly reference to an assembly definition across platforms. /// </summary> internal struct AssemblyPortabilityPolicy : IEquatable<AssemblyPortabilityPolicy> { // 7cec85d7bea7798e (System, System.Core) public readonly bool SuppressSilverlightPlatformAssembliesPortability; // 31bf3856ad364e35 (Microsoft.VisualBasic, System.ComponentModel.Composition) public readonly bool SuppressSilverlightLibraryAssembliesPortability; public AssemblyPortabilityPolicy( bool suppressSilverlightPlatformAssembliesPortability, bool suppressSilverlightLibraryAssembliesPortability) { this.SuppressSilverlightLibraryAssembliesPortability = suppressSilverlightLibraryAssembliesPortability; this.SuppressSilverlightPlatformAssembliesPortability = suppressSilverlightPlatformAssembliesPortability; } public override bool Equals(object obj) { return obj is AssemblyPortabilityPolicy && Equals((AssemblyPortabilityPolicy)obj); } public bool Equals(AssemblyPortabilityPolicy other) { return this.SuppressSilverlightLibraryAssembliesPortability == other.SuppressSilverlightLibraryAssembliesPortability && this.SuppressSilverlightPlatformAssembliesPortability == other.SuppressSilverlightPlatformAssembliesPortability; } public override int GetHashCode() { return (this.SuppressSilverlightLibraryAssembliesPortability ? 1 : 0) | (this.SuppressSilverlightPlatformAssembliesPortability ? 2 : 0); } private static bool ReadToChild(XmlReader reader, int depth, string elementName, string elementNamespace = "") { return reader.ReadToDescendant(elementName, elementNamespace) && reader.Depth == depth; } private static readonly XmlReaderSettings s_xmlSettings = new XmlReaderSettings() { DtdProcessing = DtdProcessing.Prohibit, }; internal static AssemblyPortabilityPolicy LoadFromXml(Stream input) { // Note: Unlike Fusion XML reader the XmlReader doesn't allow whitespace in front of <?xml version=""1.0"" encoding=""utf-8"" ?> const string ns = "urn:schemas-microsoft-com:asm.v1"; using (XmlReader xml = XmlReader.Create(input, s_xmlSettings)) { if (!ReadToChild(xml, 0, "configuration") || !ReadToChild(xml, 1, "runtime") || !ReadToChild(xml, 2, "assemblyBinding", ns) || !ReadToChild(xml, 3, "supportPortability", ns)) { return default(AssemblyPortabilityPolicy); } // 31bf3856ad364e35 bool suppressLibrary = false; // 7cec85d7bea7798e bool suppressPlatform = false; do { // see CNodeFactory::ProcessSupportPortabilityTag in fusion\inc\nodefact.cpp for details // - unrecognized attributes ignored. // - syntax errors within tags causes this tag to be ignored (but not reject entire app.config) // - multiple <supportPortability> tags ok (if two specify same PKT, all but (implementation defined) one ignored.) string pkt = xml.GetAttribute("PKT"); string enableAttribute = xml.GetAttribute("enable"); bool? enable = string.Equals(enableAttribute, "false", StringComparison.OrdinalIgnoreCase) ? false : string.Equals(enableAttribute, "true", StringComparison.OrdinalIgnoreCase) ? true : (bool?)null; if (enable != null) { if (string.Equals(pkt, "31bf3856ad364e35", StringComparison.OrdinalIgnoreCase)) { suppressLibrary = !enable.Value; } else if (string.Equals(pkt, "7cec85d7bea7798e", StringComparison.OrdinalIgnoreCase)) { suppressPlatform = !enable.Value; } } } while (xml.ReadToNextSibling("supportPortability", ns)); return new AssemblyPortabilityPolicy(suppressPlatform, suppressLibrary); } } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Workspaces/MSBuildTest/Resources/NetCoreMultiTFM_ProjectReferenceToFSharp/csharplib/Class1.cs
using System; namespace csharplib { public class Class1 { } }
using System; namespace csharplib { public class Class1 { } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/Test/Resources/Core/SymbolsTests/NoPia/Pia1.dll
MZ@ !L!This program cannot be run in DOS mode. $PELaL! $ @@ @`$K@`  H.text  `.rsrc@@@.reloc ` @B$HP BSJB v4.0.30319lt#~8#Strings#US #GUID0#BlobW %3,1*]>t>>> >   ;;F# F# ((!!)P1 9PA!.3..#~.+C C&T ' <Module>mscorlibI1S1I2NS1S2Sub1xSystemValueTypeF1System.Runtime.InteropServicesInterfaceTypeAttributeComInterfaceType.ctorGuidAttributeComImportAttributeSystem.Runtime.CompilerServicesCompilationRelaxationsAttributeRuntimeCompatibilityAttributeImportedFromTypeLibAttributePia1Pia1.dll d9GDxN:{Zz\V4    )$27e3e649-994b-4f58-b3c6-f8089a5f2c01 )$27e3e649-994b-4f58-b3c6-f8089a5f2c02TWrapNonExceptionThrows Pia1.dll)$f9c2d51d-4f44-45f0-9eda-c9d599b58257$$ $_CorDllMainmscoree.dll% @0HX@<<4VS_VERSION_INFO?DVarFileInfo$TranslationStringFileInfox000004b0,FileDescription 0FileVersion0.0.0.04 InternalNamePia1.dll(LegalCopyright < OriginalFilenamePia1.dll4ProductVersion0.0.0.08Assembly Version0.0.0.0 4
MZ@ !L!This program cannot be run in DOS mode. $PELaL! $ @@ @`$K@`  H.text  `.rsrc@@@.reloc ` @B$HP BSJB v4.0.30319lt#~8#Strings#US #GUID0#BlobW %3,1*]>t>>> >   ;;F# F# ((!!)P1 9PA!.3..#~.+C C&T ' <Module>mscorlibI1S1I2NS1S2Sub1xSystemValueTypeF1System.Runtime.InteropServicesInterfaceTypeAttributeComInterfaceType.ctorGuidAttributeComImportAttributeSystem.Runtime.CompilerServicesCompilationRelaxationsAttributeRuntimeCompatibilityAttributeImportedFromTypeLibAttributePia1Pia1.dll d9GDxN:{Zz\V4    )$27e3e649-994b-4f58-b3c6-f8089a5f2c01 )$27e3e649-994b-4f58-b3c6-f8089a5f2c02TWrapNonExceptionThrows Pia1.dll)$f9c2d51d-4f44-45f0-9eda-c9d599b58257$$ $_CorDllMainmscoree.dll% @0HX@<<4VS_VERSION_INFO?DVarFileInfo$TranslationStringFileInfox000004b0,FileDescription 0FileVersion0.0.0.04 InternalNamePia1.dll(LegalCopyright < OriginalFilenamePia1.dll4ProductVersion0.0.0.08Assembly Version0.0.0.0 4
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Analyzers/Core/Analyzers/SimplifyInterpolation/AbstractSimplifyInterpolationHelpers.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using Microsoft.CodeAnalysis.EmbeddedLanguages.VirtualChars; using Microsoft.CodeAnalysis.LanguageServices; using Microsoft.CodeAnalysis.Operations; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.SimplifyInterpolation { internal abstract class AbstractSimplifyInterpolationHelpers { protected abstract bool PermitNonLiteralAlignmentComponents { get; } protected abstract SyntaxNode GetPreservedInterpolationExpressionSyntax(IOperation operation); public void UnwrapInterpolation<TInterpolationSyntax, TExpressionSyntax>( IVirtualCharService virtualCharService, ISyntaxFacts syntaxFacts, IInterpolationOperation interpolation, out TExpressionSyntax? unwrapped, out TExpressionSyntax? alignment, out bool negate, out string? formatString, out ImmutableArray<Location> unnecessaryLocations) where TInterpolationSyntax : SyntaxNode where TExpressionSyntax : SyntaxNode { alignment = null; negate = false; formatString = null; var unnecessarySpans = new List<TextSpan>(); var expression = Unwrap(interpolation.Expression); if (interpolation.Alignment == null) { UnwrapAlignmentPadding(expression, out expression, out alignment, out negate, unnecessarySpans); } if (interpolation.FormatString == null) { UnwrapFormatString(virtualCharService, syntaxFacts, expression, out expression, out formatString, unnecessarySpans); } unwrapped = GetPreservedInterpolationExpressionSyntax(expression) as TExpressionSyntax; unnecessaryLocations = unnecessarySpans.OrderBy(t => t.Start) .SelectAsArray(interpolation.Syntax.SyntaxTree.GetLocation); } [return: NotNullIfNotNull("expression")] private static IOperation? Unwrap(IOperation? expression, bool towardsParent = false) { while (true) { if (towardsParent && expression?.Parent is null) return expression; switch (expression) { case IParenthesizedOperation parenthesized: expression = towardsParent ? expression.Parent : parenthesized.Operand; continue; case IConversionOperation { IsImplicit: true } conversion: expression = towardsParent ? expression.Parent : conversion.Operand; continue; default: return expression; } } } private void UnwrapFormatString( IVirtualCharService virtualCharService, ISyntaxFacts syntaxFacts, IOperation expression, out IOperation unwrapped, out string? formatString, List<TextSpan> unnecessarySpans) { Contract.ThrowIfNull(expression.SemanticModel); if (expression is IInvocationOperation { TargetMethod: { Name: nameof(ToString) } } invocation && HasNonImplicitInstance(invocation) && !syntaxFacts.IsBaseExpression(invocation.Instance!.Syntax) && !invocation.Instance.Type!.IsRefLikeType) { if (invocation.Arguments.Length == 1 || (invocation.Arguments.Length == 2 && UsesInvariantCultureReferenceInsideFormattableStringInvariant(invocation, formatProviderArgumentIndex: 1))) { if (invocation.Arguments[0].Value is ILiteralOperation { ConstantValue: { HasValue: true, Value: string value } } literal && FindType<System.IFormattable>(expression.SemanticModel) is { } systemIFormattable && invocation.Instance.Type.Implements(systemIFormattable)) { unwrapped = invocation.Instance; formatString = value; unnecessarySpans.AddRange(invocation.Syntax.Span .Subtract(GetPreservedInterpolationExpressionSyntax(invocation.Instance).FullSpan) .Subtract(GetSpanWithinLiteralQuotes(virtualCharService, literal.Syntax.GetFirstToken()))); return; } } if (IsObjectToStringOverride(invocation.TargetMethod) || (invocation.Arguments.Length == 1 && UsesInvariantCultureReferenceInsideFormattableStringInvariant(invocation, formatProviderArgumentIndex: 0))) { // A call to `.ToString()` at the end of the interpolation. This is unnecessary. // Just remove entirely. unwrapped = invocation.Instance; formatString = ""; unnecessarySpans.AddRange(invocation.Syntax.Span .Subtract(GetPreservedInterpolationExpressionSyntax(invocation.Instance).FullSpan)); return; } } unwrapped = expression; formatString = null; } private static bool IsObjectToStringOverride(IMethodSymbol method) { while (method.OverriddenMethod is not null) method = method.OverriddenMethod; return method.ContainingType.SpecialType == SpecialType.System_Object && method.Name == nameof(ToString); } private static bool UsesInvariantCultureReferenceInsideFormattableStringInvariant(IInvocationOperation invocation, int formatProviderArgumentIndex) { return IsInvariantCultureReference(invocation.Arguments[formatProviderArgumentIndex].Value) && IsInsideFormattableStringInvariant(invocation); } private static bool IsInvariantCultureReference(IOperation operation) { Contract.ThrowIfNull(operation.SemanticModel); if (Unwrap(operation) is IPropertyReferenceOperation { Member: { } member }) { if (member.Name == nameof(CultureInfo.InvariantCulture)) { return IsType<System.Globalization.CultureInfo>(member.ContainingType, operation.SemanticModel); } if (member.Name == "InvariantInfo") { return IsType<System.Globalization.NumberFormatInfo>(member.ContainingType, operation.SemanticModel) || IsType<System.Globalization.DateTimeFormatInfo>(member.ContainingType, operation.SemanticModel); } } return false; } private static bool IsInsideFormattableStringInvariant(IOperation operation) { Contract.ThrowIfNull(operation.SemanticModel); var interpolatedStringOperation = AncestorsAndSelf(operation).OfType<IInterpolatedStringOperation>().FirstOrDefault(); return Unwrap(interpolatedStringOperation?.Parent, towardsParent: true) is IArgumentOperation { Parent: IInvocationOperation { TargetMethod: { Name: nameof(FormattableString.Invariant), ContainingType: var containingType }, }, } && IsType<System.FormattableString>(containingType, operation.SemanticModel); } private static bool IsType<T>(INamedTypeSymbol type, SemanticModel semanticModel) { return SymbolEqualityComparer.Default.Equals(type, FindType<T>(semanticModel)); } private static INamedTypeSymbol? FindType<T>(SemanticModel semanticModel) { return semanticModel.Compilation.GetTypeByMetadataName(typeof(T).FullName!); } private static IEnumerable<IOperation> AncestorsAndSelf(IOperation operation) { for (var current = operation; current is not null; current = current.Parent) { yield return current; } } private static TextSpan GetSpanWithinLiteralQuotes(IVirtualCharService virtualCharService, SyntaxToken formatToken) { var sequence = virtualCharService.TryConvertToVirtualChars(formatToken); return sequence.IsDefaultOrEmpty ? default : TextSpan.FromBounds(sequence.First().Span.Start, sequence.Last().Span.End); } private void UnwrapAlignmentPadding<TExpressionSyntax>( IOperation expression, out IOperation unwrapped, out TExpressionSyntax? alignment, out bool negate, List<TextSpan> unnecessarySpans) where TExpressionSyntax : SyntaxNode { if (expression is IInvocationOperation invocation && HasNonImplicitInstance(invocation)) { var targetName = invocation.TargetMethod.Name; if (targetName is nameof(string.PadLeft) or nameof(string.PadRight)) { var argCount = invocation.Arguments.Length; if (argCount is 1 or 2) { if (argCount == 1 || IsSpaceChar(invocation.Arguments[1])) { var alignmentOp = invocation.Arguments[0].Value; if (PermitNonLiteralAlignmentComponents ? alignmentOp is { ConstantValue: { HasValue: true } } : alignmentOp is { Kind: OperationKind.Literal }) { var alignmentSyntax = alignmentOp.Syntax; unwrapped = invocation.Instance!; alignment = alignmentSyntax as TExpressionSyntax; negate = targetName == nameof(string.PadRight); unnecessarySpans.AddRange(invocation.Syntax.Span .Subtract(GetPreservedInterpolationExpressionSyntax(invocation.Instance!).FullSpan) .Subtract(alignmentSyntax.FullSpan)); return; } } } } } unwrapped = expression; alignment = null; negate = false; } private static bool HasNonImplicitInstance(IInvocationOperation invocation) => invocation.Instance != null && !invocation.Instance.IsImplicit; private static bool IsSpaceChar(IArgumentOperation argument) => argument.Value.ConstantValue is { HasValue: true, Value: ' ' }; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using Microsoft.CodeAnalysis.EmbeddedLanguages.VirtualChars; using Microsoft.CodeAnalysis.LanguageServices; using Microsoft.CodeAnalysis.Operations; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.SimplifyInterpolation { internal abstract class AbstractSimplifyInterpolationHelpers { protected abstract bool PermitNonLiteralAlignmentComponents { get; } protected abstract SyntaxNode GetPreservedInterpolationExpressionSyntax(IOperation operation); public void UnwrapInterpolation<TInterpolationSyntax, TExpressionSyntax>( IVirtualCharService virtualCharService, ISyntaxFacts syntaxFacts, IInterpolationOperation interpolation, out TExpressionSyntax? unwrapped, out TExpressionSyntax? alignment, out bool negate, out string? formatString, out ImmutableArray<Location> unnecessaryLocations) where TInterpolationSyntax : SyntaxNode where TExpressionSyntax : SyntaxNode { alignment = null; negate = false; formatString = null; var unnecessarySpans = new List<TextSpan>(); var expression = Unwrap(interpolation.Expression); if (interpolation.Alignment == null) { UnwrapAlignmentPadding(expression, out expression, out alignment, out negate, unnecessarySpans); } if (interpolation.FormatString == null) { UnwrapFormatString(virtualCharService, syntaxFacts, expression, out expression, out formatString, unnecessarySpans); } unwrapped = GetPreservedInterpolationExpressionSyntax(expression) as TExpressionSyntax; unnecessaryLocations = unnecessarySpans.OrderBy(t => t.Start) .SelectAsArray(interpolation.Syntax.SyntaxTree.GetLocation); } [return: NotNullIfNotNull("expression")] private static IOperation? Unwrap(IOperation? expression, bool towardsParent = false) { while (true) { if (towardsParent && expression?.Parent is null) return expression; switch (expression) { case IParenthesizedOperation parenthesized: expression = towardsParent ? expression.Parent : parenthesized.Operand; continue; case IConversionOperation { IsImplicit: true } conversion: expression = towardsParent ? expression.Parent : conversion.Operand; continue; default: return expression; } } } private void UnwrapFormatString( IVirtualCharService virtualCharService, ISyntaxFacts syntaxFacts, IOperation expression, out IOperation unwrapped, out string? formatString, List<TextSpan> unnecessarySpans) { Contract.ThrowIfNull(expression.SemanticModel); if (expression is IInvocationOperation { TargetMethod: { Name: nameof(ToString) } } invocation && HasNonImplicitInstance(invocation) && !syntaxFacts.IsBaseExpression(invocation.Instance!.Syntax) && !invocation.Instance.Type!.IsRefLikeType) { if (invocation.Arguments.Length == 1 || (invocation.Arguments.Length == 2 && UsesInvariantCultureReferenceInsideFormattableStringInvariant(invocation, formatProviderArgumentIndex: 1))) { if (invocation.Arguments[0].Value is ILiteralOperation { ConstantValue: { HasValue: true, Value: string value } } literal && FindType<System.IFormattable>(expression.SemanticModel) is { } systemIFormattable && invocation.Instance.Type.Implements(systemIFormattable)) { unwrapped = invocation.Instance; formatString = value; unnecessarySpans.AddRange(invocation.Syntax.Span .Subtract(GetPreservedInterpolationExpressionSyntax(invocation.Instance).FullSpan) .Subtract(GetSpanWithinLiteralQuotes(virtualCharService, literal.Syntax.GetFirstToken()))); return; } } if (IsObjectToStringOverride(invocation.TargetMethod) || (invocation.Arguments.Length == 1 && UsesInvariantCultureReferenceInsideFormattableStringInvariant(invocation, formatProviderArgumentIndex: 0))) { // A call to `.ToString()` at the end of the interpolation. This is unnecessary. // Just remove entirely. unwrapped = invocation.Instance; formatString = ""; unnecessarySpans.AddRange(invocation.Syntax.Span .Subtract(GetPreservedInterpolationExpressionSyntax(invocation.Instance).FullSpan)); return; } } unwrapped = expression; formatString = null; } private static bool IsObjectToStringOverride(IMethodSymbol method) { while (method.OverriddenMethod is not null) method = method.OverriddenMethod; return method.ContainingType.SpecialType == SpecialType.System_Object && method.Name == nameof(ToString); } private static bool UsesInvariantCultureReferenceInsideFormattableStringInvariant(IInvocationOperation invocation, int formatProviderArgumentIndex) { return IsInvariantCultureReference(invocation.Arguments[formatProviderArgumentIndex].Value) && IsInsideFormattableStringInvariant(invocation); } private static bool IsInvariantCultureReference(IOperation operation) { Contract.ThrowIfNull(operation.SemanticModel); if (Unwrap(operation) is IPropertyReferenceOperation { Member: { } member }) { if (member.Name == nameof(CultureInfo.InvariantCulture)) { return IsType<System.Globalization.CultureInfo>(member.ContainingType, operation.SemanticModel); } if (member.Name == "InvariantInfo") { return IsType<System.Globalization.NumberFormatInfo>(member.ContainingType, operation.SemanticModel) || IsType<System.Globalization.DateTimeFormatInfo>(member.ContainingType, operation.SemanticModel); } } return false; } private static bool IsInsideFormattableStringInvariant(IOperation operation) { Contract.ThrowIfNull(operation.SemanticModel); var interpolatedStringOperation = AncestorsAndSelf(operation).OfType<IInterpolatedStringOperation>().FirstOrDefault(); return Unwrap(interpolatedStringOperation?.Parent, towardsParent: true) is IArgumentOperation { Parent: IInvocationOperation { TargetMethod: { Name: nameof(FormattableString.Invariant), ContainingType: var containingType }, }, } && IsType<System.FormattableString>(containingType, operation.SemanticModel); } private static bool IsType<T>(INamedTypeSymbol type, SemanticModel semanticModel) { return SymbolEqualityComparer.Default.Equals(type, FindType<T>(semanticModel)); } private static INamedTypeSymbol? FindType<T>(SemanticModel semanticModel) { return semanticModel.Compilation.GetTypeByMetadataName(typeof(T).FullName!); } private static IEnumerable<IOperation> AncestorsAndSelf(IOperation operation) { for (var current = operation; current is not null; current = current.Parent) { yield return current; } } private static TextSpan GetSpanWithinLiteralQuotes(IVirtualCharService virtualCharService, SyntaxToken formatToken) { var sequence = virtualCharService.TryConvertToVirtualChars(formatToken); return sequence.IsDefaultOrEmpty ? default : TextSpan.FromBounds(sequence.First().Span.Start, sequence.Last().Span.End); } private void UnwrapAlignmentPadding<TExpressionSyntax>( IOperation expression, out IOperation unwrapped, out TExpressionSyntax? alignment, out bool negate, List<TextSpan> unnecessarySpans) where TExpressionSyntax : SyntaxNode { if (expression is IInvocationOperation invocation && HasNonImplicitInstance(invocation)) { var targetName = invocation.TargetMethod.Name; if (targetName is nameof(string.PadLeft) or nameof(string.PadRight)) { var argCount = invocation.Arguments.Length; if (argCount is 1 or 2) { if (argCount == 1 || IsSpaceChar(invocation.Arguments[1])) { var alignmentOp = invocation.Arguments[0].Value; if (PermitNonLiteralAlignmentComponents ? alignmentOp is { ConstantValue: { HasValue: true } } : alignmentOp is { Kind: OperationKind.Literal }) { var alignmentSyntax = alignmentOp.Syntax; unwrapped = invocation.Instance!; alignment = alignmentSyntax as TExpressionSyntax; negate = targetName == nameof(string.PadRight); unnecessarySpans.AddRange(invocation.Syntax.Span .Subtract(GetPreservedInterpolationExpressionSyntax(invocation.Instance!).FullSpan) .Subtract(alignmentSyntax.FullSpan)); return; } } } } } unwrapped = expression; alignment = null; negate = false; } private static bool HasNonImplicitInstance(IInvocationOperation invocation) => invocation.Instance != null && !invocation.Instance.IsImplicit; private static bool IsSpaceChar(IArgumentOperation argument) => argument.Value.ConstantValue is { HasValue: true, Value: ' ' }; } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Analyzers/VisualBasic/Analyzers/RemoveUnnecessarySuppressions/VisualBasicRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.Diagnostics Imports Microsoft.CodeAnalysis.RemoveUnnecessarySuppressions Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.RemoveUnnecessarySuppressions <DiagnosticAnalyzer(LanguageNames.VisualBasic)> Friend NotInheritable Class VisualBasicRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer Inherits AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer Protected Overrides Sub RegisterAttributeSyntaxAction(context As CompilationStartAnalysisContext, compilationAnalyzer As CompilationAnalyzer) context.RegisterSyntaxNodeAction( Sub(syntaxContext As SyntaxNodeAnalysisContext) Dim attribute = DirectCast(syntaxContext.Node, AttributeSyntax) Select Case attribute.Target?.AttributeModifier.Kind() Case SyntaxKind.AssemblyKeyword, SyntaxKind.ModuleKeyword compilationAnalyzer.AnalyzeAssemblyOrModuleAttribute(attribute, syntaxContext.SemanticModel, AddressOf syntaxContext.ReportDiagnostic, syntaxContext.CancellationToken) End Select End Sub, SyntaxKind.Attribute) End Sub End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.Diagnostics Imports Microsoft.CodeAnalysis.RemoveUnnecessarySuppressions Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.RemoveUnnecessarySuppressions <DiagnosticAnalyzer(LanguageNames.VisualBasic)> Friend NotInheritable Class VisualBasicRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer Inherits AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer Protected Overrides Sub RegisterAttributeSyntaxAction(context As CompilationStartAnalysisContext, compilationAnalyzer As CompilationAnalyzer) context.RegisterSyntaxNodeAction( Sub(syntaxContext As SyntaxNodeAnalysisContext) Dim attribute = DirectCast(syntaxContext.Node, AttributeSyntax) Select Case attribute.Target?.AttributeModifier.Kind() Case SyntaxKind.AssemblyKeyword, SyntaxKind.ModuleKeyword compilationAnalyzer.AnalyzeAssemblyOrModuleAttribute(attribute, syntaxContext.SemanticModel, AddressOf syntaxContext.ReportDiagnostic, syntaxContext.CancellationToken) End Select End Sub, SyntaxKind.Attribute) End Sub End Class End Namespace
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/Test/Core/Syntax/NodeInfo.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; namespace Microsoft.CodeAnalysis.Test.Utilities { //Contains the information about a SyntaxNode that is difficult to get from a variable //just typed as SyntaxNode. This is name/type/value information for all fields and children. public partial class NodeInfo { private readonly string _className; private readonly FieldInfo[] _fieldInfos; private static readonly FieldInfo[] s_emptyFieldInfos = { }; public string ClassName { get { return _className; } } public FieldInfo[] FieldInfos { get { if (_fieldInfos == null) { return s_emptyFieldInfos; } else { return _fieldInfos; } } } public NodeInfo(string className, FieldInfo[] fieldInfos) { _className = className; _fieldInfos = fieldInfos; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; namespace Microsoft.CodeAnalysis.Test.Utilities { //Contains the information about a SyntaxNode that is difficult to get from a variable //just typed as SyntaxNode. This is name/type/value information for all fields and children. public partial class NodeInfo { private readonly string _className; private readonly FieldInfo[] _fieldInfos; private static readonly FieldInfo[] s_emptyFieldInfos = { }; public string ClassName { get { return _className; } } public FieldInfo[] FieldInfos { get { if (_fieldInfos == null) { return s_emptyFieldInfos; } else { return _fieldInfos; } } } public NodeInfo(string className, FieldInfo[] fieldInfos) { _className = className; _fieldInfos = fieldInfos; } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Features/VisualBasic/Portable/AddImport/VisualBasicAddMissingImportsFeatureService.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Immutable Imports System.Composition Imports Microsoft.CodeAnalysis.AddMissingImports Imports Microsoft.CodeAnalysis.Host.Mef Imports Microsoft.CodeAnalysis.VisualBasic.AddImport Namespace Microsoft.CodeAnalysis.VisualBasic.AddMissingImports <ExportLanguageService(GetType(IAddMissingImportsFeatureService), LanguageNames.VisualBasic), [Shared]> Friend Class VisualBasicAddMissingImportsFeatureService Inherits AbstractAddMissingImportsFeatureService <ImportingConstructor> <Obsolete(MefConstruction.ImportingConstructorMessage, True)> Public Sub New() End Sub Protected Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = AddImportDiagnosticIds.FixableDiagnosticIds End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Immutable Imports System.Composition Imports Microsoft.CodeAnalysis.AddMissingImports Imports Microsoft.CodeAnalysis.Host.Mef Imports Microsoft.CodeAnalysis.VisualBasic.AddImport Namespace Microsoft.CodeAnalysis.VisualBasic.AddMissingImports <ExportLanguageService(GetType(IAddMissingImportsFeatureService), LanguageNames.VisualBasic), [Shared]> Friend Class VisualBasicAddMissingImportsFeatureService Inherits AbstractAddMissingImportsFeatureService <ImportingConstructor> <Obsolete(MefConstruction.ImportingConstructorMessage, True)> Public Sub New() End Sub Protected Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) = AddImportDiagnosticIds.FixableDiagnosticIds End Class End Namespace
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/VisualBasic/Portable/BoundTree/Expression.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Immutable Namespace Microsoft.CodeAnalysis.VisualBasic Partial Friend Class BoundBadExpression Implements IBoundInvalidNode Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return StaticCast(Of BoundNode).From(Me.ChildBoundNodes) End Get End Property Private ReadOnly Property IBoundInvalidNode_InvalidNodeChildren As ImmutableArray(Of BoundNode) Implements IBoundInvalidNode.InvalidNodeChildren Get Return StaticCast(Of BoundNode).From(ChildBoundNodes) End Get End Property End Class Partial Friend Class BoundAssignmentOperator Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Left, Me.Right) End Get End Property End Class Partial Friend Class BoundDelegateCreationExpression Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.ReceiverOpt) End Get End Property End Class Partial Friend Class BoundAddressOfOperator Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.MethodGroup) End Get End Property End Class Partial Friend Class BoundMethodOrPropertyGroup Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get If Me.ReceiverOpt IsNot Nothing Then Return ImmutableArray.Create(Of BoundNode)(Me.ReceiverOpt) Else Return ImmutableArray(Of BoundNode).Empty End If End Get End Property End Class Partial Friend Class BoundNullableIsTrueOperator Implements IBoundInvalidNode Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Operand) End Get End Property Private ReadOnly Property IBoundInvalidNode_InvalidNodeChildren As ImmutableArray(Of BoundNode) Implements IBoundInvalidNode.InvalidNodeChildren Get Return ImmutableArray.Create(Of BoundNode)(Me.Operand) End Get End Property End Class Partial Friend Class BoundAttribute Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return StaticCast(Of BoundNode).From(Me.ConstructorArguments.AddRange(Me.NamedArguments)) End Get End Property End Class Partial Friend Class BoundLateInvocation Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return StaticCast(Of BoundNode).From(Me.ArgumentsOpt.Insert(0, Me.Member)) End Get End Property End Class Partial Friend Class BoundLateAddressOfOperator Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.MemberAccess) End Get End Property End Class Partial Friend Class BoundAnonymousTypeCreationExpression Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return StaticCast(Of BoundNode).From(Me.Arguments) End Get End Property End Class Partial Friend Class BoundAnonymousTypeFieldInitializer Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Value) End Get End Property End Class Partial Friend Class BoundArrayLiteral Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return StaticCast(Of BoundNode).From(Me.Bounds.Add(Me.Initializer)) End Get End Property End Class Partial Friend Class BoundQueryExpression Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.LastOperator) End Get End Property End Class Partial Friend Class BoundQueryPart Protected MustOverride Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) End Class Partial Friend Class BoundQuerySource Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Expression) End Get End Property End Class Partial Friend Class BoundToQueryableCollectionConversion Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.ConversionCall) End Get End Property End Class Partial Friend Class BoundQueryableSource Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Source) End Get End Property End Class Partial Friend Class BoundQueryClause Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.UnderlyingExpression) End Get End Property End Class Partial Friend Class BoundOrdering Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.UnderlyingExpression) End Get End Property End Class Partial Friend Class BoundQueryLambda Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Expression) End Get End Property End Class Partial Friend Class BoundRangeVariableAssignment Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Value) End Get End Property End Class Partial Friend Class BoundAggregateClause Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.CapturedGroupOpt, Me.UnderlyingExpression) End Get End Property End Class Partial Friend Class BoundGroupAggregation Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Group) End Get End Property End Class Partial Friend Class BoundMidResult Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Original, Me.Start, Me.LengthOpt, Me.Source) End Get End Property End Class Partial Friend Class BoundNameOfOperator Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Argument) End Get End Property End Class End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Collections.Immutable Namespace Microsoft.CodeAnalysis.VisualBasic Partial Friend Class BoundBadExpression Implements IBoundInvalidNode Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return StaticCast(Of BoundNode).From(Me.ChildBoundNodes) End Get End Property Private ReadOnly Property IBoundInvalidNode_InvalidNodeChildren As ImmutableArray(Of BoundNode) Implements IBoundInvalidNode.InvalidNodeChildren Get Return StaticCast(Of BoundNode).From(ChildBoundNodes) End Get End Property End Class Partial Friend Class BoundAssignmentOperator Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Left, Me.Right) End Get End Property End Class Partial Friend Class BoundDelegateCreationExpression Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.ReceiverOpt) End Get End Property End Class Partial Friend Class BoundAddressOfOperator Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.MethodGroup) End Get End Property End Class Partial Friend Class BoundMethodOrPropertyGroup Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get If Me.ReceiverOpt IsNot Nothing Then Return ImmutableArray.Create(Of BoundNode)(Me.ReceiverOpt) Else Return ImmutableArray(Of BoundNode).Empty End If End Get End Property End Class Partial Friend Class BoundNullableIsTrueOperator Implements IBoundInvalidNode Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Operand) End Get End Property Private ReadOnly Property IBoundInvalidNode_InvalidNodeChildren As ImmutableArray(Of BoundNode) Implements IBoundInvalidNode.InvalidNodeChildren Get Return ImmutableArray.Create(Of BoundNode)(Me.Operand) End Get End Property End Class Partial Friend Class BoundAttribute Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return StaticCast(Of BoundNode).From(Me.ConstructorArguments.AddRange(Me.NamedArguments)) End Get End Property End Class Partial Friend Class BoundLateInvocation Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return StaticCast(Of BoundNode).From(Me.ArgumentsOpt.Insert(0, Me.Member)) End Get End Property End Class Partial Friend Class BoundLateAddressOfOperator Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.MemberAccess) End Get End Property End Class Partial Friend Class BoundAnonymousTypeCreationExpression Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return StaticCast(Of BoundNode).From(Me.Arguments) End Get End Property End Class Partial Friend Class BoundAnonymousTypeFieldInitializer Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Value) End Get End Property End Class Partial Friend Class BoundArrayLiteral Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return StaticCast(Of BoundNode).From(Me.Bounds.Add(Me.Initializer)) End Get End Property End Class Partial Friend Class BoundQueryExpression Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.LastOperator) End Get End Property End Class Partial Friend Class BoundQueryPart Protected MustOverride Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) End Class Partial Friend Class BoundQuerySource Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Expression) End Get End Property End Class Partial Friend Class BoundToQueryableCollectionConversion Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.ConversionCall) End Get End Property End Class Partial Friend Class BoundQueryableSource Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Source) End Get End Property End Class Partial Friend Class BoundQueryClause Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.UnderlyingExpression) End Get End Property End Class Partial Friend Class BoundOrdering Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.UnderlyingExpression) End Get End Property End Class Partial Friend Class BoundQueryLambda Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Expression) End Get End Property End Class Partial Friend Class BoundRangeVariableAssignment Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Value) End Get End Property End Class Partial Friend Class BoundAggregateClause Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.CapturedGroupOpt, Me.UnderlyingExpression) End Get End Property End Class Partial Friend Class BoundGroupAggregation Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Group) End Get End Property End Class Partial Friend Class BoundMidResult Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Original, Me.Start, Me.LengthOpt, Me.Source) End Get End Property End Class Partial Friend Class BoundNameOfOperator Protected Overrides ReadOnly Property Children As ImmutableArray(Of BoundNode) Get Return ImmutableArray.Create(Of BoundNode)(Me.Argument) End Get End Property End Class End Namespace
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/Core/Portable/RuleSet/RuleSetSchema.xsd
<?xml version="1.0" encoding="utf-8"?> <!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:annotation> <xs:documentation xml:lang="en"> Visual Studio Code Analysis Rule Set Schema Definition Language. Copyright (c) Microsoft Corporation. All rights reserved. </xs:documentation> </xs:annotation> <!-- Every time this file changes, be sure to change the Validate method for the corresponding object in the code --> <xs:element name="RuleSet" type="TRuleSet"> </xs:element> <xs:complexType name="TLocalization"> <xs:all> <xs:element name="Name" type="TName" minOccurs="0" maxOccurs="1" /> <xs:element name="Description" type="TDescription" minOccurs="0" maxOccurs="1" /> </xs:all> <xs:attribute name="ResourceAssembly" type="TNonEmptyString" use="required" /> <xs:attribute name="ResourceBaseName" type="TNonEmptyString" use="required" /> </xs:complexType> <xs:complexType name="TRuleHintPaths"> <xs:sequence> <xs:element name="Path" type="TNonEmptyString" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="TName"> <xs:attribute name="Resource" type="TNonEmptyString" use="required" /> </xs:complexType> <xs:complexType name="TDescription"> <xs:attribute name="Resource" type="TNonEmptyString" use="required" /> </xs:complexType> <xs:complexType name="TInclude"> <xs:attribute name="Path" type="TNonEmptyString" use="required" /> <xs:attribute name="Action" type="TIncludeAction" use="required" /> </xs:complexType> <xs:complexType name="TIncludeAll"> <xs:attribute name="Action" type="TIncludeAllAction" use="required" /> </xs:complexType> <xs:complexType name="TRule"> <xs:attribute name="Id" type="TNonEmptyString" use="required" /> <xs:attribute name="Action" type="TRuleAction" use="required" /> </xs:complexType> <xs:complexType name="TRules"> <xs:sequence> <xs:element name="Rule" type="TRule" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="AnalyzerId" type="TNonEmptyString" use="required" /> <xs:attribute name="RuleNamespace" type="TNonEmptyString" use="required" /> </xs:complexType> <xs:complexType name="TRuleSet"> <xs:sequence minOccurs="0" maxOccurs="1"> <xs:element name="Localization" type="TLocalization" minOccurs="0" maxOccurs="1" /> <xs:element name="RuleHintPaths" type="TRuleHintPaths" minOccurs="0" maxOccurs="1" /> <xs:element name="IncludeAll" type="TIncludeAll" minOccurs="0" maxOccurs="1" /> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="Include" type="TInclude" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="Rules" type="TRules" minOccurs="0" maxOccurs="unbounded"> <xs:unique name="UniqueRuleName"> <xs:selector xpath="Rule" /> <xs:field xpath="@Id" /> </xs:unique> </xs:element> </xs:choice> </xs:sequence> <xs:attribute name="Name" type="TNonEmptyString" use="required" /> <xs:attribute name="Description" type="xs:string" use="optional" /> <xs:attribute name="ToolsVersion" type="TNonEmptyString" use="required" /> </xs:complexType> <xs:simpleType name="TRuleAction"> <xs:restriction base="xs:string"> <xs:enumeration value="Error"/> <xs:enumeration value="Warning"/> <xs:enumeration value="Info"/> <xs:enumeration value="Hidden"/> <xs:enumeration value="None"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="TIncludeAction"> <xs:restriction base="xs:string"> <xs:enumeration value="Error"/> <xs:enumeration value="Warning"/> <xs:enumeration value="Info"/> <xs:enumeration value="Hidden"/> <xs:enumeration value="None"/> <xs:enumeration value="Default"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="TIncludeAllAction"> <xs:restriction base="xs:string"> <xs:enumeration value="Error"/> <xs:enumeration value="Warning"/> <xs:enumeration value="Info"/> <xs:enumeration value="Hidden"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="TNonEmptyString"> <xs:restriction base="xs:string"> <xs:minLength value="1" /> </xs:restriction> </xs:simpleType> </xs:schema>
<?xml version="1.0" encoding="utf-8"?> <!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:annotation> <xs:documentation xml:lang="en"> Visual Studio Code Analysis Rule Set Schema Definition Language. Copyright (c) Microsoft Corporation. All rights reserved. </xs:documentation> </xs:annotation> <!-- Every time this file changes, be sure to change the Validate method for the corresponding object in the code --> <xs:element name="RuleSet" type="TRuleSet"> </xs:element> <xs:complexType name="TLocalization"> <xs:all> <xs:element name="Name" type="TName" minOccurs="0" maxOccurs="1" /> <xs:element name="Description" type="TDescription" minOccurs="0" maxOccurs="1" /> </xs:all> <xs:attribute name="ResourceAssembly" type="TNonEmptyString" use="required" /> <xs:attribute name="ResourceBaseName" type="TNonEmptyString" use="required" /> </xs:complexType> <xs:complexType name="TRuleHintPaths"> <xs:sequence> <xs:element name="Path" type="TNonEmptyString" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> <xs:complexType name="TName"> <xs:attribute name="Resource" type="TNonEmptyString" use="required" /> </xs:complexType> <xs:complexType name="TDescription"> <xs:attribute name="Resource" type="TNonEmptyString" use="required" /> </xs:complexType> <xs:complexType name="TInclude"> <xs:attribute name="Path" type="TNonEmptyString" use="required" /> <xs:attribute name="Action" type="TIncludeAction" use="required" /> </xs:complexType> <xs:complexType name="TIncludeAll"> <xs:attribute name="Action" type="TIncludeAllAction" use="required" /> </xs:complexType> <xs:complexType name="TRule"> <xs:attribute name="Id" type="TNonEmptyString" use="required" /> <xs:attribute name="Action" type="TRuleAction" use="required" /> </xs:complexType> <xs:complexType name="TRules"> <xs:sequence> <xs:element name="Rule" type="TRule" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> <xs:attribute name="AnalyzerId" type="TNonEmptyString" use="required" /> <xs:attribute name="RuleNamespace" type="TNonEmptyString" use="required" /> </xs:complexType> <xs:complexType name="TRuleSet"> <xs:sequence minOccurs="0" maxOccurs="1"> <xs:element name="Localization" type="TLocalization" minOccurs="0" maxOccurs="1" /> <xs:element name="RuleHintPaths" type="TRuleHintPaths" minOccurs="0" maxOccurs="1" /> <xs:element name="IncludeAll" type="TIncludeAll" minOccurs="0" maxOccurs="1" /> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="Include" type="TInclude" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="Rules" type="TRules" minOccurs="0" maxOccurs="unbounded"> <xs:unique name="UniqueRuleName"> <xs:selector xpath="Rule" /> <xs:field xpath="@Id" /> </xs:unique> </xs:element> </xs:choice> </xs:sequence> <xs:attribute name="Name" type="TNonEmptyString" use="required" /> <xs:attribute name="Description" type="xs:string" use="optional" /> <xs:attribute name="ToolsVersion" type="TNonEmptyString" use="required" /> </xs:complexType> <xs:simpleType name="TRuleAction"> <xs:restriction base="xs:string"> <xs:enumeration value="Error"/> <xs:enumeration value="Warning"/> <xs:enumeration value="Info"/> <xs:enumeration value="Hidden"/> <xs:enumeration value="None"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="TIncludeAction"> <xs:restriction base="xs:string"> <xs:enumeration value="Error"/> <xs:enumeration value="Warning"/> <xs:enumeration value="Info"/> <xs:enumeration value="Hidden"/> <xs:enumeration value="None"/> <xs:enumeration value="Default"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="TIncludeAllAction"> <xs:restriction base="xs:string"> <xs:enumeration value="Error"/> <xs:enumeration value="Warning"/> <xs:enumeration value="Info"/> <xs:enumeration value="Hidden"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="TNonEmptyString"> <xs:restriction base="xs:string"> <xs:minLength value="1" /> </xs:restriction> </xs:simpleType> </xs:schema>
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/EditorFeatures/Core.Wpf/Interactive/InteractiveEvaluatorResetOptions.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. extern alias InteractiveHost; using InteractiveHost::Microsoft.CodeAnalysis.Interactive; namespace Microsoft.CodeAnalysis.Editor.Interactive { internal sealed class InteractiveEvaluatorResetOptions { public readonly InteractiveHostPlatform? Platform; public InteractiveEvaluatorResetOptions(InteractiveHostPlatform? platform) => Platform = platform; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. extern alias InteractiveHost; using InteractiveHost::Microsoft.CodeAnalysis.Interactive; namespace Microsoft.CodeAnalysis.Editor.Interactive { internal sealed class InteractiveEvaluatorResetOptions { public readonly InteractiveHostPlatform? Platform; public InteractiveEvaluatorResetOptions(InteractiveHostPlatform? platform) => Platform = platform; } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/VisualBasic/Portable/Symbols/TypedConstant.vb
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System Imports System.Collections.Generic Imports System.Collections.Immutable Imports System.Runtime.CompilerServices Imports System.Runtime.InteropServices Imports System.Text Imports System.Threading Imports Microsoft.CodeAnalysis.CodeGen Imports Microsoft.CodeAnalysis.Collections Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports TypeKind = Microsoft.CodeAnalysis.TypeKind Namespace Microsoft.CodeAnalysis.VisualBasic Public Module TypedConstantExtensions ''' <summary> ''' Returns the System.String that represents the current TypedConstant. ''' </summary> ''' <returns>A System.String that represents the current TypedConstant.</returns> <Extension> Public Function ToVisualBasicString(constant As TypedConstant) As String If constant.IsNull Then Return "Nothing" End If If constant.Kind = TypedConstantKind.Array Then Return "{" & String.Join(", ", constant.Values.Select(Function(v) v.ToVisualBasicString())) & "}" End If If constant.Kind = TypedConstantKind.Type OrElse constant.TypeInternal.SpecialType = SpecialType.System_Object Then Return "GetType(" & constant.Value.ToString() & ")" End If If constant.Kind = TypedConstantKind.Enum Then ' TODO (tomat): use SymbolDisplay instead Return DisplayEnumConstant(constant) End If Return SymbolDisplay.FormatPrimitive(constant.ValueInternal, quoteStrings:=True, useHexadecimalNumbers:=False) End Function ' Decode the value of enum constant Private Function DisplayEnumConstant(constant As TypedConstant) As String Debug.Assert(constant.Kind = TypedConstantKind.Enum) ' Create a ConstantValue of enum underlying type Dim splType As SpecialType = DirectCast(constant.TypeInternal, NamedTypeSymbol).EnumUnderlyingType.SpecialType Dim valueConstant As ConstantValue = ConstantValue.Create(constant.ValueInternal, splType) Dim typeName As String = constant.Type.ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat) If valueConstant.IsUnsigned Then Return DisplayUnsignedEnumConstant(constant, splType, valueConstant.UInt64Value, typeName) Else Return DisplaySignedEnumConstant(constant, splType, valueConstant.Int64Value, typeName) End If End Function Private Function DisplayUnsignedEnumConstant(constant As TypedConstant, splType As SpecialType, ByVal constantToDecode As ULong, ByVal typeName As String) As String ' Specified valueConstant might have an exact matching enum field ' or it might be a bitwise Or of multiple enum fields. ' For the later case, we keep track of the current value of ' bitwise Or of possible enum fields. Dim curValue As ULong = 0 ' Initialize the value string to empty Dim pooledBuilder As PooledStringBuilder = Nothing Dim valueStringBuilder As StringBuilder = Nothing ' Iterate through all the constant members in the enum type Dim members = constant.Type.GetMembers() For Each member In members Dim field = TryCast(member, IFieldSymbol) If field IsNot Nothing AndAlso field.HasConstantValue Then Dim memberConstant = ConstantValue.Create(field.ConstantValue, splType) Dim memberValue = memberConstant.UInt64Value ' Do we have an exact matching enum field If memberValue = constantToDecode Then If Not pooledBuilder Is Nothing Then pooledBuilder.Free() End If Return typeName & "." & field.Name End If ' specifiedValue might be a bitwise Or of multiple enum fields ' Is the current member included in the specified value? If (memberValue And constantToDecode) = memberValue Then ' update the current value curValue = curValue Or memberValue If valueStringBuilder Is Nothing Then pooledBuilder = PooledStringBuilder.GetInstance() valueStringBuilder = pooledBuilder.Builder Else valueStringBuilder.Append(" Or ") End If valueStringBuilder.Append(typeName) valueStringBuilder.Append(".") valueStringBuilder.Append(field.Name) End If End If Next If Not pooledBuilder Is Nothing Then If curValue = constantToDecode Then ' return decoded enum constant Return pooledBuilder.ToStringAndFree() End If ' Unable to decode the enum constant pooledBuilder.Free() End If ' Unable to decode the enum constant, just display the integral value Return constant.ValueInternal.ToString() End Function Private Function DisplaySignedEnumConstant(constant As TypedConstant, ByVal splType As SpecialType, ByVal constantToDecode As Long, ByVal typeName As String) As String ' Specified valueConstant might have an exact matching enum field ' or it might be a bitwise Or of multiple enum fields. ' For the later case, we keep track of the current value of ' bitwise Or of possible enum fields. Dim curValue As Long = 0 ' Initialize the value string to empty Dim pooledBuilder As PooledStringBuilder = Nothing Dim valueStringBuilder As StringBuilder = Nothing ' Iterate through all the constant members in the enum type Dim members = constant.Type.GetMembers() For Each member In members Dim field = TryCast(member, IFieldSymbol) If field IsNot Nothing AndAlso field.HasConstantValue Then Dim memberConstant = ConstantValue.Create(field.ConstantValue, splType) Dim memberValue = memberConstant.Int64Value ' Do we have an exact matching enum field If memberValue = constantToDecode Then If Not pooledBuilder Is Nothing Then pooledBuilder.Free() End If Return typeName & "." & field.Name End If ' specifiedValue might be a bitwise Or of multiple enum fields ' Is the current member included in the specified value? If (memberValue And constantToDecode) = memberValue Then ' update the current value curValue = curValue Or memberValue If valueStringBuilder Is Nothing Then pooledBuilder = PooledStringBuilder.GetInstance() valueStringBuilder = pooledBuilder.Builder Else valueStringBuilder.Append(" Or ") End If valueStringBuilder.Append(typeName) valueStringBuilder.Append(".") valueStringBuilder.Append(field.Name) End If End If Next If Not pooledBuilder Is Nothing Then If curValue = constantToDecode Then ' return decoded enum constant Return pooledBuilder.ToStringAndFree() End If ' Unable to decode the enum constant pooledBuilder.Free() End If ' Unable to decode the enum constant, just display the integral value Return constant.ValueInternal.ToString() End Function End Module #If False Then ''' <summary> ''' TypedConstant represents a constant value used as an argument to an Attribute. The Typed constant can represent ''' a primitive type, an enum type, a system.type or an array of TypedConstants. ''' ''' Kind _value _type ''' Primitive Boxed value, string or nothing TypeSymbol for the boxed value possibly nothing for nothing literal ''' Enum Boxed value of the underlying type TypeSymbol for enum ''' Type TypeSymbol or nothing TypeSymbol for System.Type ''' Array TypeConstant() or nothing ArrayTypeSymbol ''' Error nothing TypeSymbol or ErrorTypeSymbol ''' ''' </summary> Public Structure TypedConstant Private ReadOnly _kind As TypedConstantKind Private ReadOnly _type As TypeSymbol Private ReadOnly _value As TypedConstantValue Private Sub New(type As TypeSymbol, kind As TypedConstantKind, value As TypedConstantValue) Debug.Assert(type IsNot Nothing OrElse kind = TypedConstantKind.Error AndAlso value.IsNull) _value = value _kind = kind _type = type End Sub Friend Sub New(constant As TypedConstant) MyClass.New(DirectCast(constant.Type, TypeSymbol), constant.Kind, constant.RawValue) End Sub Friend Sub New(type As TypeSymbol, array As ImmutableArray(Of TypedConstant)) MyClass.New(type, TypedConstantKind.Array, array) End Sub Friend Sub New(type As TypeSymbol, kind As TypedConstantKind, value As Object) MyClass.New(type, kind, New TypedConstantValue(value)) Debug.Assert(kind <> TypedConstantKind.Array) End Sub Public Shared Widening Operator CType(constant As TypedConstant) As TypedConstant Return New TypedConstant(constant._type, constant._kind, constant._value) End Operator Public Shared Narrowing Operator CType(constant As TypedConstant) As TypedConstant Return New TypedConstant(constant) End Operator ''' <summary> ''' The TypedConstant's kind. Can be one of Primitive, Enum, Type, Array or Error ''' </summary> Public ReadOnly Property Kind As TypedConstantKind Get Return _kind End Get End Property ''' <summary> ''' True if the constant represents a null literal. ''' </summary> Public ReadOnly Property IsNull As Boolean Get Return _value.IsNull End Get End Property ''' <summary> ''' Returns the value of a non-array <see cref="TypedConstant"/>, ''' for primitive constants a boxed value, string, or Nothing, ''' for enum constants a boxed value of the underlying type, ''' for type constants a <see cref="TypeSymbol"/>. ''' </summary> ''' <exception cref="InvalidOperationException">Constant represents an array, use <see cref="Values"/> to read its value.</exception> Public ReadOnly Property Value As Object Get If _kind = TypedConstantKind.Array Then Throw New InvalidOperationException("TypedConstant is an array. Use Values property.") End If Return _value.Object End Get End Property ''' <summary> ''' Returns the value for array constants. ''' </summary> ''' <exception cref="InvalidOperationException">Constant represents an array, use <see cref="Values"/> to read its value.</exception> Public ReadOnly Property Values As IEnumerable(Of TypedConstant) Get If _kind <> TypedConstantKind.Array Then Throw New InvalidOperationException("TypedConstant is not an array. Use Value property.") End If If IsNull Then Return Nothing End If Return _value.Array.Select(Function(constant) New TypedConstant(constant)) End Get End Property ''' <summary> ''' The TypedConstant's type. This is either a TypeSymbol of one of the primitive types, a TypeSymbol of an enum ''' type, a TypeSymbol for System.Type or an ArrayTypeSymbol. ''' </summary> Public ReadOnly Property Type As TypeSymbol Get Return _type End Get End Property #Region "Testing & Debugging" ''' <summary> ''' Returns the System.String that represents the current TypedConstant. ''' </summary> ''' <returns>A System.String that represents the current TypedConstant.</returns> Public Overrides Function ToString() As String If _value.IsNull Then Return "Nothing" End If If _kind = TypedConstantKind.Array Then Return "{" & String.Join(", ", _value.Array.Select(Function(v) New TypedConstant(v).ToString())) & "}" End If If _kind = TypedConstantKind.Type OrElse _type.SpecialType = SpecialType.System_Object Then Return "GetType(" & _value.Object.ToString() & ")" End If If _kind = TypedConstantKind.Enum Then ' TODO (tomat): use SymbolDisplay instead Return DisplayEnumConstant() End If Return SymbolDisplay.FormatPrimitive(_value.Object, quoteStrings:=True, useHexadecimalNumbers:=False) End Function ' Decode the value of enum constant Private Function DisplayEnumConstant() As String Debug.Assert(Kind = TypedConstantKind.Enum) ' Create a ConstantValue of enum underlying type Dim splType As SpecialType = Me.Type.GetEnumUnderlyingTypeOrSelf().SpecialType Dim valueConstant As ConstantValue = ConstantValue.Create(Me.Value, splType) Dim typeName As String = Me.Type.ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat) If valueConstant.IsUnsigned Then Return DisplayUnsignedEnumConstant(splType, valueConstant.UInt64Value, typeName) Else Return DisplaySignedEnumConstant(splType, valueConstant.Int64Value, typeName) End If End Function Private Function DisplayUnsignedEnumConstant(ByVal splType As SpecialType, ByVal constantToDecode As ULong, ByVal typeName As String) As String ' Specified valueConstant might have an exact matching enum field ' or it might be a bitwise Or of multiple enum fields. ' For the later case, we keep track of the current value of ' bitwise Or of possible enum fields. Dim curValue As ULong = 0 ' Initialize the value string to empty Dim pooledBuilder As PooledStringBuilder = Nothing Dim valueStringBuilder As StringBuilder = Nothing ' Iterate through all the constant members in the enum type Dim members As ImmutableArray(Of Symbol) = Me.Type.GetMembers() For Each member As Symbol In members Dim field = TryCast(member, FieldSymbol) If field IsNot Nothing AndAlso field.HasConstantValue Then Dim memberConstant = ConstantValue.Create(field.ConstantValue, splType) Dim memberValue = memberConstant.UInt64Value ' Do we have an exact matching enum field If memberValue = constantToDecode Then If Not pooledBuilder Is Nothing Then pooledBuilder.Free() End If Return typeName & "." & field.Name End If ' specifiedValue might be a bitwise Or of multiple enum fields ' Is the current member included in the specified value? If (memberValue And constantToDecode) = memberValue Then ' update the current value curValue = curValue Or memberValue If valueStringBuilder Is Nothing Then pooledBuilder = PooledStringBuilder.GetInstance() valueStringBuilder = pooledBuilder.Builder Else valueStringBuilder.Append(" Or ") End If valueStringBuilder.Append(typeName) valueStringBuilder.Append(".") valueStringBuilder.Append(field.Name) End If End If Next If Not pooledBuilder Is Nothing Then If curValue = constantToDecode Then ' return decoded enum constant Return pooledBuilder.ToStringAndFree() End If ' Unable to decode the enum constant pooledBuilder.Free() End If ' Unable to decode the enum constant, just display the integral value Return Value.ToString() End Function Private Function DisplaySignedEnumConstant(ByVal splType As SpecialType, ByVal constantToDecode As Long, ByVal typeName As String) As String ' Specified valueConstant might have an exact matching enum field ' or it might be a bitwise Or of multiple enum fields. ' For the later case, we keep track of the current value of ' bitwise Or of possible enum fields. Dim curValue As Long = 0 ' Initialize the value string to empty Dim pooledBuilder As PooledStringBuilder = Nothing Dim valueStringBuilder As StringBuilder = Nothing ' Iterate through all the constant members in the enum type Dim members As ImmutableArray(Of Symbol) = Me.Type.GetMembers() For Each member As Symbol In members Dim field = TryCast(member, FieldSymbol) If field IsNot Nothing AndAlso field.HasConstantValue Then Dim memberConstant = ConstantValue.Create(field.ConstantValue, splType) Dim memberValue = memberConstant.Int64Value ' Do we have an exact matching enum field If memberValue = constantToDecode Then If Not pooledBuilder Is Nothing Then pooledBuilder.Free() End If Return typeName & "." & field.Name End If ' specifiedValue might be a bitwise Or of multiple enum fields ' Is the current member included in the specified value? If (memberValue And constantToDecode) = memberValue Then ' update the current value curValue = curValue Or memberValue If valueStringBuilder Is Nothing Then pooledBuilder = PooledStringBuilder.GetInstance() valueStringBuilder = pooledBuilder.Builder Else valueStringBuilder.Append(" Or ") End If valueStringBuilder.Append(typeName) valueStringBuilder.Append(".") valueStringBuilder.Append(field.Name) End If End If Next If Not pooledBuilder Is Nothing Then If curValue = constantToDecode Then ' return decoded enum constant Return pooledBuilder.ToStringAndFree() End If ' Unable to decode the enum constant pooledBuilder.Free() End If ' Unable to decode the enum constant, just display the integral value Return Value.ToString() End Function #End Region End Structure #End If End Namespace
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System Imports System.Collections.Generic Imports System.Collections.Immutable Imports System.Runtime.CompilerServices Imports System.Runtime.InteropServices Imports System.Text Imports System.Threading Imports Microsoft.CodeAnalysis.CodeGen Imports Microsoft.CodeAnalysis.Collections Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports TypeKind = Microsoft.CodeAnalysis.TypeKind Namespace Microsoft.CodeAnalysis.VisualBasic Public Module TypedConstantExtensions ''' <summary> ''' Returns the System.String that represents the current TypedConstant. ''' </summary> ''' <returns>A System.String that represents the current TypedConstant.</returns> <Extension> Public Function ToVisualBasicString(constant As TypedConstant) As String If constant.IsNull Then Return "Nothing" End If If constant.Kind = TypedConstantKind.Array Then Return "{" & String.Join(", ", constant.Values.Select(Function(v) v.ToVisualBasicString())) & "}" End If If constant.Kind = TypedConstantKind.Type OrElse constant.TypeInternal.SpecialType = SpecialType.System_Object Then Return "GetType(" & constant.Value.ToString() & ")" End If If constant.Kind = TypedConstantKind.Enum Then ' TODO (tomat): use SymbolDisplay instead Return DisplayEnumConstant(constant) End If Return SymbolDisplay.FormatPrimitive(constant.ValueInternal, quoteStrings:=True, useHexadecimalNumbers:=False) End Function ' Decode the value of enum constant Private Function DisplayEnumConstant(constant As TypedConstant) As String Debug.Assert(constant.Kind = TypedConstantKind.Enum) ' Create a ConstantValue of enum underlying type Dim splType As SpecialType = DirectCast(constant.TypeInternal, NamedTypeSymbol).EnumUnderlyingType.SpecialType Dim valueConstant As ConstantValue = ConstantValue.Create(constant.ValueInternal, splType) Dim typeName As String = constant.Type.ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat) If valueConstant.IsUnsigned Then Return DisplayUnsignedEnumConstant(constant, splType, valueConstant.UInt64Value, typeName) Else Return DisplaySignedEnumConstant(constant, splType, valueConstant.Int64Value, typeName) End If End Function Private Function DisplayUnsignedEnumConstant(constant As TypedConstant, splType As SpecialType, ByVal constantToDecode As ULong, ByVal typeName As String) As String ' Specified valueConstant might have an exact matching enum field ' or it might be a bitwise Or of multiple enum fields. ' For the later case, we keep track of the current value of ' bitwise Or of possible enum fields. Dim curValue As ULong = 0 ' Initialize the value string to empty Dim pooledBuilder As PooledStringBuilder = Nothing Dim valueStringBuilder As StringBuilder = Nothing ' Iterate through all the constant members in the enum type Dim members = constant.Type.GetMembers() For Each member In members Dim field = TryCast(member, IFieldSymbol) If field IsNot Nothing AndAlso field.HasConstantValue Then Dim memberConstant = ConstantValue.Create(field.ConstantValue, splType) Dim memberValue = memberConstant.UInt64Value ' Do we have an exact matching enum field If memberValue = constantToDecode Then If Not pooledBuilder Is Nothing Then pooledBuilder.Free() End If Return typeName & "." & field.Name End If ' specifiedValue might be a bitwise Or of multiple enum fields ' Is the current member included in the specified value? If (memberValue And constantToDecode) = memberValue Then ' update the current value curValue = curValue Or memberValue If valueStringBuilder Is Nothing Then pooledBuilder = PooledStringBuilder.GetInstance() valueStringBuilder = pooledBuilder.Builder Else valueStringBuilder.Append(" Or ") End If valueStringBuilder.Append(typeName) valueStringBuilder.Append(".") valueStringBuilder.Append(field.Name) End If End If Next If Not pooledBuilder Is Nothing Then If curValue = constantToDecode Then ' return decoded enum constant Return pooledBuilder.ToStringAndFree() End If ' Unable to decode the enum constant pooledBuilder.Free() End If ' Unable to decode the enum constant, just display the integral value Return constant.ValueInternal.ToString() End Function Private Function DisplaySignedEnumConstant(constant As TypedConstant, ByVal splType As SpecialType, ByVal constantToDecode As Long, ByVal typeName As String) As String ' Specified valueConstant might have an exact matching enum field ' or it might be a bitwise Or of multiple enum fields. ' For the later case, we keep track of the current value of ' bitwise Or of possible enum fields. Dim curValue As Long = 0 ' Initialize the value string to empty Dim pooledBuilder As PooledStringBuilder = Nothing Dim valueStringBuilder As StringBuilder = Nothing ' Iterate through all the constant members in the enum type Dim members = constant.Type.GetMembers() For Each member In members Dim field = TryCast(member, IFieldSymbol) If field IsNot Nothing AndAlso field.HasConstantValue Then Dim memberConstant = ConstantValue.Create(field.ConstantValue, splType) Dim memberValue = memberConstant.Int64Value ' Do we have an exact matching enum field If memberValue = constantToDecode Then If Not pooledBuilder Is Nothing Then pooledBuilder.Free() End If Return typeName & "." & field.Name End If ' specifiedValue might be a bitwise Or of multiple enum fields ' Is the current member included in the specified value? If (memberValue And constantToDecode) = memberValue Then ' update the current value curValue = curValue Or memberValue If valueStringBuilder Is Nothing Then pooledBuilder = PooledStringBuilder.GetInstance() valueStringBuilder = pooledBuilder.Builder Else valueStringBuilder.Append(" Or ") End If valueStringBuilder.Append(typeName) valueStringBuilder.Append(".") valueStringBuilder.Append(field.Name) End If End If Next If Not pooledBuilder Is Nothing Then If curValue = constantToDecode Then ' return decoded enum constant Return pooledBuilder.ToStringAndFree() End If ' Unable to decode the enum constant pooledBuilder.Free() End If ' Unable to decode the enum constant, just display the integral value Return constant.ValueInternal.ToString() End Function End Module #If False Then ''' <summary> ''' TypedConstant represents a constant value used as an argument to an Attribute. The Typed constant can represent ''' a primitive type, an enum type, a system.type or an array of TypedConstants. ''' ''' Kind _value _type ''' Primitive Boxed value, string or nothing TypeSymbol for the boxed value possibly nothing for nothing literal ''' Enum Boxed value of the underlying type TypeSymbol for enum ''' Type TypeSymbol or nothing TypeSymbol for System.Type ''' Array TypeConstant() or nothing ArrayTypeSymbol ''' Error nothing TypeSymbol or ErrorTypeSymbol ''' ''' </summary> Public Structure TypedConstant Private ReadOnly _kind As TypedConstantKind Private ReadOnly _type As TypeSymbol Private ReadOnly _value As TypedConstantValue Private Sub New(type As TypeSymbol, kind As TypedConstantKind, value As TypedConstantValue) Debug.Assert(type IsNot Nothing OrElse kind = TypedConstantKind.Error AndAlso value.IsNull) _value = value _kind = kind _type = type End Sub Friend Sub New(constant As TypedConstant) MyClass.New(DirectCast(constant.Type, TypeSymbol), constant.Kind, constant.RawValue) End Sub Friend Sub New(type As TypeSymbol, array As ImmutableArray(Of TypedConstant)) MyClass.New(type, TypedConstantKind.Array, array) End Sub Friend Sub New(type As TypeSymbol, kind As TypedConstantKind, value As Object) MyClass.New(type, kind, New TypedConstantValue(value)) Debug.Assert(kind <> TypedConstantKind.Array) End Sub Public Shared Widening Operator CType(constant As TypedConstant) As TypedConstant Return New TypedConstant(constant._type, constant._kind, constant._value) End Operator Public Shared Narrowing Operator CType(constant As TypedConstant) As TypedConstant Return New TypedConstant(constant) End Operator ''' <summary> ''' The TypedConstant's kind. Can be one of Primitive, Enum, Type, Array or Error ''' </summary> Public ReadOnly Property Kind As TypedConstantKind Get Return _kind End Get End Property ''' <summary> ''' True if the constant represents a null literal. ''' </summary> Public ReadOnly Property IsNull As Boolean Get Return _value.IsNull End Get End Property ''' <summary> ''' Returns the value of a non-array <see cref="TypedConstant"/>, ''' for primitive constants a boxed value, string, or Nothing, ''' for enum constants a boxed value of the underlying type, ''' for type constants a <see cref="TypeSymbol"/>. ''' </summary> ''' <exception cref="InvalidOperationException">Constant represents an array, use <see cref="Values"/> to read its value.</exception> Public ReadOnly Property Value As Object Get If _kind = TypedConstantKind.Array Then Throw New InvalidOperationException("TypedConstant is an array. Use Values property.") End If Return _value.Object End Get End Property ''' <summary> ''' Returns the value for array constants. ''' </summary> ''' <exception cref="InvalidOperationException">Constant represents an array, use <see cref="Values"/> to read its value.</exception> Public ReadOnly Property Values As IEnumerable(Of TypedConstant) Get If _kind <> TypedConstantKind.Array Then Throw New InvalidOperationException("TypedConstant is not an array. Use Value property.") End If If IsNull Then Return Nothing End If Return _value.Array.Select(Function(constant) New TypedConstant(constant)) End Get End Property ''' <summary> ''' The TypedConstant's type. This is either a TypeSymbol of one of the primitive types, a TypeSymbol of an enum ''' type, a TypeSymbol for System.Type or an ArrayTypeSymbol. ''' </summary> Public ReadOnly Property Type As TypeSymbol Get Return _type End Get End Property #Region "Testing & Debugging" ''' <summary> ''' Returns the System.String that represents the current TypedConstant. ''' </summary> ''' <returns>A System.String that represents the current TypedConstant.</returns> Public Overrides Function ToString() As String If _value.IsNull Then Return "Nothing" End If If _kind = TypedConstantKind.Array Then Return "{" & String.Join(", ", _value.Array.Select(Function(v) New TypedConstant(v).ToString())) & "}" End If If _kind = TypedConstantKind.Type OrElse _type.SpecialType = SpecialType.System_Object Then Return "GetType(" & _value.Object.ToString() & ")" End If If _kind = TypedConstantKind.Enum Then ' TODO (tomat): use SymbolDisplay instead Return DisplayEnumConstant() End If Return SymbolDisplay.FormatPrimitive(_value.Object, quoteStrings:=True, useHexadecimalNumbers:=False) End Function ' Decode the value of enum constant Private Function DisplayEnumConstant() As String Debug.Assert(Kind = TypedConstantKind.Enum) ' Create a ConstantValue of enum underlying type Dim splType As SpecialType = Me.Type.GetEnumUnderlyingTypeOrSelf().SpecialType Dim valueConstant As ConstantValue = ConstantValue.Create(Me.Value, splType) Dim typeName As String = Me.Type.ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat) If valueConstant.IsUnsigned Then Return DisplayUnsignedEnumConstant(splType, valueConstant.UInt64Value, typeName) Else Return DisplaySignedEnumConstant(splType, valueConstant.Int64Value, typeName) End If End Function Private Function DisplayUnsignedEnumConstant(ByVal splType As SpecialType, ByVal constantToDecode As ULong, ByVal typeName As String) As String ' Specified valueConstant might have an exact matching enum field ' or it might be a bitwise Or of multiple enum fields. ' For the later case, we keep track of the current value of ' bitwise Or of possible enum fields. Dim curValue As ULong = 0 ' Initialize the value string to empty Dim pooledBuilder As PooledStringBuilder = Nothing Dim valueStringBuilder As StringBuilder = Nothing ' Iterate through all the constant members in the enum type Dim members As ImmutableArray(Of Symbol) = Me.Type.GetMembers() For Each member As Symbol In members Dim field = TryCast(member, FieldSymbol) If field IsNot Nothing AndAlso field.HasConstantValue Then Dim memberConstant = ConstantValue.Create(field.ConstantValue, splType) Dim memberValue = memberConstant.UInt64Value ' Do we have an exact matching enum field If memberValue = constantToDecode Then If Not pooledBuilder Is Nothing Then pooledBuilder.Free() End If Return typeName & "." & field.Name End If ' specifiedValue might be a bitwise Or of multiple enum fields ' Is the current member included in the specified value? If (memberValue And constantToDecode) = memberValue Then ' update the current value curValue = curValue Or memberValue If valueStringBuilder Is Nothing Then pooledBuilder = PooledStringBuilder.GetInstance() valueStringBuilder = pooledBuilder.Builder Else valueStringBuilder.Append(" Or ") End If valueStringBuilder.Append(typeName) valueStringBuilder.Append(".") valueStringBuilder.Append(field.Name) End If End If Next If Not pooledBuilder Is Nothing Then If curValue = constantToDecode Then ' return decoded enum constant Return pooledBuilder.ToStringAndFree() End If ' Unable to decode the enum constant pooledBuilder.Free() End If ' Unable to decode the enum constant, just display the integral value Return Value.ToString() End Function Private Function DisplaySignedEnumConstant(ByVal splType As SpecialType, ByVal constantToDecode As Long, ByVal typeName As String) As String ' Specified valueConstant might have an exact matching enum field ' or it might be a bitwise Or of multiple enum fields. ' For the later case, we keep track of the current value of ' bitwise Or of possible enum fields. Dim curValue As Long = 0 ' Initialize the value string to empty Dim pooledBuilder As PooledStringBuilder = Nothing Dim valueStringBuilder As StringBuilder = Nothing ' Iterate through all the constant members in the enum type Dim members As ImmutableArray(Of Symbol) = Me.Type.GetMembers() For Each member As Symbol In members Dim field = TryCast(member, FieldSymbol) If field IsNot Nothing AndAlso field.HasConstantValue Then Dim memberConstant = ConstantValue.Create(field.ConstantValue, splType) Dim memberValue = memberConstant.Int64Value ' Do we have an exact matching enum field If memberValue = constantToDecode Then If Not pooledBuilder Is Nothing Then pooledBuilder.Free() End If Return typeName & "." & field.Name End If ' specifiedValue might be a bitwise Or of multiple enum fields ' Is the current member included in the specified value? If (memberValue And constantToDecode) = memberValue Then ' update the current value curValue = curValue Or memberValue If valueStringBuilder Is Nothing Then pooledBuilder = PooledStringBuilder.GetInstance() valueStringBuilder = pooledBuilder.Builder Else valueStringBuilder.Append(" Or ") End If valueStringBuilder.Append(typeName) valueStringBuilder.Append(".") valueStringBuilder.Append(field.Name) End If End If Next If Not pooledBuilder Is Nothing Then If curValue = constantToDecode Then ' return decoded enum constant Return pooledBuilder.ToStringAndFree() End If ' Unable to decode the enum constant pooledBuilder.Free() End If ' Unable to decode the enum constant, just display the integral value Return Value.ToString() End Function #End Region End Structure #End If End Namespace
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Analyzers/Core/Analyzers/PopulateSwitch/PopulateSwitchStatementHelpers.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using Microsoft.CodeAnalysis.Operations; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Shared.Utilities; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.PopulateSwitch { internal static class PopulateSwitchStatementHelpers { public const string MissingCases = nameof(MissingCases); public const string MissingDefaultCase = nameof(MissingDefaultCase); public static bool HasDefaultCase(ISwitchOperation switchStatement) { for (var index = switchStatement.Cases.Length - 1; index >= 0; index--) { if (HasDefaultCase(switchStatement.Cases[index])) { return true; } } return false; } private static bool HasDefaultCase(ISwitchCaseOperation switchCase) { foreach (var clause in switchCase.Clauses) { if (clause.CaseKind == CaseKind.Default) { return true; } } return false; } public static ICollection<ISymbol> GetMissingEnumMembers(ISwitchOperation switchStatement) { var switchExpression = switchStatement.Value; var switchExpressionType = switchExpression?.Type; var enumMembers = new Dictionary<long, ISymbol>(); // Check if the type of the expression is a nullable INamedTypeSymbol // if the type is both nullable and an INamedTypeSymbol extract the type argument from the nullable // and check if it is of enum type if (switchExpressionType != null) switchExpressionType = switchExpressionType.IsNullable(out var underlyingType) ? underlyingType : switchExpressionType; if (switchExpressionType?.TypeKind == TypeKind.Enum) { if (!TryGetAllEnumMembers(switchExpressionType, enumMembers) || !TryRemoveExistingEnumMembers(switchStatement, enumMembers)) { return SpecializedCollections.EmptyCollection<ISymbol>(); } } return enumMembers.Values; } private static bool TryRemoveExistingEnumMembers(ISwitchOperation switchStatement, Dictionary<long, ISymbol> enumValues) { foreach (var switchCase in switchStatement.Cases) { foreach (var clause in switchCase.Clauses) { switch (clause.CaseKind) { default: case CaseKind.None: case CaseKind.Relational: case CaseKind.Range: // This was some sort of complex switch. For now just ignore // these and assume that they're complete. return false; case CaseKind.Default: // ignore the 'default/else' clause. continue; case CaseKind.SingleValue: var value = ((ISingleValueCaseClauseOperation)clause).Value; if (value == null || !value.ConstantValue.HasValue) { // We had a case which didn't resolve properly. // Assume the switch is complete. return false; } var caseValue = IntegerUtilities.ToInt64(value.ConstantValue.Value); enumValues.Remove(caseValue); break; } } } return true; } public static bool TryGetAllEnumMembers( ITypeSymbol enumType, Dictionary<long, ISymbol> enumValues) { foreach (var member in enumType.GetMembers()) { // skip `.ctor` and `__value` if (member is not IFieldSymbol fieldSymbol || fieldSymbol.Type.SpecialType != SpecialType.None) { continue; } if (fieldSymbol.ConstantValue == null) { // We have an enum that has problems with it (i.e. non-const members). We won't // be able to determine properly if the switch is complete. Assume it is so we // don't offer to do anything. return false; } // Multiple enum members may have the same value. Only consider the first one // we run int. var enumValue = IntegerUtilities.ToInt64(fieldSymbol.ConstantValue); if (!enumValues.ContainsKey(enumValue)) { enumValues.Add(enumValue, fieldSymbol); } } return true; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using Microsoft.CodeAnalysis.Operations; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Shared.Utilities; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.PopulateSwitch { internal static class PopulateSwitchStatementHelpers { public const string MissingCases = nameof(MissingCases); public const string MissingDefaultCase = nameof(MissingDefaultCase); public static bool HasDefaultCase(ISwitchOperation switchStatement) { for (var index = switchStatement.Cases.Length - 1; index >= 0; index--) { if (HasDefaultCase(switchStatement.Cases[index])) { return true; } } return false; } private static bool HasDefaultCase(ISwitchCaseOperation switchCase) { foreach (var clause in switchCase.Clauses) { if (clause.CaseKind == CaseKind.Default) { return true; } } return false; } public static ICollection<ISymbol> GetMissingEnumMembers(ISwitchOperation switchStatement) { var switchExpression = switchStatement.Value; var switchExpressionType = switchExpression?.Type; var enumMembers = new Dictionary<long, ISymbol>(); // Check if the type of the expression is a nullable INamedTypeSymbol // if the type is both nullable and an INamedTypeSymbol extract the type argument from the nullable // and check if it is of enum type if (switchExpressionType != null) switchExpressionType = switchExpressionType.IsNullable(out var underlyingType) ? underlyingType : switchExpressionType; if (switchExpressionType?.TypeKind == TypeKind.Enum) { if (!TryGetAllEnumMembers(switchExpressionType, enumMembers) || !TryRemoveExistingEnumMembers(switchStatement, enumMembers)) { return SpecializedCollections.EmptyCollection<ISymbol>(); } } return enumMembers.Values; } private static bool TryRemoveExistingEnumMembers(ISwitchOperation switchStatement, Dictionary<long, ISymbol> enumValues) { foreach (var switchCase in switchStatement.Cases) { foreach (var clause in switchCase.Clauses) { switch (clause.CaseKind) { default: case CaseKind.None: case CaseKind.Relational: case CaseKind.Range: // This was some sort of complex switch. For now just ignore // these and assume that they're complete. return false; case CaseKind.Default: // ignore the 'default/else' clause. continue; case CaseKind.SingleValue: var value = ((ISingleValueCaseClauseOperation)clause).Value; if (value == null || !value.ConstantValue.HasValue) { // We had a case which didn't resolve properly. // Assume the switch is complete. return false; } var caseValue = IntegerUtilities.ToInt64(value.ConstantValue.Value); enumValues.Remove(caseValue); break; } } } return true; } public static bool TryGetAllEnumMembers( ITypeSymbol enumType, Dictionary<long, ISymbol> enumValues) { foreach (var member in enumType.GetMembers()) { // skip `.ctor` and `__value` if (member is not IFieldSymbol fieldSymbol || fieldSymbol.Type.SpecialType != SpecialType.None) { continue; } if (fieldSymbol.ConstantValue == null) { // We have an enum that has problems with it (i.e. non-const members). We won't // be able to determine properly if the switch is complete. Assume it is so we // don't offer to do anything. return false; } // Multiple enum members may have the same value. Only consider the first one // we run int. var enumValue = IntegerUtilities.ToInt64(fieldSymbol.ConstantValue); if (!enumValues.ContainsKey(enumValue)) { enumValues.Add(enumValue, fieldSymbol); } } return true; } } }
-1
dotnet/roslyn
55,407
Emit EnC info for methods with no sequence points
Fixes https://github.com/dotnet/roslyn/issues/55381
tmat
2021-08-04T19:07:07Z
2021-08-12T16:02:12Z
af25bd0383bf43f8f2bbada6c236ca4c43dfa9c1
d87afc9cab53de52d5be7f7a96454b069ac49992
Emit EnC info for methods with no sequence points. Fixes https://github.com/dotnet/roslyn/issues/55381
./src/Compilers/CSharp/Test/Semantic/FlowAnalysis/FlowDiagnosticTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests { public class FlowDiagnosticTests : FlowTestBase { [Fact] public void TestBug12350() { // We suppress the "local variable is only written" warning if the // variable is assigned a non-constant value. string program = @" class Program { static int X() { return 1; } static void M() { int i1 = 123; // 0219 int i2 = X(); // no warning int? i3 = 123; // 0219 int? i4 = null; // 0219 int? i5 = X(); // no warning int i6 = default(int); // 0219 int? i7 = default(int?); // 0219 int? i8 = new int?(); // 0219 int i9 = new int(); // 0219 } }"; CreateCompilation(program).VerifyDiagnostics( // (7,13): warning CS0219: The variable 'i1' is assigned but its value is never used // int i1 = 123; // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1"), // (9,14): warning CS0219: The variable 'i3' is assigned but its value is never used // int? i3 = 123; // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i3").WithArguments("i3"), // (10,14): warning CS0219: The variable 'i4' is assigned but its value is never used // int? i4 = null; // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i4").WithArguments("i4"), // (12,13): warning CS0219: The variable 'i6' is assigned but its value is never used // int i6 = default(int); // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i6").WithArguments("i6"), // (13,14): warning CS0219: The variable 'i7' is assigned but its value is never used // int? i7 = default(int?); // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i7").WithArguments("i7"), // (14,14): warning CS0219: The variable 'i8' is assigned but its value is never used // int? i8 = new int?(); // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i8").WithArguments("i8"), // (15,13): warning CS0219: The variable 'i9' is assigned but its value is never used // int i9 = new int(); // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i9").WithArguments("i9")); } [Fact] public void Test1() { string program = @" namespace ConsoleApplication1 { class Program { public static void F(int z) { int x; if (z == 2) { int y = x; x = y; // use of unassigned local variable 'x' } else { int y = x; x = y; // diagnostic suppressed here } } } }"; CreateCompilation(program).VerifyDiagnostics( // (11,25): error CS0165: Use of unassigned local variable 'x' // int y = x; x = y; // use of unassigned local variable 'x' Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x") ); } [Fact] public void Test2() { //x is "assigned when true" after "false" //Therefore x is "assigned" before "z == 1" (5.3.3.24) //Therefore x is "assigned" after "z == 1" (5.3.3.20) //Therefore x is "assigned when true" after "(false && z == 1)" (5.3.3.24) //Since the condition of the ?: expression is the constant true, the state of x after the ?: expression is the same as the state of x after the consequence (5.3.3.28) //Since the state of x after the consequence is "assigned when true", the state of x after the ?: expression is "assigned when true" (5.3.3.28) //Since the state of x after the if's condition is "assigned when true", x is assigned in the then block (5.3.3.5) //Therefore, there should be no error. string program = @" namespace ConsoleApplication1 { class Program { void F(int z) { int x; if (true ? (false && z == 1) : true) x = x + 1; // Dev10 complains x not assigned. } } }"; var comp = CreateCompilation(program); var errs = this.FlowDiagnostics(comp); Assert.Equal(0, errs.Count()); } [Fact] public void Test3() { string program = @" class Program { int F(int z) { } }"; var comp = CreateCompilation(program); var errs = this.FlowDiagnostics(comp); Assert.Equal(1, errs.Count()); } [Fact] public void Test4() { // v is definitely assigned at the beginning of any unreachable statement. string program = @" class Program { void F() { if (false) { int x; // warning: unreachable code x = x + 1; // no error: x assigned when unreachable } } }"; var comp = CreateCompilation(program); int[] count = new int[4]; foreach (var e in this.FlowDiagnostics(comp)) count[(int)e.Severity]++; Assert.Equal(0, count[(int)DiagnosticSeverity.Error]); Assert.Equal(1, count[(int)DiagnosticSeverity.Warning]); Assert.Equal(0, count[(int)DiagnosticSeverity.Info]); } [Fact] public void Test5() { // v is definitely assigned at the beginning of any unreachable statement. string program = @" class A { static void F() { goto L2; goto L1; // unreachable code detected int x; L1: ; // Roslyn: extrs warning CS0162 -unreachable code x = x + 1; // no definite assignment problem in unreachable code L2: ; } } "; var comp = CreateCompilation(program); int[] count = new int[4]; foreach (var e in this.FlowDiagnostics(comp)) count[(int)e.Severity]++; Assert.Equal(0, count[(int)DiagnosticSeverity.Error]); Assert.Equal(2, count[(int)DiagnosticSeverity.Warning]); Assert.Equal(0, count[(int)DiagnosticSeverity.Info]); } [WorkItem(537918, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537918")] [Fact] public void AssertForInvalidBreak() { // v is definitely assigned at the beginning of any unreachable statement. string program = @" public class Test { public static int Main() { int ret = 1; break; // Assert here return (ret); } } "; var comp = CreateCompilation(program); comp.GetMethodBodyDiagnostics().Verify( // (7,9): error CS0139: No enclosing loop out of which to break or continue // break; // Assert here Diagnostic(ErrorCode.ERR_NoBreakOrCont, "break;")); } [WorkItem(538064, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538064")] [Fact] public void IfFalse() { string program = @" using System; class Program { static void Main() { if (false) { } } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [WorkItem(538067, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538067")] [Fact] public void WhileConstEqualsConst() { string program = @" using System; class Program { bool goo() { const bool b = true; while (b == b) { return b; } } static void Main() { } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [WorkItem(538175, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538175")] [Fact] public void BreakWithoutTarget() { string program = @"public class Test { public static void Main() { if (true) break; } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [Fact] public void OutCausesAssignment() { string program = @"class Program { void F(out int x) { G(out x); } void G(out int x) { x = 1; } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [Fact] public void OutNotAssigned01() { string program = @"class Program { bool b; void F(out int x) { if (b) return; } }"; var comp = CreateCompilation(program); Assert.Equal(2, this.FlowDiagnostics(comp).Count()); } [WorkItem(539374, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539374")] [Fact] public void OutAssignedAfterCall01() { string program = @"class Program { void F(out int x, int y) { x = y; } void G() { int x; F(out x, x); } }"; var comp = CreateCompilation(program); Assert.Equal(1, this.FlowDiagnostics(comp).Count()); } [WorkItem(538067, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538067")] [Fact] public void WhileConstEqualsConst2() { string program = @" using System; class Program { bool goo() { const bool b = true; while (b == b) { return b; } return b; // Should detect this line as unreachable code. } static void Main() { } }"; var comp = CreateCompilation(program); int[] count = new int[4]; foreach (var e in this.FlowDiagnostics(comp)) count[(int)e.Severity]++; Assert.Equal(0, count[(int)DiagnosticSeverity.Error]); Assert.Equal(1, count[(int)DiagnosticSeverity.Warning]); Assert.Equal(0, count[(int)DiagnosticSeverity.Info]); } [WorkItem(538072, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538072")] [Fact] public void UnusedLocal() { string program = @" using System; class Program { int x; int y; int z; static void Main() { int a; const bool b = true; } void goo() { y = 2; Console.WriteLine(z); } }"; var comp = CreateCompilation(program); int[] count = new int[4]; Dictionary<int, int> warnings = new Dictionary<int, int>(); foreach (var e in this.FlowDiagnostics(comp)) { count[(int)e.Severity]++; if (!warnings.ContainsKey(e.Code)) warnings[e.Code] = 0; warnings[e.Code] += 1; } Assert.Equal(0, count[(int)DiagnosticSeverity.Error]); Assert.Equal(0, count[(int)DiagnosticSeverity.Info]); // See bug 3562 - field level flow analysis warnings CS0169, CS0414 and CS0649 are out of scope for M2. // TODO: Fix this test once CS0169, CS0414 and CS0649 are implemented. // Assert.Equal(5, count[(int)DiagnosticSeverity.Warning]); Assert.Equal(2, count[(int)DiagnosticSeverity.Warning]); Assert.Equal(1, warnings[168]); Assert.Equal(1, warnings[219]); // See bug 3562 - field level flow analysis warnings CS0169, CS0414 and CS0649 are out of scope for M2. // TODO: Fix this test once CS0169, CS0414 and CS0649 are implemented. // Assert.Equal(1, warnings[169]); // Assert.Equal(1, warnings[414]); // Assert.Equal(1, warnings[649]); } [WorkItem(538384, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538384")] [Fact] public void UnusedLocalConstants() { string program = @" using System; class Program { static void Main() { const string CONST1 = ""hello""; // Should not report CS0219 Console.WriteLine(CONST1 != ""hello""); int i = 1; const long CONST2 = 1; const uint CONST3 = 1; // Should not report CS0219 while (CONST2 < CONST3 - i) { if (CONST3 < CONST3 - i) continue; } } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [WorkItem(538385, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538385")] [Fact] public void UnusedLocalReferenceTypedVariables() { string program = @" using System; class Program { static void Main() { object o = 1; // Should not report CS0219 Test c = new Test(); // Should not report CS0219 c = new Program(); string s = string.Empty; // Should not report CS0219 s = null; } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [WorkItem(538386, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538386")] [Fact] public void UnusedLocalValueTypedVariables() { string program = @" using System; class Program { static void Main() { } public void Repro2(params int[] x) { int i = x[0]; // Should not report CS0219 byte b1 = 1; byte b11 = b1; // Should not report CS0219 } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [Fact] public void RefParameter01() { string program = @" class Program { public static void Main(string[] args) { int i; F(ref i); // use of unassigned local variable 'i' } static void F(ref int i) { } }"; var comp = CreateCompilation(program); Assert.NotEmpty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [Fact] public void OutParameter01() { string program = @" class Program { public static void Main(string[] args) { int i; F(out i); int j = i; } static void F(out int i) { i = 1; } }"; var comp = CreateCompilation(program); Assert.Empty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [Fact] public void Goto01() { string program = @" using System; class Program { public void M(bool b) { if (b) goto label; int i; i = 3; i = i + 1; label: int j = i; // i not definitely assigned } }"; var comp = CreateCompilation(program); Assert.NotEmpty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [Fact] public void LambdaParameters() { string program = @" using System; class Program { delegate void Func(ref int i, int r); static void Main(string[] args) { Func fnc = (ref int arg, int arg2) => { arg = arg; }; } }"; var comp = CreateCompilation(program); Assert.Empty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [Fact] public void LambdaMightNotBeInvoked() { string program = @" class Program { delegate void Func(); static void Main(string[] args) { int i; Func query = () => { i = 12; }; int j = i; } }"; var comp = CreateCompilation(program); Assert.NotEmpty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [Fact] public void LambdaMustAssignOutParameters() { string program = @" class Program { delegate void Func(out int x); static void Main(string[] args) { Func query = (out int x) => { }; } }"; var comp = CreateCompilation(program); Assert.NotEmpty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [Fact, WorkItem(528052, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/528052")] public void InnerVariablesAreNotDefinitelyAssignedInBeginningOfLambdaBody() { string program = @" using System; class Program { static void Main() { return; Action f = () => { int y = y; }; } }"; CreateCompilation(program).VerifyDiagnostics( // (9,9): warning CS0162: Unreachable code detected // Action f = () => { int y = y; }; Diagnostic(ErrorCode.WRN_UnreachableCode, "Action"), // (9,36): error CS0165: Use of unassigned local variable 'y' // Action f = () => { int y = y; }; Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y") ); } [WorkItem(540139, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540139")] [Fact] public void DelegateCreationReceiverIsRead() { string program = @" using System; class Program { static void Main() { Action a; Func<string> b = new Func<string>(a.ToString); } } "; var comp = CreateCompilation(program); Assert.NotEmpty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [WorkItem(540405, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540405")] [Fact] public void ErrorInFieldInitializerLambda() { string program = @" using System; class Program { static Func<string> x = () => { string s; return s; }; static void Main() { } } "; CreateCompilation(program).VerifyDiagnostics( // (6,54): error CS0165: Use of unassigned local variable 's' // static Func<string> x = () => { string s; return s; }; Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s") ); } [WorkItem(541389, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541389")] [Fact] public void IterationWithEmptyBody() { string program = @" public class A { public static void Main(string[] args) { for (int i = 0; i < 10; i++) ; foreach (var v in args); int len = args.Length; while (len-- > 0); } }"; CreateCompilation(program).VerifyDiagnostics(); } [WorkItem(541389, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541389")] [Fact] public void SelectionWithEmptyBody() { string program = @" public class A { public static void Main(string[] args) { int len = args.Length; if (len++ < 9) ; else ; } }"; CreateCompilation(program).VerifyDiagnostics( Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";"), Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";")); } [WorkItem(542146, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542146")] [Fact] public void FieldlikeEvent() { string program = @"public delegate void D(); public struct S { public event D Ev; public S(D d) { Ev = null; Ev += d; } }"; CreateCompilation(program).VerifyDiagnostics( // (4,20): warning CS0414: The field 'S.Ev' is assigned but its value is never used // public event D Ev; Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "Ev").WithArguments("S.Ev")); } [WorkItem(542187, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542187")] [Fact] public void GotoFromTry() { string program = @"class Test { static void F(int x) { } static void Main() { int a; try { a = 1; goto L1; } finally { } L1: F(a); } }"; CreateCompilation(program).VerifyDiagnostics(); } [WorkItem(542154, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542154")] [Fact] public void UnreachableThrow() { string program = @"public class C { static void Main() { return; throw Goo(); } static System.Exception Goo() { System.Console.WriteLine(""Hello""); return null; } } "; CreateCompilation(program).VerifyDiagnostics(); } [WorkItem(542585, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542585")] [Fact] public void Bug9870() { string program = @" struct S<T> { T x; static void Goo() { x.x = 1; } }"; var comp = CreateCompilation(program); comp.VerifyDiagnostics( // (8,9): error CS0120: An object reference is required for the non-static field, method, or property 'S<T>.x' // x.x = 1; Diagnostic(ErrorCode.ERR_ObjectRequired, "x").WithArguments("S<T>.x") ); } [WorkItem(542597, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542597")] [Fact] public void LambdaEntryPointIsReachable() { string program = @"class Program { static void Main(string[] args) { int i; return; System.Action a = () => { int j = i + j; }; } }"; var comp = CreateCompilation(program); comp.VerifyDiagnostics( // unreachable statement // (7,23): warning CS0162: Unreachable code detected // System.Action a = () => Diagnostic(ErrorCode.WRN_UnreachableCode, "System"), // (9,25): error CS0165: Use of unassigned local variable 'j' // int j = i + j; Diagnostic(ErrorCode.ERR_UseDefViolation, "j").WithArguments("j") ); } [WorkItem(542597, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542597")] [Fact] public void LambdaInUnimplementedPartial() { string program = @"using System; partial class C { static partial void Goo(Action a); static void Main() { Goo(() => { int x, y = x; }); } }"; var comp = CreateCompilation(program); comp.VerifyDiagnostics( // (9,32): error CS0165: Use of unassigned local variable 'x' // Goo(() => { int x, y = x; }); Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x") ); } [WorkItem(541887, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541887")] [Fact] public void CascadedDiagnostics01() { string program = @" class Program { static void Main(string[] args) { var s = goo<,int>(123); } public static int goo<T>(int i) { return 1; } }"; var comp = CreateCompilation(program); var parseErrors = comp.SyntaxTrees[0].GetDiagnostics(); var errors = comp.GetDiagnostics(); Assert.Equal(parseErrors.Count(), errors.Count()); } [Fact] public void UnassignedInInitializer() { string program = @"class C { System.Action a = () => { int i; int j = i; }; }"; var comp = CreateCompilation(program); comp.VerifyDiagnostics( // (3,46): error CS0165: Use of unassigned local variable 'i' // System.Action a = () => { int i; int j = i; }; Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i") ); } [WorkItem(543343, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543343")] [Fact] public void ConstInSwitch() { string program = @"class Program { static void Main(string[] args) { switch (args.Length) { case 0: const int N = 3; break; case 1: int M = N; break; } } }"; var comp = CreateCompilation(program); comp.VerifyDiagnostics( // (11,21): warning CS0219: The variable 'M' is assigned but its value is never used // int M = N; Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "M").WithArguments("M") ); } #region "Struct" [Fact] public void CycleWithInitialization() { string program = @" public struct A { A a = new A(); // CS8036 public static void Main() { A a = new A(); } } "; CreateCompilation(program, parseOptions: TestOptions.Regular9).VerifyDiagnostics( // (4,7): error CS8773: Feature 'struct field initializers' is not available in C# 9.0. Please use language version 10.0 or greater. // A a = new A(); // CS8036 Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "a").WithArguments("struct field initializers", "10.0").WithLocation(4, 7), // (4,7): error CS0523: Struct member 'A.a' of type 'A' causes a cycle in the struct layout // A a = new A(); // CS8036 Diagnostic(ErrorCode.ERR_StructLayoutCycle, "a").WithArguments("A.a", "A").WithLocation(4, 7), // (7,11): warning CS0219: The variable 'a' is assigned but its value is never used // A a = new A(); Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").WithLocation(7, 11), // (4,7): warning CS0414: The field 'A.a' is assigned but its value is never used // A a = new A(); // CS8036 Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "a").WithArguments("A.a").WithLocation(4, 7)); } [WorkItem(542356, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542356")] [Fact] public void StaticMemberExplosion() { string program = @" struct A<T> { static A<A<T>> x; } struct B<T> { static A<B<T>> x; } struct C<T> { static D<T> x; } struct D<T> { static C<D<T>> x; } "; CreateCompilation(program) .VerifyDiagnostics( // (14,17): error CS0523: Struct member 'C<T>.x' of type 'D<T>' causes a cycle in the struct layout // static D<T> x; Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("C<T>.x", "D<T>").WithLocation(14, 17), // (18,20): error CS0523: Struct member 'D<T>.x' of type 'C<D<T>>' causes a cycle in the struct layout // static C<D<T>> x; Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("D<T>.x", "C<D<T>>").WithLocation(18, 20), // (4,20): error CS0523: Struct member 'A<T>.x' of type 'A<A<T>>' causes a cycle in the struct layout // static A<A<T>> x; Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("A<T>.x", "A<A<T>>").WithLocation(4, 20), // (9,20): warning CS0169: The field 'B<T>.x' is never used // static A<B<T>> x; Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("B<T>.x").WithLocation(9, 20), // (4,20): warning CS0169: The field 'A<T>.x' is never used // static A<A<T>> x; Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("A<T>.x").WithLocation(4, 20), // (18,20): warning CS0169: The field 'D<T>.x' is never used // static C<D<T>> x; Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("D<T>.x").WithLocation(18, 20), // (14,17): warning CS0169: The field 'C<T>.x' is never used // static D<T> x; Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("C<T>.x").WithLocation(14, 17) ); } [Fact] public void StaticSequential() { string program = @" partial struct S { public static int x; } partial struct S { public static int y; }"; CreateCompilation(program) .VerifyDiagnostics( // (4,23): warning CS0649: Field 'S.x' is never assigned to, and will always have its default value 0 // public static int x; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("S.x", "0"), // (9,23): warning CS0649: Field 'S.y' is never assigned to, and will always have its default value 0 // public static int y; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "y").WithArguments("S.y", "0") ); } [WorkItem(542567, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542567")] [Fact] public void ImplicitFieldSequential() { string program = @"partial struct S1 { public int x; } partial struct S1 { public int y { get; set; } } partial struct S2 { public int x; } delegate void D(); partial struct S2 { public event D y; }"; CreateCompilation(program) .VerifyDiagnostics( // (1,16): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'S1'. To specify an ordering, all instance fields must be in the same declaration. // partial struct S1 Diagnostic(ErrorCode.WRN_SequentialOnPartialClass, "S1").WithArguments("S1"), // (11,16): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'S2'. To specify an ordering, all instance fields must be in the same declaration. // partial struct S2 Diagnostic(ErrorCode.WRN_SequentialOnPartialClass, "S2").WithArguments("S2"), // (3,16): warning CS0649: Field 'S1.x' is never assigned to, and will always have its default value 0 // public int x; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("S1.x", "0"), // (13,16): warning CS0649: Field 'S2.x' is never assigned to, and will always have its default value 0 // public int x; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("S2.x", "0"), // (19,20): warning CS0067: The event 'S2.y' is never used // public event D y; Diagnostic(ErrorCode.WRN_UnreferencedEvent, "y").WithArguments("S2.y") ); } [Fact] public void StaticInitializer() { string program = @" public struct A { static System.Func<int> d = () => { int j; return j * 9000; }; public static void Main() { } } "; CreateCompilation(program) .VerifyDiagnostics( Diagnostic(ErrorCode.ERR_UseDefViolation, "j").WithArguments("j") ); } [Fact] public void AllPiecesAssigned() { string program = @" struct S { public int x, y; } class Program { public static void Main(string[] args) { S s; s.x = args.Length; s.y = args.Length; S t = s; } } "; CreateCompilation(program) .VerifyDiagnostics( ); } [Fact] public void OnePieceMissing() { string program = @" struct S { public int x, y; } class Program { public static void Main(string[] args) { S s; s.x = args.Length; S t = s; } } "; CreateCompilation(program) .VerifyDiagnostics( // (12,15): error CS0165: Use of unassigned local variable 's' // S t = s; Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s"), // (4,19): warning CS0649: Field 'S.y' is never assigned to, and will always have its default value 0 // public int x, y; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "y").WithArguments("S.y", "0") ); } [Fact] public void OnePieceOnOnePath() { string program = @" struct S { public int x, y; } class Program { public void F(S s) { S s2; if (s.x == 3) s2 = s; else s2.x = s.x; int x = s2.x; } } "; CreateCompilation(program) .VerifyDiagnostics( // (4,19): warning CS0649: Field 'S.y' is never assigned to, and will always have its default value 0 // public int x, y; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "y").WithArguments("S.y", "0") ); } [Fact] public void DefaultConstructor() { string program = @" struct S { public int x, y; } class Program { public static void Main(string[] args) { S s = new S(); s.x = s.y = s.x; } } "; CreateCompilation(program) .VerifyDiagnostics( ); } [Fact] public void FieldAssignedInConstructor() { string program = @" struct S { int x, y; S(int x, int y) { this.x = x; this.y = y; } }"; CreateCompilation(program) .VerifyDiagnostics( ); } [Fact] public void FieldUnassignedInConstructor() { string program = @" struct S { int x, y; S(int x) { this.x = x; } }"; CreateCompilation(program) .VerifyDiagnostics( // (5,5): error CS0171: Field 'S.y' must be fully assigned before control is returned to the caller // S(int x) { this.x = x; } Diagnostic(ErrorCode.ERR_UnassignedThis, "S").WithArguments("S.y"), // (4,12): warning CS0169: The field 'S.y' is never used // int x, y; Diagnostic(ErrorCode.WRN_UnreferencedField, "y").WithArguments("S.y") ); } [WorkItem(543429, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543429")] [Fact] public void ConstructorCannotComplete() { string program = @"using System; public struct S { int value; public S(int value) { throw new NotImplementedException(); } }"; CreateCompilation(program).VerifyDiagnostics( // (4,9): warning CS0169: The field 'S.value' is never used // int value; Diagnostic(ErrorCode.WRN_UnreferencedField, "value").WithArguments("S.value") ); } [Fact] public void AutoPropInitialization1() { string program = @" struct Program { public int X { get; private set; } public Program(int x) { } public static void Main(string[] args) { } }"; CreateCompilation(program) .VerifyDiagnostics( // (5,12): error CS0843: Backing field for automatically implemented property 'Program.X' must be fully assigned before control is returned to the caller. Consider calling the default constructor from a constructor initializer. Diagnostic(ErrorCode.ERR_UnassignedThisAutoProperty, "Program").WithArguments("Program.X")); } [Fact] public void AutoPropInitialization2() { var text = @"struct S { public int P { get; set; } = 1; internal static long Q { get; } = 10; public decimal R { get; } = 300; public S(int i) {} }"; var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); comp.VerifyDiagnostics( // (3,16): error CS8773: Feature 'struct field initializers' is not available in C# 9.0. Please use language version 10.0 or greater. // public int P { get; set; } = 1; Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "P").WithArguments("struct field initializers", "10.0").WithLocation(3, 16), // (5,20): error CS8773: Feature 'struct field initializers' is not available in C# 9.0. Please use language version 10.0 or greater. // public decimal R { get; } = 300; Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "R").WithArguments("struct field initializers", "10.0").WithLocation(5, 20)); comp = CreateCompilation(text); comp.VerifyDiagnostics(); } [Fact] public void AutoPropInitialization3() { var text = @"struct S { public int P { get; private set; } internal static long Q { get; } = 10; public decimal R { get; } = 300; public S(int p) { P = p; } }"; var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); comp.VerifyDiagnostics( // (5,20): error CS8773: Feature 'struct field initializers' is not available in C# 9.0. Please use language version 10.0 or greater. // public decimal R { get; } = 300; Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "R").WithArguments("struct field initializers", "10.0").WithLocation(5, 20)); comp = CreateCompilation(text); comp.VerifyDiagnostics(); } [Fact] public void AutoPropInitialization4() { var text = @" struct Program { struct S1 { public int i; public int ii { get; } } S1 x { get; } S1 x2 { get; } public Program(int dummy) { x.i = 1; System.Console.WriteLine(x2.ii); } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); comp.VerifyDiagnostics( // (16,9): error CS1612: Cannot modify the return value of 'Program.x' because it is not a variable // x.i = 1; Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x").WithArguments("Program.x").WithLocation(16, 9), // (16,9): error CS0170: Use of possibly unassigned field 'i' // x.i = 1; Diagnostic(ErrorCode.ERR_UseDefViolationField, "x.i").WithArguments("i").WithLocation(16, 9), // (17,34): error CS8079: Use of possibly unassigned auto-implemented property 'x2' // System.Console.WriteLine(x2.ii); Diagnostic(ErrorCode.ERR_UseDefViolationProperty, "x2").WithArguments("x2").WithLocation(17, 34), // (14,12): error CS0843: Auto-implemented property 'Program.x' must be fully assigned before control is returned to the caller. // public Program(int dummy) Diagnostic(ErrorCode.ERR_UnassignedThisAutoProperty, "Program").WithArguments("Program.x").WithLocation(14, 12), // (14,12): error CS0843: Auto-implemented property 'Program.x2' must be fully assigned before control is returned to the caller. // public Program(int dummy) Diagnostic(ErrorCode.ERR_UnassignedThisAutoProperty, "Program").WithArguments("Program.x2").WithLocation(14, 12)); } [Fact] public void AutoPropInitialization5() { var text = @" struct Program { struct S1 { public int i; public int ii { get; } } S1 x { get; set;} S1 x2 { get; set;} public Program(int dummy) { x.i = 1; System.Console.WriteLine(x2.ii); } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); comp.VerifyDiagnostics( // (16,9): error CS1612: Cannot modify the return value of 'Program.x' because it is not a variable // x.i = 1; Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x").WithArguments("Program.x").WithLocation(16, 9), // (16,9): error CS0170: Use of possibly unassigned field 'i' // x.i = 1; Diagnostic(ErrorCode.ERR_UseDefViolationField, "x.i").WithArguments("i").WithLocation(16, 9), // (17,34): error CS8079: Use of possibly unassigned auto-implemented property 'x2' // System.Console.WriteLine(x2.ii); Diagnostic(ErrorCode.ERR_UseDefViolationProperty, "x2").WithArguments("x2").WithLocation(17, 34), // (14,12): error CS0843: Auto-implemented property 'Program.x' must be fully assigned before control is returned to the caller. // public Program(int dummy) Diagnostic(ErrorCode.ERR_UnassignedThisAutoProperty, "Program").WithArguments("Program.x").WithLocation(14, 12), // (14,12): error CS0843: Auto-implemented property 'Program.x2' must be fully assigned before control is returned to the caller. // public Program(int dummy) Diagnostic(ErrorCode.ERR_UnassignedThisAutoProperty, "Program").WithArguments("Program.x2").WithLocation(14, 12)); } [Fact] public void AutoPropInitialization6() { var text = @" struct Program { struct S1 { public int i; public int ii { get; } } S1 x { get; set;} S1 x2 { get;} public Program(int dummy) { x = new S1(); x.i += 1; x2 = new S1(); x2.i += 1; } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); comp.VerifyDiagnostics( // (17,9): error CS1612: Cannot modify the return value of 'Program.x' because it is not a variable // x.i += 1; Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x").WithArguments("Program.x").WithLocation(17, 9), // (20,9): error CS1612: Cannot modify the return value of 'Program.x2' because it is not a variable // x2.i += 1; Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x2").WithArguments("Program.x2").WithLocation(20, 9) ); } [Fact] public void AutoPropInitialization7() { var text = @" struct Program { struct S1 { public int i; public int ii { get; } } S1 x { get; set;} S1 x2 { get;} public Program(int dummy) { this = default(Program); System.Action a = () => { this.x = new S1(); }; System.Action a2 = () => { this.x2 = new S1(); }; } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); comp.VerifyDiagnostics( // (20,13): error CS1673: Anonymous methods, lambda expressions, query expressions, and local functions inside structs cannot access instance members of 'this'. Consider copying 'this' to a local variable outside the anonymous method, lambda expression, query expression, or local function and using the local instead. // this.x = new S1(); Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").WithLocation(20, 13), // (25,13): error CS1673: Anonymous methods, lambda expressions, query expressions, and local functions inside structs cannot access instance members of 'this'. Consider copying 'this' to a local variable outside the anonymous method, lambda expression, query expression, or local function and using the local instead. // this.x2 = new S1(); Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").WithLocation(25, 13), // (6,20): warning CS0649: Field 'Program.S1.i' is never assigned to, and will always have its default value 0 // public int i; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("Program.S1.i", "0").WithLocation(6, 20) ); } [Fact] public void AutoPropInitialization7c() { var text = @" class Program { struct S1 { public int i; public int ii { get; } } S1 x { get; set;} S1 x2 { get;} public Program() { System.Action a = () => { this.x = new S1(); }; System.Action a2 = () => { this.x2 = new S1(); }; } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); comp.VerifyDiagnostics( // (23,13): error CS0200: Property or indexer 'Program.x2' cannot be assigned to -- it is read only // this.x2 = new S1(); Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "this.x2").WithArguments("Program.x2").WithLocation(23, 13), // (6,20): warning CS0649: Field 'Program.S1.i' is never assigned to, and will always have its default value 0 // public int i; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("Program.S1.i", "0").WithLocation(6, 20) ); } [Fact] public void AutoPropInitialization8() { var text = @" struct Program { struct S1 { public int i; public int ii { get; } } S1 x { get; set;} S1 x2 { get;} public Program(int arg) : this() { x2 = x; } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); comp.VerifyDiagnostics( // (6,20): warning CS0649: Field 'Program.S1.i' is never assigned to, and will always have its default value 0 // public int i; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("Program.S1.i", "0").WithLocation(6, 20) ); } [Fact] public void AutoPropInitialization9() { var text = @" struct Program { struct S1 { } S1 x { get; set;} S1 x2 { get;} public Program(int arg) { x2 = x; } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); // no errors since S1 is empty comp.VerifyDiagnostics( ); } [Fact] public void AutoPropInitialization10() { var text = @" struct Program { public struct S1 { public int x; } S1 x1 { get; set;} S1 x2 { get;} S1 x3; public Program(int arg) { Goo(out x1); Goo(ref x1); Goo(out x2); Goo(ref x2); Goo(out x3); Goo(ref x3); } public static void Goo(out S1 s) { s = default(S1); } public static void Goo1(ref S1 s) { s = default(S1); } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); // no errors since S1 is empty comp.VerifyDiagnostics( // (15,17): error CS0206: A property or indexer may not be passed as an out or ref parameter // Goo(out x1); Diagnostic(ErrorCode.ERR_RefProperty, "x1").WithArguments("Program.x1").WithLocation(15, 17), // (16,17): error CS0206: A property or indexer may not be passed as an out or ref parameter // Goo(ref x1); Diagnostic(ErrorCode.ERR_RefProperty, "x1").WithArguments("Program.x1").WithLocation(16, 17), // (17,17): error CS0206: A property or indexer may not be passed as an out or ref parameter // Goo(out x2); Diagnostic(ErrorCode.ERR_RefProperty, "x2").WithArguments("Program.x2").WithLocation(17, 17), // (18,17): error CS0206: A property or indexer may not be passed as an out or ref parameter // Goo(ref x2); Diagnostic(ErrorCode.ERR_RefProperty, "x2").WithArguments("Program.x2").WithLocation(18, 17), // (20,17): error CS1620: Argument 1 must be passed with the 'out' keyword // Goo(ref x3); Diagnostic(ErrorCode.ERR_BadArgRef, "x3").WithArguments("1", "out").WithLocation(20, 17), // (15,17): error CS8079: Use of automatically implemented property 'x1' whose backing field is possibly unassigned // Goo(out x1); Diagnostic(ErrorCode.ERR_UseDefViolationProperty, "x1").WithArguments("x1").WithLocation(15, 17), // (16,9): error CS0188: The 'this' object cannot be used before all of its fields are assigned to // Goo(ref x1); Diagnostic(ErrorCode.ERR_UseDefViolationThis, "Goo").WithArguments("this").WithLocation(16, 9), // (17,17): error CS8079: Use of automatically implemented property 'x2' whose backing field is possibly unassigned // Goo(out x2); Diagnostic(ErrorCode.ERR_UseDefViolationProperty, "x2").WithArguments("x2").WithLocation(17, 17), // (6,20): warning CS0649: Field 'Program.S1.x' is never assigned to, and will always have its default value 0 // public int x; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("Program.S1.x", "0").WithLocation(6, 20) ); } [Fact] public void EmptyStructAlwaysAssigned() { string program = @" struct S { static S M() { S s; return s; } } "; CreateCompilation(program) .VerifyDiagnostics( ); } [Fact] public void DeeplyEmptyStructAlwaysAssigned() { string program = @" struct S { static S M() { S s; return s; } } struct T { S s1, s2, s3; static T M() { T t; return t; } }"; CreateCompilation(program) .VerifyDiagnostics( // (13,15): warning CS0169: The field 'T.s3' is never used // S s1, s2, s3; Diagnostic(ErrorCode.WRN_UnreferencedField, "s3").WithArguments("T.s3").WithLocation(13, 15), // (13,11): warning CS0169: The field 'T.s2' is never used // S s1, s2, s3; Diagnostic(ErrorCode.WRN_UnreferencedField, "s2").WithArguments("T.s2").WithLocation(13, 11), // (13,7): warning CS0169: The field 'T.s1' is never used // S s1, s2, s3; Diagnostic(ErrorCode.WRN_UnreferencedField, "s1").WithArguments("T.s1").WithLocation(13, 7) ); } [WorkItem(543466, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543466")] [Fact] public void UnreferencedFieldWarningsMissingInEmit() { var comp = CreateCompilation(@" public class Class1 { int field1; }"); var bindingDiags = comp.GetDiagnostics().ToArray(); Assert.Equal(1, bindingDiags.Length); Assert.Equal(ErrorCode.WRN_UnreferencedField, (ErrorCode)bindingDiags[0].Code); var emitDiags = comp.Emit(new System.IO.MemoryStream()).Diagnostics.ToArray(); Assert.Equal(bindingDiags.Length, emitDiags.Length); Assert.Equal(bindingDiags[0], emitDiags[0]); } [Fact] public void DefiniteAssignGenericStruct() { string program = @" using System; struct C<T> { public int num; public int Goo1() { return this.num; } } class Test { static void Main(string[] args) { C<object> c; c.num = 1; bool verify = c.Goo1() == 1; Console.WriteLine(verify); } } "; CreateCompilation(program) .VerifyDiagnostics( ); } [WorkItem(540896, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540896")] [WorkItem(541268, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541268")] [Fact] public void ChainToStructDefaultConstructor() { string program = @" using System; namespace Roslyn.Compilers.CSharp { class DecimalRewriter { private DecimalRewriter() { } private struct DecimalParts { public DecimalParts(decimal value) : this() { int[] bits = Decimal.GetBits(value); Low = bits[0]; } public int Low { get; private set; } } } } "; CreateCompilation(program) .VerifyDiagnostics( ); } [WorkItem(541298, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541298")] [WorkItem(541298, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541298")] [Fact] public void SetStaticPropertyOnStruct() { string source = @" struct S { public static int p { get; internal set; } } class C { public static void Main() { S.p = 10; } } "; CreateCompilation(source).VerifyDiagnostics(); } [Fact] public void UsingPart() { string program = @" struct S { public int x; } class Program { public static void Main(string[] args) { S s = new S(); s.x = 12; } }"; CreateCompilation(program).VerifyDiagnostics(); } [Fact] public void ReferencingCycledStructures() { string program = @" public struct A { public static void Main() { S1 s1 = new S1(); S2 s2 = new S2(); s2.fld = new S3(); s2.fld.fld.fld.fld = new S2(); } } "; var c = CreateCompilation(program, new[] { TestReferences.SymbolsTests.CycledStructs }); c.VerifyDiagnostics( // (6,12): warning CS0219: The variable 's1' is assigned but its value is never used // S1 s1 = new S1(); Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s1").WithArguments("s1")); } [Fact] public void BigStruct() { string source = @" struct S<T> { T a, b, c, d, e, f, g, h; S(T t) { a = b = c = d = e = f = g = h = t; } static void M() { S<S<S<S<S<S<S<S<int>>>>>>>> x; x.a.a.a.a.a.a.a.a = 12; x.a.a.a.a.a.a.a.b = x.a.a.a.a.a.a.a.a; } }"; CreateCompilation(source).VerifyDiagnostics(); } [Fact] [WorkItem(542901, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542901")] public void DataFlowForStructFieldAssignment() { string program = @"struct S { public float X; public float Y; public float Z; void M() { if (3 < 3.4) { S s; if (s.X < 3) { s = GetS(); s.Z = 10f; } else { } } else { } } private static S GetS() { return new S(); } } "; CreateCompilation(program).VerifyDiagnostics( // (12,17): error CS0170: Use of possibly unassigned field 'X' // if (s.X < 3) Diagnostic(ErrorCode.ERR_UseDefViolationField, "s.X").WithArguments("X"), // (3,18): warning CS0649: Field 'S.X' is never assigned to, and will always have its default value 0 // public float X; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "X").WithArguments("S.X", "0"), // (4,18): warning CS0649: Field 'S.Y' is never assigned to, and will always have its default value 0 // public float Y; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Y").WithArguments("S.Y", "0") ); } [Fact] [WorkItem(2470, "https://github.com/dotnet/roslyn/issues/2470")] public void NoFieldNeverAssignedWarning() { string program = @" using System.Threading.Tasks; internal struct TaskEvent<T> { private TaskCompletionSource<T> _tcs; public Task<T> Task { get { if (_tcs == null) _tcs = new TaskCompletionSource<T>(); return _tcs.Task; } } public void Invoke(T result) { if (_tcs != null) { TaskCompletionSource<T> localTcs = _tcs; _tcs = null; localTcs.SetResult(result); } } } public class OperationExecutor { private TaskEvent<float?> _nextValueEvent; // Field is never assigned warning // Start some async operation public Task<bool> StartOperation() { return null; } // Get progress or data during async operation public Task<float?> WaitNextValue() { return _nextValueEvent.Task; } // Called externally internal void OnNextValue(float? value) { _nextValueEvent.Invoke(value); } } "; CreateCompilationWithMscorlib45(program).VerifyEmitDiagnostics(); } #endregion [Fact, WorkItem(545347, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545347")] public void FieldInAbstractClass_UnusedField() { var text = @" abstract class AbstractType { public int Kind; }"; CreateCompilation(text).VerifyDiagnostics( // (4,16): warning CS0649: Field 'AbstractType.Kind' is never assigned to, and will always have its default value 0 // public int Kind; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Kind").WithArguments("AbstractType.Kind", "0").WithLocation(4, 16)); } [Fact, WorkItem(545347, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545347")] public void FieldInAbstractClass_FieldUsedInChildType() { var text = @" abstract class AbstractType { public int Kind; } class ChildType : AbstractType { public ChildType() { this.Kind = 1; } } "; CreateCompilation(text).VerifyDiagnostics(); } [Fact] [WorkItem(545642, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545642")] public void InitializerAndConstructorWithOutParameter() { string program = @"class Program { private int field = Goo(); static int Goo() { return 12; } public Program(out int x) { x = 13; } }"; CreateCompilation(program).VerifyDiagnostics(); } [Fact] [WorkItem(545875, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545875")] public void TestSuppressUnreferencedVarAssgOnIntPtr() { var source = @" using System; public class Test { public static void Main() { IntPtr i1 = (IntPtr)0; IntPtr i2 = (IntPtr)10L; UIntPtr ui1 = (UIntPtr)0; UIntPtr ui2 = (UIntPtr)10L; IntPtr z = IntPtr.Zero; int ip1 = (int)z; long lp1 = (long)z; UIntPtr uz = UIntPtr.Zero; int ip2 = (int)uz; long lp2 = (long)uz; } }"; CreateCompilation(source).VerifyDiagnostics(); } [Fact] [WorkItem(546183, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546183")] public void TestUnassignedStructFieldsInPInvokePassByRefCase() { var source = @" using System; using System.Runtime.InteropServices; namespace ManagedDebuggingAssistants { internal class DebugMonitor { internal DebugMonitor() { SECURITY_ATTRIBUTES attributes = new SECURITY_ATTRIBUTES(); SECURITY_DESCRIPTOR descriptor = new SECURITY_DESCRIPTOR(); IntPtr pDescriptor = IntPtr.Zero; IntPtr pAttributes = IntPtr.Zero; attributes.nLength = Marshal.SizeOf(attributes); attributes.bInheritHandle = true; attributes.lpSecurityDescriptor = pDescriptor; if (!InitializeSecurityDescriptor(ref descriptor, 1 /*SECURITY_DESCRIPTOR_REVISION*/)) throw new ApplicationException(""InitializeSecurityDescriptor failed: "" + Marshal.GetLastWin32Error()); if (!SetSecurityDescriptorDacl(ref descriptor, true, IntPtr.Zero, false)) throw new ApplicationException(""SetSecurityDescriptorDacl failed: "" + Marshal.GetLastWin32Error()); Marshal.StructureToPtr(descriptor, pDescriptor, false); Marshal.StructureToPtr(attributes, pAttributes, false); } #region Interop definitions private struct SECURITY_DESCRIPTOR { internal byte Revision; internal byte Sbz1; internal short Control; internal IntPtr Owner; internal IntPtr Group; internal IntPtr Sacl; internal IntPtr Dacl; } private struct SECURITY_ATTRIBUTES { internal int nLength; internal IntPtr lpSecurityDescriptor; // disable csharp compiler warning #0414: field assigned unused value #pragma warning disable 0414 internal bool bInheritHandle; #pragma warning restore 0414 } [DllImport(""advapi32.dll"", SetLastError = true)] private static extern bool InitializeSecurityDescriptor([In] ref SECURITY_DESCRIPTOR pSecurityDescriptor, int dwRevision); [DllImport(""advapi32.dll"", SetLastError = true)] private static extern bool SetSecurityDescriptorDacl([In] ref SECURITY_DESCRIPTOR pSecurityDescriptor, bool bDaclPresent, IntPtr pDacl, bool bDaclDefaulted); #endregion } }"; CreateCompilation(source).VerifyDiagnostics(); } [WorkItem(546673, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546673")] [Fact] public void TestBreakInsideNonLocalScopeBinder() { var source = @" public class C { public static void Main() { while (true) { unchecked { break; } } switch(0) { case 0: unchecked { break; } } while (true) { unsafe { break; } } switch(0) { case 0: unsafe { break; } } bool flag = false; while (!flag) { flag = true; unchecked { continue; } } flag = false; while (!flag) { flag = true; unsafe { continue; } } } }"; CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: ""); } [WorkItem(611904, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/611904")] [Fact] public void LabelAtTopLevelInsideLambda() { var source = @" class Program { delegate T SomeDelegate<T>(out bool f); static void Main(string[] args) { Test((out bool f) => { if (1.ToString() != null) goto l2; f = true; l1: if (1.ToString() != null) return 123; // <==== ERROR EXPECTED HERE f = true; if (1.ToString() != null) return 456; l2: goto l1; }); } static void Test<T>(SomeDelegate<T> f) { } }"; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics( // (17,17): error CS0177: The out parameter 'f' must be assigned to before control leaves the current method // return 123; // <==== ERROR EXPECTED HERE Diagnostic(ErrorCode.ERR_ParamUnassigned, "return 123;").WithArguments("f") ); } [WorkItem(633927, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/633927")] [Fact] public void Xyzzy() { var source = @"class C { struct S { int x; S(dynamic y) { Goo(y, null); } } static void Goo(int y) { } }"; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics( // (8,13): error CS1501: No overload for method 'Goo' takes 2 arguments // Goo(y, null); Diagnostic(ErrorCode.ERR_BadArgCount, "Goo").WithArguments("Goo", "2"), // (6,9): error CS0171: Field 'C.S.x' must be fully assigned before control is returned to the caller // S(dynamic y) Diagnostic(ErrorCode.ERR_UnassignedThis, "S").WithArguments("C.S.x"), // (5,13): warning CS0169: The field 'C.S.x' is never used // int x; Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("C.S.x") ); } [WorkItem(667368, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/667368")] [Fact] public void RegressionTest667368() { var source = @"using System.Collections.Generic; namespace ConsoleApplication1 { internal class Class1 { Dictionary<string, int> _dict = new Dictionary<string, int>(); public Class1() { } public int? GetCode(dynamic value) { int val; if (value != null && _dict.TryGetValue(value, out val)) return val; return null; } } }"; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics( // (17,24): error CS0165: Use of unassigned local variable 'val' // return val; Diagnostic(ErrorCode.ERR_UseDefViolation, "val").WithArguments("val") ); } [WorkItem(690921, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/690921")] [Fact] public void RegressionTest690921() { var source = @"using System.Collections.Generic; namespace ConsoleApplication1 { internal class Class1 { Dictionary<string, int> _dict = new Dictionary<string, int>(); public Class1() { } public static string GetOutBoxItemId(string itemName, string uniqueIdKey, string listUrl, Dictionary<string, dynamic> myList = null, bool useDefaultCredentials = false) { string uniqueId = null; dynamic myItemName; if (myList != null && myList.TryGetValue(""DisplayName"", out myItemName) && myItemName == itemName) { } return uniqueId; } public static void Main() { } } } "; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics(); } [WorkItem(715338, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/715338")] [Fact] public void RegressionTest715338() { var source = @"using System; using System.Collections.Generic; static class Program { static void Add(this IList<int> source, string key, int value) { } static void View(Action<string, int> adder) { } static readonly IList<int> myInts = null; static void Main() { View(myInts.Add); } }"; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics(); } [WorkItem(808567, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/808567")] [Fact] public void RegressionTest808567() { var source = @"class Base { public Base(out int x, System.Func<int> u) { x = 0; } } class Derived2 : Base { Derived2(out int p1) : base(out p1, ()=>p1) { } }"; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics( // (11,28): error CS1628: Cannot use ref or out parameter 'p1' inside an anonymous method, lambda expression, or query expression // : base(out p1, ()=>p1) Diagnostic(ErrorCode.ERR_AnonDelegateCantUse, "p1").WithArguments("p1"), // (11,20): error CS0269: Use of unassigned out parameter 'p1' // : base(out p1, ()=>p1) Diagnostic(ErrorCode.ERR_UseDefViolationOut, "p1").WithArguments("p1") ); } [WorkItem(949324, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/949324")] [Fact] public void RegressionTest949324() { var source = @"struct Derived { Derived(int x) { } Derived(long x) : this(p2) // error CS0188: The 'this' object cannot be used before all of its fields are assigned to { this = new Derived(); } private int x; }"; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics( // (3,5): error CS0171: Field 'Derived.x' must be fully assigned before control is returned to the caller // Derived(int x) { } Diagnostic(ErrorCode.ERR_UnassignedThis, "Derived").WithArguments("Derived.x").WithLocation(3, 5), // (4,28): error CS0103: The name 'p2' does not exist in the current context // Derived(long x) : this(p2) // error CS0188: The 'this' object cannot be used before all of its fields are assigned to Diagnostic(ErrorCode.ERR_NameNotInContext, "p2").WithArguments("p2").WithLocation(4, 28), // (8,17): warning CS0169: The field 'Derived.x' is never used // private int x; Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("Derived.x").WithLocation(8, 17) ); } [WorkItem(612, "https://github.com/dotnet/roslyn/issues/612")] [Fact] public void CascadedUnreachableCode() { var source = @"class Program { public static void Main() { string k; switch (1) { case 1: } string s = k; } }"; CSharpCompilation comp = CreateCompilation(source); comp.VerifyDiagnostics( // (8,9): error CS8070: Control cannot fall out of switch from final case label ('case 1:') // case 1: Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 1:").WithArguments("case 1:").WithLocation(8, 9), // (10,20): error CS0165: Use of unassigned local variable 'k' // string s = k; Diagnostic(ErrorCode.ERR_UseDefViolation, "k").WithArguments("k").WithLocation(10, 20) ); } [WorkItem(9581, "https://github.com/dotnet/roslyn/issues/9581")] [Fact] public void UsingSelfAssignment() { var source = @"class Program { static void Main() { using (System.IDisposable x = x) { } } }"; CSharpCompilation comp = CreateCompilation(source); comp.VerifyDiagnostics( // (5,39): error CS0165: Use of unassigned local variable 'x' // using (System.IDisposable x = x) Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").WithLocation(5, 39) ); } [Fact] public void UsingAssignment() { var source = @"class Program { static void Main() { using (System.IDisposable x = null) { System.Console.WriteLine(x.ToString()); } using (System.IDisposable x = null, y = x) { System.Console.WriteLine(y.ToString()); } } }"; CSharpCompilation comp = CreateCompilation(source); comp.VerifyDiagnostics( ); } [Fact] public void RangeDefiniteAssignmentOrder() { CreateCompilationWithIndexAndRange(@" class C { void M() { int x; var r = (x=0)..(x+1); int y; r = (y+1)..(y=0); } }").VerifyDiagnostics( // (9,14): error CS0165: Use of unassigned local variable 'y' // r = (y+1)..(y=0); Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").WithLocation(9, 14)); } [Fact] public void FieldAssignedInLambdaOnly() { var source = @"using System; struct S { private object F; private object G; public S(object x, object y) { Action a = () => { F = x; }; G = y; } }"; var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (6,12): error CS0171: Field 'S.F' must be fully assigned before control is returned to the caller // public S(object x, object y) Diagnostic(ErrorCode.ERR_UnassignedThis, "S").WithArguments("S.F").WithLocation(6, 12), // (8,28): error CS1673: Anonymous methods, lambda expressions, query expressions, and local functions inside structs cannot access instance members of 'this'. Consider copying 'this' to a local variable outside the anonymous method, lambda expression, query expression, or local function and using the local instead. // Action a = () => { F = x; }; Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "F").WithLocation(8, 28)); } [Fact] public void FieldAssignedInLocalFunctionOnly() { var source = @"struct S { private object F; private object G; public S(object x, object y) { void f() { F = x; } G = y; } }"; var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (5,12): error CS0171: Field 'S.F' must be fully assigned before control is returned to the caller // public S(object x, object y) Diagnostic(ErrorCode.ERR_UnassignedThis, "S").WithArguments("S.F").WithLocation(5, 12), // (7,14): warning CS8321: The local function 'f' is declared but never used // void f() { F = x; } Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").WithLocation(7, 14), // (7,20): error CS1673: Anonymous methods, lambda expressions, query expressions, and local functions inside structs cannot access instance members of 'this'. Consider copying 'this' to a local variable outside the anonymous method, lambda expression, query expression, or local function and using the local instead. // void f() { F = x; } Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "F").WithLocation(7, 20)); } [Fact] [WorkItem(1243877, "https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1243877")] public void WorkItem1243877() { string program = @" static class C { static void Main() { Test(out var x, x); } static void Test(out Empty x, object y) => throw null; } struct Empty { } "; CreateCompilation(program).VerifyDiagnostics( // (6,25): error CS8196: Reference to an implicitly-typed out variable 'x' is not permitted in the same argument list. // Test(out var x, x); Diagnostic(ErrorCode.ERR_ImplicitlyTypedOutVariableUsedInTheSameArgumentList, "x").WithArguments("x").WithLocation(6, 25) ); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests { public class FlowDiagnosticTests : FlowTestBase { [Fact] public void TestBug12350() { // We suppress the "local variable is only written" warning if the // variable is assigned a non-constant value. string program = @" class Program { static int X() { return 1; } static void M() { int i1 = 123; // 0219 int i2 = X(); // no warning int? i3 = 123; // 0219 int? i4 = null; // 0219 int? i5 = X(); // no warning int i6 = default(int); // 0219 int? i7 = default(int?); // 0219 int? i8 = new int?(); // 0219 int i9 = new int(); // 0219 } }"; CreateCompilation(program).VerifyDiagnostics( // (7,13): warning CS0219: The variable 'i1' is assigned but its value is never used // int i1 = 123; // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i1").WithArguments("i1"), // (9,14): warning CS0219: The variable 'i3' is assigned but its value is never used // int? i3 = 123; // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i3").WithArguments("i3"), // (10,14): warning CS0219: The variable 'i4' is assigned but its value is never used // int? i4 = null; // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i4").WithArguments("i4"), // (12,13): warning CS0219: The variable 'i6' is assigned but its value is never used // int i6 = default(int); // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i6").WithArguments("i6"), // (13,14): warning CS0219: The variable 'i7' is assigned but its value is never used // int? i7 = default(int?); // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i7").WithArguments("i7"), // (14,14): warning CS0219: The variable 'i8' is assigned but its value is never used // int? i8 = new int?(); // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i8").WithArguments("i8"), // (15,13): warning CS0219: The variable 'i9' is assigned but its value is never used // int i9 = new int(); // 0219 Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "i9").WithArguments("i9")); } [Fact] public void Test1() { string program = @" namespace ConsoleApplication1 { class Program { public static void F(int z) { int x; if (z == 2) { int y = x; x = y; // use of unassigned local variable 'x' } else { int y = x; x = y; // diagnostic suppressed here } } } }"; CreateCompilation(program).VerifyDiagnostics( // (11,25): error CS0165: Use of unassigned local variable 'x' // int y = x; x = y; // use of unassigned local variable 'x' Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x") ); } [Fact] public void Test2() { //x is "assigned when true" after "false" //Therefore x is "assigned" before "z == 1" (5.3.3.24) //Therefore x is "assigned" after "z == 1" (5.3.3.20) //Therefore x is "assigned when true" after "(false && z == 1)" (5.3.3.24) //Since the condition of the ?: expression is the constant true, the state of x after the ?: expression is the same as the state of x after the consequence (5.3.3.28) //Since the state of x after the consequence is "assigned when true", the state of x after the ?: expression is "assigned when true" (5.3.3.28) //Since the state of x after the if's condition is "assigned when true", x is assigned in the then block (5.3.3.5) //Therefore, there should be no error. string program = @" namespace ConsoleApplication1 { class Program { void F(int z) { int x; if (true ? (false && z == 1) : true) x = x + 1; // Dev10 complains x not assigned. } } }"; var comp = CreateCompilation(program); var errs = this.FlowDiagnostics(comp); Assert.Equal(0, errs.Count()); } [Fact] public void Test3() { string program = @" class Program { int F(int z) { } }"; var comp = CreateCompilation(program); var errs = this.FlowDiagnostics(comp); Assert.Equal(1, errs.Count()); } [Fact] public void Test4() { // v is definitely assigned at the beginning of any unreachable statement. string program = @" class Program { void F() { if (false) { int x; // warning: unreachable code x = x + 1; // no error: x assigned when unreachable } } }"; var comp = CreateCompilation(program); int[] count = new int[4]; foreach (var e in this.FlowDiagnostics(comp)) count[(int)e.Severity]++; Assert.Equal(0, count[(int)DiagnosticSeverity.Error]); Assert.Equal(1, count[(int)DiagnosticSeverity.Warning]); Assert.Equal(0, count[(int)DiagnosticSeverity.Info]); } [Fact] public void Test5() { // v is definitely assigned at the beginning of any unreachable statement. string program = @" class A { static void F() { goto L2; goto L1; // unreachable code detected int x; L1: ; // Roslyn: extrs warning CS0162 -unreachable code x = x + 1; // no definite assignment problem in unreachable code L2: ; } } "; var comp = CreateCompilation(program); int[] count = new int[4]; foreach (var e in this.FlowDiagnostics(comp)) count[(int)e.Severity]++; Assert.Equal(0, count[(int)DiagnosticSeverity.Error]); Assert.Equal(2, count[(int)DiagnosticSeverity.Warning]); Assert.Equal(0, count[(int)DiagnosticSeverity.Info]); } [WorkItem(537918, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/537918")] [Fact] public void AssertForInvalidBreak() { // v is definitely assigned at the beginning of any unreachable statement. string program = @" public class Test { public static int Main() { int ret = 1; break; // Assert here return (ret); } } "; var comp = CreateCompilation(program); comp.GetMethodBodyDiagnostics().Verify( // (7,9): error CS0139: No enclosing loop out of which to break or continue // break; // Assert here Diagnostic(ErrorCode.ERR_NoBreakOrCont, "break;")); } [WorkItem(538064, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538064")] [Fact] public void IfFalse() { string program = @" using System; class Program { static void Main() { if (false) { } } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [WorkItem(538067, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538067")] [Fact] public void WhileConstEqualsConst() { string program = @" using System; class Program { bool goo() { const bool b = true; while (b == b) { return b; } } static void Main() { } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [WorkItem(538175, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538175")] [Fact] public void BreakWithoutTarget() { string program = @"public class Test { public static void Main() { if (true) break; } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [Fact] public void OutCausesAssignment() { string program = @"class Program { void F(out int x) { G(out x); } void G(out int x) { x = 1; } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [Fact] public void OutNotAssigned01() { string program = @"class Program { bool b; void F(out int x) { if (b) return; } }"; var comp = CreateCompilation(program); Assert.Equal(2, this.FlowDiagnostics(comp).Count()); } [WorkItem(539374, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/539374")] [Fact] public void OutAssignedAfterCall01() { string program = @"class Program { void F(out int x, int y) { x = y; } void G() { int x; F(out x, x); } }"; var comp = CreateCompilation(program); Assert.Equal(1, this.FlowDiagnostics(comp).Count()); } [WorkItem(538067, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538067")] [Fact] public void WhileConstEqualsConst2() { string program = @" using System; class Program { bool goo() { const bool b = true; while (b == b) { return b; } return b; // Should detect this line as unreachable code. } static void Main() { } }"; var comp = CreateCompilation(program); int[] count = new int[4]; foreach (var e in this.FlowDiagnostics(comp)) count[(int)e.Severity]++; Assert.Equal(0, count[(int)DiagnosticSeverity.Error]); Assert.Equal(1, count[(int)DiagnosticSeverity.Warning]); Assert.Equal(0, count[(int)DiagnosticSeverity.Info]); } [WorkItem(538072, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538072")] [Fact] public void UnusedLocal() { string program = @" using System; class Program { int x; int y; int z; static void Main() { int a; const bool b = true; } void goo() { y = 2; Console.WriteLine(z); } }"; var comp = CreateCompilation(program); int[] count = new int[4]; Dictionary<int, int> warnings = new Dictionary<int, int>(); foreach (var e in this.FlowDiagnostics(comp)) { count[(int)e.Severity]++; if (!warnings.ContainsKey(e.Code)) warnings[e.Code] = 0; warnings[e.Code] += 1; } Assert.Equal(0, count[(int)DiagnosticSeverity.Error]); Assert.Equal(0, count[(int)DiagnosticSeverity.Info]); // See bug 3562 - field level flow analysis warnings CS0169, CS0414 and CS0649 are out of scope for M2. // TODO: Fix this test once CS0169, CS0414 and CS0649 are implemented. // Assert.Equal(5, count[(int)DiagnosticSeverity.Warning]); Assert.Equal(2, count[(int)DiagnosticSeverity.Warning]); Assert.Equal(1, warnings[168]); Assert.Equal(1, warnings[219]); // See bug 3562 - field level flow analysis warnings CS0169, CS0414 and CS0649 are out of scope for M2. // TODO: Fix this test once CS0169, CS0414 and CS0649 are implemented. // Assert.Equal(1, warnings[169]); // Assert.Equal(1, warnings[414]); // Assert.Equal(1, warnings[649]); } [WorkItem(538384, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538384")] [Fact] public void UnusedLocalConstants() { string program = @" using System; class Program { static void Main() { const string CONST1 = ""hello""; // Should not report CS0219 Console.WriteLine(CONST1 != ""hello""); int i = 1; const long CONST2 = 1; const uint CONST3 = 1; // Should not report CS0219 while (CONST2 < CONST3 - i) { if (CONST3 < CONST3 - i) continue; } } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [WorkItem(538385, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538385")] [Fact] public void UnusedLocalReferenceTypedVariables() { string program = @" using System; class Program { static void Main() { object o = 1; // Should not report CS0219 Test c = new Test(); // Should not report CS0219 c = new Program(); string s = string.Empty; // Should not report CS0219 s = null; } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [WorkItem(538386, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/538386")] [Fact] public void UnusedLocalValueTypedVariables() { string program = @" using System; class Program { static void Main() { } public void Repro2(params int[] x) { int i = x[0]; // Should not report CS0219 byte b1 = 1; byte b11 = b1; // Should not report CS0219 } }"; var comp = CreateCompilation(program); Assert.Equal(0, this.FlowDiagnostics(comp).Count()); } [Fact] public void RefParameter01() { string program = @" class Program { public static void Main(string[] args) { int i; F(ref i); // use of unassigned local variable 'i' } static void F(ref int i) { } }"; var comp = CreateCompilation(program); Assert.NotEmpty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [Fact] public void OutParameter01() { string program = @" class Program { public static void Main(string[] args) { int i; F(out i); int j = i; } static void F(out int i) { i = 1; } }"; var comp = CreateCompilation(program); Assert.Empty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [Fact] public void Goto01() { string program = @" using System; class Program { public void M(bool b) { if (b) goto label; int i; i = 3; i = i + 1; label: int j = i; // i not definitely assigned } }"; var comp = CreateCompilation(program); Assert.NotEmpty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [Fact] public void LambdaParameters() { string program = @" using System; class Program { delegate void Func(ref int i, int r); static void Main(string[] args) { Func fnc = (ref int arg, int arg2) => { arg = arg; }; } }"; var comp = CreateCompilation(program); Assert.Empty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [Fact] public void LambdaMightNotBeInvoked() { string program = @" class Program { delegate void Func(); static void Main(string[] args) { int i; Func query = () => { i = 12; }; int j = i; } }"; var comp = CreateCompilation(program); Assert.NotEmpty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [Fact] public void LambdaMustAssignOutParameters() { string program = @" class Program { delegate void Func(out int x); static void Main(string[] args) { Func query = (out int x) => { }; } }"; var comp = CreateCompilation(program); Assert.NotEmpty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [Fact, WorkItem(528052, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/528052")] public void InnerVariablesAreNotDefinitelyAssignedInBeginningOfLambdaBody() { string program = @" using System; class Program { static void Main() { return; Action f = () => { int y = y; }; } }"; CreateCompilation(program).VerifyDiagnostics( // (9,9): warning CS0162: Unreachable code detected // Action f = () => { int y = y; }; Diagnostic(ErrorCode.WRN_UnreachableCode, "Action"), // (9,36): error CS0165: Use of unassigned local variable 'y' // Action f = () => { int y = y; }; Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y") ); } [WorkItem(540139, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540139")] [Fact] public void DelegateCreationReceiverIsRead() { string program = @" using System; class Program { static void Main() { Action a; Func<string> b = new Func<string>(a.ToString); } } "; var comp = CreateCompilation(program); Assert.NotEmpty(this.FlowDiagnostics(comp).Where(e => e.Severity >= DiagnosticSeverity.Error)); } [WorkItem(540405, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540405")] [Fact] public void ErrorInFieldInitializerLambda() { string program = @" using System; class Program { static Func<string> x = () => { string s; return s; }; static void Main() { } } "; CreateCompilation(program).VerifyDiagnostics( // (6,54): error CS0165: Use of unassigned local variable 's' // static Func<string> x = () => { string s; return s; }; Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s") ); } [WorkItem(541389, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541389")] [Fact] public void IterationWithEmptyBody() { string program = @" public class A { public static void Main(string[] args) { for (int i = 0; i < 10; i++) ; foreach (var v in args); int len = args.Length; while (len-- > 0); } }"; CreateCompilation(program).VerifyDiagnostics(); } [WorkItem(541389, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541389")] [Fact] public void SelectionWithEmptyBody() { string program = @" public class A { public static void Main(string[] args) { int len = args.Length; if (len++ < 9) ; else ; } }"; CreateCompilation(program).VerifyDiagnostics( Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";"), Diagnostic(ErrorCode.WRN_PossibleMistakenNullStatement, ";")); } [WorkItem(542146, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542146")] [Fact] public void FieldlikeEvent() { string program = @"public delegate void D(); public struct S { public event D Ev; public S(D d) { Ev = null; Ev += d; } }"; CreateCompilation(program).VerifyDiagnostics( // (4,20): warning CS0414: The field 'S.Ev' is assigned but its value is never used // public event D Ev; Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "Ev").WithArguments("S.Ev")); } [WorkItem(542187, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542187")] [Fact] public void GotoFromTry() { string program = @"class Test { static void F(int x) { } static void Main() { int a; try { a = 1; goto L1; } finally { } L1: F(a); } }"; CreateCompilation(program).VerifyDiagnostics(); } [WorkItem(542154, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542154")] [Fact] public void UnreachableThrow() { string program = @"public class C { static void Main() { return; throw Goo(); } static System.Exception Goo() { System.Console.WriteLine(""Hello""); return null; } } "; CreateCompilation(program).VerifyDiagnostics(); } [WorkItem(542585, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542585")] [Fact] public void Bug9870() { string program = @" struct S<T> { T x; static void Goo() { x.x = 1; } }"; var comp = CreateCompilation(program); comp.VerifyDiagnostics( // (8,9): error CS0120: An object reference is required for the non-static field, method, or property 'S<T>.x' // x.x = 1; Diagnostic(ErrorCode.ERR_ObjectRequired, "x").WithArguments("S<T>.x") ); } [WorkItem(542597, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542597")] [Fact] public void LambdaEntryPointIsReachable() { string program = @"class Program { static void Main(string[] args) { int i; return; System.Action a = () => { int j = i + j; }; } }"; var comp = CreateCompilation(program); comp.VerifyDiagnostics( // unreachable statement // (7,23): warning CS0162: Unreachable code detected // System.Action a = () => Diagnostic(ErrorCode.WRN_UnreachableCode, "System"), // (9,25): error CS0165: Use of unassigned local variable 'j' // int j = i + j; Diagnostic(ErrorCode.ERR_UseDefViolation, "j").WithArguments("j") ); } [WorkItem(542597, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542597")] [Fact] public void LambdaInUnimplementedPartial() { string program = @"using System; partial class C { static partial void Goo(Action a); static void Main() { Goo(() => { int x, y = x; }); } }"; var comp = CreateCompilation(program); comp.VerifyDiagnostics( // (9,32): error CS0165: Use of unassigned local variable 'x' // Goo(() => { int x, y = x; }); Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x") ); } [WorkItem(541887, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541887")] [Fact] public void CascadedDiagnostics01() { string program = @" class Program { static void Main(string[] args) { var s = goo<,int>(123); } public static int goo<T>(int i) { return 1; } }"; var comp = CreateCompilation(program); var parseErrors = comp.SyntaxTrees[0].GetDiagnostics(); var errors = comp.GetDiagnostics(); Assert.Equal(parseErrors.Count(), errors.Count()); } [Fact] public void UnassignedInInitializer() { string program = @"class C { System.Action a = () => { int i; int j = i; }; }"; var comp = CreateCompilation(program); comp.VerifyDiagnostics( // (3,46): error CS0165: Use of unassigned local variable 'i' // System.Action a = () => { int i; int j = i; }; Diagnostic(ErrorCode.ERR_UseDefViolation, "i").WithArguments("i") ); } [WorkItem(543343, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543343")] [Fact] public void ConstInSwitch() { string program = @"class Program { static void Main(string[] args) { switch (args.Length) { case 0: const int N = 3; break; case 1: int M = N; break; } } }"; var comp = CreateCompilation(program); comp.VerifyDiagnostics( // (11,21): warning CS0219: The variable 'M' is assigned but its value is never used // int M = N; Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "M").WithArguments("M") ); } #region "Struct" [Fact] public void CycleWithInitialization() { string program = @" public struct A { A a = new A(); // CS8036 public static void Main() { A a = new A(); } } "; CreateCompilation(program, parseOptions: TestOptions.Regular9).VerifyDiagnostics( // (4,7): error CS8773: Feature 'struct field initializers' is not available in C# 9.0. Please use language version 10.0 or greater. // A a = new A(); // CS8036 Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "a").WithArguments("struct field initializers", "10.0").WithLocation(4, 7), // (4,7): error CS0523: Struct member 'A.a' of type 'A' causes a cycle in the struct layout // A a = new A(); // CS8036 Diagnostic(ErrorCode.ERR_StructLayoutCycle, "a").WithArguments("A.a", "A").WithLocation(4, 7), // (7,11): warning CS0219: The variable 'a' is assigned but its value is never used // A a = new A(); Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "a").WithArguments("a").WithLocation(7, 11), // (4,7): warning CS0414: The field 'A.a' is assigned but its value is never used // A a = new A(); // CS8036 Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "a").WithArguments("A.a").WithLocation(4, 7)); } [WorkItem(542356, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542356")] [Fact] public void StaticMemberExplosion() { string program = @" struct A<T> { static A<A<T>> x; } struct B<T> { static A<B<T>> x; } struct C<T> { static D<T> x; } struct D<T> { static C<D<T>> x; } "; CreateCompilation(program) .VerifyDiagnostics( // (14,17): error CS0523: Struct member 'C<T>.x' of type 'D<T>' causes a cycle in the struct layout // static D<T> x; Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("C<T>.x", "D<T>").WithLocation(14, 17), // (18,20): error CS0523: Struct member 'D<T>.x' of type 'C<D<T>>' causes a cycle in the struct layout // static C<D<T>> x; Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("D<T>.x", "C<D<T>>").WithLocation(18, 20), // (4,20): error CS0523: Struct member 'A<T>.x' of type 'A<A<T>>' causes a cycle in the struct layout // static A<A<T>> x; Diagnostic(ErrorCode.ERR_StructLayoutCycle, "x").WithArguments("A<T>.x", "A<A<T>>").WithLocation(4, 20), // (9,20): warning CS0169: The field 'B<T>.x' is never used // static A<B<T>> x; Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("B<T>.x").WithLocation(9, 20), // (4,20): warning CS0169: The field 'A<T>.x' is never used // static A<A<T>> x; Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("A<T>.x").WithLocation(4, 20), // (18,20): warning CS0169: The field 'D<T>.x' is never used // static C<D<T>> x; Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("D<T>.x").WithLocation(18, 20), // (14,17): warning CS0169: The field 'C<T>.x' is never used // static D<T> x; Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("C<T>.x").WithLocation(14, 17) ); } [Fact] public void StaticSequential() { string program = @" partial struct S { public static int x; } partial struct S { public static int y; }"; CreateCompilation(program) .VerifyDiagnostics( // (4,23): warning CS0649: Field 'S.x' is never assigned to, and will always have its default value 0 // public static int x; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("S.x", "0"), // (9,23): warning CS0649: Field 'S.y' is never assigned to, and will always have its default value 0 // public static int y; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "y").WithArguments("S.y", "0") ); } [WorkItem(542567, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542567")] [Fact] public void ImplicitFieldSequential() { string program = @"partial struct S1 { public int x; } partial struct S1 { public int y { get; set; } } partial struct S2 { public int x; } delegate void D(); partial struct S2 { public event D y; }"; CreateCompilation(program) .VerifyDiagnostics( // (1,16): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'S1'. To specify an ordering, all instance fields must be in the same declaration. // partial struct S1 Diagnostic(ErrorCode.WRN_SequentialOnPartialClass, "S1").WithArguments("S1"), // (11,16): warning CS0282: There is no defined ordering between fields in multiple declarations of partial struct 'S2'. To specify an ordering, all instance fields must be in the same declaration. // partial struct S2 Diagnostic(ErrorCode.WRN_SequentialOnPartialClass, "S2").WithArguments("S2"), // (3,16): warning CS0649: Field 'S1.x' is never assigned to, and will always have its default value 0 // public int x; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("S1.x", "0"), // (13,16): warning CS0649: Field 'S2.x' is never assigned to, and will always have its default value 0 // public int x; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("S2.x", "0"), // (19,20): warning CS0067: The event 'S2.y' is never used // public event D y; Diagnostic(ErrorCode.WRN_UnreferencedEvent, "y").WithArguments("S2.y") ); } [Fact] public void StaticInitializer() { string program = @" public struct A { static System.Func<int> d = () => { int j; return j * 9000; }; public static void Main() { } } "; CreateCompilation(program) .VerifyDiagnostics( Diagnostic(ErrorCode.ERR_UseDefViolation, "j").WithArguments("j") ); } [Fact] public void AllPiecesAssigned() { string program = @" struct S { public int x, y; } class Program { public static void Main(string[] args) { S s; s.x = args.Length; s.y = args.Length; S t = s; } } "; CreateCompilation(program) .VerifyDiagnostics( ); } [Fact] public void OnePieceMissing() { string program = @" struct S { public int x, y; } class Program { public static void Main(string[] args) { S s; s.x = args.Length; S t = s; } } "; CreateCompilation(program) .VerifyDiagnostics( // (12,15): error CS0165: Use of unassigned local variable 's' // S t = s; Diagnostic(ErrorCode.ERR_UseDefViolation, "s").WithArguments("s"), // (4,19): warning CS0649: Field 'S.y' is never assigned to, and will always have its default value 0 // public int x, y; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "y").WithArguments("S.y", "0") ); } [Fact] public void OnePieceOnOnePath() { string program = @" struct S { public int x, y; } class Program { public void F(S s) { S s2; if (s.x == 3) s2 = s; else s2.x = s.x; int x = s2.x; } } "; CreateCompilation(program) .VerifyDiagnostics( // (4,19): warning CS0649: Field 'S.y' is never assigned to, and will always have its default value 0 // public int x, y; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "y").WithArguments("S.y", "0") ); } [Fact] public void DefaultConstructor() { string program = @" struct S { public int x, y; } class Program { public static void Main(string[] args) { S s = new S(); s.x = s.y = s.x; } } "; CreateCompilation(program) .VerifyDiagnostics( ); } [Fact] public void FieldAssignedInConstructor() { string program = @" struct S { int x, y; S(int x, int y) { this.x = x; this.y = y; } }"; CreateCompilation(program) .VerifyDiagnostics( ); } [Fact] public void FieldUnassignedInConstructor() { string program = @" struct S { int x, y; S(int x) { this.x = x; } }"; CreateCompilation(program) .VerifyDiagnostics( // (5,5): error CS0171: Field 'S.y' must be fully assigned before control is returned to the caller // S(int x) { this.x = x; } Diagnostic(ErrorCode.ERR_UnassignedThis, "S").WithArguments("S.y"), // (4,12): warning CS0169: The field 'S.y' is never used // int x, y; Diagnostic(ErrorCode.WRN_UnreferencedField, "y").WithArguments("S.y") ); } [WorkItem(543429, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543429")] [Fact] public void ConstructorCannotComplete() { string program = @"using System; public struct S { int value; public S(int value) { throw new NotImplementedException(); } }"; CreateCompilation(program).VerifyDiagnostics( // (4,9): warning CS0169: The field 'S.value' is never used // int value; Diagnostic(ErrorCode.WRN_UnreferencedField, "value").WithArguments("S.value") ); } [Fact] public void AutoPropInitialization1() { string program = @" struct Program { public int X { get; private set; } public Program(int x) { } public static void Main(string[] args) { } }"; CreateCompilation(program) .VerifyDiagnostics( // (5,12): error CS0843: Backing field for automatically implemented property 'Program.X' must be fully assigned before control is returned to the caller. Consider calling the default constructor from a constructor initializer. Diagnostic(ErrorCode.ERR_UnassignedThisAutoProperty, "Program").WithArguments("Program.X")); } [Fact] public void AutoPropInitialization2() { var text = @"struct S { public int P { get; set; } = 1; internal static long Q { get; } = 10; public decimal R { get; } = 300; public S(int i) {} }"; var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); comp.VerifyDiagnostics( // (3,16): error CS8773: Feature 'struct field initializers' is not available in C# 9.0. Please use language version 10.0 or greater. // public int P { get; set; } = 1; Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "P").WithArguments("struct field initializers", "10.0").WithLocation(3, 16), // (5,20): error CS8773: Feature 'struct field initializers' is not available in C# 9.0. Please use language version 10.0 or greater. // public decimal R { get; } = 300; Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "R").WithArguments("struct field initializers", "10.0").WithLocation(5, 20)); comp = CreateCompilation(text); comp.VerifyDiagnostics(); } [Fact] public void AutoPropInitialization3() { var text = @"struct S { public int P { get; private set; } internal static long Q { get; } = 10; public decimal R { get; } = 300; public S(int p) { P = p; } }"; var comp = CreateCompilation(text, parseOptions: TestOptions.Regular9); comp.VerifyDiagnostics( // (5,20): error CS8773: Feature 'struct field initializers' is not available in C# 9.0. Please use language version 10.0 or greater. // public decimal R { get; } = 300; Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion9, "R").WithArguments("struct field initializers", "10.0").WithLocation(5, 20)); comp = CreateCompilation(text); comp.VerifyDiagnostics(); } [Fact] public void AutoPropInitialization4() { var text = @" struct Program { struct S1 { public int i; public int ii { get; } } S1 x { get; } S1 x2 { get; } public Program(int dummy) { x.i = 1; System.Console.WriteLine(x2.ii); } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); comp.VerifyDiagnostics( // (16,9): error CS1612: Cannot modify the return value of 'Program.x' because it is not a variable // x.i = 1; Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x").WithArguments("Program.x").WithLocation(16, 9), // (16,9): error CS0170: Use of possibly unassigned field 'i' // x.i = 1; Diagnostic(ErrorCode.ERR_UseDefViolationField, "x.i").WithArguments("i").WithLocation(16, 9), // (17,34): error CS8079: Use of possibly unassigned auto-implemented property 'x2' // System.Console.WriteLine(x2.ii); Diagnostic(ErrorCode.ERR_UseDefViolationProperty, "x2").WithArguments("x2").WithLocation(17, 34), // (14,12): error CS0843: Auto-implemented property 'Program.x' must be fully assigned before control is returned to the caller. // public Program(int dummy) Diagnostic(ErrorCode.ERR_UnassignedThisAutoProperty, "Program").WithArguments("Program.x").WithLocation(14, 12), // (14,12): error CS0843: Auto-implemented property 'Program.x2' must be fully assigned before control is returned to the caller. // public Program(int dummy) Diagnostic(ErrorCode.ERR_UnassignedThisAutoProperty, "Program").WithArguments("Program.x2").WithLocation(14, 12)); } [Fact] public void AutoPropInitialization5() { var text = @" struct Program { struct S1 { public int i; public int ii { get; } } S1 x { get; set;} S1 x2 { get; set;} public Program(int dummy) { x.i = 1; System.Console.WriteLine(x2.ii); } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); comp.VerifyDiagnostics( // (16,9): error CS1612: Cannot modify the return value of 'Program.x' because it is not a variable // x.i = 1; Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x").WithArguments("Program.x").WithLocation(16, 9), // (16,9): error CS0170: Use of possibly unassigned field 'i' // x.i = 1; Diagnostic(ErrorCode.ERR_UseDefViolationField, "x.i").WithArguments("i").WithLocation(16, 9), // (17,34): error CS8079: Use of possibly unassigned auto-implemented property 'x2' // System.Console.WriteLine(x2.ii); Diagnostic(ErrorCode.ERR_UseDefViolationProperty, "x2").WithArguments("x2").WithLocation(17, 34), // (14,12): error CS0843: Auto-implemented property 'Program.x' must be fully assigned before control is returned to the caller. // public Program(int dummy) Diagnostic(ErrorCode.ERR_UnassignedThisAutoProperty, "Program").WithArguments("Program.x").WithLocation(14, 12), // (14,12): error CS0843: Auto-implemented property 'Program.x2' must be fully assigned before control is returned to the caller. // public Program(int dummy) Diagnostic(ErrorCode.ERR_UnassignedThisAutoProperty, "Program").WithArguments("Program.x2").WithLocation(14, 12)); } [Fact] public void AutoPropInitialization6() { var text = @" struct Program { struct S1 { public int i; public int ii { get; } } S1 x { get; set;} S1 x2 { get;} public Program(int dummy) { x = new S1(); x.i += 1; x2 = new S1(); x2.i += 1; } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); comp.VerifyDiagnostics( // (17,9): error CS1612: Cannot modify the return value of 'Program.x' because it is not a variable // x.i += 1; Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x").WithArguments("Program.x").WithLocation(17, 9), // (20,9): error CS1612: Cannot modify the return value of 'Program.x2' because it is not a variable // x2.i += 1; Diagnostic(ErrorCode.ERR_ReturnNotLValue, "x2").WithArguments("Program.x2").WithLocation(20, 9) ); } [Fact] public void AutoPropInitialization7() { var text = @" struct Program { struct S1 { public int i; public int ii { get; } } S1 x { get; set;} S1 x2 { get;} public Program(int dummy) { this = default(Program); System.Action a = () => { this.x = new S1(); }; System.Action a2 = () => { this.x2 = new S1(); }; } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); comp.VerifyDiagnostics( // (20,13): error CS1673: Anonymous methods, lambda expressions, query expressions, and local functions inside structs cannot access instance members of 'this'. Consider copying 'this' to a local variable outside the anonymous method, lambda expression, query expression, or local function and using the local instead. // this.x = new S1(); Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").WithLocation(20, 13), // (25,13): error CS1673: Anonymous methods, lambda expressions, query expressions, and local functions inside structs cannot access instance members of 'this'. Consider copying 'this' to a local variable outside the anonymous method, lambda expression, query expression, or local function and using the local instead. // this.x2 = new S1(); Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "this").WithLocation(25, 13), // (6,20): warning CS0649: Field 'Program.S1.i' is never assigned to, and will always have its default value 0 // public int i; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("Program.S1.i", "0").WithLocation(6, 20) ); } [Fact] public void AutoPropInitialization7c() { var text = @" class Program { struct S1 { public int i; public int ii { get; } } S1 x { get; set;} S1 x2 { get;} public Program() { System.Action a = () => { this.x = new S1(); }; System.Action a2 = () => { this.x2 = new S1(); }; } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); comp.VerifyDiagnostics( // (23,13): error CS0200: Property or indexer 'Program.x2' cannot be assigned to -- it is read only // this.x2 = new S1(); Diagnostic(ErrorCode.ERR_AssgReadonlyProp, "this.x2").WithArguments("Program.x2").WithLocation(23, 13), // (6,20): warning CS0649: Field 'Program.S1.i' is never assigned to, and will always have its default value 0 // public int i; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("Program.S1.i", "0").WithLocation(6, 20) ); } [Fact] public void AutoPropInitialization8() { var text = @" struct Program { struct S1 { public int i; public int ii { get; } } S1 x { get; set;} S1 x2 { get;} public Program(int arg) : this() { x2 = x; } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); comp.VerifyDiagnostics( // (6,20): warning CS0649: Field 'Program.S1.i' is never assigned to, and will always have its default value 0 // public int i; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "i").WithArguments("Program.S1.i", "0").WithLocation(6, 20) ); } [Fact] public void AutoPropInitialization9() { var text = @" struct Program { struct S1 { } S1 x { get; set;} S1 x2 { get;} public Program(int arg) { x2 = x; } public void Goo() { } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); // no errors since S1 is empty comp.VerifyDiagnostics( ); } [Fact] public void AutoPropInitialization10() { var text = @" struct Program { public struct S1 { public int x; } S1 x1 { get; set;} S1 x2 { get;} S1 x3; public Program(int arg) { Goo(out x1); Goo(ref x1); Goo(out x2); Goo(ref x2); Goo(out x3); Goo(ref x3); } public static void Goo(out S1 s) { s = default(S1); } public static void Goo1(ref S1 s) { s = default(S1); } static void Main(string[] args) { } }"; var comp = CreateCompilation(text); // no errors since S1 is empty comp.VerifyDiagnostics( // (15,17): error CS0206: A property or indexer may not be passed as an out or ref parameter // Goo(out x1); Diagnostic(ErrorCode.ERR_RefProperty, "x1").WithArguments("Program.x1").WithLocation(15, 17), // (16,17): error CS0206: A property or indexer may not be passed as an out or ref parameter // Goo(ref x1); Diagnostic(ErrorCode.ERR_RefProperty, "x1").WithArguments("Program.x1").WithLocation(16, 17), // (17,17): error CS0206: A property or indexer may not be passed as an out or ref parameter // Goo(out x2); Diagnostic(ErrorCode.ERR_RefProperty, "x2").WithArguments("Program.x2").WithLocation(17, 17), // (18,17): error CS0206: A property or indexer may not be passed as an out or ref parameter // Goo(ref x2); Diagnostic(ErrorCode.ERR_RefProperty, "x2").WithArguments("Program.x2").WithLocation(18, 17), // (20,17): error CS1620: Argument 1 must be passed with the 'out' keyword // Goo(ref x3); Diagnostic(ErrorCode.ERR_BadArgRef, "x3").WithArguments("1", "out").WithLocation(20, 17), // (15,17): error CS8079: Use of automatically implemented property 'x1' whose backing field is possibly unassigned // Goo(out x1); Diagnostic(ErrorCode.ERR_UseDefViolationProperty, "x1").WithArguments("x1").WithLocation(15, 17), // (16,9): error CS0188: The 'this' object cannot be used before all of its fields are assigned to // Goo(ref x1); Diagnostic(ErrorCode.ERR_UseDefViolationThis, "Goo").WithArguments("this").WithLocation(16, 9), // (17,17): error CS8079: Use of automatically implemented property 'x2' whose backing field is possibly unassigned // Goo(out x2); Diagnostic(ErrorCode.ERR_UseDefViolationProperty, "x2").WithArguments("x2").WithLocation(17, 17), // (6,20): warning CS0649: Field 'Program.S1.x' is never assigned to, and will always have its default value 0 // public int x; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "x").WithArguments("Program.S1.x", "0").WithLocation(6, 20) ); } [Fact] public void EmptyStructAlwaysAssigned() { string program = @" struct S { static S M() { S s; return s; } } "; CreateCompilation(program) .VerifyDiagnostics( ); } [Fact] public void DeeplyEmptyStructAlwaysAssigned() { string program = @" struct S { static S M() { S s; return s; } } struct T { S s1, s2, s3; static T M() { T t; return t; } }"; CreateCompilation(program) .VerifyDiagnostics( // (13,15): warning CS0169: The field 'T.s3' is never used // S s1, s2, s3; Diagnostic(ErrorCode.WRN_UnreferencedField, "s3").WithArguments("T.s3").WithLocation(13, 15), // (13,11): warning CS0169: The field 'T.s2' is never used // S s1, s2, s3; Diagnostic(ErrorCode.WRN_UnreferencedField, "s2").WithArguments("T.s2").WithLocation(13, 11), // (13,7): warning CS0169: The field 'T.s1' is never used // S s1, s2, s3; Diagnostic(ErrorCode.WRN_UnreferencedField, "s1").WithArguments("T.s1").WithLocation(13, 7) ); } [WorkItem(543466, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543466")] [Fact] public void UnreferencedFieldWarningsMissingInEmit() { var comp = CreateCompilation(@" public class Class1 { int field1; }"); var bindingDiags = comp.GetDiagnostics().ToArray(); Assert.Equal(1, bindingDiags.Length); Assert.Equal(ErrorCode.WRN_UnreferencedField, (ErrorCode)bindingDiags[0].Code); var emitDiags = comp.Emit(new System.IO.MemoryStream()).Diagnostics.ToArray(); Assert.Equal(bindingDiags.Length, emitDiags.Length); Assert.Equal(bindingDiags[0], emitDiags[0]); } [Fact] public void DefiniteAssignGenericStruct() { string program = @" using System; struct C<T> { public int num; public int Goo1() { return this.num; } } class Test { static void Main(string[] args) { C<object> c; c.num = 1; bool verify = c.Goo1() == 1; Console.WriteLine(verify); } } "; CreateCompilation(program) .VerifyDiagnostics( ); } [WorkItem(540896, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540896")] [WorkItem(541268, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541268")] [Fact] public void ChainToStructDefaultConstructor() { string program = @" using System; namespace Roslyn.Compilers.CSharp { class DecimalRewriter { private DecimalRewriter() { } private struct DecimalParts { public DecimalParts(decimal value) : this() { int[] bits = Decimal.GetBits(value); Low = bits[0]; } public int Low { get; private set; } } } } "; CreateCompilation(program) .VerifyDiagnostics( ); } [WorkItem(541298, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541298")] [WorkItem(541298, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/541298")] [Fact] public void SetStaticPropertyOnStruct() { string source = @" struct S { public static int p { get; internal set; } } class C { public static void Main() { S.p = 10; } } "; CreateCompilation(source).VerifyDiagnostics(); } [Fact] public void UsingPart() { string program = @" struct S { public int x; } class Program { public static void Main(string[] args) { S s = new S(); s.x = 12; } }"; CreateCompilation(program).VerifyDiagnostics(); } [Fact] public void ReferencingCycledStructures() { string program = @" public struct A { public static void Main() { S1 s1 = new S1(); S2 s2 = new S2(); s2.fld = new S3(); s2.fld.fld.fld.fld = new S2(); } } "; var c = CreateCompilation(program, new[] { TestReferences.SymbolsTests.CycledStructs }); c.VerifyDiagnostics( // (6,12): warning CS0219: The variable 's1' is assigned but its value is never used // S1 s1 = new S1(); Diagnostic(ErrorCode.WRN_UnreferencedVarAssg, "s1").WithArguments("s1")); } [Fact] public void BigStruct() { string source = @" struct S<T> { T a, b, c, d, e, f, g, h; S(T t) { a = b = c = d = e = f = g = h = t; } static void M() { S<S<S<S<S<S<S<S<int>>>>>>>> x; x.a.a.a.a.a.a.a.a = 12; x.a.a.a.a.a.a.a.b = x.a.a.a.a.a.a.a.a; } }"; CreateCompilation(source).VerifyDiagnostics(); } [Fact] [WorkItem(542901, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542901")] public void DataFlowForStructFieldAssignment() { string program = @"struct S { public float X; public float Y; public float Z; void M() { if (3 < 3.4) { S s; if (s.X < 3) { s = GetS(); s.Z = 10f; } else { } } else { } } private static S GetS() { return new S(); } } "; CreateCompilation(program).VerifyDiagnostics( // (12,17): error CS0170: Use of possibly unassigned field 'X' // if (s.X < 3) Diagnostic(ErrorCode.ERR_UseDefViolationField, "s.X").WithArguments("X"), // (3,18): warning CS0649: Field 'S.X' is never assigned to, and will always have its default value 0 // public float X; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "X").WithArguments("S.X", "0"), // (4,18): warning CS0649: Field 'S.Y' is never assigned to, and will always have its default value 0 // public float Y; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Y").WithArguments("S.Y", "0") ); } [Fact] [WorkItem(2470, "https://github.com/dotnet/roslyn/issues/2470")] public void NoFieldNeverAssignedWarning() { string program = @" using System.Threading.Tasks; internal struct TaskEvent<T> { private TaskCompletionSource<T> _tcs; public Task<T> Task { get { if (_tcs == null) _tcs = new TaskCompletionSource<T>(); return _tcs.Task; } } public void Invoke(T result) { if (_tcs != null) { TaskCompletionSource<T> localTcs = _tcs; _tcs = null; localTcs.SetResult(result); } } } public class OperationExecutor { private TaskEvent<float?> _nextValueEvent; // Field is never assigned warning // Start some async operation public Task<bool> StartOperation() { return null; } // Get progress or data during async operation public Task<float?> WaitNextValue() { return _nextValueEvent.Task; } // Called externally internal void OnNextValue(float? value) { _nextValueEvent.Invoke(value); } } "; CreateCompilationWithMscorlib45(program).VerifyEmitDiagnostics(); } #endregion [Fact, WorkItem(545347, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545347")] public void FieldInAbstractClass_UnusedField() { var text = @" abstract class AbstractType { public int Kind; }"; CreateCompilation(text).VerifyDiagnostics( // (4,16): warning CS0649: Field 'AbstractType.Kind' is never assigned to, and will always have its default value 0 // public int Kind; Diagnostic(ErrorCode.WRN_UnassignedInternalField, "Kind").WithArguments("AbstractType.Kind", "0").WithLocation(4, 16)); } [Fact, WorkItem(545347, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545347")] public void FieldInAbstractClass_FieldUsedInChildType() { var text = @" abstract class AbstractType { public int Kind; } class ChildType : AbstractType { public ChildType() { this.Kind = 1; } } "; CreateCompilation(text).VerifyDiagnostics(); } [Fact] [WorkItem(545642, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545642")] public void InitializerAndConstructorWithOutParameter() { string program = @"class Program { private int field = Goo(); static int Goo() { return 12; } public Program(out int x) { x = 13; } }"; CreateCompilation(program).VerifyDiagnostics(); } [Fact] [WorkItem(545875, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/545875")] public void TestSuppressUnreferencedVarAssgOnIntPtr() { var source = @" using System; public class Test { public static void Main() { IntPtr i1 = (IntPtr)0; IntPtr i2 = (IntPtr)10L; UIntPtr ui1 = (UIntPtr)0; UIntPtr ui2 = (UIntPtr)10L; IntPtr z = IntPtr.Zero; int ip1 = (int)z; long lp1 = (long)z; UIntPtr uz = UIntPtr.Zero; int ip2 = (int)uz; long lp2 = (long)uz; } }"; CreateCompilation(source).VerifyDiagnostics(); } [Fact] [WorkItem(546183, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546183")] public void TestUnassignedStructFieldsInPInvokePassByRefCase() { var source = @" using System; using System.Runtime.InteropServices; namespace ManagedDebuggingAssistants { internal class DebugMonitor { internal DebugMonitor() { SECURITY_ATTRIBUTES attributes = new SECURITY_ATTRIBUTES(); SECURITY_DESCRIPTOR descriptor = new SECURITY_DESCRIPTOR(); IntPtr pDescriptor = IntPtr.Zero; IntPtr pAttributes = IntPtr.Zero; attributes.nLength = Marshal.SizeOf(attributes); attributes.bInheritHandle = true; attributes.lpSecurityDescriptor = pDescriptor; if (!InitializeSecurityDescriptor(ref descriptor, 1 /*SECURITY_DESCRIPTOR_REVISION*/)) throw new ApplicationException(""InitializeSecurityDescriptor failed: "" + Marshal.GetLastWin32Error()); if (!SetSecurityDescriptorDacl(ref descriptor, true, IntPtr.Zero, false)) throw new ApplicationException(""SetSecurityDescriptorDacl failed: "" + Marshal.GetLastWin32Error()); Marshal.StructureToPtr(descriptor, pDescriptor, false); Marshal.StructureToPtr(attributes, pAttributes, false); } #region Interop definitions private struct SECURITY_DESCRIPTOR { internal byte Revision; internal byte Sbz1; internal short Control; internal IntPtr Owner; internal IntPtr Group; internal IntPtr Sacl; internal IntPtr Dacl; } private struct SECURITY_ATTRIBUTES { internal int nLength; internal IntPtr lpSecurityDescriptor; // disable csharp compiler warning #0414: field assigned unused value #pragma warning disable 0414 internal bool bInheritHandle; #pragma warning restore 0414 } [DllImport(""advapi32.dll"", SetLastError = true)] private static extern bool InitializeSecurityDescriptor([In] ref SECURITY_DESCRIPTOR pSecurityDescriptor, int dwRevision); [DllImport(""advapi32.dll"", SetLastError = true)] private static extern bool SetSecurityDescriptorDacl([In] ref SECURITY_DESCRIPTOR pSecurityDescriptor, bool bDaclPresent, IntPtr pDacl, bool bDaclDefaulted); #endregion } }"; CreateCompilation(source).VerifyDiagnostics(); } [WorkItem(546673, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/546673")] [Fact] public void TestBreakInsideNonLocalScopeBinder() { var source = @" public class C { public static void Main() { while (true) { unchecked { break; } } switch(0) { case 0: unchecked { break; } } while (true) { unsafe { break; } } switch(0) { case 0: unsafe { break; } } bool flag = false; while (!flag) { flag = true; unchecked { continue; } } flag = false; while (!flag) { flag = true; unsafe { continue; } } } }"; CompileAndVerify(source, options: TestOptions.UnsafeReleaseExe, expectedOutput: ""); } [WorkItem(611904, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/611904")] [Fact] public void LabelAtTopLevelInsideLambda() { var source = @" class Program { delegate T SomeDelegate<T>(out bool f); static void Main(string[] args) { Test((out bool f) => { if (1.ToString() != null) goto l2; f = true; l1: if (1.ToString() != null) return 123; // <==== ERROR EXPECTED HERE f = true; if (1.ToString() != null) return 456; l2: goto l1; }); } static void Test<T>(SomeDelegate<T> f) { } }"; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics( // (17,17): error CS0177: The out parameter 'f' must be assigned to before control leaves the current method // return 123; // <==== ERROR EXPECTED HERE Diagnostic(ErrorCode.ERR_ParamUnassigned, "return 123;").WithArguments("f") ); } [WorkItem(633927, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/633927")] [Fact] public void Xyzzy() { var source = @"class C { struct S { int x; S(dynamic y) { Goo(y, null); } } static void Goo(int y) { } }"; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics( // (8,13): error CS1501: No overload for method 'Goo' takes 2 arguments // Goo(y, null); Diagnostic(ErrorCode.ERR_BadArgCount, "Goo").WithArguments("Goo", "2"), // (6,9): error CS0171: Field 'C.S.x' must be fully assigned before control is returned to the caller // S(dynamic y) Diagnostic(ErrorCode.ERR_UnassignedThis, "S").WithArguments("C.S.x"), // (5,13): warning CS0169: The field 'C.S.x' is never used // int x; Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("C.S.x") ); } [WorkItem(667368, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/667368")] [Fact] public void RegressionTest667368() { var source = @"using System.Collections.Generic; namespace ConsoleApplication1 { internal class Class1 { Dictionary<string, int> _dict = new Dictionary<string, int>(); public Class1() { } public int? GetCode(dynamic value) { int val; if (value != null && _dict.TryGetValue(value, out val)) return val; return null; } } }"; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics( // (17,24): error CS0165: Use of unassigned local variable 'val' // return val; Diagnostic(ErrorCode.ERR_UseDefViolation, "val").WithArguments("val") ); } [WorkItem(690921, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/690921")] [Fact] public void RegressionTest690921() { var source = @"using System.Collections.Generic; namespace ConsoleApplication1 { internal class Class1 { Dictionary<string, int> _dict = new Dictionary<string, int>(); public Class1() { } public static string GetOutBoxItemId(string itemName, string uniqueIdKey, string listUrl, Dictionary<string, dynamic> myList = null, bool useDefaultCredentials = false) { string uniqueId = null; dynamic myItemName; if (myList != null && myList.TryGetValue(""DisplayName"", out myItemName) && myItemName == itemName) { } return uniqueId; } public static void Main() { } } } "; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics(); } [WorkItem(715338, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/715338")] [Fact] public void RegressionTest715338() { var source = @"using System; using System.Collections.Generic; static class Program { static void Add(this IList<int> source, string key, int value) { } static void View(Action<string, int> adder) { } static readonly IList<int> myInts = null; static void Main() { View(myInts.Add); } }"; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics(); } [WorkItem(808567, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/808567")] [Fact] public void RegressionTest808567() { var source = @"class Base { public Base(out int x, System.Func<int> u) { x = 0; } } class Derived2 : Base { Derived2(out int p1) : base(out p1, ()=>p1) { } }"; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics( // (11,28): error CS1628: Cannot use ref or out parameter 'p1' inside an anonymous method, lambda expression, or query expression // : base(out p1, ()=>p1) Diagnostic(ErrorCode.ERR_AnonDelegateCantUse, "p1").WithArguments("p1"), // (11,20): error CS0269: Use of unassigned out parameter 'p1' // : base(out p1, ()=>p1) Diagnostic(ErrorCode.ERR_UseDefViolationOut, "p1").WithArguments("p1") ); } [WorkItem(949324, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/949324")] [Fact] public void RegressionTest949324() { var source = @"struct Derived { Derived(int x) { } Derived(long x) : this(p2) // error CS0188: The 'this' object cannot be used before all of its fields are assigned to { this = new Derived(); } private int x; }"; CSharpCompilation comp = CreateCompilationWithMscorlib40AndSystemCore(source); comp.VerifyDiagnostics( // (3,5): error CS0171: Field 'Derived.x' must be fully assigned before control is returned to the caller // Derived(int x) { } Diagnostic(ErrorCode.ERR_UnassignedThis, "Derived").WithArguments("Derived.x").WithLocation(3, 5), // (4,28): error CS0103: The name 'p2' does not exist in the current context // Derived(long x) : this(p2) // error CS0188: The 'this' object cannot be used before all of its fields are assigned to Diagnostic(ErrorCode.ERR_NameNotInContext, "p2").WithArguments("p2").WithLocation(4, 28), // (8,17): warning CS0169: The field 'Derived.x' is never used // private int x; Diagnostic(ErrorCode.WRN_UnreferencedField, "x").WithArguments("Derived.x").WithLocation(8, 17) ); } [WorkItem(612, "https://github.com/dotnet/roslyn/issues/612")] [Fact] public void CascadedUnreachableCode() { var source = @"class Program { public static void Main() { string k; switch (1) { case 1: } string s = k; } }"; CSharpCompilation comp = CreateCompilation(source); comp.VerifyDiagnostics( // (8,9): error CS8070: Control cannot fall out of switch from final case label ('case 1:') // case 1: Diagnostic(ErrorCode.ERR_SwitchFallOut, "case 1:").WithArguments("case 1:").WithLocation(8, 9), // (10,20): error CS0165: Use of unassigned local variable 'k' // string s = k; Diagnostic(ErrorCode.ERR_UseDefViolation, "k").WithArguments("k").WithLocation(10, 20) ); } [WorkItem(9581, "https://github.com/dotnet/roslyn/issues/9581")] [Fact] public void UsingSelfAssignment() { var source = @"class Program { static void Main() { using (System.IDisposable x = x) { } } }"; CSharpCompilation comp = CreateCompilation(source); comp.VerifyDiagnostics( // (5,39): error CS0165: Use of unassigned local variable 'x' // using (System.IDisposable x = x) Diagnostic(ErrorCode.ERR_UseDefViolation, "x").WithArguments("x").WithLocation(5, 39) ); } [Fact] public void UsingAssignment() { var source = @"class Program { static void Main() { using (System.IDisposable x = null) { System.Console.WriteLine(x.ToString()); } using (System.IDisposable x = null, y = x) { System.Console.WriteLine(y.ToString()); } } }"; CSharpCompilation comp = CreateCompilation(source); comp.VerifyDiagnostics( ); } [Fact] public void RangeDefiniteAssignmentOrder() { CreateCompilationWithIndexAndRange(@" class C { void M() { int x; var r = (x=0)..(x+1); int y; r = (y+1)..(y=0); } }").VerifyDiagnostics( // (9,14): error CS0165: Use of unassigned local variable 'y' // r = (y+1)..(y=0); Diagnostic(ErrorCode.ERR_UseDefViolation, "y").WithArguments("y").WithLocation(9, 14)); } [Fact] public void FieldAssignedInLambdaOnly() { var source = @"using System; struct S { private object F; private object G; public S(object x, object y) { Action a = () => { F = x; }; G = y; } }"; var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (6,12): error CS0171: Field 'S.F' must be fully assigned before control is returned to the caller // public S(object x, object y) Diagnostic(ErrorCode.ERR_UnassignedThis, "S").WithArguments("S.F").WithLocation(6, 12), // (8,28): error CS1673: Anonymous methods, lambda expressions, query expressions, and local functions inside structs cannot access instance members of 'this'. Consider copying 'this' to a local variable outside the anonymous method, lambda expression, query expression, or local function and using the local instead. // Action a = () => { F = x; }; Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "F").WithLocation(8, 28)); } [Fact] public void FieldAssignedInLocalFunctionOnly() { var source = @"struct S { private object F; private object G; public S(object x, object y) { void f() { F = x; } G = y; } }"; var comp = CreateCompilation(source); comp.VerifyDiagnostics( // (5,12): error CS0171: Field 'S.F' must be fully assigned before control is returned to the caller // public S(object x, object y) Diagnostic(ErrorCode.ERR_UnassignedThis, "S").WithArguments("S.F").WithLocation(5, 12), // (7,14): warning CS8321: The local function 'f' is declared but never used // void f() { F = x; } Diagnostic(ErrorCode.WRN_UnreferencedLocalFunction, "f").WithArguments("f").WithLocation(7, 14), // (7,20): error CS1673: Anonymous methods, lambda expressions, query expressions, and local functions inside structs cannot access instance members of 'this'. Consider copying 'this' to a local variable outside the anonymous method, lambda expression, query expression, or local function and using the local instead. // void f() { F = x; } Diagnostic(ErrorCode.ERR_ThisStructNotInAnonMeth, "F").WithLocation(7, 20)); } [Fact] [WorkItem(1243877, "https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1243877")] public void WorkItem1243877() { string program = @" static class C { static void Main() { Test(out var x, x); } static void Test(out Empty x, object y) => throw null; } struct Empty { } "; CreateCompilation(program).VerifyDiagnostics( // (6,25): error CS8196: Reference to an implicitly-typed out variable 'x' is not permitted in the same argument list. // Test(out var x, x); Diagnostic(ErrorCode.ERR_ImplicitlyTypedOutVariableUsedInTheSameArgumentList, "x").WithArguments("x").WithLocation(6, 25) ); } } }
-1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/RoslynPackage.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Immutable; using System.ComponentModel.Design; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.ChangeSignature; using Microsoft.CodeAnalysis.Completion.Log; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.ErrorReporting; using Microsoft.CodeAnalysis.Experiments; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.Logging; using Microsoft.CodeAnalysis.Notification; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.SolutionCrawler; using Microsoft.CodeAnalysis.Telemetry; using Microsoft.VisualStudio.ComponentModelHost; using Microsoft.VisualStudio.LanguageServices.ColorSchemes; using Microsoft.VisualStudio.LanguageServices.EditorConfigSettings; using Microsoft.VisualStudio.LanguageServices.Experimentation; using Microsoft.VisualStudio.LanguageServices.Implementation; using Microsoft.VisualStudio.LanguageServices.Implementation.Diagnostics; using Microsoft.VisualStudio.LanguageServices.Implementation.Interactive; using Microsoft.VisualStudio.LanguageServices.Implementation.LanguageService; using Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem; using Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.RuleSets; using Microsoft.VisualStudio.LanguageServices.Implementation.TableDataSource; using Microsoft.VisualStudio.LanguageServices.Implementation.UnusedReferences; using Microsoft.VisualStudio.LanguageServices.Telemetry; using Microsoft.VisualStudio.PlatformUI; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; using Microsoft.VisualStudio.TaskStatusCenter; using Microsoft.VisualStudio.Telemetry; using Microsoft.VisualStudio.TextManager.Interop; using Microsoft.VisualStudio.Threading; using Roslyn.Utilities; using Task = System.Threading.Tasks.Task; namespace Microsoft.VisualStudio.LanguageServices.Setup { [Guid(Guids.RoslynPackageIdString)] // The option page configuration is duplicated in PackageRegistration.pkgdef [ProvideToolWindow(typeof(ValueTracking.ValueTrackingToolWindow))] internal sealed class RoslynPackage : AbstractPackage { // The randomly-generated key name is used for serializing the Background Analysis Scope preference to the .SUO // file. It doesn't have any semantic meaning, but is intended to not conflict with any other extension that // might be saving an "AnalysisScope" named stream to the same file. // note: must be <= 31 characters long private const string BackgroundAnalysisScopeOptionKey = "AnalysisScope-DCE33A29A768"; private const byte BackgroundAnalysisScopeOptionVersion = 1; private VisualStudioWorkspace? _workspace; private IComponentModel? _componentModel; private RuleSetEventHandler? _ruleSetEventHandler; private ColorSchemeApplier? _colorSchemeApplier; private IDisposable? _solutionEventMonitor; public RoslynPackage() { // We need to register an option in order for OnLoadOptions/OnSaveOptions to be called AddOptionKey(BackgroundAnalysisScopeOptionKey); } public BackgroundAnalysisScope? AnalysisScope { get; set; } protected override void OnLoadOptions(string key, Stream stream) { if (key == BackgroundAnalysisScopeOptionKey) { if (stream.ReadByte() == BackgroundAnalysisScopeOptionVersion) { var hasValue = stream.ReadByte() == 1; AnalysisScope = hasValue ? (BackgroundAnalysisScope)stream.ReadByte() : null; } else { AnalysisScope = null; } } base.OnLoadOptions(key, stream); } protected override void OnSaveOptions(string key, Stream stream) { if (key == BackgroundAnalysisScopeOptionKey) { stream.WriteByte(BackgroundAnalysisScopeOptionVersion); stream.WriteByte(AnalysisScope.HasValue ? (byte)1 : (byte)0); stream.WriteByte((byte)AnalysisScope.GetValueOrDefault()); } base.OnSaveOptions(key, stream); } protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress) { await base.InitializeAsync(cancellationToken, progress).ConfigureAwait(true); await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); _componentModel = (IComponentModel)await GetServiceAsync(typeof(SComponentModel)).ConfigureAwait(true); cancellationToken.ThrowIfCancellationRequested(); Assumes.Present(_componentModel); // Ensure the options persisters are loaded since we have to fetch options from the shell foreach (var provider in await GetOptionPersistersAsync(_componentModel, cancellationToken).ConfigureAwait(true)) { _ = await provider.GetOrCreatePersisterAsync(cancellationToken).ConfigureAwait(true); } _workspace = _componentModel.GetService<VisualStudioWorkspace>(); _workspace.Services.GetService<IExperimentationService>(); // Fetch the session synchronously on the UI thread; if this doesn't happen before we try using this on // the background thread then we will experience hangs like we see in this bug: // https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?_a=edit&id=190808 or // https://devdiv.visualstudio.com/DevDiv/_workitems?id=296981&_a=edit var telemetryService = (VisualStudioWorkspaceTelemetryService)_workspace.Services.GetRequiredService<IWorkspaceTelemetryService>(); telemetryService.InitializeTelemetrySession(TelemetryService.DefaultSession); Logger.Log(FunctionId.Run_Environment, KeyValueLogMessage.Create(m => m["Version"] = FileVersionInfo.GetVersionInfo(typeof(VisualStudioWorkspace).Assembly.Location).FileVersion)); InitializeColors(); // load some services that have to be loaded in UI thread LoadComponentsInUIContextOnceSolutionFullyLoadedAsync(cancellationToken).Forget(); _solutionEventMonitor = new SolutionEventMonitor(_workspace); TrackBulkFileOperations(); var settingsEditorFactory = _componentModel.GetService<SettingsEditorFactory>(); RegisterEditorFactory(settingsEditorFactory); static async Task<ImmutableArray<IOptionPersisterProvider>> GetOptionPersistersAsync(IComponentModel componentModel, CancellationToken cancellationToken) { // Switch to a background thread to ensure assembly loads don't show up as UI delays attributed to // InitializeAsync. await TaskScheduler.Default; return componentModel.GetExtensions<IOptionPersisterProvider>().ToImmutableArray(); } } private void InitializeColors() { // Use VS color keys in order to support theming. CodeAnalysisColors.SystemCaptionTextColorKey = EnvironmentColors.SystemWindowTextColorKey; CodeAnalysisColors.SystemCaptionTextBrushKey = EnvironmentColors.SystemWindowTextBrushKey; CodeAnalysisColors.CheckBoxTextBrushKey = EnvironmentColors.SystemWindowTextBrushKey; CodeAnalysisColors.BackgroundBrushKey = VsBrushes.CommandBarGradientBeginKey; CodeAnalysisColors.ButtonStyleKey = VsResourceKeys.ButtonStyleKey; CodeAnalysisColors.AccentBarColorKey = EnvironmentColors.FileTabInactiveDocumentBorderEdgeBrushKey; // Initialize ColorScheme support _colorSchemeApplier = ComponentModel.GetService<ColorSchemeApplier>(); _colorSchemeApplier.Initialize(); } protected override async Task LoadComponentsAsync(CancellationToken cancellationToken) { await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); await GetServiceAsync(typeof(SVsTaskStatusCenterService)).ConfigureAwait(true); await GetServiceAsync(typeof(SVsErrorList)).ConfigureAwait(true); await GetServiceAsync(typeof(SVsSolution)).ConfigureAwait(true); await GetServiceAsync(typeof(SVsShell)).ConfigureAwait(true); await GetServiceAsync(typeof(SVsRunningDocumentTable)).ConfigureAwait(true); await GetServiceAsync(typeof(SVsTextManager)).ConfigureAwait(true); // we need to load it as early as possible since we can have errors from // package from each language very early this.ComponentModel.GetService<TaskCenterSolutionAnalysisProgressReporter>(); this.ComponentModel.GetService<VisualStudioDiagnosticListTableCommandHandler>().Initialize(this); this.ComponentModel.GetService<VisualStudioMetadataAsSourceFileSupportService>(); // The misc files workspace needs to be loaded on the UI thread. This way it will have // the appropriate task scheduler to report events on. this.ComponentModel.GetService<MiscellaneousFilesWorkspace>(); // Load and initialize the services detecting and adding new analyzer config documents as solution item. this.ComponentModel.GetService<AnalyzerConfigDocumentAsSolutionItemHandler>().Initialize(this); this.ComponentModel.GetService<VisualStudioAddSolutionItemService>().Initialize(this); this.ComponentModel.GetService<IVisualStudioDiagnosticAnalyzerService>().Initialize(this); this.ComponentModel.GetService<RemoveUnusedReferencesCommandHandler>().Initialize(this); LoadAnalyzerNodeComponents(); LoadComponentsBackgroundAsync(cancellationToken).Forget(); } // Overrides for VSSDK003 fix // See https://github.com/Microsoft/VSSDK-Analyzers/blob/main/doc/VSSDK003.md public override IVsAsyncToolWindowFactory GetAsyncToolWindowFactory(Guid toolWindowType) => toolWindowType == typeof(ValueTracking.ValueTrackingToolWindow).GUID ? this : base.GetAsyncToolWindowFactory(toolWindowType); protected override string GetToolWindowTitle(Type toolWindowType, int id) => base.GetToolWindowTitle(toolWindowType, id); protected override Task<object?> InitializeToolWindowAsync(Type toolWindowType, int id, CancellationToken cancellationToken) => Task.FromResult((object?)null); private async Task LoadComponentsBackgroundAsync(CancellationToken cancellationToken) { await TaskScheduler.Default; await LoadInteractiveMenusAsync(cancellationToken).ConfigureAwait(true); // Initialize any experiments async var experiments = this.ComponentModel.DefaultExportProvider.GetExportedValues<IExperiment>(); foreach (var experiment in experiments) { await experiment.InitializeAsync().ConfigureAwait(true); } } private async Task LoadInteractiveMenusAsync(CancellationToken cancellationToken) { // Obtain services and QueryInterface from the main thread await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); var menuCommandService = (OleMenuCommandService)await GetServiceAsync(typeof(IMenuCommandService)).ConfigureAwait(true); var monitorSelectionService = (IVsMonitorSelection)await GetServiceAsync(typeof(SVsShellMonitorSelection)).ConfigureAwait(true); // Switch to the background object for constructing commands await TaskScheduler.Default; await new CSharpResetInteractiveMenuCommand(menuCommandService, monitorSelectionService, ComponentModel) .InitializeResetInteractiveFromProjectCommandAsync() .ConfigureAwait(true); await new VisualBasicResetInteractiveMenuCommand(menuCommandService, monitorSelectionService, ComponentModel) .InitializeResetInteractiveFromProjectCommandAsync() .ConfigureAwait(true); } internal IComponentModel ComponentModel { get { return _componentModel ?? throw new InvalidOperationException($"Cannot use {nameof(RoslynPackage)}.{nameof(ComponentModel)} prior to initialization."); } } protected override void Dispose(bool disposing) { DisposeVisualStudioServices(); UnregisterAnalyzerTracker(); UnregisterRuleSetEventHandler(); ReportSessionWideTelemetry(); if (_solutionEventMonitor != null) { _solutionEventMonitor.Dispose(); _solutionEventMonitor = null; } base.Dispose(disposing); } private void ReportSessionWideTelemetry() { SolutionLogger.ReportTelemetry(); AsyncCompletionLogger.ReportTelemetry(); CompletionProvidersLogger.ReportTelemetry(); ChangeSignatureLogger.ReportTelemetry(); } private void DisposeVisualStudioServices() { if (_workspace != null) { _workspace.Services.GetRequiredService<VisualStudioMetadataReferenceManager>().DisconnectFromVisualStudioNativeServices(); } } private void LoadAnalyzerNodeComponents() { this.ComponentModel.GetService<IAnalyzerNodeSetup>().Initialize(this); _ruleSetEventHandler = this.ComponentModel.GetService<RuleSetEventHandler>(); if (_ruleSetEventHandler != null) { _ruleSetEventHandler.Register(); } } private void UnregisterAnalyzerTracker() => this.ComponentModel.GetService<IAnalyzerNodeSetup>().Unregister(); private void UnregisterRuleSetEventHandler() { if (_ruleSetEventHandler != null) { _ruleSetEventHandler.Unregister(); _ruleSetEventHandler = null; } } private void TrackBulkFileOperations() { RoslynDebug.AssertNotNull(_workspace); // we will pause whatever ambient work loads we have that are tied to IGlobalOperationNotificationService // such as solution crawler, pre-emptive remote host synchronization and etc. any background work users didn't // explicitly asked for. // // this should give all resources to BulkFileOperation. we do same for things like build, // debugging, wait dialog and etc. BulkFileOperation is used for things like git branch switching and etc. var globalNotificationService = _workspace.Services.GetRequiredService<IGlobalOperationNotificationService>(); // BulkFileOperation can't have nested events. there will be ever only 1 events (Begin/End) // so we only need simple tracking. var gate = new object(); GlobalOperationRegistration? localRegistration = null; BulkFileOperation.End += (s, a) => { StopBulkFileOperationNotification(); }; BulkFileOperation.Begin += (s, a) => { StartBulkFileOperationNotification(); }; void StartBulkFileOperationNotification() { RoslynDebug.Assert(gate != null); RoslynDebug.Assert(globalNotificationService != null); lock (gate) { // this shouldn't happen, but we are using external component // so guarding us from them if (localRegistration != null) { FatalError.ReportAndCatch(new InvalidOperationException("BulkFileOperation already exist")); return; } localRegistration = globalNotificationService.Start("BulkFileOperation"); } } void StopBulkFileOperationNotification() { RoslynDebug.Assert(gate != null); lock (gate) { // this can happen if BulkFileOperation was already in the middle // of running. to make things simpler, decide to not use IsInProgress // which we need to worry about race case. if (localRegistration == null) { return; } localRegistration.Dispose(); localRegistration = null; } } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Immutable; using System.ComponentModel.Design; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.ChangeSignature; using Microsoft.CodeAnalysis.Completion.Log; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.ErrorReporting; using Microsoft.CodeAnalysis.Experiments; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.Logging; using Microsoft.CodeAnalysis.Notification; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.SolutionCrawler; using Microsoft.CodeAnalysis.Telemetry; using Microsoft.VisualStudio.ComponentModelHost; using Microsoft.VisualStudio.LanguageServices.ColorSchemes; using Microsoft.VisualStudio.LanguageServices.EditorConfigSettings; using Microsoft.VisualStudio.LanguageServices.Experimentation; using Microsoft.VisualStudio.LanguageServices.Implementation; using Microsoft.VisualStudio.LanguageServices.Implementation.Diagnostics; using Microsoft.VisualStudio.LanguageServices.Implementation.Interactive; using Microsoft.VisualStudio.LanguageServices.Implementation.LanguageService; using Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem; using Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.RuleSets; using Microsoft.VisualStudio.LanguageServices.Implementation.TableDataSource; using Microsoft.VisualStudio.LanguageServices.Implementation.UnusedReferences; using Microsoft.VisualStudio.LanguageServices.Telemetry; using Microsoft.VisualStudio.PlatformUI; using Microsoft.VisualStudio.Shell; using Microsoft.VisualStudio.Shell.Interop; using Microsoft.VisualStudio.TaskStatusCenter; using Microsoft.VisualStudio.Telemetry; using Microsoft.VisualStudio.TextManager.Interop; using Microsoft.VisualStudio.Threading; using Roslyn.Utilities; using Task = System.Threading.Tasks.Task; namespace Microsoft.VisualStudio.LanguageServices.Setup { [Guid(Guids.RoslynPackageIdString)] // The option page configuration is duplicated in PackageRegistration.pkgdef [ProvideToolWindow(typeof(ValueTracking.ValueTrackingToolWindow))] internal sealed class RoslynPackage : AbstractPackage { // The randomly-generated key name is used for serializing the Background Analysis Scope preference to the .SUO // file. It doesn't have any semantic meaning, but is intended to not conflict with any other extension that // might be saving an "AnalysisScope" named stream to the same file. // note: must be <= 31 characters long private const string BackgroundAnalysisScopeOptionKey = "AnalysisScope-DCE33A29A768"; private const byte BackgroundAnalysisScopeOptionVersion = 1; private VisualStudioWorkspace? _workspace; private IComponentModel? _componentModel; private RuleSetEventHandler? _ruleSetEventHandler; private ColorSchemeApplier? _colorSchemeApplier; private IDisposable? _solutionEventMonitor; public RoslynPackage() { // We need to register an option in order for OnLoadOptions/OnSaveOptions to be called AddOptionKey(BackgroundAnalysisScopeOptionKey); } public BackgroundAnalysisScope? AnalysisScope { get; set; } protected override void OnLoadOptions(string key, Stream stream) { if (key == BackgroundAnalysisScopeOptionKey) { if (stream.ReadByte() == BackgroundAnalysisScopeOptionVersion) { var hasValue = stream.ReadByte() == 1; AnalysisScope = hasValue ? (BackgroundAnalysisScope)stream.ReadByte() : null; } else { AnalysisScope = null; } } base.OnLoadOptions(key, stream); } protected override void OnSaveOptions(string key, Stream stream) { if (key == BackgroundAnalysisScopeOptionKey) { stream.WriteByte(BackgroundAnalysisScopeOptionVersion); stream.WriteByte(AnalysisScope.HasValue ? (byte)1 : (byte)0); stream.WriteByte((byte)AnalysisScope.GetValueOrDefault()); } base.OnSaveOptions(key, stream); } protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress) { await base.InitializeAsync(cancellationToken, progress).ConfigureAwait(true); await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); _componentModel = (IComponentModel)await GetServiceAsync(typeof(SComponentModel)).ConfigureAwait(true); cancellationToken.ThrowIfCancellationRequested(); Assumes.Present(_componentModel); // Ensure the options persisters are loaded since we have to fetch options from the shell foreach (var provider in await GetOptionPersistersAsync(_componentModel, cancellationToken).ConfigureAwait(true)) { _ = await provider.GetOrCreatePersisterAsync(cancellationToken).ConfigureAwait(true); } _workspace = _componentModel.GetService<VisualStudioWorkspace>(); _workspace.Services.GetService<IExperimentationService>(); // Fetch the session synchronously on the UI thread; if this doesn't happen before we try using this on // the background thread then we will experience hangs like we see in this bug: // https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems?_a=edit&id=190808 or // https://devdiv.visualstudio.com/DevDiv/_workitems?id=296981&_a=edit var telemetryService = (VisualStudioWorkspaceTelemetryService)_workspace.Services.GetRequiredService<IWorkspaceTelemetryService>(); telemetryService.InitializeTelemetrySession(TelemetryService.DefaultSession); Logger.Log(FunctionId.Run_Environment, KeyValueLogMessage.Create(m => m["Version"] = FileVersionInfo.GetVersionInfo(typeof(VisualStudioWorkspace).Assembly.Location).FileVersion)); InitializeColors(); // load some services that have to be loaded in UI thread LoadComponentsInUIContextOnceSolutionFullyLoadedAsync(cancellationToken).Forget(); _solutionEventMonitor = new SolutionEventMonitor(_workspace); TrackBulkFileOperations(); var settingsEditorFactory = _componentModel.GetService<SettingsEditorFactory>(); RegisterEditorFactory(settingsEditorFactory); static async Task<ImmutableArray<IOptionPersisterProvider>> GetOptionPersistersAsync(IComponentModel componentModel, CancellationToken cancellationToken) { // Switch to a background thread to ensure assembly loads don't show up as UI delays attributed to // InitializeAsync. await TaskScheduler.Default; return componentModel.GetExtensions<IOptionPersisterProvider>().ToImmutableArray(); } } private void InitializeColors() { // Use VS color keys in order to support theming. CodeAnalysisColors.SystemCaptionTextColorKey = EnvironmentColors.SystemWindowTextColorKey; CodeAnalysisColors.SystemCaptionTextBrushKey = EnvironmentColors.SystemWindowTextBrushKey; CodeAnalysisColors.CheckBoxTextBrushKey = EnvironmentColors.SystemWindowTextBrushKey; CodeAnalysisColors.BackgroundBrushKey = VsBrushes.CommandBarGradientBeginKey; CodeAnalysisColors.ButtonStyleKey = VsResourceKeys.ButtonStyleKey; CodeAnalysisColors.AccentBarColorKey = EnvironmentColors.FileTabInactiveDocumentBorderEdgeBrushKey; // Initialize ColorScheme support _colorSchemeApplier = ComponentModel.GetService<ColorSchemeApplier>(); _colorSchemeApplier.Initialize(); } protected override async Task LoadComponentsAsync(CancellationToken cancellationToken) { await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); await GetServiceAsync(typeof(SVsTaskStatusCenterService)).ConfigureAwait(true); await GetServiceAsync(typeof(SVsErrorList)).ConfigureAwait(true); await GetServiceAsync(typeof(SVsSolution)).ConfigureAwait(true); await GetServiceAsync(typeof(SVsShell)).ConfigureAwait(true); await GetServiceAsync(typeof(SVsRunningDocumentTable)).ConfigureAwait(true); await GetServiceAsync(typeof(SVsTextManager)).ConfigureAwait(true); // we need to load it as early as possible since we can have errors from // package from each language very early this.ComponentModel.GetService<TaskCenterSolutionAnalysisProgressReporter>(); this.ComponentModel.GetService<VisualStudioDiagnosticListTableCommandHandler>().Initialize(this); this.ComponentModel.GetService<VisualStudioMetadataAsSourceFileSupportService>(); // The misc files workspace needs to be loaded on the UI thread. This way it will have // the appropriate task scheduler to report events on. this.ComponentModel.GetService<MiscellaneousFilesWorkspace>(); // Load and initialize the add solution item service so ConfigurationUpdater can use it to create editorconfig files. this.ComponentModel.GetService<VisualStudioAddSolutionItemService>().Initialize(this); this.ComponentModel.GetService<IVisualStudioDiagnosticAnalyzerService>().Initialize(this); this.ComponentModel.GetService<RemoveUnusedReferencesCommandHandler>().Initialize(this); LoadAnalyzerNodeComponents(); LoadComponentsBackgroundAsync(cancellationToken).Forget(); } // Overrides for VSSDK003 fix // See https://github.com/Microsoft/VSSDK-Analyzers/blob/main/doc/VSSDK003.md public override IVsAsyncToolWindowFactory GetAsyncToolWindowFactory(Guid toolWindowType) => toolWindowType == typeof(ValueTracking.ValueTrackingToolWindow).GUID ? this : base.GetAsyncToolWindowFactory(toolWindowType); protected override string GetToolWindowTitle(Type toolWindowType, int id) => base.GetToolWindowTitle(toolWindowType, id); protected override Task<object?> InitializeToolWindowAsync(Type toolWindowType, int id, CancellationToken cancellationToken) => Task.FromResult((object?)null); private async Task LoadComponentsBackgroundAsync(CancellationToken cancellationToken) { await TaskScheduler.Default; await LoadInteractiveMenusAsync(cancellationToken).ConfigureAwait(true); // Initialize any experiments async var experiments = this.ComponentModel.DefaultExportProvider.GetExportedValues<IExperiment>(); foreach (var experiment in experiments) { await experiment.InitializeAsync().ConfigureAwait(true); } } private async Task LoadInteractiveMenusAsync(CancellationToken cancellationToken) { // Obtain services and QueryInterface from the main thread await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); var menuCommandService = (OleMenuCommandService)await GetServiceAsync(typeof(IMenuCommandService)).ConfigureAwait(true); var monitorSelectionService = (IVsMonitorSelection)await GetServiceAsync(typeof(SVsShellMonitorSelection)).ConfigureAwait(true); // Switch to the background object for constructing commands await TaskScheduler.Default; await new CSharpResetInteractiveMenuCommand(menuCommandService, monitorSelectionService, ComponentModel) .InitializeResetInteractiveFromProjectCommandAsync() .ConfigureAwait(true); await new VisualBasicResetInteractiveMenuCommand(menuCommandService, monitorSelectionService, ComponentModel) .InitializeResetInteractiveFromProjectCommandAsync() .ConfigureAwait(true); } internal IComponentModel ComponentModel { get { return _componentModel ?? throw new InvalidOperationException($"Cannot use {nameof(RoslynPackage)}.{nameof(ComponentModel)} prior to initialization."); } } protected override void Dispose(bool disposing) { DisposeVisualStudioServices(); UnregisterAnalyzerTracker(); UnregisterRuleSetEventHandler(); ReportSessionWideTelemetry(); if (_solutionEventMonitor != null) { _solutionEventMonitor.Dispose(); _solutionEventMonitor = null; } base.Dispose(disposing); } private void ReportSessionWideTelemetry() { SolutionLogger.ReportTelemetry(); AsyncCompletionLogger.ReportTelemetry(); CompletionProvidersLogger.ReportTelemetry(); ChangeSignatureLogger.ReportTelemetry(); } private void DisposeVisualStudioServices() { if (_workspace != null) { _workspace.Services.GetRequiredService<VisualStudioMetadataReferenceManager>().DisconnectFromVisualStudioNativeServices(); } } private void LoadAnalyzerNodeComponents() { this.ComponentModel.GetService<IAnalyzerNodeSetup>().Initialize(this); _ruleSetEventHandler = this.ComponentModel.GetService<RuleSetEventHandler>(); if (_ruleSetEventHandler != null) { _ruleSetEventHandler.Register(); } } private void UnregisterAnalyzerTracker() => this.ComponentModel.GetService<IAnalyzerNodeSetup>().Unregister(); private void UnregisterRuleSetEventHandler() { if (_ruleSetEventHandler != null) { _ruleSetEventHandler.Unregister(); _ruleSetEventHandler = null; } } private void TrackBulkFileOperations() { RoslynDebug.AssertNotNull(_workspace); // we will pause whatever ambient work loads we have that are tied to IGlobalOperationNotificationService // such as solution crawler, pre-emptive remote host synchronization and etc. any background work users didn't // explicitly asked for. // // this should give all resources to BulkFileOperation. we do same for things like build, // debugging, wait dialog and etc. BulkFileOperation is used for things like git branch switching and etc. var globalNotificationService = _workspace.Services.GetRequiredService<IGlobalOperationNotificationService>(); // BulkFileOperation can't have nested events. there will be ever only 1 events (Begin/End) // so we only need simple tracking. var gate = new object(); GlobalOperationRegistration? localRegistration = null; BulkFileOperation.End += (s, a) => { StopBulkFileOperationNotification(); }; BulkFileOperation.Begin += (s, a) => { StartBulkFileOperationNotification(); }; void StartBulkFileOperationNotification() { RoslynDebug.Assert(gate != null); RoslynDebug.Assert(globalNotificationService != null); lock (gate) { // this shouldn't happen, but we are using external component // so guarding us from them if (localRegistration != null) { FatalError.ReportAndCatch(new InvalidOperationException("BulkFileOperation already exist")); return; } localRegistration = globalNotificationService.Start("BulkFileOperation"); } } void StopBulkFileOperationNotification() { RoslynDebug.Assert(gate != null); lock (gate) { // this can happen if BulkFileOperation was already in the middle // of running. to make things simpler, decide to not use IsInProgress // which we need to worry about race case. if (localRegistration == null) { return; } localRegistration.Dispose(); localRegistration = null; } } } } }
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/ServicesVSResources.resx
<?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <data name="Element_is_not_valid" xml:space="preserve"> <value>Element is not valid.</value> </data> <data name="You_must_select_at_least_one_member" xml:space="preserve"> <value>You must select at least one member.</value> </data> <data name="Name_conflicts_with_an_existing_type_name" xml:space="preserve"> <value>Name conflicts with an existing type name.</value> </data> <data name="Name_is_not_a_valid_0_identifier" xml:space="preserve"> <value>Name is not a valid {0} identifier.</value> </data> <data name="Illegal_characters_in_path" xml:space="preserve"> <value>Illegal characters in path.</value> </data> <data name="File_name_must_have_the_0_extension" xml:space="preserve"> <value>File name must have the "{0}" extension.</value> </data> <data name="Debugger" xml:space="preserve"> <value>Debugger</value> </data> <data name="Determining_breakpoint_location" xml:space="preserve"> <value>Determining breakpoint location...</value> </data> <data name="Determining_autos" xml:space="preserve"> <value>Determining autos...</value> </data> <data name="Resolving_breakpoint_location" xml:space="preserve"> <value>Resolving breakpoint location...</value> </data> <data name="Validating_breakpoint_location" xml:space="preserve"> <value>Validating breakpoint location...</value> </data> <data name="Getting_DataTip_text" xml:space="preserve"> <value>Getting DataTip text...</value> </data> <data name="Preview_unavailable" xml:space="preserve"> <value>Preview unavailable</value> </data> <data name="Overrides_" xml:space="preserve"> <value>Overrides</value> </data> <data name="Overridden_By" xml:space="preserve"> <value>Overridden By</value> </data> <data name="Inherits_" xml:space="preserve"> <value>Inherits</value> </data> <data name="Inherited_By" xml:space="preserve"> <value>Inherited By</value> </data> <data name="Implements_" xml:space="preserve"> <value>Implements</value> </data> <data name="Implemented_By" xml:space="preserve"> <value>Implemented By</value> </data> <data name="Maximum_number_of_documents_are_open" xml:space="preserve"> <value>Maximum number of documents are open.</value> </data> <data name="Failed_to_create_document_in_miscellaneous_files_project" xml:space="preserve"> <value>Failed to create document in miscellaneous files project.</value> </data> <data name="Invalid_access" xml:space="preserve"> <value>Invalid access.</value> </data> <data name="The_following_references_were_not_found_0_Please_locate_and_add_them_manually" xml:space="preserve"> <value>The following references were not found. {0}Please locate and add them manually.</value> </data> <data name="End_position_must_be_start_position" xml:space="preserve"> <value>End position must be &gt;= start position</value> </data> <data name="Not_a_valid_value" xml:space="preserve"> <value>Not a valid value</value> </data> <data name="given_workspace_doesn_t_support_undo" xml:space="preserve"> <value>given workspace doesn't support undo</value> </data> <data name="Add_a_reference_to_0" xml:space="preserve"> <value>Add a reference to '{0}'</value> </data> <data name="Event_type_is_invalid" xml:space="preserve"> <value>Event type is invalid</value> </data> <data name="Can_t_find_where_to_insert_member" xml:space="preserve"> <value>Can't find where to insert member</value> </data> <data name="Can_t_rename_other_elements" xml:space="preserve"> <value>Can't rename 'other' elements</value> </data> <data name="Unknown_rename_type" xml:space="preserve"> <value>Unknown rename type</value> </data> <data name="IDs_are_not_supported_for_this_symbol_type" xml:space="preserve"> <value>IDs are not supported for this symbol type.</value> </data> <data name="Can_t_create_a_node_id_for_this_symbol_kind_colon_0" xml:space="preserve"> <value>Can't create a node id for this symbol kind: '{0}'</value> </data> <data name="Project_References" xml:space="preserve"> <value>Project References</value> </data> <data name="Base_Types" xml:space="preserve"> <value>Base Types</value> </data> <data name="Miscellaneous_Files" xml:space="preserve"> <value>Miscellaneous Files</value> </data> <data name="Could_not_find_project_0" xml:space="preserve"> <value>Could not find project '{0}'</value> </data> <data name="Could_not_find_location_of_folder_on_disk" xml:space="preserve"> <value>Could not find location of folder on disk</value> </data> <data name="Assembly" xml:space="preserve"> <value>Assembly </value> </data> <data name="Exceptions_colon" xml:space="preserve"> <value>Exceptions:</value> </data> <data name="Member_of_0" xml:space="preserve"> <value>Member of {0}</value> </data> <data name="Parameters_colon1" xml:space="preserve"> <value>Parameters:</value> </data> <data name="Project" xml:space="preserve"> <value>Project </value> </data> <data name="Remarks_colon" xml:space="preserve"> <value>Remarks:</value> </data> <data name="Returns_colon" xml:space="preserve"> <value>Returns:</value> </data> <data name="Summary_colon" xml:space="preserve"> <value>Summary:</value> </data> <data name="Type_Parameters_colon" xml:space="preserve"> <value>Type Parameters:</value> </data> <data name="File_already_exists" xml:space="preserve"> <value>File already exists</value> </data> <data name="File_path_cannot_use_reserved_keywords" xml:space="preserve"> <value>File path cannot use reserved keywords</value> </data> <data name="DocumentPath_is_illegal" xml:space="preserve"> <value>DocumentPath is illegal</value> </data> <data name="Project_Path_is_illegal" xml:space="preserve"> <value>Project Path is illegal</value> </data> <data name="Path_cannot_have_empty_filename" xml:space="preserve"> <value>Path cannot have empty filename</value> </data> <data name="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace" xml:space="preserve"> <value>The given DocumentId did not come from the Visual Studio workspace.</value> </data> <data name="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to" xml:space="preserve"> <value>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</value> </data> <data name="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file" xml:space="preserve"> <value>{0} Use the dropdown to view and navigate to other items in this file.</value> </data> <data name="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to" xml:space="preserve"> <value>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</value> </data> <data name="AnalyzerChangedOnDisk" xml:space="preserve"> <value>AnalyzerChangedOnDisk</value> </data> <data name="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted" xml:space="preserve"> <value>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</value> </data> <data name="CSharp_VB_Diagnostics_Table_Data_Source" xml:space="preserve"> <value>C#/VB Diagnostics Table Data Source</value> </data> <data name="CSharp_VB_Todo_List_Table_Data_Source" xml:space="preserve"> <value>C#/VB Todo List Table Data Source</value> </data> <data name="Cancel" xml:space="preserve"> <value>Cancel</value> </data> <data name="Deselect_All" xml:space="preserve"> <value>_Deselect All</value> </data> <data name="Extract_Interface" xml:space="preserve"> <value>Extract Interface</value> </data> <data name="Generated_name_colon" xml:space="preserve"> <value>Generated name:</value> </data> <data name="New_file_name_colon" xml:space="preserve"> <value>New _file name:</value> </data> <data name="New_interface_name_colon" xml:space="preserve"> <value>New _interface name:</value> </data> <data name="OK" xml:space="preserve"> <value>OK</value> </data> <data name="Select_All" xml:space="preserve"> <value>_Select All</value> </data> <data name="Select_public_members_to_form_interface" xml:space="preserve"> <value>Select public _members to form interface</value> </data> <data name="Access_colon" xml:space="preserve"> <value>_Access:</value> </data> <data name="Add_to_existing_file" xml:space="preserve"> <value>Add to _existing file</value> </data> <data name="Add_to_current_file" xml:space="preserve"> <value>Add to _current file</value> </data> <data name="Change_Signature" xml:space="preserve"> <value>Change Signature</value> </data> <data name="Create_new_file" xml:space="preserve"> <value>_Create new file</value> </data> <data name="Default_" xml:space="preserve"> <value>Default</value> </data> <data name="File_Name_colon" xml:space="preserve"> <value>File Name:</value> </data> <data name="Generate_Type" xml:space="preserve"> <value>Generate Type</value> </data> <data name="Kind_colon" xml:space="preserve"> <value>_Kind:</value> </data> <data name="Location_colon" xml:space="preserve"> <value>Location:</value> </data> <data name="Select_destination" xml:space="preserve"> <value>Select destination</value> </data> <data name="Modifier" xml:space="preserve"> <value>Modifier</value> </data> <data name="Name_colon1" xml:space="preserve"> <value>Name:</value> </data> <data name="Parameter" xml:space="preserve"> <value>Parameter</value> </data> <data name="Parameters_colon2" xml:space="preserve"> <value>Parameters:</value> </data> <data name="Preview_method_signature_colon" xml:space="preserve"> <value>Preview method signature:</value> </data> <data name="Preview_reference_changes" xml:space="preserve"> <value>Preview reference changes</value> </data> <data name="Project_colon" xml:space="preserve"> <value>_Project:</value> </data> <data name="Type" xml:space="preserve"> <value>Type</value> </data> <data name="Type_Details_colon" xml:space="preserve"> <value>Type Details:</value> </data> <data name="Re_move" xml:space="preserve"> <value>Re_move</value> </data> <data name="Restore" xml:space="preserve"> <value>_Restore</value> </data> <data name="More_about_0" xml:space="preserve"> <value>More about {0}</value> </data> <data name="Navigation_must_be_performed_on_the_foreground_thread" xml:space="preserve"> <value>Navigation must be performed on the foreground thread.</value> </data> <data name="bracket_plus_bracket" xml:space="preserve"> <value>[+] </value> </data> <data name="bracket_bracket" xml:space="preserve"> <value>[-] </value> </data> <data name="Reference_to_0_in_project_1" xml:space="preserve"> <value>Reference to '{0}' in project '{1}'</value> </data> <data name="Unknown1" xml:space="preserve"> <value>&lt;Unknown&gt;</value> </data> <data name="Analyzer_reference_to_0_in_project_1" xml:space="preserve"> <value>Analyzer reference to '{0}' in project '{1}'</value> </data> <data name="Project_reference_to_0_in_project_1" xml:space="preserve"> <value>Project reference to '{0}' in project '{1}'</value> </data> <data name="AnalyzerDependencyConflict" xml:space="preserve"> <value>AnalyzerDependencyConflict</value> </data> <data name="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly" xml:space="preserve"> <value>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</value> </data> <data name="_0_references" xml:space="preserve"> <value>{0} references</value> </data> <data name="_1_reference" xml:space="preserve"> <value>1 reference</value> </data> <data name="_0_encountered_an_error_and_has_been_disabled" xml:space="preserve"> <value>'{0}' encountered an error and has been disabled.</value> </data> <data name="Enable" xml:space="preserve"> <value>Enable</value> </data> <data name="Enable_and_ignore_future_errors" xml:space="preserve"> <value>Enable and ignore future errors</value> </data> <data name="No_Changes" xml:space="preserve"> <value>No Changes</value> </data> <data name="Current_block" xml:space="preserve"> <value>Current block</value> </data> <data name="Determining_current_block" xml:space="preserve"> <value>Determining current block.</value> </data> <data name="IntelliSense" xml:space="preserve"> <value>IntelliSense</value> </data> <data name="CSharp_VB_Build_Table_Data_Source" xml:space="preserve"> <value>C#/VB Build Table Data Source</value> </data> <data name="MissingAnalyzerReference" xml:space="preserve"> <value>MissingAnalyzerReference</value> </data> <data name="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well" xml:space="preserve"> <value>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</value> </data> <data name="Suppress_diagnostics" xml:space="preserve"> <value>Suppress diagnostics</value> </data> <data name="Computing_suppressions_fix" xml:space="preserve"> <value>Computing suppressions fix...</value> </data> <data name="Applying_suppressions_fix" xml:space="preserve"> <value>Applying suppressions fix...</value> </data> <data name="Remove_suppressions" xml:space="preserve"> <value>Remove suppressions</value> </data> <data name="Computing_remove_suppressions_fix" xml:space="preserve"> <value>Computing remove suppressions fix...</value> </data> <data name="Applying_remove_suppressions_fix" xml:space="preserve"> <value>Applying remove suppressions fix...</value> </data> <data name="This_workspace_only_supports_opening_documents_on_the_UI_thread" xml:space="preserve"> <value>This workspace only supports opening documents on the UI thread.</value> </data> <data name="This_workspace_does_not_support_updating_Visual_Basic_compilation_options" xml:space="preserve"> <value>This workspace does not support updating Visual Basic compilation options.</value> </data> <data name="This_workspace_does_not_support_updating_Visual_Basic_parse_options" xml:space="preserve"> <value>This workspace does not support updating Visual Basic parse options.</value> </data> <data name="Synchronize_0" xml:space="preserve"> <value>Synchronize {0}</value> </data> <data name="Synchronizing_with_0" xml:space="preserve"> <value>Synchronizing with {0}...</value> </data> <data name="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance" xml:space="preserve"> <value>Visual Studio has suspended some advanced features to improve performance.</value> </data> <data name="Installing_0" xml:space="preserve"> <value>Installing '{0}'</value> </data> <data name="Installing_0_completed" xml:space="preserve"> <value>Installing '{0}' completed</value> </data> <data name="Package_install_failed_colon_0" xml:space="preserve"> <value>Package install failed: {0}</value> </data> <data name="Unknown2" xml:space="preserve"> <value>&lt;Unknown&gt;</value> </data> <data name="No" xml:space="preserve"> <value>No</value> </data> <data name="Yes" xml:space="preserve"> <value>Yes</value> </data> <data name="Choose_a_Symbol_Specification_and_a_Naming_Style" xml:space="preserve"> <value>Choose a Symbol Specification and a Naming Style.</value> </data> <data name="Enter_a_title_for_this_Naming_Rule" xml:space="preserve"> <value>Enter a title for this Naming Rule.</value> </data> <data name="Enter_a_title_for_this_Naming_Style" xml:space="preserve"> <value>Enter a title for this Naming Style.</value> </data> <data name="Enter_a_title_for_this_Symbol_Specification" xml:space="preserve"> <value>Enter a title for this Symbol Specification.</value> </data> <data name="Accessibilities_can_match_any" xml:space="preserve"> <value>Accessibilities (can match any)</value> </data> <data name="Capitalization_colon" xml:space="preserve"> <value>Capitalization:</value> </data> <data name="all_lower" xml:space="preserve"> <value>all lower</value> </data> <data name="ALL_UPPER" xml:space="preserve"> <value>ALL UPPER</value> </data> <data name="camel_Case_Name" xml:space="preserve"> <value>camel Case Name</value> </data> <data name="First_word_upper" xml:space="preserve"> <value>First word upper</value> </data> <data name="Pascal_Case_Name" xml:space="preserve"> <value>Pascal Case Name</value> </data> <data name="Severity_colon" xml:space="preserve"> <value>Severity:</value> </data> <data name="Modifiers_must_match_all" xml:space="preserve"> <value>Modifiers (must match all)</value> </data> <data name="Name_colon2" xml:space="preserve"> <value>Name:</value> </data> <data name="Naming_Rule" xml:space="preserve"> <value>Naming Rule</value> </data> <data name="Naming_Style" xml:space="preserve"> <value>Naming Style</value> </data> <data name="Naming_Style_colon" xml:space="preserve"> <value>Naming Style:</value> </data> <data name="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled" xml:space="preserve"> <value>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</value> </data> <data name="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule" xml:space="preserve"> <value>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</value> </data> <data name="Naming_Style_Title_colon" xml:space="preserve"> <value>Naming Style Title:</value> </data> <data name="Parent_Rule_colon" xml:space="preserve"> <value>Parent Rule:</value> </data> <data name="Required_Prefix_colon" xml:space="preserve"> <value>Required Prefix:</value> </data> <data name="Required_Suffix_colon" xml:space="preserve"> <value>Required Suffix:</value> </data> <data name="Sample_Identifier_colon" xml:space="preserve"> <value>Sample Identifier:</value> </data> <data name="Symbol_Kinds_can_match_any" xml:space="preserve"> <value>Symbol Kinds (can match any)</value> </data> <data name="Symbol_Specification" xml:space="preserve"> <value>Symbol Specification</value> </data> <data name="Symbol_Specification_colon" xml:space="preserve"> <value>Symbol Specification:</value> </data> <data name="Symbol_Specification_Title_colon" xml:space="preserve"> <value>Symbol Specification Title:</value> </data> <data name="Word_Separator_colon" xml:space="preserve"> <value>Word Separator:</value> </data> <data name="example" xml:space="preserve"> <value>example</value> <comment>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</comment> </data> <data name="identifier" xml:space="preserve"> <value>identifier</value> <comment>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</comment> </data> <data name="Install_0" xml:space="preserve"> <value>Install '{0}'</value> </data> <data name="Uninstalling_0" xml:space="preserve"> <value>Uninstalling '{0}'</value> </data> <data name="Uninstalling_0_completed" xml:space="preserve"> <value>Uninstalling '{0}' completed</value> </data> <data name="Uninstall_0" xml:space="preserve"> <value>Uninstall '{0}'</value> </data> <data name="Package_uninstall_failed_colon_0" xml:space="preserve"> <value>Package uninstall failed: {0}</value> </data> <data name="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled" xml:space="preserve"> <value>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</value> </data> <data name="Project_loading_failed" xml:space="preserve"> <value>Project loading failed.</value> </data> <data name="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows" xml:space="preserve"> <value>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</value> </data> <data name="Additional_information_colon" xml:space="preserve"> <value>Additional information:</value> </data> <data name="Installing_0_failed_Additional_information_colon_1" xml:space="preserve"> <value>Installing '{0}' failed. Additional information: {1}</value> </data> <data name="Uninstalling_0_failed_Additional_information_colon_1" xml:space="preserve"> <value>Uninstalling '{0}' failed. Additional information: {1}</value> </data> <data name="Move_0_below_1" xml:space="preserve"> <value>Move {0} below {1}</value> <comment>{0} and {1} are parameter descriptions</comment> </data> <data name="Move_0_above_1" xml:space="preserve"> <value>Move {0} above {1}</value> <comment>{0} and {1} are parameter descriptions</comment> </data> <data name="Remove_0" xml:space="preserve"> <value>Remove {0}</value> <comment>{0} is a parameter description</comment> </data> <data name="Restore_0" xml:space="preserve"> <value>Restore {0}</value> <comment>{0} is a parameter description</comment> </data> <data name="Re_enable" xml:space="preserve"> <value>Re-enable</value> </data> <data name="Learn_more" xml:space="preserve"> <value>Learn more</value> </data> <data name="Build_plus_live_analysis_NuGet_package" xml:space="preserve"> <value>Build + live analysis (NuGet package)</value> </data> <data name="Live_analysis_VSIX_extension" xml:space="preserve"> <value>Live analysis (VSIX extension)</value> </data> <data name="Prefer_framework_type" xml:space="preserve"> <value>Prefer framework type</value> </data> <data name="Prefer_predefined_type" xml:space="preserve"> <value>Prefer predefined type</value> </data> <data name="Copy_to_Clipboard" xml:space="preserve"> <value>Copy to Clipboard</value> </data> <data name="Close" xml:space="preserve"> <value>Close</value> </data> <data name="Unknown_parameters" xml:space="preserve"> <value>&lt;Unknown Parameters&gt;</value> </data> <data name="End_of_inner_exception_stack" xml:space="preserve"> <value>--- End of inner exception stack trace ---</value> </data> <data name="For_locals_parameters_and_members" xml:space="preserve"> <value>For locals, parameters and members</value> </data> <data name="For_member_access_expressions" xml:space="preserve"> <value>For member access expressions</value> </data> <data name="Prefer_object_initializer" xml:space="preserve"> <value>Prefer object initializer</value> </data> <data name="Expression_preferences_colon" xml:space="preserve"> <value>Expression preferences:</value> </data> <data name="Block_Structure_Guides" xml:space="preserve"> <value>Block Structure Guides</value> </data> <data name="Outlining" xml:space="preserve"> <value>Outlining</value> </data> <data name="Show_guides_for_code_level_constructs" xml:space="preserve"> <value>Show guides for code level constructs</value> </data> <data name="Show_guides_for_comments_and_preprocessor_regions" xml:space="preserve"> <value>Show guides for comments and preprocessor regions</value> </data> <data name="Show_guides_for_declaration_level_constructs" xml:space="preserve"> <value>Show guides for declaration level constructs</value> </data> <data name="Show_outlining_for_code_level_constructs" xml:space="preserve"> <value>Show outlining for code level constructs</value> </data> <data name="Show_outlining_for_comments_and_preprocessor_regions" xml:space="preserve"> <value>Show outlining for comments and preprocessor regions</value> </data> <data name="Show_outlining_for_declaration_level_constructs" xml:space="preserve"> <value>Show outlining for declaration level constructs</value> </data> <data name="Variable_preferences_colon" xml:space="preserve"> <value>Variable preferences:</value> </data> <data name="Prefer_inlined_variable_declaration" xml:space="preserve"> <value>Prefer inlined variable declaration</value> </data> <data name="Use_expression_body_for_methods" xml:space="preserve"> <value>Use expression body for methods</value> </data> <data name="Code_block_preferences_colon" xml:space="preserve"> <value>Code block preferences:</value> </data> <data name="Use_expression_body_for_accessors" xml:space="preserve"> <value>Use expression body for accessors</value> </data> <data name="Use_expression_body_for_constructors" xml:space="preserve"> <value>Use expression body for constructors</value> </data> <data name="Use_expression_body_for_indexers" xml:space="preserve"> <value>Use expression body for indexers</value> </data> <data name="Use_expression_body_for_operators" xml:space="preserve"> <value>Use expression body for operators</value> </data> <data name="Use_expression_body_for_properties" xml:space="preserve"> <value>Use expression body for properties</value> </data> <data name="Some_naming_rules_are_incomplete_Please_complete_or_remove_them" xml:space="preserve"> <value>Some naming rules are incomplete. Please complete or remove them.</value> </data> <data name="Manage_specifications" xml:space="preserve"> <value>Manage specifications</value> </data> <data name="Manage_naming_styles" xml:space="preserve"> <value>Manage naming styles</value> </data> <data name="Reorder" xml:space="preserve"> <value>Reorder</value> </data> <data name="Severity" xml:space="preserve"> <value>Severity</value> </data> <data name="Specification" xml:space="preserve"> <value>Specification</value> </data> <data name="Required_Style" xml:space="preserve"> <value>Required Style</value> </data> <data name="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule" xml:space="preserve"> <value>This item cannot be deleted because it is used by an existing Naming Rule.</value> </data> <data name="Prefer_collection_initializer" xml:space="preserve"> <value>Prefer collection initializer</value> </data> <data name="Prefer_coalesce_expression" xml:space="preserve"> <value>Prefer coalesce expression</value> </data> <data name="Collapse_regions_when_collapsing_to_definitions" xml:space="preserve"> <value>Collapse #regions when collapsing to definitions</value> </data> <data name="Prefer_null_propagation" xml:space="preserve"> <value>Prefer null propagation</value> </data> <data name="Prefer_explicit_tuple_name" xml:space="preserve"> <value>Prefer explicit tuple name</value> </data> <data name="Description" xml:space="preserve"> <value>Description</value> </data> <data name="Preference" xml:space="preserve"> <value>Preference</value> </data> <data name="Implement_Interface_or_Abstract_Class" xml:space="preserve"> <value>Implement Interface or Abstract Class</value> </data> <data name="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level" xml:space="preserve"> <value>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</value> </data> <data name="at_the_end" xml:space="preserve"> <value>at the end</value> </data> <data name="When_inserting_properties_events_and_methods_place_them" xml:space="preserve"> <value>When inserting properties, events and methods, place them:</value> </data> <data name="with_other_members_of_the_same_kind" xml:space="preserve"> <value>with other members of the same kind</value> </data> <data name="Prefer_braces" xml:space="preserve"> <value>Prefer braces</value> </data> <data name="Over_colon" xml:space="preserve"> <value>Over:</value> </data> <data name="Prefer_colon" xml:space="preserve"> <value>Prefer:</value> </data> <data name="or" xml:space="preserve"> <value>or</value> </data> <data name="built_in_types" xml:space="preserve"> <value>built-in types</value> </data> <data name="everywhere_else" xml:space="preserve"> <value>everywhere else</value> </data> <data name="type_is_apparent_from_assignment_expression" xml:space="preserve"> <value>type is apparent from assignment expression</value> </data> <data name="Move_down" xml:space="preserve"> <value>Move down</value> </data> <data name="Move_up" xml:space="preserve"> <value>Move up</value> </data> <data name="Remove" xml:space="preserve"> <value>Remove</value> </data> <data name="Pick_members" xml:space="preserve"> <value>Pick members</value> </data> <data name="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio" xml:space="preserve"> <value>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</value> </data> <data name="analyzer_Prefer_auto_properties" xml:space="preserve"> <value>Prefer auto properties</value> </data> <data name="Add_a_symbol_specification" xml:space="preserve"> <value>Add a symbol specification</value> </data> <data name="Remove_symbol_specification" xml:space="preserve"> <value>Remove symbol specification</value> </data> <data name="Add_item" xml:space="preserve"> <value>Add item</value> </data> <data name="Edit_item" xml:space="preserve"> <value>Edit item</value> </data> <data name="Remove_item" xml:space="preserve"> <value>Remove item</value> </data> <data name="Add_a_naming_rule" xml:space="preserve"> <value>Add a naming rule</value> </data> <data name="Remove_naming_rule" xml:space="preserve"> <value>Remove naming rule</value> </data> <data name="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread" xml:space="preserve"> <value>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</value> </data> <data name="codegen_prefer_auto_properties" xml:space="preserve"> <value>prefer auto properties</value> </data> <data name="prefer_throwing_properties" xml:space="preserve"> <value>prefer throwing properties</value> </data> <data name="When_generating_properties" xml:space="preserve"> <value>When generating properties:</value> </data> <data name="Options" xml:space="preserve"> <value>Options</value> </data> <data name="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues" xml:space="preserve"> <value>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</value> </data> <data name="Never_show_this_again" xml:space="preserve"> <value>Never show this again</value> </data> <data name="Prefer_simple_default_expression" xml:space="preserve"> <value>Prefer simple 'default' expression</value> </data> <data name="Prefer_inferred_tuple_names" xml:space="preserve"> <value>Prefer inferred tuple element names</value> </data> <data name="Prefer_inferred_anonymous_type_member_names" xml:space="preserve"> <value>Prefer inferred anonymous type member names</value> </data> <data name="Preview_pane" xml:space="preserve"> <value>Preview pane</value> </data> <data name="Analysis" xml:space="preserve"> <value>Analysis</value> </data> <data name="Fade_out_unreachable_code" xml:space="preserve"> <value>Fade out unreachable code</value> </data> <data name="Fading" xml:space="preserve"> <value>Fading</value> </data> <data name="Prefer_local_function_over_anonymous_function" xml:space="preserve"> <value>Prefer local function over anonymous function</value> </data> <data name="Keep_all_parentheses_in_colon" xml:space="preserve"> <value>Keep all parentheses in:</value> </data> <data name="In_other_operators" xml:space="preserve"> <value>In other operators</value> </data> <data name="Never_if_unnecessary" xml:space="preserve"> <value>Never if unnecessary</value> </data> <data name="Always_for_clarity" xml:space="preserve"> <value>Always for clarity</value> </data> <data name="Parentheses_preferences_colon" xml:space="preserve"> <value>Parentheses preferences:</value> </data> <data name="ModuleHasBeenUnloaded" xml:space="preserve"> <value>Module has been unloaded.</value> </data> <data name="Prefer_deconstructed_variable_declaration" xml:space="preserve"> <value>Prefer deconstructed variable declaration</value> </data> <data name="External_reference_found" xml:space="preserve"> <value>External reference found</value> </data> <data name="No_references_found_to_0" xml:space="preserve"> <value>No references found to '{0}'</value> </data> <data name="Search_found_no_results" xml:space="preserve"> <value>Search found no results</value> </data> <data name="Sync_Class_View" xml:space="preserve"> <value>Sync Class View</value> </data> <data name="Reset_Visual_Studio_default_keymapping" xml:space="preserve"> <value>Reset Visual Studio default keymapping</value> </data> <data name="Enable_navigation_to_decompiled_sources" xml:space="preserve"> <value>Enable navigation to decompiled sources</value> </data> <data name="Colorize_regular_expressions" xml:space="preserve"> <value>Colorize regular expressions</value> </data> <data name="Highlight_related_components_under_cursor" xml:space="preserve"> <value>Highlight related components under cursor</value> </data> <data name="Regular_Expressions" xml:space="preserve"> <value>Regular Expressions</value> </data> <data name="Report_invalid_regular_expressions" xml:space="preserve"> <value>Report invalid regular expressions</value> </data> <data name="Code_style_header_use_editor_config" xml:space="preserve"> <value>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</value> </data> <data name="Modifier_preferences_colon" xml:space="preserve"> <value>Modifier preferences:</value> </data> <data name="Prefer_readonly_fields" xml:space="preserve"> <value>Prefer readonly fields</value> </data> <data name="Analyzing_0" xml:space="preserve"> <value>Analyzing '{0}'</value> </data> <data name="Prefer_conditional_expression_over_if_with_assignments" xml:space="preserve"> <value>Prefer conditional expression over 'if' with assignments</value> </data> <data name="Prefer_conditional_expression_over_if_with_returns" xml:space="preserve"> <value>Prefer conditional expression over 'if' with returns</value> </data> <data name="Apply_0_keymapping_scheme" xml:space="preserve"> <value>Apply '{0}' keymapping scheme</value> </data> <data name="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor" xml:space="preserve"> <value>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</value> </data> <data name="Use_expression_body_for_lambdas" xml:space="preserve"> <value>Use expression body for lambdas</value> </data> <data name="Prefer_compound_assignments" xml:space="preserve"> <value>Prefer compound assignments</value> </data> <data name="Generate_dot_editorconfig_file_from_settings" xml:space="preserve"> <value>Generate .editorconfig file from settings</value> </data> <data name="Save_dot_editorconfig_file" xml:space="preserve"> <value>Save .editorconfig file</value> </data> <data name="Kind" xml:space="preserve"> <value>Kind</value> </data> <data name="Prefer_index_operator" xml:space="preserve"> <value>Prefer index operator</value> </data> <data name="Prefer_range_operator" xml:space="preserve"> <value>Prefer range operator</value> </data> <data name="All_methods" xml:space="preserve"> <value>All methods</value> </data> <data name="Avoid_expression_statements_that_implicitly_ignore_value" xml:space="preserve"> <value>Avoid expression statements that implicitly ignore value</value> </data> <data name="Avoid_unused_parameters" xml:space="preserve"> <value>Avoid unused parameters</value> </data> <data name="Avoid_unused_value_assignments" xml:space="preserve"> <value>Avoid unused value assignments</value> </data> <data name="Parameter_name_contains_invalid_characters" xml:space="preserve"> <value>Parameter name contains invalid character(s).</value> </data> <data name="Parameter_preferences_colon" xml:space="preserve"> <value>Parameter preferences:</value> </data> <data name="Parameter_type_contains_invalid_characters" xml:space="preserve"> <value>Parameter type contains invalid character(s).</value> </data> <data name="Non_public_methods" xml:space="preserve"> <value>Non-public methods</value> </data> <data name="Unused_value_is_explicitly_assigned_to_an_unused_local" xml:space="preserve"> <value>Unused value is explicitly assigned to an unused local</value> </data> <data name="Unused_value_is_explicitly_assigned_to_discard" xml:space="preserve"> <value>Unused value is explicitly assigned to discard</value> </data> <data name="Value_assigned_here_is_never_used" xml:space="preserve"> <value>Value assigned here is never used</value> </data> <data name="Value_returned_by_invocation_is_implicitly_ignored" xml:space="preserve"> <value>Value returned by invocation is implicitly ignored</value> </data> <data name="Back" xml:space="preserve"> <value>Back</value> </data> <data name="Finish" xml:space="preserve"> <value>Finish</value> </data> <data name="Interface_cannot_have_field" xml:space="preserve"> <value>Interface cannot have field.</value> </data> <data name="Make_abstract" xml:space="preserve"> <value>Make abstract</value> </data> <data name="Members" xml:space="preserve"> <value>Members</value> </data> <data name="Namespace_0" xml:space="preserve"> <value>Namespace: '{0}'</value> </data> <data name="Pull_Members_Up" xml:space="preserve"> <value>Pull Members Up</value> </data> <data name="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below" xml:space="preserve"> <value>Additional changes are needed to complete the refactoring. Review changes below.</value> </data> <data name="Select_Dependents" xml:space="preserve"> <value>Select _Dependents</value> </data> <data name="Select_destination_and_members_to_pull_up" xml:space="preserve"> <value>Select destination and members to pull up.</value> </data> <data name="Select_members_colon" xml:space="preserve"> <value>Select members:</value> </data> <data name="Select_Public" xml:space="preserve"> <value>Select _Public</value> </data> <data name="_0_will_be_changed_to_abstract" xml:space="preserve"> <value>'{0}' will be changed to abstract.</value> </data> <data name="_0_will_be_changed_to_non_static" xml:space="preserve"> <value>'{0}' will be changed to non-static.</value> </data> <data name="_0_will_be_changed_to_public" xml:space="preserve"> <value>'{0}' will be changed to public.</value> </data> <data name="Calculating_dependents" xml:space="preserve"> <value>Calculating dependents...</value> </data> <data name="Select_destination_colon" xml:space="preserve"> <value>Select destination:</value> </data> <data name="Use_expression_body_for_local_functions" xml:space="preserve"> <value>Use expression body for local functions</value> </data> <data name="Allow_colon" xml:space="preserve"> <value>Allow:</value> </data> <data name="Make_0_abstract" xml:space="preserve"> <value>Make '{0}' abstract</value> </data> <data name="Review_Changes" xml:space="preserve"> <value>Review Changes</value> </data> <data name="Select_member" xml:space="preserve"> <value>Select member</value> </data> <data name="Prefer_static_local_functions" xml:space="preserve"> <value>Prefer static local functions</value> </data> <data name="Prefer_simple_using_statement" xml:space="preserve"> <value>Prefer simple 'using' statement</value> </data> <data name="Show_completion_list" xml:space="preserve"> <value>Show completion list</value> </data> <data name="Move_to_namespace" xml:space="preserve"> <value>Move to Namespace</value> </data> <data name="Namespace" xml:space="preserve"> <value>Namespace</value> </data> <data name="Target_Namespace_colon" xml:space="preserve"> <value>Target Namespace:</value> </data> <data name="This_is_an_invalid_namespace" xml:space="preserve"> <value>This is an invalid namespace</value> </data> <data name="A_new_namespace_will_be_created" xml:space="preserve"> <value>A new namespace will be created</value> </data> <data name="A_type_and_name_must_be_provided" xml:space="preserve"> <value>A type and name must be provided.</value> </data> <data name="Rename_0_to_1" xml:space="preserve"> <value>Rename {0} to {1}</value> </data> <data name="NamingSpecification_CSharp_Class" xml:space="preserve"> <value>class</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_Delegate" xml:space="preserve"> <value>delegate</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_Enum" xml:space="preserve"> <value>enum</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_Event" xml:space="preserve"> <value>event</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_Field" xml:space="preserve"> <value>field</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</comment> </data> <data name="NamingSpecification_CSharp_Interface" xml:space="preserve"> <value>interface</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_Local" xml:space="preserve"> <value>local</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</comment> </data> <data name="NamingSpecification_CSharp_LocalFunction" xml:space="preserve"> <value>local function</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</comment> </data> <data name="NamingSpecification_CSharp_Method" xml:space="preserve"> <value>method</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</comment> </data> <data name="NamingSpecification_CSharp_Namespace" xml:space="preserve"> <value>namespace</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_Parameter" xml:space="preserve"> <value>parameter</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</comment> </data> <data name="NamingSpecification_CSharp_Property" xml:space="preserve"> <value>property</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</comment> </data> <data name="NamingSpecification_CSharp_Struct" xml:space="preserve"> <value>struct</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_TypeParameter" xml:space="preserve"> <value>type parameter</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</comment> </data> <data name="NamingSpecification_VisualBasic_Class" xml:space="preserve"> <value>Class</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Delegate" xml:space="preserve"> <value>Delegate</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Enum" xml:space="preserve"> <value>Enum</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Event" xml:space="preserve"> <value>Event</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Field" xml:space="preserve"> <value>Field</value> <comment>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</comment> </data> <data name="NamingSpecification_VisualBasic_Interface" xml:space="preserve"> <value>Interface</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Local" xml:space="preserve"> <value>Local</value> <comment>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</comment> </data> <data name="NamingSpecification_VisualBasic_Method" xml:space="preserve"> <value>Method</value> <comment>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</comment> </data> <data name="NamingSpecification_VisualBasic_Module" xml:space="preserve"> <value>Module</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Namespace" xml:space="preserve"> <value>Namespace</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Parameter" xml:space="preserve"> <value>Parameter</value> <comment>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</comment> </data> <data name="NamingSpecification_VisualBasic_Property" xml:space="preserve"> <value>Property</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Structure" xml:space="preserve"> <value>Structure</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_TypeParameter" xml:space="preserve"> <value>Type Parameter</value> <comment>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</comment> </data> <data name="Containing_member" xml:space="preserve"> <value>Containing Member</value> </data> <data name="Containing_type" xml:space="preserve"> <value>Containing Type</value> </data> <data name="Running_low_priority_background_processes" xml:space="preserve"> <value>Running low priority background processes</value> </data> <data name="Evaluating_0_tasks_in_queue" xml:space="preserve"> <value>Evaluating ({0} tasks in queue)</value> </data> <data name="Paused_0_tasks_in_queue" xml:space="preserve"> <value>Paused ({0} tasks in queue)</value> </data> <data name="Naming_rules" xml:space="preserve"> <value>Naming rules</value> </data> <data name="Updating_severity" xml:space="preserve"> <value>Updating severity</value> </data> <data name="Prefer_System_HashCode_in_GetHashCode" xml:space="preserve"> <value>Prefer 'System.HashCode' in 'GetHashCode'</value> </data> <data name="Requires_System_HashCode_be_present_in_project" xml:space="preserve"> <value>Requires 'System.HashCode' be present in project</value> </data> <data name="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item" xml:space="preserve"> <value>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</value> </data> <data name="Run_Code_Analysis_on_0" xml:space="preserve"> <value>Run Code Analysis on {0}</value> </data> <data name="Running_code_analysis_for_0" xml:space="preserve"> <value>Running code analysis for '{0}'...</value> </data> <data name="Running_code_analysis_for_Solution" xml:space="preserve"> <value>Running code analysis for Solution...</value> </data> <data name="Code_analysis_completed_for_0" xml:space="preserve"> <value>Code analysis completed for '{0}'.</value> </data> <data name="Code_analysis_completed_for_Solution" xml:space="preserve"> <value>Code analysis completed for Solution.</value> </data> <data name="Code_analysis_terminated_before_completion_for_0" xml:space="preserve"> <value>Code analysis terminated before completion for '{0}'.</value> </data> <data name="Code_analysis_terminated_before_completion_for_Solution" xml:space="preserve"> <value>Code analysis terminated before completion for Solution.</value> </data> <data name="Background_analysis_scope_colon" xml:space="preserve"> <value>Background analysis scope:</value> </data> <data name="Current_document" xml:space="preserve"> <value>Current document</value> </data> <data name="Open_documents" xml:space="preserve"> <value>Open documents</value> </data> <data name="Entire_solution" xml:space="preserve"> <value>Entire solution</value> </data> <data name="Edit" xml:space="preserve"> <value>_Edit</value> </data> <data name="Edit_0" xml:space="preserve"> <value>Edit {0}</value> <comment>{0} is a parameter description</comment> </data> <data name="Parameter_Details" xml:space="preserve"> <value>Parameter Details</value> </data> <data name="Add" xml:space="preserve"> <value>_Add</value> <comment>Adding an element to a list</comment> </data> <data name="Callsite" xml:space="preserve"> <value>Call site</value> </data> <data name="Add_Parameter" xml:space="preserve"> <value>Add Parameter</value> </data> <data name="Call_site_value" xml:space="preserve"> <value>Call site value:</value> </data> <data name="Parameter_Name" xml:space="preserve"> <value>Parameter name:</value> </data> <data name="Type_Name" xml:space="preserve"> <value>Type name:</value> </data> <data name="You_must_change_the_signature" xml:space="preserve"> <value>You must change the signature</value> <comment>"signature" here means the definition of a method</comment> </data> <data name="Added_Parameter" xml:space="preserve"> <value>Added parameter.</value> </data> <data name="Inserting_call_site_value_0" xml:space="preserve"> <value>Inserting call site value '{0}'</value> </data> <data name="Index" xml:space="preserve"> <value>Index</value> <comment>Index of parameter in original signature</comment> </data> <data name="IntroduceUndefinedTodoVariables" xml:space="preserve"> <value>Introduce undefined TODO variables</value> <comment>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</comment> </data> <data name="Omit_only_for_optional_parameters" xml:space="preserve"> <value>Omit (only for optional parameters)</value> </data> <data name="Optional_with_default_value_colon" xml:space="preserve"> <value>Optional with default value:</value> </data> <data name="Parameter_kind" xml:space="preserve"> <value>Parameter kind</value> </data> <data name="Required" xml:space="preserve"> <value>Required</value> </data> <data name="Use_named_argument" xml:space="preserve"> <value>Use named argument</value> <comment>"argument" is a programming term for a value passed to a function</comment> </data> <data name="Value_to_inject_at_call_sites" xml:space="preserve"> <value>Value to inject at call sites</value> </data> <data name="Value_colon" xml:space="preserve"> <value>Value:</value> </data> <data name="Editor_Color_Scheme" xml:space="preserve"> <value>Editor Color Scheme</value> </data> <data name="Visual_Studio_2019" xml:space="preserve"> <value>Visual Studio 2019</value> </data> <data name="Visual_Studio_2017" xml:space="preserve"> <value>Visual Studio 2017</value> </data> <data name="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page" xml:space="preserve"> <value>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</value> </data> <data name="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations" xml:space="preserve"> <value>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</value> </data> <data name="Prefer_simplified_boolean_expressions" xml:space="preserve"> <value>Prefer simplified boolean expressions</value> </data> <data name="All_sources" xml:space="preserve"> <value>All sources</value> </data> <data name="Entire_repository" xml:space="preserve"> <value>Entire repository</value> </data> <data name="Indexed_in_organization" xml:space="preserve"> <value>Indexed in organization</value> </data> <data name="Indexed_in_repo" xml:space="preserve"> <value>Indexed in repo</value> </data> <data name="Item_origin" xml:space="preserve"> <value>Item origin</value> </data> <data name="Loaded_items" xml:space="preserve"> <value>Loaded items</value> </data> <data name="Loaded_solution" xml:space="preserve"> <value>Loaded solution</value> </data> <data name="Local" xml:space="preserve"> <value>Local</value> </data> <data name="Local_metadata" xml:space="preserve"> <value>Local metadata</value> </data> <data name="Other" xml:space="preserve"> <value>Others</value> </data> <data name="Repository" xml:space="preserve"> <value>Repository</value> </data> <data name="Type_name_has_a_syntax_error" xml:space="preserve"> <value>Type name has a syntax error</value> <comment>"Type" is the programming language concept</comment> </data> <data name="Type_name_is_not_recognized" xml:space="preserve"> <value>Type name is not recognized</value> <comment>"Type" is the programming language concept</comment> </data> <data name="Type_name_is_recognized" xml:space="preserve"> <value>Type name is recognized</value> <comment>"Type" is the programming language concept</comment> </data> <data name="Please_enter_a_type_name" xml:space="preserve"> <value>Please enter a type name</value> <comment>"Type" is the programming language concept</comment> </data> <data name="Enter_a_call_site_value_or_choose_a_different_value_injection_kind" xml:space="preserve"> <value>Enter a call site value or choose a different value injection kind</value> </data> <data name="Optional_parameters_must_provide_a_default_value" xml:space="preserve"> <value>Optional parameters must provide a default value</value> </data> <data name="Parameter_information" xml:space="preserve"> <value>Parameter information</value> </data> <data name="Infer_from_context" xml:space="preserve"> <value>Infer from context</value> </data> <data name="None" xml:space="preserve"> <value>None</value> </data> <data name="Warning_colon_duplicate_parameter_name" xml:space="preserve"> <value>Warning: duplicate parameter name</value> </data> <data name="Warning_colon_type_does_not_bind" xml:space="preserve"> <value>Warning: type does not bind</value> </data> <data name="Display_inline_parameter_name_hints" xml:space="preserve"> <value>Disp_lay inline parameter name hints</value> </data> <data name="Current_parameter" xml:space="preserve"> <value>Current parameter</value> </data> <data name="Bitness32" xml:space="preserve"> <value>32-bit</value> </data> <data name="Bitness64" xml:space="preserve"> <value>64-bit</value> </data> <data name="Use_64_bit_process_for_code_analysis_requires_restart" xml:space="preserve"> <value>Use 64-bit process for code analysis (requires restart)</value> </data> <data name="Extract_Base_Class" xml:space="preserve"> <value>Extract Base Class</value> </data> <data name="This_file_is_autogenerated_by_0_and_cannot_be_edited" xml:space="preserve"> <value>This file is auto-generated by the generator '{0}' and cannot be edited.</value> </data> <data name="generated_by_0_suffix" xml:space="preserve"> <value>[generated by {0}]</value> <comment>{0} is the name of a generator.</comment> </data> <data name="generated_suffix" xml:space="preserve"> <value>[generated]</value> </data> <data name="The_generator_0_that_generated_this_file_has_been_removed_from_the_project" xml:space="preserve"> <value>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</value> </data> <data name="The_generator_0_that_generated_this_file_has_stopped_generating_this_file" xml:space="preserve"> <value>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</value> </data> <data name="Comments" xml:space="preserve"> <value>Comments</value> </data> <data name="Inline_Hints_experimental" xml:space="preserve"> <value>Inline Hints (experimental)</value> </data> <data name="Show_hints_for_everything_else" xml:space="preserve"> <value>Show hints for everything else</value> </data> <data name="Show_hints_for_literals" xml:space="preserve"> <value>Show hints for literals</value> </data> <data name="Suppress_hints_when_parameter_name_matches_the_method_s_intent" xml:space="preserve"> <value>Suppress hints when parameter name matches the method's intent</value> </data> <data name="Suppress_hints_when_parameter_names_differ_only_by_suffix" xml:space="preserve"> <value>Suppress hints when parameter names differ only by suffix</value> </data> <data name="Display_inline_type_hints" xml:space="preserve"> <value>Display inline type hints</value> </data> <data name="Show_hints_for_lambda_parameter_types" xml:space="preserve"> <value>Show hints for lambda parameter types</value> </data> <data name="Show_hints_for_implicit_object_creation" xml:space="preserve"> <value>Show hints for implicit object creation</value> </data> <data name="Show_hints_for_variables_with_inferred_types" xml:space="preserve"> <value>Show hints for variables with inferred types</value> </data> <data name="Color_hints" xml:space="preserve"> <value>Color hints</value> </data> <data name="Display_all_hints_while_pressing_Alt_F1" xml:space="preserve"> <value>Display all hints while pressing Alt+F1</value> </data> <data name="Enable_pull_diagnostics_experimental_requires_restart" xml:space="preserve"> <value>Enable 'pull' diagnostics (experimental, requires restart)</value> </data> <data name="Enable_Razor_pull_diagnostics_experimental_requires_restart" xml:space="preserve"> <value>Enable Razor 'pull' diagnostics (experimental, requires restart)</value> </data> <data name="CSharp_Visual_Basic_Diagnostics_Language_Client" xml:space="preserve"> <value>C#/Visual Basic Diagnostics Language Client</value> </data> <data name="New_Type_Name_colon" xml:space="preserve"> <value>New Type Name:</value> </data> <data name="Format_document" xml:space="preserve"> <value>Format document</value> </data> <data name="New_line_preferences_experimental_colon" xml:space="preserve"> <value>New line preferences (experimental):</value> </data> <data name="Require_colon" xml:space="preserve"> <value>Require:</value> </data> <data name="Allow_multiple_blank_lines" xml:space="preserve"> <value>Allow multiple blank lines</value> </data> <data name="Allow_statement_immediately_after_block" xml:space="preserve"> <value>Allow statement immediately after block</value> </data> <data name="Symbols_without_references" xml:space="preserve"> <value>Symbols without references</value> </data> <data name="Tab_twice_to_insert_arguments" xml:space="preserve"> <value>Tab twice to insert arguments (experimental)</value> </data> <data name="Apply" xml:space="preserve"> <value>Apply</value> </data> <data name="Remove_All" xml:space="preserve"> <value>Remove All</value> </data> <data name="Action" xml:space="preserve"> <value>Action</value> <comment>Action to perform on an unused reference, such as remove or keep</comment> </data> <data name="Assemblies" xml:space="preserve"> <value>Assemblies</value> </data> <data name="Choose_which_action_you_would_like_to_perform_on_the_unused_references" xml:space="preserve"> <value>Choose which action you would like to perform on the unused references.</value> </data> <data name="Keep" xml:space="preserve"> <value>Keep</value> </data> <data name="Packages" xml:space="preserve"> <value>Packages</value> </data> <data name="Projects" xml:space="preserve"> <value>Projects</value> </data> <data name="Reference" xml:space="preserve"> <value>Reference</value> </data> <data name="Enable_all_features_in_opened_files_from_source_generators_experimental" xml:space="preserve"> <value>Enable all features in opened files from source generators (experimental)</value> </data> <data name="Remove_Unused_References" xml:space="preserve"> <value>Remove Unused References</value> </data> <data name="Analyzing_project_references" xml:space="preserve"> <value>Analyzing project references...</value> </data> <data name="Updating_project_references" xml:space="preserve"> <value>Updating project references...</value> </data> <data name="No_unused_references_were_found" xml:space="preserve"> <value>No unused references were found.</value> </data> <data name="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental" xml:space="preserve"> <value>Show "Remove Unused References" command in Solution Explorer (experimental)</value> </data> <data name="Enable_file_logging_for_diagnostics" xml:space="preserve"> <value>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</value> </data> <data name="Skip_analyzers_for_implicitly_triggered_builds" xml:space="preserve"> <value>Skip analyzers for implicitly triggered builds</value> </data> <data name="This_action_cannot_be_undone_Do_you_wish_to_continue" xml:space="preserve"> <value>This action cannot be undone. Do you wish to continue?</value> </data> <data name="Show_inheritance_margin" xml:space="preserve"> <value>Show inheritance margin</value> </data> <data name="Inheritance_Margin_experimental" xml:space="preserve"> <value>Inheritance Margin (experimental)</value> </data> <data name="Analyzers" xml:space="preserve"> <value>Analyzers</value> </data> <data name="Carriage_Return_Newline_rn" xml:space="preserve"> <value>Carriage Return + Newline (\r\n)</value> </data> <data name="Carriage_Return_r" xml:space="preserve"> <value>Carriage Return (\r)</value> </data> <data name="Category" xml:space="preserve"> <value>Category</value> </data> <data name="Code_Style" xml:space="preserve"> <value>Code Style</value> </data> <data name="Disabled" xml:space="preserve"> <value>Disabled</value> </data> <data name="Enabled" xml:space="preserve"> <value>Enabled</value> </data> <data name="Error" xml:space="preserve"> <value>Error</value> </data> <data name="Whitespace" xml:space="preserve"> <value>Whitespace</value> </data> <data name="Id" xml:space="preserve"> <value>Id</value> </data> <data name="Newline_n" xml:space="preserve"> <value>Newline (\\n)</value> </data> <data name="Refactoring_Only" xml:space="preserve"> <value>Refactoring Only</value> </data> <data name="Suggestion" xml:space="preserve"> <value>Suggestion</value> </data> <data name="Title" xml:space="preserve"> <value>Title</value> </data> <data name="Value" xml:space="preserve"> <value>Value</value> </data> <data name="Warning" xml:space="preserve"> <value>Warning</value> </data> <data name="Search_Settings" xml:space="preserve"> <value>Search Settings</value> </data> <data name="Multiple_members_are_inherited" xml:space="preserve"> <value>Multiple members are inherited</value> </data> <data name="_0_is_inherited" xml:space="preserve"> <value>'{0}' is inherited</value> </data> <data name="Navigate_to_0" xml:space="preserve"> <value>Navigate to '{0}'</value> </data> <data name="Multiple_members_are_inherited_on_line_0" xml:space="preserve"> <value>Multiple members are inherited on line {0}</value> <comment>Line number info is needed for accessibility purpose.</comment> </data> <data name="Implemented_members" xml:space="preserve"> <value>Implemented members</value> </data> <data name="Implementing_members" xml:space="preserve"> <value>Implementing members</value> </data> <data name="Overriding_members" xml:space="preserve"> <value>Overriding members</value> </data> <data name="Overridden_members" xml:space="preserve"> <value>Overridden members</value> </data> <data name="Value_Tracking" xml:space="preserve"> <value>Value Tracking</value> <comment>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</comment> </data> <data name="Calculating" xml:space="preserve"> <value>Calculating...</value> <comment>Used in UI to represent progress in the context of loading items. </comment> </data> <data name="Derived_types" xml:space="preserve"> <value>Derived types</value> </data> <data name="Implemented_interfaces" xml:space="preserve"> <value>Implemented interfaces</value> </data> <data name="Implementing_types" xml:space="preserve"> <value>Implementing types</value> </data> <data name="Inherited_interfaces" xml:space="preserve"> <value>Inherited interfaces</value> </data> <data name="Select_an_appropriate_symbol_to_start_value_tracking" xml:space="preserve"> <value>Select an appropriate symbol to start value tracking</value> </data> <data name="Namespace_declarations" xml:space="preserve"> <value>Namespace declarations</value> </data> <data name="Error_updating_suppressions_0" xml:space="preserve"> <value>Error updating suppressions: {0}</value> </data> <data name="Underline_reassigned_variables" xml:space="preserve"> <value>Underline reassigned variables</value> </data> <data name="Analyzer_Defaults" xml:space="preserve"> <value>Analyzer Defaults</value> </data> <data name="Location" xml:space="preserve"> <value>Location</value> </data> <data name="Visual_Studio_Settings" xml:space="preserve"> <value>Visual Studio Settings</value> </data> </root>
<?xml version="1.0" encoding="utf-8"?> <root> <!-- Microsoft ResX Schema Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the various data types are done through the TypeConverter classes associated with the data types. Example: ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple name/value pairs. Each data row contains a name, and value. The row also contains a type or mimetype. Type corresponds to a .NET class that support text/value conversion through the TypeConverter architecture. Classes that don't support this are serialized and stored with the mimetype set. The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: Note - application/x-microsoft.net.object.binary.base64 is the format that the ResXResourceWriter will generate, however the reader can read any of the formats listed below. mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 value : The object must be serialized with : System.Runtime.Serialization.Formatters.Soap.SoapFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.bytearray.base64 value : The object must be serialized into a byte array : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> <xsd:element name="metadata"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" /> </xsd:sequence> <xsd:attribute name="name" use="required" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="assembly"> <xsd:complexType> <xsd:attribute name="alias" type="xsd:string" /> <xsd:attribute name="name" type="xsd:string" /> </xsd:complexType> </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required" /> </xsd:complexType> </xsd:element> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <resheader name="resmimetype"> <value>text/microsoft-resx</value> </resheader> <resheader name="version"> <value>2.0</value> </resheader> <resheader name="reader"> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <data name="Element_is_not_valid" xml:space="preserve"> <value>Element is not valid.</value> </data> <data name="You_must_select_at_least_one_member" xml:space="preserve"> <value>You must select at least one member.</value> </data> <data name="Name_conflicts_with_an_existing_type_name" xml:space="preserve"> <value>Name conflicts with an existing type name.</value> </data> <data name="Name_is_not_a_valid_0_identifier" xml:space="preserve"> <value>Name is not a valid {0} identifier.</value> </data> <data name="Illegal_characters_in_path" xml:space="preserve"> <value>Illegal characters in path.</value> </data> <data name="File_name_must_have_the_0_extension" xml:space="preserve"> <value>File name must have the "{0}" extension.</value> </data> <data name="Debugger" xml:space="preserve"> <value>Debugger</value> </data> <data name="Determining_breakpoint_location" xml:space="preserve"> <value>Determining breakpoint location...</value> </data> <data name="Determining_autos" xml:space="preserve"> <value>Determining autos...</value> </data> <data name="Resolving_breakpoint_location" xml:space="preserve"> <value>Resolving breakpoint location...</value> </data> <data name="Validating_breakpoint_location" xml:space="preserve"> <value>Validating breakpoint location...</value> </data> <data name="Getting_DataTip_text" xml:space="preserve"> <value>Getting DataTip text...</value> </data> <data name="Preview_unavailable" xml:space="preserve"> <value>Preview unavailable</value> </data> <data name="Overrides_" xml:space="preserve"> <value>Overrides</value> </data> <data name="Overridden_By" xml:space="preserve"> <value>Overridden By</value> </data> <data name="Inherits_" xml:space="preserve"> <value>Inherits</value> </data> <data name="Inherited_By" xml:space="preserve"> <value>Inherited By</value> </data> <data name="Implements_" xml:space="preserve"> <value>Implements</value> </data> <data name="Implemented_By" xml:space="preserve"> <value>Implemented By</value> </data> <data name="Maximum_number_of_documents_are_open" xml:space="preserve"> <value>Maximum number of documents are open.</value> </data> <data name="Failed_to_create_document_in_miscellaneous_files_project" xml:space="preserve"> <value>Failed to create document in miscellaneous files project.</value> </data> <data name="Invalid_access" xml:space="preserve"> <value>Invalid access.</value> </data> <data name="The_following_references_were_not_found_0_Please_locate_and_add_them_manually" xml:space="preserve"> <value>The following references were not found. {0}Please locate and add them manually.</value> </data> <data name="End_position_must_be_start_position" xml:space="preserve"> <value>End position must be &gt;= start position</value> </data> <data name="Not_a_valid_value" xml:space="preserve"> <value>Not a valid value</value> </data> <data name="given_workspace_doesn_t_support_undo" xml:space="preserve"> <value>given workspace doesn't support undo</value> </data> <data name="Add_a_reference_to_0" xml:space="preserve"> <value>Add a reference to '{0}'</value> </data> <data name="Event_type_is_invalid" xml:space="preserve"> <value>Event type is invalid</value> </data> <data name="Can_t_find_where_to_insert_member" xml:space="preserve"> <value>Can't find where to insert member</value> </data> <data name="Can_t_rename_other_elements" xml:space="preserve"> <value>Can't rename 'other' elements</value> </data> <data name="Unknown_rename_type" xml:space="preserve"> <value>Unknown rename type</value> </data> <data name="IDs_are_not_supported_for_this_symbol_type" xml:space="preserve"> <value>IDs are not supported for this symbol type.</value> </data> <data name="Can_t_create_a_node_id_for_this_symbol_kind_colon_0" xml:space="preserve"> <value>Can't create a node id for this symbol kind: '{0}'</value> </data> <data name="Project_References" xml:space="preserve"> <value>Project References</value> </data> <data name="Base_Types" xml:space="preserve"> <value>Base Types</value> </data> <data name="Miscellaneous_Files" xml:space="preserve"> <value>Miscellaneous Files</value> </data> <data name="Could_not_find_project_0" xml:space="preserve"> <value>Could not find project '{0}'</value> </data> <data name="Could_not_find_location_of_folder_on_disk" xml:space="preserve"> <value>Could not find location of folder on disk</value> </data> <data name="Assembly" xml:space="preserve"> <value>Assembly </value> </data> <data name="Exceptions_colon" xml:space="preserve"> <value>Exceptions:</value> </data> <data name="Member_of_0" xml:space="preserve"> <value>Member of {0}</value> </data> <data name="Parameters_colon1" xml:space="preserve"> <value>Parameters:</value> </data> <data name="Project" xml:space="preserve"> <value>Project </value> </data> <data name="Remarks_colon" xml:space="preserve"> <value>Remarks:</value> </data> <data name="Returns_colon" xml:space="preserve"> <value>Returns:</value> </data> <data name="Summary_colon" xml:space="preserve"> <value>Summary:</value> </data> <data name="Type_Parameters_colon" xml:space="preserve"> <value>Type Parameters:</value> </data> <data name="File_already_exists" xml:space="preserve"> <value>File already exists</value> </data> <data name="File_path_cannot_use_reserved_keywords" xml:space="preserve"> <value>File path cannot use reserved keywords</value> </data> <data name="DocumentPath_is_illegal" xml:space="preserve"> <value>DocumentPath is illegal</value> </data> <data name="Project_Path_is_illegal" xml:space="preserve"> <value>Project Path is illegal</value> </data> <data name="Path_cannot_have_empty_filename" xml:space="preserve"> <value>Path cannot have empty filename</value> </data> <data name="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace" xml:space="preserve"> <value>The given DocumentId did not come from the Visual Studio workspace.</value> </data> <data name="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to" xml:space="preserve"> <value>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</value> </data> <data name="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file" xml:space="preserve"> <value>{0} Use the dropdown to view and navigate to other items in this file.</value> </data> <data name="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to" xml:space="preserve"> <value>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</value> </data> <data name="AnalyzerChangedOnDisk" xml:space="preserve"> <value>AnalyzerChangedOnDisk</value> </data> <data name="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted" xml:space="preserve"> <value>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</value> </data> <data name="CSharp_VB_Diagnostics_Table_Data_Source" xml:space="preserve"> <value>C#/VB Diagnostics Table Data Source</value> </data> <data name="CSharp_VB_Todo_List_Table_Data_Source" xml:space="preserve"> <value>C#/VB Todo List Table Data Source</value> </data> <data name="Cancel" xml:space="preserve"> <value>Cancel</value> </data> <data name="Deselect_All" xml:space="preserve"> <value>_Deselect All</value> </data> <data name="Extract_Interface" xml:space="preserve"> <value>Extract Interface</value> </data> <data name="Generated_name_colon" xml:space="preserve"> <value>Generated name:</value> </data> <data name="New_file_name_colon" xml:space="preserve"> <value>New _file name:</value> </data> <data name="New_interface_name_colon" xml:space="preserve"> <value>New _interface name:</value> </data> <data name="OK" xml:space="preserve"> <value>OK</value> </data> <data name="Select_All" xml:space="preserve"> <value>_Select All</value> </data> <data name="Select_public_members_to_form_interface" xml:space="preserve"> <value>Select public _members to form interface</value> </data> <data name="Access_colon" xml:space="preserve"> <value>_Access:</value> </data> <data name="Add_to_existing_file" xml:space="preserve"> <value>Add to _existing file</value> </data> <data name="Add_to_current_file" xml:space="preserve"> <value>Add to _current file</value> </data> <data name="Change_Signature" xml:space="preserve"> <value>Change Signature</value> </data> <data name="Create_new_file" xml:space="preserve"> <value>_Create new file</value> </data> <data name="Default_" xml:space="preserve"> <value>Default</value> </data> <data name="File_Name_colon" xml:space="preserve"> <value>File Name:</value> </data> <data name="Generate_Type" xml:space="preserve"> <value>Generate Type</value> </data> <data name="Kind_colon" xml:space="preserve"> <value>_Kind:</value> </data> <data name="Location_colon" xml:space="preserve"> <value>Location:</value> </data> <data name="Select_destination" xml:space="preserve"> <value>Select destination</value> </data> <data name="Modifier" xml:space="preserve"> <value>Modifier</value> </data> <data name="Name_colon1" xml:space="preserve"> <value>Name:</value> </data> <data name="Parameter" xml:space="preserve"> <value>Parameter</value> </data> <data name="Parameters_colon2" xml:space="preserve"> <value>Parameters:</value> </data> <data name="Preview_method_signature_colon" xml:space="preserve"> <value>Preview method signature:</value> </data> <data name="Preview_reference_changes" xml:space="preserve"> <value>Preview reference changes</value> </data> <data name="Project_colon" xml:space="preserve"> <value>_Project:</value> </data> <data name="Type" xml:space="preserve"> <value>Type</value> </data> <data name="Type_Details_colon" xml:space="preserve"> <value>Type Details:</value> </data> <data name="Re_move" xml:space="preserve"> <value>Re_move</value> </data> <data name="Restore" xml:space="preserve"> <value>_Restore</value> </data> <data name="More_about_0" xml:space="preserve"> <value>More about {0}</value> </data> <data name="Navigation_must_be_performed_on_the_foreground_thread" xml:space="preserve"> <value>Navigation must be performed on the foreground thread.</value> </data> <data name="bracket_plus_bracket" xml:space="preserve"> <value>[+] </value> </data> <data name="bracket_bracket" xml:space="preserve"> <value>[-] </value> </data> <data name="Reference_to_0_in_project_1" xml:space="preserve"> <value>Reference to '{0}' in project '{1}'</value> </data> <data name="Unknown1" xml:space="preserve"> <value>&lt;Unknown&gt;</value> </data> <data name="Analyzer_reference_to_0_in_project_1" xml:space="preserve"> <value>Analyzer reference to '{0}' in project '{1}'</value> </data> <data name="Project_reference_to_0_in_project_1" xml:space="preserve"> <value>Project reference to '{0}' in project '{1}'</value> </data> <data name="AnalyzerDependencyConflict" xml:space="preserve"> <value>AnalyzerDependencyConflict</value> </data> <data name="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly" xml:space="preserve"> <value>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</value> </data> <data name="_0_references" xml:space="preserve"> <value>{0} references</value> </data> <data name="_1_reference" xml:space="preserve"> <value>1 reference</value> </data> <data name="_0_encountered_an_error_and_has_been_disabled" xml:space="preserve"> <value>'{0}' encountered an error and has been disabled.</value> </data> <data name="Enable" xml:space="preserve"> <value>Enable</value> </data> <data name="Enable_and_ignore_future_errors" xml:space="preserve"> <value>Enable and ignore future errors</value> </data> <data name="No_Changes" xml:space="preserve"> <value>No Changes</value> </data> <data name="Current_block" xml:space="preserve"> <value>Current block</value> </data> <data name="Determining_current_block" xml:space="preserve"> <value>Determining current block.</value> </data> <data name="IntelliSense" xml:space="preserve"> <value>IntelliSense</value> </data> <data name="CSharp_VB_Build_Table_Data_Source" xml:space="preserve"> <value>C#/VB Build Table Data Source</value> </data> <data name="MissingAnalyzerReference" xml:space="preserve"> <value>MissingAnalyzerReference</value> </data> <data name="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well" xml:space="preserve"> <value>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</value> </data> <data name="Suppress_diagnostics" xml:space="preserve"> <value>Suppress diagnostics</value> </data> <data name="Computing_suppressions_fix" xml:space="preserve"> <value>Computing suppressions fix...</value> </data> <data name="Applying_suppressions_fix" xml:space="preserve"> <value>Applying suppressions fix...</value> </data> <data name="Remove_suppressions" xml:space="preserve"> <value>Remove suppressions</value> </data> <data name="Computing_remove_suppressions_fix" xml:space="preserve"> <value>Computing remove suppressions fix...</value> </data> <data name="Applying_remove_suppressions_fix" xml:space="preserve"> <value>Applying remove suppressions fix...</value> </data> <data name="This_workspace_only_supports_opening_documents_on_the_UI_thread" xml:space="preserve"> <value>This workspace only supports opening documents on the UI thread.</value> </data> <data name="This_workspace_does_not_support_updating_Visual_Basic_compilation_options" xml:space="preserve"> <value>This workspace does not support updating Visual Basic compilation options.</value> </data> <data name="This_workspace_does_not_support_updating_Visual_Basic_parse_options" xml:space="preserve"> <value>This workspace does not support updating Visual Basic parse options.</value> </data> <data name="Synchronize_0" xml:space="preserve"> <value>Synchronize {0}</value> </data> <data name="Synchronizing_with_0" xml:space="preserve"> <value>Synchronizing with {0}...</value> </data> <data name="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance" xml:space="preserve"> <value>Visual Studio has suspended some advanced features to improve performance.</value> </data> <data name="Installing_0" xml:space="preserve"> <value>Installing '{0}'</value> </data> <data name="Installing_0_completed" xml:space="preserve"> <value>Installing '{0}' completed</value> </data> <data name="Package_install_failed_colon_0" xml:space="preserve"> <value>Package install failed: {0}</value> </data> <data name="Unknown2" xml:space="preserve"> <value>&lt;Unknown&gt;</value> </data> <data name="No" xml:space="preserve"> <value>No</value> </data> <data name="Yes" xml:space="preserve"> <value>Yes</value> </data> <data name="Choose_a_Symbol_Specification_and_a_Naming_Style" xml:space="preserve"> <value>Choose a Symbol Specification and a Naming Style.</value> </data> <data name="Enter_a_title_for_this_Naming_Rule" xml:space="preserve"> <value>Enter a title for this Naming Rule.</value> </data> <data name="Enter_a_title_for_this_Naming_Style" xml:space="preserve"> <value>Enter a title for this Naming Style.</value> </data> <data name="Enter_a_title_for_this_Symbol_Specification" xml:space="preserve"> <value>Enter a title for this Symbol Specification.</value> </data> <data name="Accessibilities_can_match_any" xml:space="preserve"> <value>Accessibilities (can match any)</value> </data> <data name="Capitalization_colon" xml:space="preserve"> <value>Capitalization:</value> </data> <data name="all_lower" xml:space="preserve"> <value>all lower</value> </data> <data name="ALL_UPPER" xml:space="preserve"> <value>ALL UPPER</value> </data> <data name="camel_Case_Name" xml:space="preserve"> <value>camel Case Name</value> </data> <data name="First_word_upper" xml:space="preserve"> <value>First word upper</value> </data> <data name="Pascal_Case_Name" xml:space="preserve"> <value>Pascal Case Name</value> </data> <data name="Severity_colon" xml:space="preserve"> <value>Severity:</value> </data> <data name="Modifiers_must_match_all" xml:space="preserve"> <value>Modifiers (must match all)</value> </data> <data name="Name_colon2" xml:space="preserve"> <value>Name:</value> </data> <data name="Naming_Rule" xml:space="preserve"> <value>Naming Rule</value> </data> <data name="Naming_Style" xml:space="preserve"> <value>Naming Style</value> </data> <data name="Naming_Style_colon" xml:space="preserve"> <value>Naming Style:</value> </data> <data name="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled" xml:space="preserve"> <value>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</value> </data> <data name="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule" xml:space="preserve"> <value>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</value> </data> <data name="Naming_Style_Title_colon" xml:space="preserve"> <value>Naming Style Title:</value> </data> <data name="Parent_Rule_colon" xml:space="preserve"> <value>Parent Rule:</value> </data> <data name="Required_Prefix_colon" xml:space="preserve"> <value>Required Prefix:</value> </data> <data name="Required_Suffix_colon" xml:space="preserve"> <value>Required Suffix:</value> </data> <data name="Sample_Identifier_colon" xml:space="preserve"> <value>Sample Identifier:</value> </data> <data name="Symbol_Kinds_can_match_any" xml:space="preserve"> <value>Symbol Kinds (can match any)</value> </data> <data name="Symbol_Specification" xml:space="preserve"> <value>Symbol Specification</value> </data> <data name="Symbol_Specification_colon" xml:space="preserve"> <value>Symbol Specification:</value> </data> <data name="Symbol_Specification_Title_colon" xml:space="preserve"> <value>Symbol Specification Title:</value> </data> <data name="Word_Separator_colon" xml:space="preserve"> <value>Word Separator:</value> </data> <data name="example" xml:space="preserve"> <value>example</value> <comment>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</comment> </data> <data name="identifier" xml:space="preserve"> <value>identifier</value> <comment>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</comment> </data> <data name="Install_0" xml:space="preserve"> <value>Install '{0}'</value> </data> <data name="Uninstalling_0" xml:space="preserve"> <value>Uninstalling '{0}'</value> </data> <data name="Uninstalling_0_completed" xml:space="preserve"> <value>Uninstalling '{0}' completed</value> </data> <data name="Uninstall_0" xml:space="preserve"> <value>Uninstall '{0}'</value> </data> <data name="Package_uninstall_failed_colon_0" xml:space="preserve"> <value>Package uninstall failed: {0}</value> </data> <data name="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled" xml:space="preserve"> <value>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</value> </data> <data name="Project_loading_failed" xml:space="preserve"> <value>Project loading failed.</value> </data> <data name="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows" xml:space="preserve"> <value>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</value> </data> <data name="Additional_information_colon" xml:space="preserve"> <value>Additional information:</value> </data> <data name="Installing_0_failed_Additional_information_colon_1" xml:space="preserve"> <value>Installing '{0}' failed. Additional information: {1}</value> </data> <data name="Uninstalling_0_failed_Additional_information_colon_1" xml:space="preserve"> <value>Uninstalling '{0}' failed. Additional information: {1}</value> </data> <data name="Move_0_below_1" xml:space="preserve"> <value>Move {0} below {1}</value> <comment>{0} and {1} are parameter descriptions</comment> </data> <data name="Move_0_above_1" xml:space="preserve"> <value>Move {0} above {1}</value> <comment>{0} and {1} are parameter descriptions</comment> </data> <data name="Remove_0" xml:space="preserve"> <value>Remove {0}</value> <comment>{0} is a parameter description</comment> </data> <data name="Restore_0" xml:space="preserve"> <value>Restore {0}</value> <comment>{0} is a parameter description</comment> </data> <data name="Re_enable" xml:space="preserve"> <value>Re-enable</value> </data> <data name="Learn_more" xml:space="preserve"> <value>Learn more</value> </data> <data name="Build_plus_live_analysis_NuGet_package" xml:space="preserve"> <value>Build + live analysis (NuGet package)</value> </data> <data name="Live_analysis_VSIX_extension" xml:space="preserve"> <value>Live analysis (VSIX extension)</value> </data> <data name="Prefer_framework_type" xml:space="preserve"> <value>Prefer framework type</value> </data> <data name="Prefer_predefined_type" xml:space="preserve"> <value>Prefer predefined type</value> </data> <data name="Copy_to_Clipboard" xml:space="preserve"> <value>Copy to Clipboard</value> </data> <data name="Close" xml:space="preserve"> <value>Close</value> </data> <data name="Unknown_parameters" xml:space="preserve"> <value>&lt;Unknown Parameters&gt;</value> </data> <data name="End_of_inner_exception_stack" xml:space="preserve"> <value>--- End of inner exception stack trace ---</value> </data> <data name="For_locals_parameters_and_members" xml:space="preserve"> <value>For locals, parameters and members</value> </data> <data name="For_member_access_expressions" xml:space="preserve"> <value>For member access expressions</value> </data> <data name="Prefer_object_initializer" xml:space="preserve"> <value>Prefer object initializer</value> </data> <data name="Expression_preferences_colon" xml:space="preserve"> <value>Expression preferences:</value> </data> <data name="Block_Structure_Guides" xml:space="preserve"> <value>Block Structure Guides</value> </data> <data name="Outlining" xml:space="preserve"> <value>Outlining</value> </data> <data name="Show_guides_for_code_level_constructs" xml:space="preserve"> <value>Show guides for code level constructs</value> </data> <data name="Show_guides_for_comments_and_preprocessor_regions" xml:space="preserve"> <value>Show guides for comments and preprocessor regions</value> </data> <data name="Show_guides_for_declaration_level_constructs" xml:space="preserve"> <value>Show guides for declaration level constructs</value> </data> <data name="Show_outlining_for_code_level_constructs" xml:space="preserve"> <value>Show outlining for code level constructs</value> </data> <data name="Show_outlining_for_comments_and_preprocessor_regions" xml:space="preserve"> <value>Show outlining for comments and preprocessor regions</value> </data> <data name="Show_outlining_for_declaration_level_constructs" xml:space="preserve"> <value>Show outlining for declaration level constructs</value> </data> <data name="Variable_preferences_colon" xml:space="preserve"> <value>Variable preferences:</value> </data> <data name="Prefer_inlined_variable_declaration" xml:space="preserve"> <value>Prefer inlined variable declaration</value> </data> <data name="Use_expression_body_for_methods" xml:space="preserve"> <value>Use expression body for methods</value> </data> <data name="Code_block_preferences_colon" xml:space="preserve"> <value>Code block preferences:</value> </data> <data name="Use_expression_body_for_accessors" xml:space="preserve"> <value>Use expression body for accessors</value> </data> <data name="Use_expression_body_for_constructors" xml:space="preserve"> <value>Use expression body for constructors</value> </data> <data name="Use_expression_body_for_indexers" xml:space="preserve"> <value>Use expression body for indexers</value> </data> <data name="Use_expression_body_for_operators" xml:space="preserve"> <value>Use expression body for operators</value> </data> <data name="Use_expression_body_for_properties" xml:space="preserve"> <value>Use expression body for properties</value> </data> <data name="Some_naming_rules_are_incomplete_Please_complete_or_remove_them" xml:space="preserve"> <value>Some naming rules are incomplete. Please complete or remove them.</value> </data> <data name="Manage_specifications" xml:space="preserve"> <value>Manage specifications</value> </data> <data name="Manage_naming_styles" xml:space="preserve"> <value>Manage naming styles</value> </data> <data name="Reorder" xml:space="preserve"> <value>Reorder</value> </data> <data name="Severity" xml:space="preserve"> <value>Severity</value> </data> <data name="Specification" xml:space="preserve"> <value>Specification</value> </data> <data name="Required_Style" xml:space="preserve"> <value>Required Style</value> </data> <data name="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule" xml:space="preserve"> <value>This item cannot be deleted because it is used by an existing Naming Rule.</value> </data> <data name="Prefer_collection_initializer" xml:space="preserve"> <value>Prefer collection initializer</value> </data> <data name="Prefer_coalesce_expression" xml:space="preserve"> <value>Prefer coalesce expression</value> </data> <data name="Collapse_regions_when_collapsing_to_definitions" xml:space="preserve"> <value>Collapse #regions when collapsing to definitions</value> </data> <data name="Prefer_null_propagation" xml:space="preserve"> <value>Prefer null propagation</value> </data> <data name="Prefer_explicit_tuple_name" xml:space="preserve"> <value>Prefer explicit tuple name</value> </data> <data name="Description" xml:space="preserve"> <value>Description</value> </data> <data name="Preference" xml:space="preserve"> <value>Preference</value> </data> <data name="Implement_Interface_or_Abstract_Class" xml:space="preserve"> <value>Implement Interface or Abstract Class</value> </data> <data name="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level" xml:space="preserve"> <value>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</value> </data> <data name="at_the_end" xml:space="preserve"> <value>at the end</value> </data> <data name="When_inserting_properties_events_and_methods_place_them" xml:space="preserve"> <value>When inserting properties, events and methods, place them:</value> </data> <data name="with_other_members_of_the_same_kind" xml:space="preserve"> <value>with other members of the same kind</value> </data> <data name="Prefer_braces" xml:space="preserve"> <value>Prefer braces</value> </data> <data name="Over_colon" xml:space="preserve"> <value>Over:</value> </data> <data name="Prefer_colon" xml:space="preserve"> <value>Prefer:</value> </data> <data name="or" xml:space="preserve"> <value>or</value> </data> <data name="built_in_types" xml:space="preserve"> <value>built-in types</value> </data> <data name="everywhere_else" xml:space="preserve"> <value>everywhere else</value> </data> <data name="type_is_apparent_from_assignment_expression" xml:space="preserve"> <value>type is apparent from assignment expression</value> </data> <data name="Move_down" xml:space="preserve"> <value>Move down</value> </data> <data name="Move_up" xml:space="preserve"> <value>Move up</value> </data> <data name="Remove" xml:space="preserve"> <value>Remove</value> </data> <data name="Pick_members" xml:space="preserve"> <value>Pick members</value> </data> <data name="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio" xml:space="preserve"> <value>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</value> </data> <data name="analyzer_Prefer_auto_properties" xml:space="preserve"> <value>Prefer auto properties</value> </data> <data name="Add_a_symbol_specification" xml:space="preserve"> <value>Add a symbol specification</value> </data> <data name="Remove_symbol_specification" xml:space="preserve"> <value>Remove symbol specification</value> </data> <data name="Add_item" xml:space="preserve"> <value>Add item</value> </data> <data name="Edit_item" xml:space="preserve"> <value>Edit item</value> </data> <data name="Remove_item" xml:space="preserve"> <value>Remove item</value> </data> <data name="Add_a_naming_rule" xml:space="preserve"> <value>Add a naming rule</value> </data> <data name="Remove_naming_rule" xml:space="preserve"> <value>Remove naming rule</value> </data> <data name="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread" xml:space="preserve"> <value>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</value> </data> <data name="codegen_prefer_auto_properties" xml:space="preserve"> <value>prefer auto properties</value> </data> <data name="prefer_throwing_properties" xml:space="preserve"> <value>prefer throwing properties</value> </data> <data name="When_generating_properties" xml:space="preserve"> <value>When generating properties:</value> </data> <data name="Options" xml:space="preserve"> <value>Options</value> </data> <data name="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues" xml:space="preserve"> <value>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</value> </data> <data name="Never_show_this_again" xml:space="preserve"> <value>Never show this again</value> </data> <data name="Prefer_simple_default_expression" xml:space="preserve"> <value>Prefer simple 'default' expression</value> </data> <data name="Prefer_inferred_tuple_names" xml:space="preserve"> <value>Prefer inferred tuple element names</value> </data> <data name="Prefer_inferred_anonymous_type_member_names" xml:space="preserve"> <value>Prefer inferred anonymous type member names</value> </data> <data name="Preview_pane" xml:space="preserve"> <value>Preview pane</value> </data> <data name="Analysis" xml:space="preserve"> <value>Analysis</value> </data> <data name="Fade_out_unreachable_code" xml:space="preserve"> <value>Fade out unreachable code</value> </data> <data name="Fading" xml:space="preserve"> <value>Fading</value> </data> <data name="Prefer_local_function_over_anonymous_function" xml:space="preserve"> <value>Prefer local function over anonymous function</value> </data> <data name="Keep_all_parentheses_in_colon" xml:space="preserve"> <value>Keep all parentheses in:</value> </data> <data name="In_other_operators" xml:space="preserve"> <value>In other operators</value> </data> <data name="Never_if_unnecessary" xml:space="preserve"> <value>Never if unnecessary</value> </data> <data name="Always_for_clarity" xml:space="preserve"> <value>Always for clarity</value> </data> <data name="Parentheses_preferences_colon" xml:space="preserve"> <value>Parentheses preferences:</value> </data> <data name="ModuleHasBeenUnloaded" xml:space="preserve"> <value>Module has been unloaded.</value> </data> <data name="Prefer_deconstructed_variable_declaration" xml:space="preserve"> <value>Prefer deconstructed variable declaration</value> </data> <data name="External_reference_found" xml:space="preserve"> <value>External reference found</value> </data> <data name="No_references_found_to_0" xml:space="preserve"> <value>No references found to '{0}'</value> </data> <data name="Search_found_no_results" xml:space="preserve"> <value>Search found no results</value> </data> <data name="Sync_Class_View" xml:space="preserve"> <value>Sync Class View</value> </data> <data name="Reset_Visual_Studio_default_keymapping" xml:space="preserve"> <value>Reset Visual Studio default keymapping</value> </data> <data name="Enable_navigation_to_decompiled_sources" xml:space="preserve"> <value>Enable navigation to decompiled sources</value> </data> <data name="Colorize_regular_expressions" xml:space="preserve"> <value>Colorize regular expressions</value> </data> <data name="Highlight_related_components_under_cursor" xml:space="preserve"> <value>Highlight related components under cursor</value> </data> <data name="Regular_Expressions" xml:space="preserve"> <value>Regular Expressions</value> </data> <data name="Report_invalid_regular_expressions" xml:space="preserve"> <value>Report invalid regular expressions</value> </data> <data name="Code_style_header_use_editor_config" xml:space="preserve"> <value>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</value> </data> <data name="Modifier_preferences_colon" xml:space="preserve"> <value>Modifier preferences:</value> </data> <data name="Prefer_readonly_fields" xml:space="preserve"> <value>Prefer readonly fields</value> </data> <data name="Analyzing_0" xml:space="preserve"> <value>Analyzing '{0}'</value> </data> <data name="Prefer_conditional_expression_over_if_with_assignments" xml:space="preserve"> <value>Prefer conditional expression over 'if' with assignments</value> </data> <data name="Prefer_conditional_expression_over_if_with_returns" xml:space="preserve"> <value>Prefer conditional expression over 'if' with returns</value> </data> <data name="Apply_0_keymapping_scheme" xml:space="preserve"> <value>Apply '{0}' keymapping scheme</value> </data> <data name="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor" xml:space="preserve"> <value>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</value> </data> <data name="Use_expression_body_for_lambdas" xml:space="preserve"> <value>Use expression body for lambdas</value> </data> <data name="Prefer_compound_assignments" xml:space="preserve"> <value>Prefer compound assignments</value> </data> <data name="Generate_dot_editorconfig_file_from_settings" xml:space="preserve"> <value>Generate .editorconfig file from settings</value> </data> <data name="Save_dot_editorconfig_file" xml:space="preserve"> <value>Save .editorconfig file</value> </data> <data name="Kind" xml:space="preserve"> <value>Kind</value> </data> <data name="Prefer_index_operator" xml:space="preserve"> <value>Prefer index operator</value> </data> <data name="Prefer_range_operator" xml:space="preserve"> <value>Prefer range operator</value> </data> <data name="All_methods" xml:space="preserve"> <value>All methods</value> </data> <data name="Avoid_expression_statements_that_implicitly_ignore_value" xml:space="preserve"> <value>Avoid expression statements that implicitly ignore value</value> </data> <data name="Avoid_unused_parameters" xml:space="preserve"> <value>Avoid unused parameters</value> </data> <data name="Avoid_unused_value_assignments" xml:space="preserve"> <value>Avoid unused value assignments</value> </data> <data name="Parameter_name_contains_invalid_characters" xml:space="preserve"> <value>Parameter name contains invalid character(s).</value> </data> <data name="Parameter_preferences_colon" xml:space="preserve"> <value>Parameter preferences:</value> </data> <data name="Parameter_type_contains_invalid_characters" xml:space="preserve"> <value>Parameter type contains invalid character(s).</value> </data> <data name="Non_public_methods" xml:space="preserve"> <value>Non-public methods</value> </data> <data name="Unused_value_is_explicitly_assigned_to_an_unused_local" xml:space="preserve"> <value>Unused value is explicitly assigned to an unused local</value> </data> <data name="Unused_value_is_explicitly_assigned_to_discard" xml:space="preserve"> <value>Unused value is explicitly assigned to discard</value> </data> <data name="Value_assigned_here_is_never_used" xml:space="preserve"> <value>Value assigned here is never used</value> </data> <data name="Value_returned_by_invocation_is_implicitly_ignored" xml:space="preserve"> <value>Value returned by invocation is implicitly ignored</value> </data> <data name="Back" xml:space="preserve"> <value>Back</value> </data> <data name="Finish" xml:space="preserve"> <value>Finish</value> </data> <data name="Interface_cannot_have_field" xml:space="preserve"> <value>Interface cannot have field.</value> </data> <data name="Make_abstract" xml:space="preserve"> <value>Make abstract</value> </data> <data name="Members" xml:space="preserve"> <value>Members</value> </data> <data name="Namespace_0" xml:space="preserve"> <value>Namespace: '{0}'</value> </data> <data name="Pull_Members_Up" xml:space="preserve"> <value>Pull Members Up</value> </data> <data name="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below" xml:space="preserve"> <value>Additional changes are needed to complete the refactoring. Review changes below.</value> </data> <data name="Select_Dependents" xml:space="preserve"> <value>Select _Dependents</value> </data> <data name="Select_destination_and_members_to_pull_up" xml:space="preserve"> <value>Select destination and members to pull up.</value> </data> <data name="Select_members_colon" xml:space="preserve"> <value>Select members:</value> </data> <data name="Select_Public" xml:space="preserve"> <value>Select _Public</value> </data> <data name="_0_will_be_changed_to_abstract" xml:space="preserve"> <value>'{0}' will be changed to abstract.</value> </data> <data name="_0_will_be_changed_to_non_static" xml:space="preserve"> <value>'{0}' will be changed to non-static.</value> </data> <data name="_0_will_be_changed_to_public" xml:space="preserve"> <value>'{0}' will be changed to public.</value> </data> <data name="Calculating_dependents" xml:space="preserve"> <value>Calculating dependents...</value> </data> <data name="Select_destination_colon" xml:space="preserve"> <value>Select destination:</value> </data> <data name="Use_expression_body_for_local_functions" xml:space="preserve"> <value>Use expression body for local functions</value> </data> <data name="Allow_colon" xml:space="preserve"> <value>Allow:</value> </data> <data name="Make_0_abstract" xml:space="preserve"> <value>Make '{0}' abstract</value> </data> <data name="Review_Changes" xml:space="preserve"> <value>Review Changes</value> </data> <data name="Select_member" xml:space="preserve"> <value>Select member</value> </data> <data name="Prefer_static_local_functions" xml:space="preserve"> <value>Prefer static local functions</value> </data> <data name="Prefer_simple_using_statement" xml:space="preserve"> <value>Prefer simple 'using' statement</value> </data> <data name="Show_completion_list" xml:space="preserve"> <value>Show completion list</value> </data> <data name="Move_to_namespace" xml:space="preserve"> <value>Move to Namespace</value> </data> <data name="Namespace" xml:space="preserve"> <value>Namespace</value> </data> <data name="Target_Namespace_colon" xml:space="preserve"> <value>Target Namespace:</value> </data> <data name="This_is_an_invalid_namespace" xml:space="preserve"> <value>This is an invalid namespace</value> </data> <data name="A_new_namespace_will_be_created" xml:space="preserve"> <value>A new namespace will be created</value> </data> <data name="A_type_and_name_must_be_provided" xml:space="preserve"> <value>A type and name must be provided.</value> </data> <data name="Rename_0_to_1" xml:space="preserve"> <value>Rename {0} to {1}</value> </data> <data name="NamingSpecification_CSharp_Class" xml:space="preserve"> <value>class</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_Delegate" xml:space="preserve"> <value>delegate</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_Enum" xml:space="preserve"> <value>enum</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_Event" xml:space="preserve"> <value>event</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_Field" xml:space="preserve"> <value>field</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</comment> </data> <data name="NamingSpecification_CSharp_Interface" xml:space="preserve"> <value>interface</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_Local" xml:space="preserve"> <value>local</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</comment> </data> <data name="NamingSpecification_CSharp_LocalFunction" xml:space="preserve"> <value>local function</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</comment> </data> <data name="NamingSpecification_CSharp_Method" xml:space="preserve"> <value>method</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</comment> </data> <data name="NamingSpecification_CSharp_Namespace" xml:space="preserve"> <value>namespace</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_Parameter" xml:space="preserve"> <value>parameter</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</comment> </data> <data name="NamingSpecification_CSharp_Property" xml:space="preserve"> <value>property</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</comment> </data> <data name="NamingSpecification_CSharp_Struct" xml:space="preserve"> <value>struct</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_CSharp_TypeParameter" xml:space="preserve"> <value>type parameter</value> <comment>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</comment> </data> <data name="NamingSpecification_VisualBasic_Class" xml:space="preserve"> <value>Class</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Delegate" xml:space="preserve"> <value>Delegate</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Enum" xml:space="preserve"> <value>Enum</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Event" xml:space="preserve"> <value>Event</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Field" xml:space="preserve"> <value>Field</value> <comment>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</comment> </data> <data name="NamingSpecification_VisualBasic_Interface" xml:space="preserve"> <value>Interface</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Local" xml:space="preserve"> <value>Local</value> <comment>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</comment> </data> <data name="NamingSpecification_VisualBasic_Method" xml:space="preserve"> <value>Method</value> <comment>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</comment> </data> <data name="NamingSpecification_VisualBasic_Module" xml:space="preserve"> <value>Module</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Namespace" xml:space="preserve"> <value>Namespace</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Parameter" xml:space="preserve"> <value>Parameter</value> <comment>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</comment> </data> <data name="NamingSpecification_VisualBasic_Property" xml:space="preserve"> <value>Property</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_Structure" xml:space="preserve"> <value>Structure</value> <comment>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</comment> </data> <data name="NamingSpecification_VisualBasic_TypeParameter" xml:space="preserve"> <value>Type Parameter</value> <comment>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</comment> </data> <data name="Containing_member" xml:space="preserve"> <value>Containing Member</value> </data> <data name="Containing_type" xml:space="preserve"> <value>Containing Type</value> </data> <data name="Running_low_priority_background_processes" xml:space="preserve"> <value>Running low priority background processes</value> </data> <data name="Evaluating_0_tasks_in_queue" xml:space="preserve"> <value>Evaluating ({0} tasks in queue)</value> </data> <data name="Paused_0_tasks_in_queue" xml:space="preserve"> <value>Paused ({0} tasks in queue)</value> </data> <data name="Naming_rules" xml:space="preserve"> <value>Naming rules</value> </data> <data name="Updating_severity" xml:space="preserve"> <value>Updating severity</value> </data> <data name="Prefer_System_HashCode_in_GetHashCode" xml:space="preserve"> <value>Prefer 'System.HashCode' in 'GetHashCode'</value> </data> <data name="Requires_System_HashCode_be_present_in_project" xml:space="preserve"> <value>Requires 'System.HashCode' be present in project</value> </data> <data name="Run_Code_Analysis_on_0" xml:space="preserve"> <value>Run Code Analysis on {0}</value> </data> <data name="Running_code_analysis_for_0" xml:space="preserve"> <value>Running code analysis for '{0}'...</value> </data> <data name="Running_code_analysis_for_Solution" xml:space="preserve"> <value>Running code analysis for Solution...</value> </data> <data name="Code_analysis_completed_for_0" xml:space="preserve"> <value>Code analysis completed for '{0}'.</value> </data> <data name="Code_analysis_completed_for_Solution" xml:space="preserve"> <value>Code analysis completed for Solution.</value> </data> <data name="Code_analysis_terminated_before_completion_for_0" xml:space="preserve"> <value>Code analysis terminated before completion for '{0}'.</value> </data> <data name="Code_analysis_terminated_before_completion_for_Solution" xml:space="preserve"> <value>Code analysis terminated before completion for Solution.</value> </data> <data name="Background_analysis_scope_colon" xml:space="preserve"> <value>Background analysis scope:</value> </data> <data name="Current_document" xml:space="preserve"> <value>Current document</value> </data> <data name="Open_documents" xml:space="preserve"> <value>Open documents</value> </data> <data name="Entire_solution" xml:space="preserve"> <value>Entire solution</value> </data> <data name="Edit" xml:space="preserve"> <value>_Edit</value> </data> <data name="Edit_0" xml:space="preserve"> <value>Edit {0}</value> <comment>{0} is a parameter description</comment> </data> <data name="Parameter_Details" xml:space="preserve"> <value>Parameter Details</value> </data> <data name="Add" xml:space="preserve"> <value>_Add</value> <comment>Adding an element to a list</comment> </data> <data name="Callsite" xml:space="preserve"> <value>Call site</value> </data> <data name="Add_Parameter" xml:space="preserve"> <value>Add Parameter</value> </data> <data name="Call_site_value" xml:space="preserve"> <value>Call site value:</value> </data> <data name="Parameter_Name" xml:space="preserve"> <value>Parameter name:</value> </data> <data name="Type_Name" xml:space="preserve"> <value>Type name:</value> </data> <data name="You_must_change_the_signature" xml:space="preserve"> <value>You must change the signature</value> <comment>"signature" here means the definition of a method</comment> </data> <data name="Added_Parameter" xml:space="preserve"> <value>Added parameter.</value> </data> <data name="Inserting_call_site_value_0" xml:space="preserve"> <value>Inserting call site value '{0}'</value> </data> <data name="Index" xml:space="preserve"> <value>Index</value> <comment>Index of parameter in original signature</comment> </data> <data name="IntroduceUndefinedTodoVariables" xml:space="preserve"> <value>Introduce undefined TODO variables</value> <comment>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</comment> </data> <data name="Omit_only_for_optional_parameters" xml:space="preserve"> <value>Omit (only for optional parameters)</value> </data> <data name="Optional_with_default_value_colon" xml:space="preserve"> <value>Optional with default value:</value> </data> <data name="Parameter_kind" xml:space="preserve"> <value>Parameter kind</value> </data> <data name="Required" xml:space="preserve"> <value>Required</value> </data> <data name="Use_named_argument" xml:space="preserve"> <value>Use named argument</value> <comment>"argument" is a programming term for a value passed to a function</comment> </data> <data name="Value_to_inject_at_call_sites" xml:space="preserve"> <value>Value to inject at call sites</value> </data> <data name="Value_colon" xml:space="preserve"> <value>Value:</value> </data> <data name="Editor_Color_Scheme" xml:space="preserve"> <value>Editor Color Scheme</value> </data> <data name="Visual_Studio_2019" xml:space="preserve"> <value>Visual Studio 2019</value> </data> <data name="Visual_Studio_2017" xml:space="preserve"> <value>Visual Studio 2017</value> </data> <data name="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page" xml:space="preserve"> <value>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</value> </data> <data name="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations" xml:space="preserve"> <value>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</value> </data> <data name="Prefer_simplified_boolean_expressions" xml:space="preserve"> <value>Prefer simplified boolean expressions</value> </data> <data name="All_sources" xml:space="preserve"> <value>All sources</value> </data> <data name="Entire_repository" xml:space="preserve"> <value>Entire repository</value> </data> <data name="Indexed_in_organization" xml:space="preserve"> <value>Indexed in organization</value> </data> <data name="Indexed_in_repo" xml:space="preserve"> <value>Indexed in repo</value> </data> <data name="Item_origin" xml:space="preserve"> <value>Item origin</value> </data> <data name="Loaded_items" xml:space="preserve"> <value>Loaded items</value> </data> <data name="Loaded_solution" xml:space="preserve"> <value>Loaded solution</value> </data> <data name="Local" xml:space="preserve"> <value>Local</value> </data> <data name="Local_metadata" xml:space="preserve"> <value>Local metadata</value> </data> <data name="Other" xml:space="preserve"> <value>Others</value> </data> <data name="Repository" xml:space="preserve"> <value>Repository</value> </data> <data name="Type_name_has_a_syntax_error" xml:space="preserve"> <value>Type name has a syntax error</value> <comment>"Type" is the programming language concept</comment> </data> <data name="Type_name_is_not_recognized" xml:space="preserve"> <value>Type name is not recognized</value> <comment>"Type" is the programming language concept</comment> </data> <data name="Type_name_is_recognized" xml:space="preserve"> <value>Type name is recognized</value> <comment>"Type" is the programming language concept</comment> </data> <data name="Please_enter_a_type_name" xml:space="preserve"> <value>Please enter a type name</value> <comment>"Type" is the programming language concept</comment> </data> <data name="Enter_a_call_site_value_or_choose_a_different_value_injection_kind" xml:space="preserve"> <value>Enter a call site value or choose a different value injection kind</value> </data> <data name="Optional_parameters_must_provide_a_default_value" xml:space="preserve"> <value>Optional parameters must provide a default value</value> </data> <data name="Parameter_information" xml:space="preserve"> <value>Parameter information</value> </data> <data name="Infer_from_context" xml:space="preserve"> <value>Infer from context</value> </data> <data name="None" xml:space="preserve"> <value>None</value> </data> <data name="Warning_colon_duplicate_parameter_name" xml:space="preserve"> <value>Warning: duplicate parameter name</value> </data> <data name="Warning_colon_type_does_not_bind" xml:space="preserve"> <value>Warning: type does not bind</value> </data> <data name="Display_inline_parameter_name_hints" xml:space="preserve"> <value>Disp_lay inline parameter name hints</value> </data> <data name="Current_parameter" xml:space="preserve"> <value>Current parameter</value> </data> <data name="Bitness32" xml:space="preserve"> <value>32-bit</value> </data> <data name="Bitness64" xml:space="preserve"> <value>64-bit</value> </data> <data name="Use_64_bit_process_for_code_analysis_requires_restart" xml:space="preserve"> <value>Use 64-bit process for code analysis (requires restart)</value> </data> <data name="Extract_Base_Class" xml:space="preserve"> <value>Extract Base Class</value> </data> <data name="This_file_is_autogenerated_by_0_and_cannot_be_edited" xml:space="preserve"> <value>This file is auto-generated by the generator '{0}' and cannot be edited.</value> </data> <data name="generated_by_0_suffix" xml:space="preserve"> <value>[generated by {0}]</value> <comment>{0} is the name of a generator.</comment> </data> <data name="generated_suffix" xml:space="preserve"> <value>[generated]</value> </data> <data name="The_generator_0_that_generated_this_file_has_been_removed_from_the_project" xml:space="preserve"> <value>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</value> </data> <data name="The_generator_0_that_generated_this_file_has_stopped_generating_this_file" xml:space="preserve"> <value>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</value> </data> <data name="Comments" xml:space="preserve"> <value>Comments</value> </data> <data name="Inline_Hints_experimental" xml:space="preserve"> <value>Inline Hints (experimental)</value> </data> <data name="Show_hints_for_everything_else" xml:space="preserve"> <value>Show hints for everything else</value> </data> <data name="Show_hints_for_literals" xml:space="preserve"> <value>Show hints for literals</value> </data> <data name="Suppress_hints_when_parameter_name_matches_the_method_s_intent" xml:space="preserve"> <value>Suppress hints when parameter name matches the method's intent</value> </data> <data name="Suppress_hints_when_parameter_names_differ_only_by_suffix" xml:space="preserve"> <value>Suppress hints when parameter names differ only by suffix</value> </data> <data name="Display_inline_type_hints" xml:space="preserve"> <value>Display inline type hints</value> </data> <data name="Show_hints_for_lambda_parameter_types" xml:space="preserve"> <value>Show hints for lambda parameter types</value> </data> <data name="Show_hints_for_implicit_object_creation" xml:space="preserve"> <value>Show hints for implicit object creation</value> </data> <data name="Show_hints_for_variables_with_inferred_types" xml:space="preserve"> <value>Show hints for variables with inferred types</value> </data> <data name="Color_hints" xml:space="preserve"> <value>Color hints</value> </data> <data name="Display_all_hints_while_pressing_Alt_F1" xml:space="preserve"> <value>Display all hints while pressing Alt+F1</value> </data> <data name="Enable_pull_diagnostics_experimental_requires_restart" xml:space="preserve"> <value>Enable 'pull' diagnostics (experimental, requires restart)</value> </data> <data name="Enable_Razor_pull_diagnostics_experimental_requires_restart" xml:space="preserve"> <value>Enable Razor 'pull' diagnostics (experimental, requires restart)</value> </data> <data name="CSharp_Visual_Basic_Diagnostics_Language_Client" xml:space="preserve"> <value>C#/Visual Basic Diagnostics Language Client</value> </data> <data name="New_Type_Name_colon" xml:space="preserve"> <value>New Type Name:</value> </data> <data name="Format_document" xml:space="preserve"> <value>Format document</value> </data> <data name="New_line_preferences_experimental_colon" xml:space="preserve"> <value>New line preferences (experimental):</value> </data> <data name="Require_colon" xml:space="preserve"> <value>Require:</value> </data> <data name="Allow_multiple_blank_lines" xml:space="preserve"> <value>Allow multiple blank lines</value> </data> <data name="Allow_statement_immediately_after_block" xml:space="preserve"> <value>Allow statement immediately after block</value> </data> <data name="Symbols_without_references" xml:space="preserve"> <value>Symbols without references</value> </data> <data name="Tab_twice_to_insert_arguments" xml:space="preserve"> <value>Tab twice to insert arguments (experimental)</value> </data> <data name="Apply" xml:space="preserve"> <value>Apply</value> </data> <data name="Remove_All" xml:space="preserve"> <value>Remove All</value> </data> <data name="Action" xml:space="preserve"> <value>Action</value> <comment>Action to perform on an unused reference, such as remove or keep</comment> </data> <data name="Assemblies" xml:space="preserve"> <value>Assemblies</value> </data> <data name="Choose_which_action_you_would_like_to_perform_on_the_unused_references" xml:space="preserve"> <value>Choose which action you would like to perform on the unused references.</value> </data> <data name="Keep" xml:space="preserve"> <value>Keep</value> </data> <data name="Packages" xml:space="preserve"> <value>Packages</value> </data> <data name="Projects" xml:space="preserve"> <value>Projects</value> </data> <data name="Reference" xml:space="preserve"> <value>Reference</value> </data> <data name="Enable_all_features_in_opened_files_from_source_generators_experimental" xml:space="preserve"> <value>Enable all features in opened files from source generators (experimental)</value> </data> <data name="Remove_Unused_References" xml:space="preserve"> <value>Remove Unused References</value> </data> <data name="Analyzing_project_references" xml:space="preserve"> <value>Analyzing project references...</value> </data> <data name="Updating_project_references" xml:space="preserve"> <value>Updating project references...</value> </data> <data name="No_unused_references_were_found" xml:space="preserve"> <value>No unused references were found.</value> </data> <data name="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental" xml:space="preserve"> <value>Show "Remove Unused References" command in Solution Explorer (experimental)</value> </data> <data name="Enable_file_logging_for_diagnostics" xml:space="preserve"> <value>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</value> </data> <data name="Skip_analyzers_for_implicitly_triggered_builds" xml:space="preserve"> <value>Skip analyzers for implicitly triggered builds</value> </data> <data name="This_action_cannot_be_undone_Do_you_wish_to_continue" xml:space="preserve"> <value>This action cannot be undone. Do you wish to continue?</value> </data> <data name="Show_inheritance_margin" xml:space="preserve"> <value>Show inheritance margin</value> </data> <data name="Inheritance_Margin_experimental" xml:space="preserve"> <value>Inheritance Margin (experimental)</value> </data> <data name="Analyzers" xml:space="preserve"> <value>Analyzers</value> </data> <data name="Carriage_Return_Newline_rn" xml:space="preserve"> <value>Carriage Return + Newline (\r\n)</value> </data> <data name="Carriage_Return_r" xml:space="preserve"> <value>Carriage Return (\r)</value> </data> <data name="Category" xml:space="preserve"> <value>Category</value> </data> <data name="Code_Style" xml:space="preserve"> <value>Code Style</value> </data> <data name="Disabled" xml:space="preserve"> <value>Disabled</value> </data> <data name="Enabled" xml:space="preserve"> <value>Enabled</value> </data> <data name="Error" xml:space="preserve"> <value>Error</value> </data> <data name="Whitespace" xml:space="preserve"> <value>Whitespace</value> </data> <data name="Id" xml:space="preserve"> <value>Id</value> </data> <data name="Newline_n" xml:space="preserve"> <value>Newline (\\n)</value> </data> <data name="Refactoring_Only" xml:space="preserve"> <value>Refactoring Only</value> </data> <data name="Suggestion" xml:space="preserve"> <value>Suggestion</value> </data> <data name="Title" xml:space="preserve"> <value>Title</value> </data> <data name="Value" xml:space="preserve"> <value>Value</value> </data> <data name="Warning" xml:space="preserve"> <value>Warning</value> </data> <data name="Search_Settings" xml:space="preserve"> <value>Search Settings</value> </data> <data name="Multiple_members_are_inherited" xml:space="preserve"> <value>Multiple members are inherited</value> </data> <data name="_0_is_inherited" xml:space="preserve"> <value>'{0}' is inherited</value> </data> <data name="Navigate_to_0" xml:space="preserve"> <value>Navigate to '{0}'</value> </data> <data name="Multiple_members_are_inherited_on_line_0" xml:space="preserve"> <value>Multiple members are inherited on line {0}</value> <comment>Line number info is needed for accessibility purpose.</comment> </data> <data name="Implemented_members" xml:space="preserve"> <value>Implemented members</value> </data> <data name="Implementing_members" xml:space="preserve"> <value>Implementing members</value> </data> <data name="Overriding_members" xml:space="preserve"> <value>Overriding members</value> </data> <data name="Overridden_members" xml:space="preserve"> <value>Overridden members</value> </data> <data name="Value_Tracking" xml:space="preserve"> <value>Value Tracking</value> <comment>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</comment> </data> <data name="Calculating" xml:space="preserve"> <value>Calculating...</value> <comment>Used in UI to represent progress in the context of loading items. </comment> </data> <data name="Derived_types" xml:space="preserve"> <value>Derived types</value> </data> <data name="Implemented_interfaces" xml:space="preserve"> <value>Implemented interfaces</value> </data> <data name="Implementing_types" xml:space="preserve"> <value>Implementing types</value> </data> <data name="Inherited_interfaces" xml:space="preserve"> <value>Inherited interfaces</value> </data> <data name="Select_an_appropriate_symbol_to_start_value_tracking" xml:space="preserve"> <value>Select an appropriate symbol to start value tracking</value> </data> <data name="Namespace_declarations" xml:space="preserve"> <value>Namespace declarations</value> </data> <data name="Error_updating_suppressions_0" xml:space="preserve"> <value>Error updating suppressions: {0}</value> </data> <data name="Underline_reassigned_variables" xml:space="preserve"> <value>Underline reassigned variables</value> </data> <data name="Analyzer_Defaults" xml:space="preserve"> <value>Analyzer Defaults</value> </data> <data name="Location" xml:space="preserve"> <value>Location</value> </data> <data name="Visual_Studio_Settings" xml:space="preserve"> <value>Visual Studio Settings</value> </data> </root>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.cs.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="cs" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">V kořenovém adresáři vašeho řešení se zjistil nový soubor. editorconfig. Chcete ho nastavit jako položku řešení?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Vytvoří se nový obor názvů.</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Typ a název se musí poskytnout.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Akce</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Přidat</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Přidat parametr</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Přidat do _aktuálního souboru</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Parametr se přidal.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Aby bylo možné dokončit refaktoring, je nutné udělat další změny. Zkontrolujte změny níže.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Všechny metody</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Všechny zdroje</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Povolit:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Povolit více než jeden prázdný řádek</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Povolit příkaz hned za blokem</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Vždy kvůli srozumitelnosti</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analyzátory</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Analyzují se odkazy projektů...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Použít</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Použít schéma mapování klávesnice {0}</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Sestavení</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Vyhněte se výrazům, které implicitně ignorují hodnotu.</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Vyhněte se nepoužitým parametrům.</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Vyhněte se přiřazení nepoužitých hodnot.</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Zpět</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Obor analýzy na pozadí:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32b</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64b</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Sestavení + živá analýza (balíček NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Klient jazyka diagnostiky C# nebo Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Počítají se závislosti...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Hodnota lokality volání:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Lokalita volání</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Návrat na začátek řádku + Nový řádek (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Návrat na začátek řádku (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Kategorie</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Zvolte, kterou akci chcete provést pro nepoužívané odkazy.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Styl kódu</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Dokončila se analýza kódu pro {0}.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Dokončila se analýza kódu pro řešení.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">Analýza kódu pro {0} se ukončila dříve, než se dokončila.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">Analýza kódu pro řešení se ukončila dříve, než se dokončila.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Barevné nápovědy</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Obarvit regulární výrazy</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Komentáře</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Obsahující člen</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Obsahující typ</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Aktuální dokument</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Aktuální parametr</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Zakázáno</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Při podržení kláves Alt+F1 zobrazit všechny nápovědy</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Zobrazovat nápovědy k názvům v_ložených parametrů</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Zobrazovat vložené nápovědy k typům</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Upravit</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Upravit {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Barevné schéma editoru</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Možnosti barevného schématu editoru jsou k dispozici jen v případě, že se používá barva motivu dodávaná spolu se sadou Visual Studio. Barva motivu se dá nakonfigurovat na stránce možností Prostředí &gt; Obecné.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">Element není platný.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Povolit diagnostiku pull Razor (experimentální, vyžaduje restart)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Povolit všechny funkce v otevřených souborech ze zdrojových generátorů (experimentální)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Povolit protokolování souboru pro diagnostiku (protokolování ve složce '%Temp%\Roslyn')</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Povolit diagnostiku pull (experimentální, vyžaduje restart)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Povoleno</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Zadejte hodnotu místa volání, nebo zvolte jiný druh vložení hodnoty.</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Celé úložiště</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Celé řešení</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Chyba</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Chyba při aktualizaci potlačení: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Vyhodnocování (počet úloh ve frontě: {0})</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Extrahovat základní třídu</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Dokončit</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Formátovat dokument</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Generovat soubor .editorconfig z nastavení</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Zvýrazňovat související komponenty pod kurzorem</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Implementovaní členové</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Implementace členů</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">V jiných operátorech</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Index</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Odvodit z kontextu</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Indexováno v organizaci</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Indexováno v úložišti</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Míra dědičnosti (experimentální)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Vložené nápovědy (experimentální)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Vkládá se hodnota lokality volání {0}.</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Nainstalujte Microsoftem doporučené analyzátory Roslyn, které poskytují další diagnostiku a opravy pro běžné problémy s návrhem, zabezpečením, výkonem a spolehlivostí rozhraní API.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Rozhraní nemůže mít pole.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Zaveďte nedefinované proměnné TODO.</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Původ položky</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Zachovat</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Zachovat všechny závorky v:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Druh</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Živá analýza (rozšíření VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Načtené položky</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Načtené řešení</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Místní</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Místní metadata</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Nastavit {0} jako abstraktní</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Nastavit jako abstraktní</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Členové</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Předvolby modifikátorů:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Přesunout do oboru názvů</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Více členů se dědí.</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Více členů se dědí na řádku {0}.</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Název koliduje s existujícím názvem typu.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Název není platný identifikátor {0}.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Obor názvů</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Obor názvů: {0}</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">pole</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">místní</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">lokální funkce</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">metoda</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">parametr</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">vlastnost</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">parametr typu</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Pole</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Místní</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">metoda</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parametr</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Parametr typu</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Pravidla pojmenování</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Přejít na {0}</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Nikdy, pokud jsou nadbytečné</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Název nového typu:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Předvolby nových řádků (experimentální):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Nový řádek (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Nenašly se žádné nepoužívané odkazy.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Neveřejné metody</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">žádné</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Vynechat (jen pro nepovinné parametry)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Otevřené dokumenty</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Nepovinné parametry musí poskytovat výchozí hodnotu.</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Nepovinné s výchozí hodnotou:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Jiné</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Přepsaní členové</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Přepsání členů</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Balíčky</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Podrobnosti o parametru</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Název parametru:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Informace o parametrech</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Druh parametru</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Název parametru obsahuje neplatné znaky.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Předvolby parametrů:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Typ parametru obsahuje neplatné znaky.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Předvolby závorek:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Pozastaveno (počet úloh ve frontě: {0})</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Zadejte prosím název typu.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Upřednostňovat System.HashCode v GetHashCode</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Preferovat složená přiřazení</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Preferovat operátor indexu</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Preferovat operátor rozsahu</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Preferovat pole s modifikátorem readonly</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Preferovat jednoduchý příkaz using</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Upřednostňovat zjednodušené logické výrazy</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Preferovat statické místní funkce</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Projekty</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Stáhnout členy</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Pouze refaktoring</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Odkaz</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Regulární výrazy</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Odebrat vše</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Odebrat nepoužívané odkazy</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Přejmenovat {0} na {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Nahlásit neplatné regulární výrazy</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Úložiště</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Vyžadovat:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Požadováno</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">V projektu se musí nacházet System.HashCode.</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Obnovit výchozí mapování klávesnice sady Visual Studio</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Zkontrolovat změny</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Spustit analýzu kódu {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Spouští se analýza kódu pro {0}...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Spouští se analýza kódu pro řešení...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Spouštění procesů s nízkou prioritou na pozadí</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Uložit soubor .editorconfig</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Nastavení hledání</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Vybrat cíl</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Vybrat _závislé položky</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Vybrat _veřejné</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Vyberte cíl a členy ke stažení.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Vybrat cíl:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Vybrat člena</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Vybrat členy:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Zobrazit příkaz Odebrat nepoužívané odkazy v Průzkumníkovi řešení (experimentální)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Zobrazit seznam pro doplňování</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Zobrazit nápovědy pro všechno ostatní</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Zobrazit tipy pro implicitní vytvoření objektu</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Zobrazit nápovědy pro typy parametrů lambda</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Zobrazit nápovědy pro literály</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Zobrazit nápovědy pro proměnné s odvozenými typy</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Zobrazit míru dědičnosti</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Některé barvy barevného schématu se přepsaly změnami na stránce možností Prostředí &gt; Písma a barvy. Pokud chcete zrušit všechna přizpůsobení, vyberte na stránce Písma a barvy možnost Použít výchozí.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Návrh</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Potlačit nápovědy, když název parametru odpovídá záměru metody</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Potlačit nápovědy, když se název parametru liší jen předponou</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Symboly bez odkazů</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Stisknout dvakrát tabulátor, aby se vložily argumenty (experimentální)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Cílový obor názvů:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Generátor {0}, který vygeneroval tento soubor, se odebral z projektu. Tento soubor už není součástí projektu.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Generátor {0}, který vygeneroval tento soubor, přestal tento soubor generovat. Soubor už není součástí projektu.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Tato akce se nedá vrátit. Chcete pokračovat?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Tento soubor se automaticky vygeneroval pomocí generátoru {0} a nedá se upravit.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Toto je neplatný obor názvů.</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Název</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Název typu:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Název typu má chybu syntaxe.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Název typu se nerozpoznal.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Název typu se rozpoznal.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">Nepoužitá hodnota se explicitně přiřadí nepoužité lokální hodnotě.</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">Nepoužitá hodnota se explicitně přiřadí k zahození.</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Aktualizují se odkazy projektů...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Aktualizuje se závažnost.</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Pro analýzu kódu použít 64bitový proces (vyžaduje restartování)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Pro výrazy lambda používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Pro místní funkce používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Použít pojmenovaný argument</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Hodnota</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">Zde přiřazená hodnota se nikdy nepoužije.</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Hodnota:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">Hodnota vrácená voláním je implicitně ignorována.</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Hodnota, která se má vložit v místech volání</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Upozornění</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Upozornění: duplicitní název parametru</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Upozornění: Typ se neváže</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Zaznamenali jsme, že jste pozastavili: {0}. Obnovte mapování klávesnice, abyste mohli pokračovat v navigaci a refactoringu.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Tento pracovní prostor nepodporuje aktualizaci možností kompilace jazyka Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Je nutné změnit signaturu</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Musíte vybrat aspoň jednoho člena.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Cesta obsahuje neplatné znaky.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Název souboru musí mít příponu {0}.</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Ladicí program</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Určuje se umístění zarážky...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Určují se automatické fragmenty kódu...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Vyhodnocuje se umístění zarážky...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Ověřuje se umístění zarážky...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Získává se text Datového tipu...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Náhled není k dispozici.</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Přepisuje</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Přepsáno čím:</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Dědí</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Zdědil:</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implementuje</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Implementoval:</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Více dokumentů už nejde otevřít.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">V projektu s různorodými soubory se nepovedlo vytvořit dokument.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Neplatný přístup</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">Následující odkazy se nenašly. {0}Najděte nebo přidejte je prosím ručně.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">Konečná pozice musí být &gt;= počáteční pozici.</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Není platnou hodnotou.</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">{0} se dědí.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">{0} se změní na abstraktní.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">{0} se změní na nestatický.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">{0} se změní na veřejný.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[vygenerováno pomocí {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[vygenerováno]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">Daný pracovní prostor nepodporuje vrácení akce zpátky.</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Přidat odkaz do {0}</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Typ události není platný.</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Nejde zjistit místo, kam se má vložit člen.</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Elementy other nejde přejmenovat.</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Neznámý typ přejmenování</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">ID se pro tento typ symbolu nepodporují.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Pro tento druh symbolu nejde vytvořit ID uzlu: {0}</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Odkazy projektu</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Základní typy</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Různé soubory</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Projekt {0} nešlo najít.</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Nepovedlo se najít umístění složky na disku.</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Sestavení </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Výjimky:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Člen v {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parametry:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Projekt </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Poznámky:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Vrácení:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Souhrn:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Parametry typu:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Soubor už existuje.</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">Cesta k souboru nemůže používat vyhrazená klíčová slova.</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">Cesta DocumentPath není platná.</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Cesta k projektu není platná.</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Cesta nemůže obsahovat prázdný název souboru.</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">Dané DocumentId nepochází z pracovního prostoru sady Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projekt: {0} ({1}) V rozevíracím seznamu si můžete zobrazit jiné projekty, ke kterým by tento soubor mohl patřit, a případně na ně rovnou přepnout.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} V rozevíracím seznamu si můžete zobrazit ostatní položky v tomto souboru a případně na ně rovnou přejít.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projekt: {0} V rozevíracím seznamu si můžete zobrazit jiné projekty, ke kterým by tento soubor mohl patřit, a případně na ně rovnou přepnout.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">Sestavení analyzátoru {0} se změnilo. Diagnostika možná nebude odpovídat skutečnosti, dokud se Visual Studio nerestartuje.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Zdroj dat pro tabulku diagnostiky jazyka C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Zdroj dat pro tabulku seznamu úkolů jazyka C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Storno</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Zrušit výběr</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Extrahovat rozhraní</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Vygenerovaný název:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Nový _název souboru:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Nový ná_zev rozhraní:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Vybrat vše</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Vybrat veřejné č_leny, ze kterých se sestaví rozhraní</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Přístup:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Přidat do _existujícího souboru</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Změnit signaturu</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Vytvořit nový soubor</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Výchozí</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Název souboru:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Generovat typ</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Druh:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Umístění:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modifikátor</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Název:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parametr</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parametry:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Náhled signatury metody:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Náhled změn odkazu</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Projekt:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Typ</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Podrobnosti o typu:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">O_debrat</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Obnovit</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">Další informace o {0}</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">Navigace musí probíhat ve vlákně na popředí.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Odkaz na {0} v projektu {1}</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Neznámý&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Odkaz analyzátoru na {0} v projektu {1}</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Odkaz projektu na {0} v projektu {1}</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Sestavení analyzátoru {0} a {1} mají obě identitu {2}, ale různý obsah. Načte se jenom jedno z nich. Analyzátory, které tato sestavení používají, možná nepoběží tak, jak by měly.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">Počet odkazů: {0}</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 odkaz</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'U analyzátoru {0} došlo k chybě a byl zakázán.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Povolit</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Povolit a ignorovat budoucí chyby</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Beze změn</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Aktuální blok</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Určuje se aktuální blok.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Zdroj dat pro tabulku sestavení jazyka C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">Sestavení analyzátoru {0} závisí na sestavení {1}, to se ale nepovedlo najít. Analyzátory možná nepoběží tak, jak by měly, dokud se jako odkaz analyzátoru nepřidá i chybějící sestavení.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Potlačit diagnostiku</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Počítá se odebrání potlačení...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Používá se odebrání potlačení...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Odebrat potlačení</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Počítá se oprava formou odebrání potlačení...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Používá se oprava formou odebrání potlačení...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Tento pracovní prostor podporuje otevírání dokumentů jenom ve vlákně uživatelského rozhraní.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Tento pracovní prostor nepodporuje aktualizaci možností analýzy jazyka Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Synchronizovat {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Probíhá synchronizace s {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Sada Visual Studio pozastavila některé pokročilé funkce, aby se zvýšil výkon.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Instaluje se {0}.</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Instalace {0} je hotová.</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Nepovedlo se nainstalovat balíček: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Neznámý&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Ne</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Ano</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Zvolte specifikaci symbolů a styl pojmenování.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Zadejte název tohoto pravidla pojmenování.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Zadejte název tohoto stylu pojmenování.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Zadejte název této specifikace symbolů.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Přístupnosti (můžou odpovídat čemukoli)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Velká písmena:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">všechna malá</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">VŠECHNA VELKÁ</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Název ve stylu camelCase</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">První slovo velkými písmeny</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Název ve stylu JazykaPascal</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Závažnost:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modifikátory (můžou odpovídat libovolným)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Název:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Pravidlo pojmenování</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Styl pojmenování</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Styl pojmenování:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Pravidla pojmenování umožňují definovat, jak se mají pojmenovat konkrétní sady symbolů a jak se mají zpracovat nesprávně pojmenované symboly.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">Při pojmenovávání symbolu se standardně použije první odpovídající pravidlo pojmenování nejvyšší úrovně. Speciální případy se řeší odpovídajícím podřízeným pravidlem.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Název stylu pojmenování:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Nadřazené pravidlo:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Požadovaná předpona:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Požadovaná přípona:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Ukázkový identifikátor:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Druhy symbolů (můžou odpovídat čemukoli)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Specifikace symbolů</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Specifikace symbolů:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Název specifikace symbolů:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Oddělovač slov:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">příklad</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">identifikátor</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Nainstalovat {0}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Odinstalovává se {0}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Odinstalace {0} se dokončila.</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Odinstalovat {0}</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Nepovedlo se odinstalovat balíček: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Při načítání projektu došlo k chybě. Některé funkce projektu, třeba úplná analýza řešení pro neúspěšný projekt a projekty, které na něm závisí, jsou zakázané.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Nepovedlo se načíst projekt.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Pokud chcete zjistit příčinu problému, zkuste prosím následující. 1. Zavřete Visual Studio. 2. Otevřete Visual Studio Developer Command Prompt. 3. Nastavte proměnnou prostředí TraceDesignTime na hodnotu true (set TraceDesignTime=true). 4. Odstraňte adresář .vs nebo soubor /.suo. 5. Restartujte VS z příkazového řádku, ve kterém jste nastavili proměnnou prostředí (devenv). 6. Otevřete řešení. 7. Zkontrolujte {0} a vyhledejte neúspěšné úlohy (FAILED).</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Další informace:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">Nepovedlo se nainstalovat {0}. Další informace: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">Nepovedlo se odinstalovat {0}. Další informace: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Přesunout {0} pod {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Přesunout {0} nad {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Odebrat {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Obnovit {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Znovu povolit</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Další informace</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Upřednostňovat typ architektury</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Upřednostňovat předem definovaný typ</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Zkopírovat do schránky</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Zavřít</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Neznámé parametry&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Konec trasování zásobníku vnitřních výjimek ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Pro místní proměnné, parametry a členy</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Pro výrazy přístupu členů</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Upřednostňovat inicializátor objektu</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Předvolby výrazu:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Vodítka pro strukturu bloku</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Sbalení</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Zobrazit vodítka pro konstrukty na úrovni kódu</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Zobrazit vodítka pro komentáře a oblasti pro preprocesor</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Zobrazit vodítka pro konstrukty na úrovni deklarace</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Zobrazit sbalení pro konstrukty na úrovni kódu</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Zobrazit sbalení pro komentáře a oblasti pro preprocesor</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Zobrazit sbalení pro konstrukty na úrovni deklarace</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Předvolby proměnných:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Upřednostňovat vloženou deklaraci proměnných</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Pro metody používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Předvolby bloku kódu:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Pro přístupové objekty používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Pro konstruktory používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Pro indexery používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Pro operátory používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Pro vlastnosti používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Některá pravidla pojmenování nejsou hotová. Dokončete je, nebo je prosím odeberte.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Spravovat specifikace</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Přeskupit</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Závažnost</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Specifikace</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Požadovaný styl</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Položku nejde odstranit, protože ji používá některé existující pravidlo pojmenování.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Upřednostňovat inicializátor kolekce</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Upřednostňovat sloučený výraz</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Při sbalování na definice sbalovat oblasti (#regions)</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Upřednostňovat šíření hodnoty null</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Preferovat explicitní název řazené kolekce členů</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Popis</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Předvolba</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Implementovat rozhraní nebo abstraktní třídu</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Pro daný symbol se použije jenom to pravidlo s odpovídající specifikací, které je nejvíce nahoře. Porušení požadovaného stylu tohoto pravidla se ohlásí na zvolené úrovni závažnosti.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">na konec</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Vlastnosti, události a metody při vkládání umístit:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">s ostatními členy stejného druhu</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Preferovat složené závorky</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">Před:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Preferovat:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">nebo</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">předdefinované typy</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">všude jinde</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">typ je zřejmý z výrazu přiřazení</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Přesunout dolů</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Přesunout nahoru</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Odebrat</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Vybrat členy</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Proces využívaný sadou Visual Studio bohužel narazil na neopravitelnou chybu. Doporučujeme uložit si práci a pak ukončit a restartovat Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Přidat specifikaci symbolu</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Odebrat specifikaci symbolu</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Přidat položku</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Upravit položku</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Odebrat položku</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Přidat pravidlo pro pojmenování</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Odebrat pravidlo pojmenování</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">VisualStudioWorkspace.TryApplyChanges nejde volat z vlákna na pozadí.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">preferovat vyvolávací vlastnosti</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Při generování vlastností:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Možnosti</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Už znovu nezobrazovat</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Upřednostňovat jednoduchý výraz default</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Preferovat odvozené názvy elementů řazené kolekce členů</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Preferovat odvozené názvy členů anonymních typů</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Podokno náhledu</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Analýza</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Zesvětlit nedosažitelný kód</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Zesvětlení</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Preferovat lokální funkci před anonymní funkcí</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Upřednostňovat dekonstruovanou deklaraci proměnných</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Byl nalezen externí odkaz.</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Nebyly nalezeny žádné odkazy na {0}.</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">Hledání nevrátilo žádné výsledky.</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Preferovat automatické vlastnosti</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">preferovat automatické vlastnosti</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Modul byl uvolněn.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Povolit navigaci na dekompilované zdroje (experimentální)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">Váš soubor .editorconfig může přepsat místní nastavení nakonfigurovaná na této stránce, která platí jenom pro váš počítač. Pokud chcete tato nastavení nakonfigurovat tak, aby se přesouvala s vaším řešením, použijte soubory EditorConfig. Další informace</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Synchronizovat Zobrazení tříd</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Analyzuje se {0}.</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Spravovat styly pojmenování</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Upřednostnit podmíněný výraz před if s přiřazeními</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Upřednostnit podmíněný výraz před if s vrácenými hodnotami</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="cs" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Vytvoří se nový obor názvů.</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Typ a název se musí poskytnout.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Akce</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Přidat</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Přidat parametr</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Přidat do _aktuálního souboru</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Parametr se přidal.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Aby bylo možné dokončit refaktoring, je nutné udělat další změny. Zkontrolujte změny níže.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Všechny metody</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Všechny zdroje</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Povolit:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Povolit více než jeden prázdný řádek</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Povolit příkaz hned za blokem</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Vždy kvůli srozumitelnosti</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analyzátory</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Analyzují se odkazy projektů...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Použít</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Použít schéma mapování klávesnice {0}</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Sestavení</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Vyhněte se výrazům, které implicitně ignorují hodnotu.</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Vyhněte se nepoužitým parametrům.</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Vyhněte se přiřazení nepoužitých hodnot.</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Zpět</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Obor analýzy na pozadí:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32b</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64b</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Sestavení + živá analýza (balíček NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Klient jazyka diagnostiky C# nebo Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Počítají se závislosti...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Hodnota lokality volání:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Lokalita volání</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Návrat na začátek řádku + Nový řádek (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Návrat na začátek řádku (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Kategorie</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Zvolte, kterou akci chcete provést pro nepoužívané odkazy.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Styl kódu</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Dokončila se analýza kódu pro {0}.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Dokončila se analýza kódu pro řešení.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">Analýza kódu pro {0} se ukončila dříve, než se dokončila.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">Analýza kódu pro řešení se ukončila dříve, než se dokončila.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Barevné nápovědy</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Obarvit regulární výrazy</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Komentáře</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Obsahující člen</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Obsahující typ</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Aktuální dokument</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Aktuální parametr</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Zakázáno</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Při podržení kláves Alt+F1 zobrazit všechny nápovědy</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Zobrazovat nápovědy k názvům v_ložených parametrů</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Zobrazovat vložené nápovědy k typům</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Upravit</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Upravit {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Barevné schéma editoru</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Možnosti barevného schématu editoru jsou k dispozici jen v případě, že se používá barva motivu dodávaná spolu se sadou Visual Studio. Barva motivu se dá nakonfigurovat na stránce možností Prostředí &gt; Obecné.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">Element není platný.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Povolit diagnostiku pull Razor (experimentální, vyžaduje restart)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Povolit všechny funkce v otevřených souborech ze zdrojových generátorů (experimentální)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Povolit protokolování souboru pro diagnostiku (protokolování ve složce '%Temp%\Roslyn')</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Povolit diagnostiku pull (experimentální, vyžaduje restart)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Povoleno</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Zadejte hodnotu místa volání, nebo zvolte jiný druh vložení hodnoty.</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Celé úložiště</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Celé řešení</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Chyba</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Chyba při aktualizaci potlačení: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Vyhodnocování (počet úloh ve frontě: {0})</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Extrahovat základní třídu</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Dokončit</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Formátovat dokument</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Generovat soubor .editorconfig z nastavení</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Zvýrazňovat související komponenty pod kurzorem</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Implementovaní členové</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Implementace členů</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">V jiných operátorech</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Index</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Odvodit z kontextu</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Indexováno v organizaci</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Indexováno v úložišti</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Míra dědičnosti (experimentální)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Vložené nápovědy (experimentální)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Vkládá se hodnota lokality volání {0}.</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Nainstalujte Microsoftem doporučené analyzátory Roslyn, které poskytují další diagnostiku a opravy pro běžné problémy s návrhem, zabezpečením, výkonem a spolehlivostí rozhraní API.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Rozhraní nemůže mít pole.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Zaveďte nedefinované proměnné TODO.</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Původ položky</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Zachovat</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Zachovat všechny závorky v:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Druh</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Živá analýza (rozšíření VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Načtené položky</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Načtené řešení</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Místní</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Místní metadata</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Nastavit {0} jako abstraktní</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Nastavit jako abstraktní</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Členové</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Předvolby modifikátorů:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Přesunout do oboru názvů</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Více členů se dědí.</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Více členů se dědí na řádku {0}.</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Název koliduje s existujícím názvem typu.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Název není platný identifikátor {0}.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Obor názvů</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Obor názvů: {0}</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">pole</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">místní</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">lokální funkce</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">metoda</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">parametr</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">vlastnost</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">parametr typu</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Pole</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Místní</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">metoda</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parametr</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Parametr typu</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Pravidla pojmenování</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Přejít na {0}</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Nikdy, pokud jsou nadbytečné</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Název nového typu:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Předvolby nových řádků (experimentální):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Nový řádek (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Nenašly se žádné nepoužívané odkazy.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Neveřejné metody</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">žádné</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Vynechat (jen pro nepovinné parametry)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Otevřené dokumenty</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Nepovinné parametry musí poskytovat výchozí hodnotu.</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Nepovinné s výchozí hodnotou:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Jiné</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Přepsaní členové</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Přepsání členů</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Balíčky</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Podrobnosti o parametru</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Název parametru:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Informace o parametrech</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Druh parametru</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Název parametru obsahuje neplatné znaky.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Předvolby parametrů:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Typ parametru obsahuje neplatné znaky.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Předvolby závorek:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Pozastaveno (počet úloh ve frontě: {0})</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Zadejte prosím název typu.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Upřednostňovat System.HashCode v GetHashCode</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Preferovat složená přiřazení</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Preferovat operátor indexu</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Preferovat operátor rozsahu</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Preferovat pole s modifikátorem readonly</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Preferovat jednoduchý příkaz using</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Upřednostňovat zjednodušené logické výrazy</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Preferovat statické místní funkce</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Projekty</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Stáhnout členy</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Pouze refaktoring</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Odkaz</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Regulární výrazy</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Odebrat vše</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Odebrat nepoužívané odkazy</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Přejmenovat {0} na {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Nahlásit neplatné regulární výrazy</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Úložiště</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Vyžadovat:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Požadováno</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">V projektu se musí nacházet System.HashCode.</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Obnovit výchozí mapování klávesnice sady Visual Studio</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Zkontrolovat změny</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Spustit analýzu kódu {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Spouští se analýza kódu pro {0}...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Spouští se analýza kódu pro řešení...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Spouštění procesů s nízkou prioritou na pozadí</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Uložit soubor .editorconfig</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Nastavení hledání</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Vybrat cíl</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Vybrat _závislé položky</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Vybrat _veřejné</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Vyberte cíl a členy ke stažení.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Vybrat cíl:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Vybrat člena</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Vybrat členy:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Zobrazit příkaz Odebrat nepoužívané odkazy v Průzkumníkovi řešení (experimentální)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Zobrazit seznam pro doplňování</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Zobrazit nápovědy pro všechno ostatní</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Zobrazit tipy pro implicitní vytvoření objektu</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Zobrazit nápovědy pro typy parametrů lambda</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Zobrazit nápovědy pro literály</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Zobrazit nápovědy pro proměnné s odvozenými typy</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Zobrazit míru dědičnosti</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Některé barvy barevného schématu se přepsaly změnami na stránce možností Prostředí &gt; Písma a barvy. Pokud chcete zrušit všechna přizpůsobení, vyberte na stránce Písma a barvy možnost Použít výchozí.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Návrh</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Potlačit nápovědy, když název parametru odpovídá záměru metody</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Potlačit nápovědy, když se název parametru liší jen předponou</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Symboly bez odkazů</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Stisknout dvakrát tabulátor, aby se vložily argumenty (experimentální)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Cílový obor názvů:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Generátor {0}, který vygeneroval tento soubor, se odebral z projektu. Tento soubor už není součástí projektu.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Generátor {0}, který vygeneroval tento soubor, přestal tento soubor generovat. Soubor už není součástí projektu.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Tato akce se nedá vrátit. Chcete pokračovat?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Tento soubor se automaticky vygeneroval pomocí generátoru {0} a nedá se upravit.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Toto je neplatný obor názvů.</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Název</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Název typu:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Název typu má chybu syntaxe.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Název typu se nerozpoznal.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Název typu se rozpoznal.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">Nepoužitá hodnota se explicitně přiřadí nepoužité lokální hodnotě.</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">Nepoužitá hodnota se explicitně přiřadí k zahození.</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Aktualizují se odkazy projektů...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Aktualizuje se závažnost.</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Pro analýzu kódu použít 64bitový proces (vyžaduje restartování)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Pro výrazy lambda používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Pro místní funkce používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Použít pojmenovaný argument</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Hodnota</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">Zde přiřazená hodnota se nikdy nepoužije.</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Hodnota:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">Hodnota vrácená voláním je implicitně ignorována.</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Hodnota, která se má vložit v místech volání</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Upozornění</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Upozornění: duplicitní název parametru</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Upozornění: Typ se neváže</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Zaznamenali jsme, že jste pozastavili: {0}. Obnovte mapování klávesnice, abyste mohli pokračovat v navigaci a refactoringu.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Tento pracovní prostor nepodporuje aktualizaci možností kompilace jazyka Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Je nutné změnit signaturu</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Musíte vybrat aspoň jednoho člena.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Cesta obsahuje neplatné znaky.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Název souboru musí mít příponu {0}.</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Ladicí program</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Určuje se umístění zarážky...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Určují se automatické fragmenty kódu...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Vyhodnocuje se umístění zarážky...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Ověřuje se umístění zarážky...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Získává se text Datového tipu...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Náhled není k dispozici.</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Přepisuje</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Přepsáno čím:</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Dědí</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Zdědil:</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implementuje</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Implementoval:</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Více dokumentů už nejde otevřít.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">V projektu s různorodými soubory se nepovedlo vytvořit dokument.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Neplatný přístup</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">Následující odkazy se nenašly. {0}Najděte nebo přidejte je prosím ručně.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">Konečná pozice musí být &gt;= počáteční pozici.</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Není platnou hodnotou.</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">{0} se dědí.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">{0} se změní na abstraktní.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">{0} se změní na nestatický.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">{0} se změní na veřejný.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[vygenerováno pomocí {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[vygenerováno]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">Daný pracovní prostor nepodporuje vrácení akce zpátky.</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Přidat odkaz do {0}</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Typ události není platný.</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Nejde zjistit místo, kam se má vložit člen.</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Elementy other nejde přejmenovat.</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Neznámý typ přejmenování</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">ID se pro tento typ symbolu nepodporují.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Pro tento druh symbolu nejde vytvořit ID uzlu: {0}</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Odkazy projektu</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Základní typy</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Různé soubory</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Projekt {0} nešlo najít.</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Nepovedlo se najít umístění složky na disku.</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Sestavení </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Výjimky:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Člen v {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parametry:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Projekt </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Poznámky:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Vrácení:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Souhrn:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Parametry typu:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Soubor už existuje.</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">Cesta k souboru nemůže používat vyhrazená klíčová slova.</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">Cesta DocumentPath není platná.</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Cesta k projektu není platná.</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Cesta nemůže obsahovat prázdný název souboru.</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">Dané DocumentId nepochází z pracovního prostoru sady Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projekt: {0} ({1}) V rozevíracím seznamu si můžete zobrazit jiné projekty, ke kterým by tento soubor mohl patřit, a případně na ně rovnou přepnout.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} V rozevíracím seznamu si můžete zobrazit ostatní položky v tomto souboru a případně na ně rovnou přejít.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projekt: {0} V rozevíracím seznamu si můžete zobrazit jiné projekty, ke kterým by tento soubor mohl patřit, a případně na ně rovnou přepnout.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">Sestavení analyzátoru {0} se změnilo. Diagnostika možná nebude odpovídat skutečnosti, dokud se Visual Studio nerestartuje.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Zdroj dat pro tabulku diagnostiky jazyka C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Zdroj dat pro tabulku seznamu úkolů jazyka C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Storno</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Zrušit výběr</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Extrahovat rozhraní</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Vygenerovaný název:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Nový _název souboru:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Nový ná_zev rozhraní:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Vybrat vše</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Vybrat veřejné č_leny, ze kterých se sestaví rozhraní</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Přístup:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Přidat do _existujícího souboru</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Změnit signaturu</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Vytvořit nový soubor</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Výchozí</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Název souboru:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Generovat typ</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Druh:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Umístění:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modifikátor</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Název:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parametr</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parametry:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Náhled signatury metody:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Náhled změn odkazu</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Projekt:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Typ</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Podrobnosti o typu:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">O_debrat</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Obnovit</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">Další informace o {0}</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">Navigace musí probíhat ve vlákně na popředí.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Odkaz na {0} v projektu {1}</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Neznámý&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Odkaz analyzátoru na {0} v projektu {1}</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Odkaz projektu na {0} v projektu {1}</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Sestavení analyzátoru {0} a {1} mají obě identitu {2}, ale různý obsah. Načte se jenom jedno z nich. Analyzátory, které tato sestavení používají, možná nepoběží tak, jak by měly.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">Počet odkazů: {0}</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 odkaz</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'U analyzátoru {0} došlo k chybě a byl zakázán.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Povolit</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Povolit a ignorovat budoucí chyby</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Beze změn</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Aktuální blok</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Určuje se aktuální blok.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Zdroj dat pro tabulku sestavení jazyka C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">Sestavení analyzátoru {0} závisí na sestavení {1}, to se ale nepovedlo najít. Analyzátory možná nepoběží tak, jak by měly, dokud se jako odkaz analyzátoru nepřidá i chybějící sestavení.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Potlačit diagnostiku</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Počítá se odebrání potlačení...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Používá se odebrání potlačení...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Odebrat potlačení</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Počítá se oprava formou odebrání potlačení...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Používá se oprava formou odebrání potlačení...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Tento pracovní prostor podporuje otevírání dokumentů jenom ve vlákně uživatelského rozhraní.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Tento pracovní prostor nepodporuje aktualizaci možností analýzy jazyka Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Synchronizovat {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Probíhá synchronizace s {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Sada Visual Studio pozastavila některé pokročilé funkce, aby se zvýšil výkon.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Instaluje se {0}.</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Instalace {0} je hotová.</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Nepovedlo se nainstalovat balíček: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Neznámý&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Ne</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Ano</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Zvolte specifikaci symbolů a styl pojmenování.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Zadejte název tohoto pravidla pojmenování.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Zadejte název tohoto stylu pojmenování.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Zadejte název této specifikace symbolů.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Přístupnosti (můžou odpovídat čemukoli)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Velká písmena:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">všechna malá</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">VŠECHNA VELKÁ</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Název ve stylu camelCase</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">První slovo velkými písmeny</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Název ve stylu JazykaPascal</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Závažnost:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modifikátory (můžou odpovídat libovolným)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Název:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Pravidlo pojmenování</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Styl pojmenování</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Styl pojmenování:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Pravidla pojmenování umožňují definovat, jak se mají pojmenovat konkrétní sady symbolů a jak se mají zpracovat nesprávně pojmenované symboly.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">Při pojmenovávání symbolu se standardně použije první odpovídající pravidlo pojmenování nejvyšší úrovně. Speciální případy se řeší odpovídajícím podřízeným pravidlem.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Název stylu pojmenování:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Nadřazené pravidlo:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Požadovaná předpona:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Požadovaná přípona:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Ukázkový identifikátor:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Druhy symbolů (můžou odpovídat čemukoli)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Specifikace symbolů</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Specifikace symbolů:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Název specifikace symbolů:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Oddělovač slov:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">příklad</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">identifikátor</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Nainstalovat {0}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Odinstalovává se {0}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Odinstalace {0} se dokončila.</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Odinstalovat {0}</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Nepovedlo se odinstalovat balíček: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Při načítání projektu došlo k chybě. Některé funkce projektu, třeba úplná analýza řešení pro neúspěšný projekt a projekty, které na něm závisí, jsou zakázané.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Nepovedlo se načíst projekt.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Pokud chcete zjistit příčinu problému, zkuste prosím následující. 1. Zavřete Visual Studio. 2. Otevřete Visual Studio Developer Command Prompt. 3. Nastavte proměnnou prostředí TraceDesignTime na hodnotu true (set TraceDesignTime=true). 4. Odstraňte adresář .vs nebo soubor /.suo. 5. Restartujte VS z příkazového řádku, ve kterém jste nastavili proměnnou prostředí (devenv). 6. Otevřete řešení. 7. Zkontrolujte {0} a vyhledejte neúspěšné úlohy (FAILED).</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Další informace:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">Nepovedlo se nainstalovat {0}. Další informace: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">Nepovedlo se odinstalovat {0}. Další informace: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Přesunout {0} pod {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Přesunout {0} nad {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Odebrat {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Obnovit {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Znovu povolit</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Další informace</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Upřednostňovat typ architektury</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Upřednostňovat předem definovaný typ</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Zkopírovat do schránky</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Zavřít</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Neznámé parametry&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Konec trasování zásobníku vnitřních výjimek ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Pro místní proměnné, parametry a členy</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Pro výrazy přístupu členů</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Upřednostňovat inicializátor objektu</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Předvolby výrazu:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Vodítka pro strukturu bloku</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Sbalení</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Zobrazit vodítka pro konstrukty na úrovni kódu</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Zobrazit vodítka pro komentáře a oblasti pro preprocesor</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Zobrazit vodítka pro konstrukty na úrovni deklarace</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Zobrazit sbalení pro konstrukty na úrovni kódu</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Zobrazit sbalení pro komentáře a oblasti pro preprocesor</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Zobrazit sbalení pro konstrukty na úrovni deklarace</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Předvolby proměnných:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Upřednostňovat vloženou deklaraci proměnných</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Pro metody používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Předvolby bloku kódu:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Pro přístupové objekty používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Pro konstruktory používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Pro indexery používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Pro operátory používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Pro vlastnosti používat text výrazu</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Některá pravidla pojmenování nejsou hotová. Dokončete je, nebo je prosím odeberte.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Spravovat specifikace</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Přeskupit</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Závažnost</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Specifikace</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Požadovaný styl</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Položku nejde odstranit, protože ji používá některé existující pravidlo pojmenování.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Upřednostňovat inicializátor kolekce</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Upřednostňovat sloučený výraz</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Při sbalování na definice sbalovat oblasti (#regions)</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Upřednostňovat šíření hodnoty null</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Preferovat explicitní název řazené kolekce členů</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Popis</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Předvolba</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Implementovat rozhraní nebo abstraktní třídu</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Pro daný symbol se použije jenom to pravidlo s odpovídající specifikací, které je nejvíce nahoře. Porušení požadovaného stylu tohoto pravidla se ohlásí na zvolené úrovni závažnosti.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">na konec</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Vlastnosti, události a metody při vkládání umístit:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">s ostatními členy stejného druhu</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Preferovat složené závorky</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">Před:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Preferovat:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">nebo</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">předdefinované typy</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">všude jinde</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">typ je zřejmý z výrazu přiřazení</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Přesunout dolů</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Přesunout nahoru</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Odebrat</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Vybrat členy</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Proces využívaný sadou Visual Studio bohužel narazil na neopravitelnou chybu. Doporučujeme uložit si práci a pak ukončit a restartovat Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Přidat specifikaci symbolu</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Odebrat specifikaci symbolu</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Přidat položku</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Upravit položku</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Odebrat položku</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Přidat pravidlo pro pojmenování</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Odebrat pravidlo pojmenování</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">VisualStudioWorkspace.TryApplyChanges nejde volat z vlákna na pozadí.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">preferovat vyvolávací vlastnosti</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Při generování vlastností:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Možnosti</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Už znovu nezobrazovat</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Upřednostňovat jednoduchý výraz default</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Preferovat odvozené názvy elementů řazené kolekce členů</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Preferovat odvozené názvy členů anonymních typů</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Podokno náhledu</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Analýza</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Zesvětlit nedosažitelný kód</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Zesvětlení</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Preferovat lokální funkci před anonymní funkcí</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Upřednostňovat dekonstruovanou deklaraci proměnných</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Byl nalezen externí odkaz.</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Nebyly nalezeny žádné odkazy na {0}.</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">Hledání nevrátilo žádné výsledky.</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Preferovat automatické vlastnosti</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">preferovat automatické vlastnosti</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Modul byl uvolněn.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Povolit navigaci na dekompilované zdroje (experimentální)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">Váš soubor .editorconfig může přepsat místní nastavení nakonfigurovaná na této stránce, která platí jenom pro váš počítač. Pokud chcete tato nastavení nakonfigurovat tak, aby se přesouvala s vaším řešením, použijte soubory EditorConfig. Další informace</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Synchronizovat Zobrazení tříd</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Analyzuje se {0}.</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Spravovat styly pojmenování</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Upřednostnit podmíněný výraz před if s přiřazeními</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Upřednostnit podmíněný výraz před if s vrácenými hodnotami</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.de.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="de" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">Im Stamm Ihrer Projektmappe wurde eine neue EDITORCONFIG-Datei gefunden. Möchten Sie sie als Projektmappenelement festlegen?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Ein neuer Namespace wird erstellt.</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Typ und Name müssen angegeben werden.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Aktion</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Hinzufügen</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Parameter hinzufügen</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Zu a_ktueller Datei hinzufügen</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Hinzugefügter Parameter.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Es sind weitere Änderungen erforderlich, um das Refactoring abzuschließen. Prüfen Sie die unten aufgeführten Änderungen.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Alle Methoden</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Alle Quellen</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Zulassen:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Mehrere Leerzeilen zulassen</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Anweisung direkt nach Block zulassen</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Immer zur besseren Unterscheidung</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analyse</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Projektverweise werden analysiert...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Anwenden</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Tastenzuordnungsschema "{0}" anwenden</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Assemblys</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Ausdrucksanweisungen vermeiden, die implizit Werte ignorieren</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Nicht verwendete Parameter vermeiden</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Zuweisungen nicht verwendeter Werte vermeiden</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Zurück</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Bereich für Hintergrundanalyse:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 Bit</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 Bit</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Build + Liveanalyse (NuGet-Paket)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Client für C#-/Visual Basic-Diagnosesprache</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Abhängige Objekte werden berechnet...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Wert der Aufrufsite:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Aufrufsite</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Wagenrücklauf + Zeilenumbruch (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Wagenrücklauf (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Kategorie</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Wählen Sie die Aktion aus, die Sie für nicht verwendete Verweise ausführen möchten.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Codeformat</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Die Codeanalyse für "{0}" wurde abgeschlossen.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Die Codeanalyse für die Projektmappe wurde abgeschlossen.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">Die Codeanalyse wurde für "{0}" vorzeitig beendet.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">Die Codeanalyse wurde für die Projektmappe vorzeitig beendet.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Farbhinweise</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Reguläre Ausdrücke farbig hervorheben</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Kommentare</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Enthaltender Member</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Enthaltender Typ</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Aktuelles Dokument</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Aktueller Parameter</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Deaktiviert</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Alle Hinweise beim Drücken von ALT+F1 anzeigen</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Hinweise zu In_lineparameternamen anzeigen</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Inlinetyphinweise anzeigen</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Bearbeiten</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">"{0}" bearbeiten</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Editor-Farbschema</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Optionen für das Editor-Farbschema sind nur bei Verwendung eines im Lieferumfang von Visual Studio enthaltenen Farbdesigns verfügbar. Das Farbdesign kann über die Seite "Umgebung" &gt; "Allgemeine Optionen" konfiguriert werden.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">Das Element ist ungültig.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Razor-Pull-Diagnose aktivieren (experimentell, Neustart erforderlich)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Aktivieren aller Funktionen in geöffneten Dateien von Quellgeneratoren (experimentell)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Dateiprotokollierung für Diagnose aktivieren (protokolliert im Ordner "%Temp%\Roslyn")</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Pull-Diagnose aktivieren (experimentell, Neustart erforderlich)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Aktiviert</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Geben Sie einen Aufrufsitewert ein, oder wählen Sie eine andere Art der Werteingabe aus.</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Gesamtes Repository</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Gesamte Projektmappe</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Fehler</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Fehler bei der Aktualisierung von Unterdrückungen: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Auswertung ({0} Tasks in der Warteschlange)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Basisklasse extrahieren</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Beenden</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Dokument formatieren</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">EDITORCONFIG-Datei aus Einstellungen generieren</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Zugehörige Komponenten unter dem Cursor markieren</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Implementierte Member</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Member werden implementiert.</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">In anderen Operatoren</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Index</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Aus Kontext ableiten</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">In Organisation indiziert</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">In Repository indiziert</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Vererbungsrand (experimentell)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Inlinehinweise (experimentell)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Der Wert der Aufrufsite "{0}" wird eingefügt.</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Installieren Sie von Microsoft empfohlene Roslyn-Analysetools, die zusätzliche Diagnosen und Fixes für allgemeine Design-, Sicherheits-, Leistungs- und Zuverlässigkeitsprobleme bei APIs bereitstellen.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Die Schnittstelle kann kein Feld aufweisen.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Nicht definierte TODO-Variablen einführen</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Elementursprung</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Beibehalten</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Alle Klammern beibehalten in:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Art</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Liveanalyse (VSIX-Erweiterung)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Geladene Elemente</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Geladene Projektmappe</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Lokal</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Lokale Metadaten</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">"{0}" als abstrakt festlegen</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Als abstrakt festlegen</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Member</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Einstellungen für Modifizierer:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">In Namespace verschieben</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Mehrere Member werden geerbt.</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">In Zeile {0} werden mehrere Member geerbt.</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Der Name verursacht einen Konflikt mit einem vorhandenen Typnamen.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Der Name ist kein gültiger {0}-Bezeichner.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Namespace</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Namespace: {0}</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">Feld</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">lokal</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">Lokale Funktion</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">Methode</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">Parameter</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">Eigenschaft</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">Typparameter</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Feld</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Lokal</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">Methode</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parameter</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Typparameter</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Benennungsregeln</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Zu "{0}" navigieren</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Nie, wenn nicht erforderlich</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Neuer Typname:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Einstellungen für neue Zeilen (experimentell):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Zeilenumbruch (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Es wurden keine nicht verwendeten Verweise gefunden.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Nicht öffentliche Methoden</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">NONE</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Auslassen (nur bei optionalen Parametern)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Geöffnete Dokumente</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Optionale Parameter müssen einen Standardwert angeben.</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Optional mit Standardwert:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Andere</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Außer Kraft gesetzte Member</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Member werden außer Kraft gesetzt.</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Pakete</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Parameterdetails</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Parametername:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Parameterinformationen</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Parameterart</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Der Parametername enthält ungültige Zeichen.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Parametereinstellungen:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Der Parametertyp enthält ungültige Zeichen.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Voreinstellungen für Klammern:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Angehalten ({0} Tasks in der Warteschlange)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Geben Sie einen Typnamen ein.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">"System.HashCode" in "GetHashCode" bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Zusammengesetzte Zuweisungen bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Indexoperator bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Bereichsoperator bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">readonly-Felder bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Einfache using-Anweisung bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Vereinfachte boolesche Ausdrücke bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Statische lokale Funktionen bevorzugen</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Projekte</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Member nach oben ziehen</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Nur Refactoring</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Verweis</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Reguläre Ausdrücke</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Alle entfernen</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Nicht verwendete Verweise entfernen</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">"{0}" in "{1}" umbenennen</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Ungültige reguläre Ausdrücke melden</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Repository</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Erforderlich:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Erforderlich</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">"System.HashCode" muss im Projekt vorhanden sein.</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Visual Studio-Standardtastenzuordnung zurücksetzen</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Änderungen überprüfen</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Code Analysis ausführen für "{0}"</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Die Codeanalyse für "{0}" wird ausgeführt...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Die Codeanalyse für die Projektmappe wird ausgeführt...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Hintergrundprozesse mit niedriger Priorität werden ausgeführt.</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">EDITORCONFIG-Datei speichern</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Sucheinstellungen</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Ziel auswählen</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Abhängige _Objekte auswählen</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Öffentliche _auswählen</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Wählen Sie das Ziel und die nach oben zu ziehenden Member aus.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Ziel auswählen:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Member auswählen</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Member auswählen:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Befehl "Nicht verwendete Verweise entfernen" in Projektmappen-Explorer anzeigen (experimentell)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Vervollständigungsliste anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Hinweise für alles andere anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Hinweise für die implizite Objekterstellung anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Hinweise für Lambda-Parametertypen anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Hinweise für Literale anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Hinweise für Variablen mit abgeleiteten Typen anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Vererbungsrand anzeigen</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Einige Farbschemafarben werden durch Änderungen überschrieben, die auf der Optionsseite "Umgebung" &gt; "Schriftarten und Farben" vorgenommen wurden. Wählen Sie auf der Seite "Schriftarten und Farben" die Option "Standardwerte verwenden" aus, um alle Anpassungen rückgängig zu machen.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Vorschlag</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Hinweise unterdrücken, wenn der Parametername mit der Methodenabsicht übereinstimmt</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Hinweise unterdrücken, wenn sich Parameternamen nur durch das Suffix unterscheiden</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Symbole ohne Verweise</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Zweimaliges Drücken der TAB-Taste zum Einfügen von Argumenten (experimentell)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Zielnamespace:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Der Generator "{0}", der diese Datei generiert hat, wurde aus dem Projekt entfernt. Diese Datei wird nicht mehr in Ihr Projekt einbezogen.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Der Generator "{0}" hat diese Datei nicht vollständig generiert. Diese Datei wird nicht mehr in Ihr Projekt einbezogen.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Diese Aktion kann nicht rückgängig gemacht werden. Möchten Sie den Vorgang fortsetzen?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Diese Datei wird automatisch vom Generator "{0}" generiert und kann nicht bearbeitet werden.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Dies ist ein ungültiger Namespace.</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Titel</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Typenname:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Der Typname weist einen Syntaxfehler auf.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Der Typname wurde nicht erkannt.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Der Typname wurde erkannt.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">Der nicht verwendete Wert wird explizit einer nicht verwendeten lokalen Variablen zugewiesen.</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">Der nicht verwendete Wert wird explizit verworfen.</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Projektverweise werden aktualisiert...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Der Schweregrad wird aktualisiert.</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">64-Bit-Prozess für die Codeanalyse verwenden (Neustart erforderlich)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Ausdruckskörper für Lambdaausdrücke verwenden</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Ausdruckskörper für lokale Funktionen verwenden</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Benanntes Argument verwenden</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Wert</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">Der hier zugewiesene Wert wird nie verwendet.</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Wert:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">Der vom Aufruf zurückgegebene Wert wird implizit ignoriert.</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">An Aufrufsites einzufügender Wert</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Warnung</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Warnung: doppelter Parametername</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Warnung: Der Typ ist nicht gebunden.</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Wir haben festgestellt, dass Sie "{0}" angehalten haben. Setzen Sie die Tastenzuordnungen zurück, um Navigation und Umgestaltung fortzusetzen.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Das Aktualisieren von Visual Basic-Kompilierungsoptionen wird von diesem Arbeitsbereich nicht unterstützt.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Sie müssen die Signatur ändern.</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Sie müssen mindestens einen Member auswählen.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Unzulässige Zeichen in Pfad.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Der Dateiname muss die Erweiterung "{0}" aufweisen.</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Debugger</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Haltepunktposition wird ermittelt...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Automatische Vorgänge werden ermittelt...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Haltepunktposition wird aufgelöst...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Haltepunktposition wird validiert...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">DataTip-Text abrufen...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Vorschau nicht verfügbar.</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Überschreibungen</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Überschrieben von</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Erbt</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Geerbt durch</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implementiert</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Implementiert von</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Die maximale Anzahl von Dokumenten ist geöffnet.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Das Dokument im Projekt "Sonstige Dateien" konnte nicht erstellt werden.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Ungültiger Zugriff.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">Die folgenden Verweise wurden nicht gefunden. {0}Suchen Sie nach den Verweisen, und fügen Sie sie manuell hinzu.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">Endposition muss &gt;= Startposition sein</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Kein gültiger Wert.</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">"{0}" wird geerbt.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">"{0}" wird in abstrakten Wert geändert.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">"{0}" wird in nicht statischen Wert geändert.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">"{0}" wird in öffentlichen Wert geändert.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[generiert von "{0}"]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[generiert]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">Der angegebene Arbeitsbereich unterstützt die Funktion "Rückgängig" nicht.</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Verweis auf "{0}" hinzufügen</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Der Ereignistyp ist ungültig.</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Position zum Einfügen des Members nicht gefunden.</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Umbenennen von other-Elementen nicht möglich.</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Unbekannter Umbenennungstyp.</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">IDs werden für diesen Symboltyp nicht unterstützt.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Für diese Symbolart kann keine Knoten-ID erstellt werden: "{0}"</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Projektverweise</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Basistypen</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Sonstige Dateien</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Das Projekt "{0}" wurde nicht gefunden.</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Speicherort des Ordners wurde nicht auf dem Datenträger gefunden.</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Assembly </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Ausnahmen:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Member von "{0}"</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parameter:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Projekt </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Hinweise:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Rückgabewerte:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Zusammenfassung:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Typparameter:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Die Datei ist bereits vorhanden.</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">Im Dateipfad dürfen keine reservierten Schlüsselwörter verwendet werden.</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath ist unzulässig.</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Der Projektpfad ist unzulässig.</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Der Pfad darf keinen leeren Dateinamen enthalten.</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">Die angegebene DocumentId stammt nicht aus dem Visual Studio-Arbeitsbereich.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projekt: {0} ({1}) Verwenden Sie die Dropdownliste, um weitere zu dieser Datei gehörige Projekte anzuzeigen und zu diesen zu wechseln.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Verwenden Sie die Dropdownliste, um weitere Elemente in dieser Datei anzuzeigen und zu diesen zu wechseln.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projekt: {0} Verwenden Sie die Dropdownliste, um weitere zu dieser Datei gehörige Projekte anzuzeigen und zu diesen zu wechseln.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">Die Analysetoolassembly "{0}" wurde geändert. Die Diagnose ist bis zu einem Neustart von Visual Studio möglicherweise nicht korrekt.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Datenquelle der C#/VB-Diagnosetabelle</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Datenquelle der C#/VB-Aufgabenliste</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Abbrechen</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">Auswahl _aufheben</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Schnittstelle extrahieren</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Generierter Name:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Neuer _Dateiname:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Name der neuen _Schnittstelle:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Alle auswählen</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Öffentliche _Member zum Bilden einer Schnittstelle auswählen</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Zugriff:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Zu _vorhandener Datei hinzufügen</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Signatur ändern</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">Neue Datei _erstellen</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Standard</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Dateiname:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Typ generieren</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Art:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Speicherort:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modifizierer</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Name:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parameter</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parameter:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Vorschau der Methodensignatur:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Vorschau der Verweisänderungen</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Projekt:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Typ</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Typdetails:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">Ent_fernen</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Wiederherstellen</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">Weitere Informationen zu "{0}"</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">Die Navigation muss im Vordergrundthread ausgeführt werden.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Verweis auf "{0}" in Projekt "{1}"</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Unbekannt&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Analysetoolverweis auf "{0}" in Projekt "{1}"</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Projektverweis auf "{0}" in Projekt "{1}"</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Die Assemblys "{0}" des Analysetools und "{1}" weisen beide die Identität "{2}", aber unterschiedliche Inhalte auf. Nur eine Assembly wird geladen, und Analysetools, die diese Assemblys verwenden, werden möglicherweise nicht ordnungsgemäß ausgeführt.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} Verweise</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 Verweis</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">"{0}" hat einen Fehler festgestellt und wurde deaktiviert.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Aktivieren</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Aktivieren und weitere Fehler ignorieren</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Keine Änderungen</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Aktueller Block</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Der aktuelle Block wird bestimmt.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Datenquelle der C#/VB-Buildtabelle</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">Die Assembly "{0}" des Analysetools hängt von "{1}" ab, diese Assembly wurde aber nicht gefunden. Analysetools werden möglicherweise nicht ordnungsgemäß ausgeführt, wenn die fehlende Assembly nicht als Analysetoolverweis hinzugefügt wird.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Diagnose unterdrücken</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Behebung von Unterdrückungen wird berechnet...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Behebung von Unterdrückungen wird angewendet...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Unterdrückungen entfernen</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Entfernen der Behebung von Unterdrückungen wird berechnet...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Entfernen der Behebung von Unterdrückungen wird angewendet...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Dieser Arbeitsbereich unterstützt nur das Öffnen von Dokumenten für den UI-Thread.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Das Aktualisieren von Visual Basic-Analyseoptionen wird von diesem Arbeitsbereich nicht unterstützt.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">"{0}" synchronisieren</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Synchronisierung mit "{0}" wird durchgeführt...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio hat einige erweiterte Features angehalten, um die Leistung zu verbessern.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">"{0}" wird installiert</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Installation von "{0}" abgeschlossen</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Fehler bei der Paketinstallation: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Unbekannt&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Nein</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Ja</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Wählen Sie eine Symbolspezifikation und einen Benennungsstil aus.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Geben Sie einen Titel für diese Benennungsregel ein.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Geben Sie einen Titel für diesen Benennungsstil ein.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Geben Sie einen Titel für diese Symbolspezifikation ein.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Zugriffsebenen (beliebige Übereinstimmung)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Großschreibung:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">Nur Kleinbuchstaben</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">Nur Großbuchstaben</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Name mit gemischter Groß-/Kleinschreibung</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Erstes Wort in Großschreibung</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Name in Pascal-Schreibweise</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Schweregrad:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modifizierer (muss mit allen übereinstimmen)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Name:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Benennungsregel</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Benennungsstil</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Benennungsstil:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Mithilfe von Benennungsregeln können Sie definieren, wie bestimmte Symbolsätze benannt und wie falsch benannte Symbole behandelt werden sollen.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">Die erste übereinstimmende Benennungsregel oberster Ebene wird standardmäßig zum Benennen eines Symbols verwendet, während Sonderfälle durch eine übereinstimmende untergeordnete Regel verarbeitet werden.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Titel des Benennungsstils:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Übergeordnete Regel:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Erforderliches Präfix:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Erforderliches Suffix:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Stichprobenbezeichner:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Symbolarten (beliebige Übereinstimmung)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Symbolspezifikation</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Symbolspezifikation:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Titel der Symbolspezifikation:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Worttrennzeichen:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">Beispiel</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">Bezeichner</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">"{0}" installieren</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">"{0}" wird deinstalliert</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Deinstallation von "{0}" abgeschlossen</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">"{0}" deinstallieren</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Fehler bei der Paketdeinstallation: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Fehler beim Laden des Projekts. Einige Projektfeatures (z. B. die vollständige Projektmappenanalyse für das fehlerhafte Projekt und davon abhängige Projekte) wurden deaktiviert.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Fehler beim Laden des Projekts.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Führen Sie die unten aufgeführten Aktionen aus, um die Ursache des Problems zu ermitteln. 1. Schließen Sie Visual Studio. 2. Öffnen Sie eine Visual Studio Developer-Eingabeaufforderung. 3. Legen Sie die Umgebungsvariable "TraceDesignTime" auf TRUE fest (set TraceDesignTime=true). 4. Löschen Sie die Datei ".vs directory/.suo". 5. Starten Sie VS über die Eingabeaufforderung neu, in der Sie die Umgebungsvariable festgelegt haben (devenv). 6. Öffnen Sie die Projektmappe. 7. Überprüfen Sie "{0}", und ermitteln Sie die fehlerhaften Tasks (FAILED).</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Zusätzliche Informationen:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">Fehler bei der Installation von "{0}". Zusätzliche Informationen: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">Fehler bei der Deinstallation von "{0}". Zusätzliche Informationen: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">"{0}" unterhalb von "{1}" platzieren</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">"{0}" oberhalb von "{1}" platzieren</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">"{0}" entfernen</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">"{0}" wiederherstellen</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Erneut aktivieren</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Weitere Informationen</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Frameworktyp vorziehen</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Vordefinierten Typ vorziehen</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">In Zwischenablage kopieren</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Schließen</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Unbekannte Parameter&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Ende der inneren Ausnahmestapelüberwachung ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Für lokale Elemente, Parameter und Member</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Für Memberzugriffsausdrücke</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Objektinitialisierer vorziehen</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Ausdruckseinstellungen:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Führungslinien für Blockstruktur</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Gliederung</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Führungslinien für Konstrukte auf Codeebene anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Führungslinien für Kommentare und Präprozessorregionen anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Führungslinien für Konstrukte auf Deklarationsebene anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Gliederung für Konstrukte auf Codeebene anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Gliederung für Kommentare und Präprozessorregionen anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Gliederung für Konstrukte auf Deklarationsebene anzeigen</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Variableneinstellungen:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Inlinevariablendeklaration vorziehen</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Ausdruckskörper für Methoden verwenden</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Codeblockeinstellungen:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Ausdruckskörper für Accessoren verwenden</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Ausdruckskörper für Konstruktoren verwenden</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Ausdruckskörper für Indexer verwenden</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Ausdruckskörper für Operatoren verwenden</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Ausdruckskörper für Eigenschaften verwenden</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Einige Benennungsregeln sind unvollständig. Vervollständigen oder entfernen Sie die Regeln.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Spezifikationen verwalten</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Neu anordnen</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Schweregrad</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Spezifikation</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Erforderlicher Stil</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Dieses Element kann nicht gelöscht werden, weil es von einer vorhandenen Benennungsregel verwendet wird.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Auflistungsinitialisierer vorziehen</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">COALESCE-Ausdruck vorziehen</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">#regions beim Reduzieren auf Definitionen zuklappen</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">NULL-Weitergabe vorziehen</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Expliziten Tupelnamen bevorzugen</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Beschreibung</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Einstellung</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Schnittstelle oder abstrakte Klasse implementieren</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Für ein vorgegebenes Symbol wird nur die oberste Regel mit einer übereinstimmenden Spezifikation angewendet. Eine Verletzung des erforderlichen Stils für diese Regel wird mit dem gewählten Schweregrad gemeldet.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">am Ende</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Eingefügte Eigenschaften, Ereignisse und Methoden hier ablegen:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">mit anderen Mitgliedern derselben Art</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Geschweifte Klammern bevorzugen</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">Gegenüber:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Bevorzugen:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">oder</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">integrierte Typen</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">überall sonst</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">Typ geht aus Zuweisungsausdruck hervor</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Nach unten</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Nach oben</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Entfernen</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Member auswählen</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Leider ist bei einem von Visual Studio verwendeten Prozess ein nicht behebbarer Fehler aufgetreten. Wir empfehlen Ihnen, Ihre Arbeit zu speichern, und Visual Studio anschließend zu schließen und neu zu starten.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Symbolspezifikation hinzufügen</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Symbolspezifikation entfernen</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Element hinzufügen</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Element bearbeiten</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Element entfernen</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Benennungsregel hinzufügen</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Benennungsregel entfernen</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">"VisualStudioWorkspace.TryApplyChanges" kann von einem Hintergrundthread nicht aufgerufen werden.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">ausgelöste Eigenschaften bevorzugen</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Beim Generieren von Eigenschaften:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Optionen</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Nicht mehr anzeigen</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Einfachen "default"-Ausdruck bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Abgeleitete Tupelelementnamen bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Abgeleitete Membernamen vom anonymen Typ bevorzugen</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Vorschaubereich</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Analyse</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Unerreichbaren Code ausblenden</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Ausblenden</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Lokale Funktion gegenüber anonymer Funktion bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Dekonstruierte Variablendeklaration vorziehen</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Es wurde ein externer Verweis gefunden.</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Es wurden keine Verweise auf "{0}" gefunden.</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">Es liegen keine Suchergebnisse vor.</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Automatische Eigenschaften bevorzugen</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">automatische Eigenschaften bevorzugen</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Das Modul wurde entladen.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Aktivieren der Navigation zu dekompilierten Quellen (experimentell)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">Ihre EditorConfig-Datei setzt möglicherweise die auf dieser Seite konfigurierten lokalen Einstellungen außer Kraft, die nur für Ihren Computer gelten. Verwenden Sie EditorConfig-Dateien, um diese Einstellungen für Ihre Projektmappe "mitzunehmen". Erfahren Sie mehr.</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Synchronisierungsklassenansicht</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">"{0}" wird analysiert.</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Benennungsstile verwalten</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Bei Zuweisungen bedingten Ausdruck gegenüber "if" bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Bei Rückgaben bedingten Ausdruck gegenüber "if" bevorzugen</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="de" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Ein neuer Namespace wird erstellt.</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Typ und Name müssen angegeben werden.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Aktion</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Hinzufügen</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Parameter hinzufügen</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Zu a_ktueller Datei hinzufügen</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Hinzugefügter Parameter.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Es sind weitere Änderungen erforderlich, um das Refactoring abzuschließen. Prüfen Sie die unten aufgeführten Änderungen.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Alle Methoden</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Alle Quellen</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Zulassen:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Mehrere Leerzeilen zulassen</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Anweisung direkt nach Block zulassen</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Immer zur besseren Unterscheidung</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analyse</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Projektverweise werden analysiert...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Anwenden</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Tastenzuordnungsschema "{0}" anwenden</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Assemblys</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Ausdrucksanweisungen vermeiden, die implizit Werte ignorieren</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Nicht verwendete Parameter vermeiden</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Zuweisungen nicht verwendeter Werte vermeiden</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Zurück</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Bereich für Hintergrundanalyse:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 Bit</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 Bit</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Build + Liveanalyse (NuGet-Paket)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Client für C#-/Visual Basic-Diagnosesprache</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Abhängige Objekte werden berechnet...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Wert der Aufrufsite:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Aufrufsite</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Wagenrücklauf + Zeilenumbruch (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Wagenrücklauf (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Kategorie</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Wählen Sie die Aktion aus, die Sie für nicht verwendete Verweise ausführen möchten.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Codeformat</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Die Codeanalyse für "{0}" wurde abgeschlossen.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Die Codeanalyse für die Projektmappe wurde abgeschlossen.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">Die Codeanalyse wurde für "{0}" vorzeitig beendet.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">Die Codeanalyse wurde für die Projektmappe vorzeitig beendet.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Farbhinweise</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Reguläre Ausdrücke farbig hervorheben</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Kommentare</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Enthaltender Member</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Enthaltender Typ</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Aktuelles Dokument</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Aktueller Parameter</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Deaktiviert</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Alle Hinweise beim Drücken von ALT+F1 anzeigen</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Hinweise zu In_lineparameternamen anzeigen</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Inlinetyphinweise anzeigen</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Bearbeiten</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">"{0}" bearbeiten</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Editor-Farbschema</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Optionen für das Editor-Farbschema sind nur bei Verwendung eines im Lieferumfang von Visual Studio enthaltenen Farbdesigns verfügbar. Das Farbdesign kann über die Seite "Umgebung" &gt; "Allgemeine Optionen" konfiguriert werden.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">Das Element ist ungültig.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Razor-Pull-Diagnose aktivieren (experimentell, Neustart erforderlich)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Aktivieren aller Funktionen in geöffneten Dateien von Quellgeneratoren (experimentell)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Dateiprotokollierung für Diagnose aktivieren (protokolliert im Ordner "%Temp%\Roslyn")</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Pull-Diagnose aktivieren (experimentell, Neustart erforderlich)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Aktiviert</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Geben Sie einen Aufrufsitewert ein, oder wählen Sie eine andere Art der Werteingabe aus.</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Gesamtes Repository</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Gesamte Projektmappe</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Fehler</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Fehler bei der Aktualisierung von Unterdrückungen: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Auswertung ({0} Tasks in der Warteschlange)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Basisklasse extrahieren</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Beenden</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Dokument formatieren</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">EDITORCONFIG-Datei aus Einstellungen generieren</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Zugehörige Komponenten unter dem Cursor markieren</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Implementierte Member</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Member werden implementiert.</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">In anderen Operatoren</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Index</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Aus Kontext ableiten</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">In Organisation indiziert</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">In Repository indiziert</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Vererbungsrand (experimentell)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Inlinehinweise (experimentell)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Der Wert der Aufrufsite "{0}" wird eingefügt.</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Installieren Sie von Microsoft empfohlene Roslyn-Analysetools, die zusätzliche Diagnosen und Fixes für allgemeine Design-, Sicherheits-, Leistungs- und Zuverlässigkeitsprobleme bei APIs bereitstellen.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Die Schnittstelle kann kein Feld aufweisen.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Nicht definierte TODO-Variablen einführen</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Elementursprung</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Beibehalten</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Alle Klammern beibehalten in:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Art</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Liveanalyse (VSIX-Erweiterung)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Geladene Elemente</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Geladene Projektmappe</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Lokal</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Lokale Metadaten</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">"{0}" als abstrakt festlegen</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Als abstrakt festlegen</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Member</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Einstellungen für Modifizierer:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">In Namespace verschieben</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Mehrere Member werden geerbt.</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">In Zeile {0} werden mehrere Member geerbt.</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Der Name verursacht einen Konflikt mit einem vorhandenen Typnamen.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Der Name ist kein gültiger {0}-Bezeichner.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Namespace</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Namespace: {0}</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">Feld</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">lokal</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">Lokale Funktion</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">Methode</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">Parameter</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">Eigenschaft</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">Typparameter</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Feld</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Lokal</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">Methode</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parameter</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Typparameter</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Benennungsregeln</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Zu "{0}" navigieren</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Nie, wenn nicht erforderlich</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Neuer Typname:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Einstellungen für neue Zeilen (experimentell):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Zeilenumbruch (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Es wurden keine nicht verwendeten Verweise gefunden.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Nicht öffentliche Methoden</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">NONE</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Auslassen (nur bei optionalen Parametern)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Geöffnete Dokumente</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Optionale Parameter müssen einen Standardwert angeben.</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Optional mit Standardwert:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Andere</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Außer Kraft gesetzte Member</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Member werden außer Kraft gesetzt.</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Pakete</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Parameterdetails</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Parametername:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Parameterinformationen</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Parameterart</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Der Parametername enthält ungültige Zeichen.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Parametereinstellungen:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Der Parametertyp enthält ungültige Zeichen.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Voreinstellungen für Klammern:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Angehalten ({0} Tasks in der Warteschlange)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Geben Sie einen Typnamen ein.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">"System.HashCode" in "GetHashCode" bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Zusammengesetzte Zuweisungen bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Indexoperator bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Bereichsoperator bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">readonly-Felder bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Einfache using-Anweisung bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Vereinfachte boolesche Ausdrücke bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Statische lokale Funktionen bevorzugen</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Projekte</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Member nach oben ziehen</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Nur Refactoring</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Verweis</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Reguläre Ausdrücke</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Alle entfernen</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Nicht verwendete Verweise entfernen</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">"{0}" in "{1}" umbenennen</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Ungültige reguläre Ausdrücke melden</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Repository</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Erforderlich:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Erforderlich</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">"System.HashCode" muss im Projekt vorhanden sein.</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Visual Studio-Standardtastenzuordnung zurücksetzen</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Änderungen überprüfen</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Code Analysis ausführen für "{0}"</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Die Codeanalyse für "{0}" wird ausgeführt...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Die Codeanalyse für die Projektmappe wird ausgeführt...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Hintergrundprozesse mit niedriger Priorität werden ausgeführt.</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">EDITORCONFIG-Datei speichern</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Sucheinstellungen</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Ziel auswählen</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Abhängige _Objekte auswählen</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Öffentliche _auswählen</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Wählen Sie das Ziel und die nach oben zu ziehenden Member aus.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Ziel auswählen:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Member auswählen</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Member auswählen:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Befehl "Nicht verwendete Verweise entfernen" in Projektmappen-Explorer anzeigen (experimentell)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Vervollständigungsliste anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Hinweise für alles andere anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Hinweise für die implizite Objekterstellung anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Hinweise für Lambda-Parametertypen anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Hinweise für Literale anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Hinweise für Variablen mit abgeleiteten Typen anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Vererbungsrand anzeigen</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Einige Farbschemafarben werden durch Änderungen überschrieben, die auf der Optionsseite "Umgebung" &gt; "Schriftarten und Farben" vorgenommen wurden. Wählen Sie auf der Seite "Schriftarten und Farben" die Option "Standardwerte verwenden" aus, um alle Anpassungen rückgängig zu machen.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Vorschlag</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Hinweise unterdrücken, wenn der Parametername mit der Methodenabsicht übereinstimmt</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Hinweise unterdrücken, wenn sich Parameternamen nur durch das Suffix unterscheiden</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Symbole ohne Verweise</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Zweimaliges Drücken der TAB-Taste zum Einfügen von Argumenten (experimentell)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Zielnamespace:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Der Generator "{0}", der diese Datei generiert hat, wurde aus dem Projekt entfernt. Diese Datei wird nicht mehr in Ihr Projekt einbezogen.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Der Generator "{0}" hat diese Datei nicht vollständig generiert. Diese Datei wird nicht mehr in Ihr Projekt einbezogen.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Diese Aktion kann nicht rückgängig gemacht werden. Möchten Sie den Vorgang fortsetzen?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Diese Datei wird automatisch vom Generator "{0}" generiert und kann nicht bearbeitet werden.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Dies ist ein ungültiger Namespace.</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Titel</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Typenname:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Der Typname weist einen Syntaxfehler auf.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Der Typname wurde nicht erkannt.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Der Typname wurde erkannt.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">Der nicht verwendete Wert wird explizit einer nicht verwendeten lokalen Variablen zugewiesen.</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">Der nicht verwendete Wert wird explizit verworfen.</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Projektverweise werden aktualisiert...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Der Schweregrad wird aktualisiert.</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">64-Bit-Prozess für die Codeanalyse verwenden (Neustart erforderlich)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Ausdruckskörper für Lambdaausdrücke verwenden</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Ausdruckskörper für lokale Funktionen verwenden</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Benanntes Argument verwenden</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Wert</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">Der hier zugewiesene Wert wird nie verwendet.</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Wert:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">Der vom Aufruf zurückgegebene Wert wird implizit ignoriert.</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">An Aufrufsites einzufügender Wert</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Warnung</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Warnung: doppelter Parametername</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Warnung: Der Typ ist nicht gebunden.</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Wir haben festgestellt, dass Sie "{0}" angehalten haben. Setzen Sie die Tastenzuordnungen zurück, um Navigation und Umgestaltung fortzusetzen.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Das Aktualisieren von Visual Basic-Kompilierungsoptionen wird von diesem Arbeitsbereich nicht unterstützt.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Sie müssen die Signatur ändern.</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Sie müssen mindestens einen Member auswählen.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Unzulässige Zeichen in Pfad.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Der Dateiname muss die Erweiterung "{0}" aufweisen.</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Debugger</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Haltepunktposition wird ermittelt...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Automatische Vorgänge werden ermittelt...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Haltepunktposition wird aufgelöst...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Haltepunktposition wird validiert...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">DataTip-Text abrufen...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Vorschau nicht verfügbar.</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Überschreibungen</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Überschrieben von</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Erbt</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Geerbt durch</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implementiert</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Implementiert von</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Die maximale Anzahl von Dokumenten ist geöffnet.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Das Dokument im Projekt "Sonstige Dateien" konnte nicht erstellt werden.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Ungültiger Zugriff.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">Die folgenden Verweise wurden nicht gefunden. {0}Suchen Sie nach den Verweisen, und fügen Sie sie manuell hinzu.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">Endposition muss &gt;= Startposition sein</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Kein gültiger Wert.</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">"{0}" wird geerbt.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">"{0}" wird in abstrakten Wert geändert.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">"{0}" wird in nicht statischen Wert geändert.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">"{0}" wird in öffentlichen Wert geändert.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[generiert von "{0}"]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[generiert]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">Der angegebene Arbeitsbereich unterstützt die Funktion "Rückgängig" nicht.</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Verweis auf "{0}" hinzufügen</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Der Ereignistyp ist ungültig.</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Position zum Einfügen des Members nicht gefunden.</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Umbenennen von other-Elementen nicht möglich.</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Unbekannter Umbenennungstyp.</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">IDs werden für diesen Symboltyp nicht unterstützt.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Für diese Symbolart kann keine Knoten-ID erstellt werden: "{0}"</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Projektverweise</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Basistypen</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Sonstige Dateien</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Das Projekt "{0}" wurde nicht gefunden.</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Speicherort des Ordners wurde nicht auf dem Datenträger gefunden.</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Assembly </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Ausnahmen:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Member von "{0}"</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parameter:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Projekt </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Hinweise:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Rückgabewerte:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Zusammenfassung:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Typparameter:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Die Datei ist bereits vorhanden.</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">Im Dateipfad dürfen keine reservierten Schlüsselwörter verwendet werden.</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath ist unzulässig.</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Der Projektpfad ist unzulässig.</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Der Pfad darf keinen leeren Dateinamen enthalten.</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">Die angegebene DocumentId stammt nicht aus dem Visual Studio-Arbeitsbereich.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projekt: {0} ({1}) Verwenden Sie die Dropdownliste, um weitere zu dieser Datei gehörige Projekte anzuzeigen und zu diesen zu wechseln.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Verwenden Sie die Dropdownliste, um weitere Elemente in dieser Datei anzuzeigen und zu diesen zu wechseln.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projekt: {0} Verwenden Sie die Dropdownliste, um weitere zu dieser Datei gehörige Projekte anzuzeigen und zu diesen zu wechseln.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">Die Analysetoolassembly "{0}" wurde geändert. Die Diagnose ist bis zu einem Neustart von Visual Studio möglicherweise nicht korrekt.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Datenquelle der C#/VB-Diagnosetabelle</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Datenquelle der C#/VB-Aufgabenliste</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Abbrechen</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">Auswahl _aufheben</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Schnittstelle extrahieren</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Generierter Name:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Neuer _Dateiname:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Name der neuen _Schnittstelle:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Alle auswählen</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Öffentliche _Member zum Bilden einer Schnittstelle auswählen</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Zugriff:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Zu _vorhandener Datei hinzufügen</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Signatur ändern</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">Neue Datei _erstellen</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Standard</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Dateiname:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Typ generieren</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Art:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Speicherort:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modifizierer</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Name:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parameter</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parameter:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Vorschau der Methodensignatur:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Vorschau der Verweisänderungen</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Projekt:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Typ</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Typdetails:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">Ent_fernen</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Wiederherstellen</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">Weitere Informationen zu "{0}"</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">Die Navigation muss im Vordergrundthread ausgeführt werden.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Verweis auf "{0}" in Projekt "{1}"</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Unbekannt&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Analysetoolverweis auf "{0}" in Projekt "{1}"</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Projektverweis auf "{0}" in Projekt "{1}"</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Die Assemblys "{0}" des Analysetools und "{1}" weisen beide die Identität "{2}", aber unterschiedliche Inhalte auf. Nur eine Assembly wird geladen, und Analysetools, die diese Assemblys verwenden, werden möglicherweise nicht ordnungsgemäß ausgeführt.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} Verweise</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 Verweis</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">"{0}" hat einen Fehler festgestellt und wurde deaktiviert.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Aktivieren</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Aktivieren und weitere Fehler ignorieren</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Keine Änderungen</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Aktueller Block</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Der aktuelle Block wird bestimmt.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Datenquelle der C#/VB-Buildtabelle</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">Die Assembly "{0}" des Analysetools hängt von "{1}" ab, diese Assembly wurde aber nicht gefunden. Analysetools werden möglicherweise nicht ordnungsgemäß ausgeführt, wenn die fehlende Assembly nicht als Analysetoolverweis hinzugefügt wird.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Diagnose unterdrücken</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Behebung von Unterdrückungen wird berechnet...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Behebung von Unterdrückungen wird angewendet...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Unterdrückungen entfernen</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Entfernen der Behebung von Unterdrückungen wird berechnet...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Entfernen der Behebung von Unterdrückungen wird angewendet...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Dieser Arbeitsbereich unterstützt nur das Öffnen von Dokumenten für den UI-Thread.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Das Aktualisieren von Visual Basic-Analyseoptionen wird von diesem Arbeitsbereich nicht unterstützt.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">"{0}" synchronisieren</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Synchronisierung mit "{0}" wird durchgeführt...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio hat einige erweiterte Features angehalten, um die Leistung zu verbessern.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">"{0}" wird installiert</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Installation von "{0}" abgeschlossen</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Fehler bei der Paketinstallation: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Unbekannt&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Nein</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Ja</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Wählen Sie eine Symbolspezifikation und einen Benennungsstil aus.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Geben Sie einen Titel für diese Benennungsregel ein.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Geben Sie einen Titel für diesen Benennungsstil ein.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Geben Sie einen Titel für diese Symbolspezifikation ein.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Zugriffsebenen (beliebige Übereinstimmung)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Großschreibung:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">Nur Kleinbuchstaben</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">Nur Großbuchstaben</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Name mit gemischter Groß-/Kleinschreibung</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Erstes Wort in Großschreibung</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Name in Pascal-Schreibweise</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Schweregrad:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modifizierer (muss mit allen übereinstimmen)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Name:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Benennungsregel</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Benennungsstil</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Benennungsstil:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Mithilfe von Benennungsregeln können Sie definieren, wie bestimmte Symbolsätze benannt und wie falsch benannte Symbole behandelt werden sollen.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">Die erste übereinstimmende Benennungsregel oberster Ebene wird standardmäßig zum Benennen eines Symbols verwendet, während Sonderfälle durch eine übereinstimmende untergeordnete Regel verarbeitet werden.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Titel des Benennungsstils:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Übergeordnete Regel:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Erforderliches Präfix:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Erforderliches Suffix:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Stichprobenbezeichner:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Symbolarten (beliebige Übereinstimmung)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Symbolspezifikation</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Symbolspezifikation:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Titel der Symbolspezifikation:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Worttrennzeichen:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">Beispiel</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">Bezeichner</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">"{0}" installieren</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">"{0}" wird deinstalliert</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Deinstallation von "{0}" abgeschlossen</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">"{0}" deinstallieren</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Fehler bei der Paketdeinstallation: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Fehler beim Laden des Projekts. Einige Projektfeatures (z. B. die vollständige Projektmappenanalyse für das fehlerhafte Projekt und davon abhängige Projekte) wurden deaktiviert.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Fehler beim Laden des Projekts.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Führen Sie die unten aufgeführten Aktionen aus, um die Ursache des Problems zu ermitteln. 1. Schließen Sie Visual Studio. 2. Öffnen Sie eine Visual Studio Developer-Eingabeaufforderung. 3. Legen Sie die Umgebungsvariable "TraceDesignTime" auf TRUE fest (set TraceDesignTime=true). 4. Löschen Sie die Datei ".vs directory/.suo". 5. Starten Sie VS über die Eingabeaufforderung neu, in der Sie die Umgebungsvariable festgelegt haben (devenv). 6. Öffnen Sie die Projektmappe. 7. Überprüfen Sie "{0}", und ermitteln Sie die fehlerhaften Tasks (FAILED).</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Zusätzliche Informationen:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">Fehler bei der Installation von "{0}". Zusätzliche Informationen: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">Fehler bei der Deinstallation von "{0}". Zusätzliche Informationen: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">"{0}" unterhalb von "{1}" platzieren</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">"{0}" oberhalb von "{1}" platzieren</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">"{0}" entfernen</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">"{0}" wiederherstellen</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Erneut aktivieren</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Weitere Informationen</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Frameworktyp vorziehen</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Vordefinierten Typ vorziehen</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">In Zwischenablage kopieren</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Schließen</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Unbekannte Parameter&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Ende der inneren Ausnahmestapelüberwachung ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Für lokale Elemente, Parameter und Member</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Für Memberzugriffsausdrücke</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Objektinitialisierer vorziehen</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Ausdruckseinstellungen:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Führungslinien für Blockstruktur</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Gliederung</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Führungslinien für Konstrukte auf Codeebene anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Führungslinien für Kommentare und Präprozessorregionen anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Führungslinien für Konstrukte auf Deklarationsebene anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Gliederung für Konstrukte auf Codeebene anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Gliederung für Kommentare und Präprozessorregionen anzeigen</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Gliederung für Konstrukte auf Deklarationsebene anzeigen</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Variableneinstellungen:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Inlinevariablendeklaration vorziehen</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Ausdruckskörper für Methoden verwenden</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Codeblockeinstellungen:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Ausdruckskörper für Accessoren verwenden</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Ausdruckskörper für Konstruktoren verwenden</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Ausdruckskörper für Indexer verwenden</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Ausdruckskörper für Operatoren verwenden</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Ausdruckskörper für Eigenschaften verwenden</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Einige Benennungsregeln sind unvollständig. Vervollständigen oder entfernen Sie die Regeln.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Spezifikationen verwalten</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Neu anordnen</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Schweregrad</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Spezifikation</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Erforderlicher Stil</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Dieses Element kann nicht gelöscht werden, weil es von einer vorhandenen Benennungsregel verwendet wird.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Auflistungsinitialisierer vorziehen</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">COALESCE-Ausdruck vorziehen</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">#regions beim Reduzieren auf Definitionen zuklappen</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">NULL-Weitergabe vorziehen</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Expliziten Tupelnamen bevorzugen</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Beschreibung</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Einstellung</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Schnittstelle oder abstrakte Klasse implementieren</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Für ein vorgegebenes Symbol wird nur die oberste Regel mit einer übereinstimmenden Spezifikation angewendet. Eine Verletzung des erforderlichen Stils für diese Regel wird mit dem gewählten Schweregrad gemeldet.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">am Ende</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Eingefügte Eigenschaften, Ereignisse und Methoden hier ablegen:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">mit anderen Mitgliedern derselben Art</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Geschweifte Klammern bevorzugen</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">Gegenüber:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Bevorzugen:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">oder</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">integrierte Typen</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">überall sonst</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">Typ geht aus Zuweisungsausdruck hervor</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Nach unten</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Nach oben</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Entfernen</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Member auswählen</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Leider ist bei einem von Visual Studio verwendeten Prozess ein nicht behebbarer Fehler aufgetreten. Wir empfehlen Ihnen, Ihre Arbeit zu speichern, und Visual Studio anschließend zu schließen und neu zu starten.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Symbolspezifikation hinzufügen</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Symbolspezifikation entfernen</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Element hinzufügen</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Element bearbeiten</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Element entfernen</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Benennungsregel hinzufügen</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Benennungsregel entfernen</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">"VisualStudioWorkspace.TryApplyChanges" kann von einem Hintergrundthread nicht aufgerufen werden.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">ausgelöste Eigenschaften bevorzugen</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Beim Generieren von Eigenschaften:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Optionen</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Nicht mehr anzeigen</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Einfachen "default"-Ausdruck bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Abgeleitete Tupelelementnamen bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Abgeleitete Membernamen vom anonymen Typ bevorzugen</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Vorschaubereich</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Analyse</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Unerreichbaren Code ausblenden</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Ausblenden</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Lokale Funktion gegenüber anonymer Funktion bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Dekonstruierte Variablendeklaration vorziehen</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Es wurde ein externer Verweis gefunden.</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Es wurden keine Verweise auf "{0}" gefunden.</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">Es liegen keine Suchergebnisse vor.</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Automatische Eigenschaften bevorzugen</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">automatische Eigenschaften bevorzugen</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Das Modul wurde entladen.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Aktivieren der Navigation zu dekompilierten Quellen (experimentell)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">Ihre EditorConfig-Datei setzt möglicherweise die auf dieser Seite konfigurierten lokalen Einstellungen außer Kraft, die nur für Ihren Computer gelten. Verwenden Sie EditorConfig-Dateien, um diese Einstellungen für Ihre Projektmappe "mitzunehmen". Erfahren Sie mehr.</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Synchronisierungsklassenansicht</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">"{0}" wird analysiert.</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Benennungsstile verwalten</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Bei Zuweisungen bedingten Ausdruck gegenüber "if" bevorzugen</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Bei Rückgaben bedingten Ausdruck gegenüber "if" bevorzugen</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.es.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="es" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">Se ha detectado un nuevo archivo .editorconfig en la raíz de la solución. ¿Quiere convertirlo en elemento de la solución?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Se creará un espacio de nombres</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Se debe proporcionar un tipo y un nombre.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Acción</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Agregar</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Agregar parámetro</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Agregar al archivo _actual</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Se agregó el parámetro.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Se necesitan cambios adicionales para finalizar la refactorización. Revise los cambios a continuación.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Todos los métodos</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Todos los orígenes</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Permitir:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Permitir varias líneas en blanco</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Permitir una instrucción inmediatamente después del bloque</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Siempre por claridad</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analizadores</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Analizando las referencias del proyecto...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Aplicar</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Aplicar esquema de asignaciones de teclado "{0}"</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Ensamblados</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Evitar instrucciones de expresión que omiten implícitamente el valor</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Evitar parámetros sin usar</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Evitar asignaciones de valores sin usar</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Atrás</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Ámbito de análisis en segundo plano:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 bits</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 bits</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Compilación y análisis en directo (paquete NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Cliente de lenguaje de diagnóstico de C#/Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Calculando dependientes...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Valor del sitio de llamada:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Sitio de llamada</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">CR + Nueva línea (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">CR (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Categoría</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Elija la acción que quiera realizar en las referencias sin usar.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Estilo de código</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">El análisis de código se ha completado para "{0}".</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">El análisis de código se ha completado para la solución.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">El análisis de código terminó antes de completarse para "{0}".</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">El análisis de código terminó antes de completarse para la solución.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Sugerencias de color</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Colorear expresiones regulares</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Comentarios</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Miembro contenedor</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Tipo contenedor</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Documento actual</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Parámetro actual</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Deshabilitado</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Mostrar todas las sugerencias al presionar Alt+F1</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">_Mostrar sugerencias de nombre de parámetro insertadas</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Mostrar sugerencias de tipo insertado</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Editar</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Editar {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Combinación de colores del editor</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Las opciones de combinación de colores del editor solo están disponibles cuando se usa un tema de color incluido con Visual Studio. Dicho tema se puede configurar desde la página de Entorno &gt; Opciones generales.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">El elemento no es válido.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Habilitar diagnósticos "pull" de Razor (experimental, requiere reiniciar)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Habilitar todas las características de los archivos abiertos de los generadores de origen (experimental)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Habilitar registro de archivos para el diagnóstico (registrados en la carpeta "%Temp%\Roslyn")</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Habilitar diagnósticos "pull" (experimental, requiere reiniciar)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Habilitado</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Escriba un valor de sitio de llamada o elija otro tipo de inserción de valor.</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Todo el repositorio</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Toda la solución</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Error</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Actualización de errores de forma periódica: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Evaluando ({0} tareas en cola)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Extraer clase base</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Finalizar</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Dar formato al documento</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Generar archivo .editorconfig a partir de la configuración</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Resaltar componentes relacionados bajo el cursor</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">Id.</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Miembros implementados</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Implementando miembros</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">En otros operadores</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Índice</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Inferir del contexto</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Indexado en la organización</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Indexado en el repositorio</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margen de herencia (experimental)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Sugerencias en línea (experimental)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Insertando el valor del sitio de llamada "{0}"</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Instale los analizadores de Roslyn recomendados por Microsoft, que proporcionan diagnósticos y correcciones adicionales para problemas comunes de confiabilidad, rendimiento, seguridad y diseño de API.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">La interfaz no puede tener campos.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Introducir variables TODO sin definir</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Origen del elemento</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Mantener</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Mantener todos los paréntesis en:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Análisis en directo (extensión VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Elementos cargados</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Solución cargada</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Local</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Metadatos locales</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Convertir "{0}" en abstracto</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Convertir en abstracto</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Miembros</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Preferencias de modificador:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Mover a espacio de nombres</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Varios miembros son heredados</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Varios miembros se heredan en la línea {0}</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">El nombre está en conflicto con un nombre de tipo que ya existía.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">El nombre no es un identificador de {0} válido.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Espacio de nombres</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Espacio de nombres: "{0}"</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">campo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">Local</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">función local</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">método</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">parámetro</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">propiedad</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">parámetro de tipo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Campo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Local</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">método</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parámetro</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Parámetro de tipo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Reglas de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Navegar a "{0}"</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Nunca si es innecesario</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Nombre de tipo nuevo:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Nuevas preferencias de línea (experimental):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Nueva línea (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">No se encontraron referencias sin usar.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Miembros no públicos</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">NONE</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Omitir (solo para parámetros opcionales)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Documentos abiertos</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Los parámetros opcionales deben proporcionar un valor predeterminado.</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Opcional con valor predeterminado:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Otros</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Miembros reemplazados</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Reemplando miembros</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Paquetes</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Detalles de parámetros</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Nombre del parámetro:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Información de parámetros</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Clase de parámetro</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">El nombre de parámetro contiene caracteres no válidos.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Preferencias de parámetros:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">El tipo de parámetro contiene caracteres no válidos.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Preferencias de paréntesis:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">En pausa ({0} tareas en cola)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Escriba un nombre de tipo.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Preferir "System.HashCode" en "GetHashCode"</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Preferir asignaciones compuestas</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Preferir operador de índice</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Preferir operador de intervalo</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Preferir campos de solo lectura</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Preferir la instrucción "using" sencilla</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Preferir expresiones booleanas simplificadas</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Preferir funciones locales estáticas</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Proyectos</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Extraer miembros</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Solo refactorización</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Referencia</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Expresiones regulares</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Quitar todo</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Quitar referencias sin usar</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Cambiar nombre de {0} a {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Notificar expresiones regulares no válidas</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Repositorio</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Requerir:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Obligatorio</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Requiere que "System.HashCode" esté presente en el proyecto</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Restablecer asignaciones de teclado predeterminadas de Visual Studio</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Revisar cambios</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Ejecutar análisis de código en {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Ejecutando el análisis de código para "{0}"...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Ejecutando el análisis de código para la solución...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Ejecutando procesos en segundo plano de baja prioridad</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Guardar archivo .editorconfig</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Buscar configuración</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Seleccionar destino</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Seleccionar _dependientes</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Seleccionar _público</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Seleccionar destino y miembros para extraer.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Seleccionar destino:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Seleccionar miembro</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Seleccionar miembros:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Mostrar el comando "Quitar referencias sin usar" en el Explorador de soluciones (experimental)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Mostrar lista de finalización</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Mostrar sugerencias para todo lo demás</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Mostrar sugerencias para la creación implícita de objetos</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Mostrar sugerencias para los tipos de parámetros lambda</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Mostrar sugerencias para los literales</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Mostrar sugerencias para las variables con tipos inferidos</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Mostrar margen de herencia</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Algunos de los colores de la combinación se reemplazan por los cambios realizados en la página de opciones de Entorno &gt; Fuentes y colores. Elija "Usar valores predeterminados" en la página Fuentes y colores para revertir todas las personalizaciones.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Sugerencia</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Suprimir las sugerencias cuando el nombre del parámetro coincida con la intención del método</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Suprimir las sugerencias cuando los nombres de parámetro solo se diferencien por el sufijo</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Símbolos sin referencias</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Presionar dos veces la tecla Tab para insertar argumentos (experimental)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Espacio de nombres de destino:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">El generador "{0}" que creó este archivo se ha quitado del proyecto; el archivo ya no se incluye en el proyecto.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">El generador "{0}" que creaba este archivo ha dejado de generarlo; el archivo ya no se incluye en el proyecto.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Esta acción no se puede deshacer. ¿Quiere continuar?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">El generador "{0}" crea este archivo de forma automática y no se puede editar.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Este espacio de nombres no es válido</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Título</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Nombre de tipo:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">El nombre de tipo tiene un error de sintaxis</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">No se reconoce el nombre de tipo</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Se reconoce el nombre de tipo</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">El valor sin usar se asigna explícitamente a una variable local sin usar</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">El valor sin usar se asigna explícitamente para descartar</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Actualizando las referencias del proyecto...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Actualizando la gravedad</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Usar el proceso de 64 bits para el análisis de código (requiere reiniciar)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Usar cuerpo de expresión para lambdas</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Usar cuerpo de expresión para funciones locales</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Usar argumento con nombre</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Valor</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">El valor asignado aquí no se usa nunca</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Valor:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">El valor devuelto por la invocación se omite implícitamente</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Valor que se va a insertar en los sitios de llamada</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Advertencia</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Advertencia: Nombre de parámetro duplicado</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Advertencia: El tipo no se enlaza</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Observamos que ha suspendido "{0}". Restablezca las asignaciones de teclado para continuar navegando y refactorizando.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Esta área de trabajo no admite la actualización de opciones de compilación de Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Debe cambiar la firma</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Debe seleccionar al menos un miembro.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Caracteres no válidos en la ruta de acceso.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">El nombre de archivo debe tener la extensión "{0}".</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Depurador</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Determinando la ubicación del punto de interrupción...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Determinando automático...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Resolviendo la ubicación del punto de interrupción...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Validando la ubicación del punto de interrupción...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Obteniendo texto de sugerencia de datos...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Vista previa no disponible</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Invalidaciones</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Invalidado por</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Hereda</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Heredado por</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implementa</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Implementado por</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Está abierto el número máximo de documentos.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">No se pudo crear el documento en el proyecto de archivos varios.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Acceso no válido.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">No se encontraron las siguientes referencias. {0}Búsquelas y agréguelas manualmente.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">La posición final debe ser &gt;= que la posición de inicio</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">No es un valor válido</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">"{0}" is heredado</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">"{0}" se cambiará a abstracto.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">"{0}" se cambiará a no estático.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">"{0}" se cambiará a público.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[generado por {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[generado]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">el área de trabajo determinada no permite deshacer</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Agregar una referencia a "{0}"</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">El tipo de evento no es válido</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">No se puede encontrar un lugar para insertar el miembro</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">No se puede cambiar el nombre de los elementos "otro"</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Tipo de cambio de nombre desconocido</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Los identificadores no son compatibles con este tipo de símbolo.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">No se puede crear un identificador de nodo para el tipo de símbolo: "{0}"</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Referencias del proyecto</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Tipos base</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Archivos varios</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">No se pudo encontrar el proyecto "{0}"</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">No se pudo encontrar la ubicación de la carpeta en el disco</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Ensamblado </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Excepciones:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Miembro de {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parámetros:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Proyecto </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Comentarios:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Devuelve:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Resumen:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Parámetros de tipo:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Ya existe el archivo</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">La ruta de acceso del archivo no puede usar palabras clave reservadas</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">El valor de DocumentPath no es válido</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">La ruta de acceso del proyecto no es válida</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">La ruta de acceso no puede tener un nombre de archivo vacío</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">El DocumentId en cuestión no provenía del área de trabajo de Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Proyecto: {0} ({1}) Use la lista desplegable para ver y cambiar a otros proyectos a los que puede pertenecer este archivo.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Use el menú desplegable para ver y navegar a otros elementos de este archivo.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Proyecto: {0} Use la lista desplegable para ver y cambiar a otros proyectos a los que puede pertenecer este archivo.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">El ensamblado del analizador "{0}" cambió. Los diagnósticos podrían ser incorrectos hasta que se reinicie Visual Studio.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Origen de datos de tabla de diagnóstico de C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Origen de datos de tabla de lista de tareas pendientes de C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Cancelar</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Anular toda la selección</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Extraer interfaz</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Nombre generado:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Nuevo nombre de _archivo:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">_Nuevo nombre de interfaz:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">Aceptar</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Seleccionar todo</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Seleccionar miembros _públicos para formar interfaz</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Acceso:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Agregar a archivo _existente</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Cambiar firma</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Crear nuevo archivo</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Predeterminado</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Nombre de archivo:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Generar tipo</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Tipo:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Ubicación:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modificador</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Nombre:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parámetro</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parámetros:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Vista previa de signatura de método:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Vista previa de cambios de referencia</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Proyecto:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Detalles del tipo:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">Qui_tar</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Restablecer</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">Más información sobre {0}</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">La navegación se debe realizar en el subproceso en primer plano.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Referencia a "{0}" en el proyecto "{1}"</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Desconocido&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Referencia del analizador a "{0}" en el proyecto "{1}"</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Referencia del proyecto a "{0}" en el proyecto "{1}"</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Los dos ensamblados del analizador, "{0}" y "{1}", tienen la identidad "{2}" pero contenido distinto. Solo se cargará uno de ellos y es posible que estos analizadores no se ejecuten correctamente.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} referencias</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 referencia</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">"{0}" detectó un error y se ha deshabilitado.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Habilitar</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Habilitar y omitir futuros errores</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Sin cambios</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Bloque actual</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Determinando el bloque actual.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Origen de datos de tabla de compilación de C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">El ensamblado del analizador "{0}" depende de "{1}", pero no se encontró. Es posible que los analizadores no se ejecuten correctamente, a menos que el ensamblado que falta se agregue también como referencia del analizador.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Suprimir diagnóstico</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Procesando corrección de supresiones...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Aplicando corrección de supresiones...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Quitar supresiones</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Procesando corrección para quitar supresiones...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Aplicando corrección para quitar supresiones...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">El área de trabajo solo permite abrir documentos en el subproceso de interfaz de usuario.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Esta área de trabajo no admite la actualización de opciones de análisis de Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Sincronizar {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Sincronizando con {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio suspendió algunas características avanzadas para mejorar el rendimiento.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Instalando "{0}"</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Instalación de "{0}" completada</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">No se pudo instalar el paquete: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Desconocido&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">No</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Sí</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Elija una especificación de símbolo y un estilo de nomenclatura.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Escriba un título para la regla de nomenclatura.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Escriba un título para el estilo de nomenclatura.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Escriba un título para la especificación de símbolo.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Accesibilidades (puede coincidir con cualquiera)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Uso de mayúsculas:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">todo en minúsculas</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">TODO EN MAYÚSCULAS</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Nombre en camel Case</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Primera palabra en mayúsculas</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Nombre en Pascal Case</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Gravedad</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modificadores (deben coincidir todos)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Nombre:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Regla de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Estilo de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Estilo de nomenclatura:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Las reglas de nomenclatura le permiten definir qué nombres se deben establecer para los conjuntos especiales de símbolos y cómo se debe tratar con los símbolos con nombres incorrectos.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">La primera regla de nomenclatura coincidente de nivel superior se usa de manera predeterminada cuando se asigna un nombre a un símbolo, mientras que todo caso especial se administra según una regla secundaria coincidente.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Título de estilo de nomenclatura:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Regla principal:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Prefijo requerido:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Sufijo requerido:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Identificador de ejemplo:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Tipos de símbolo (pueden coincidir con cualquiera)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Especificación de símbolo</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Especificación de símbolo:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Título de especificación de símbolo:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Separador de palabras:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">ejemplo</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">identificador</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Instalar "{0}"</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Desinstalando "{0}"</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Deinstalación de "{0}" completada</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Desinstalar "{0}"</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">No se pudo desinstalar el paquete: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Se encontró un error al cargar el proyecto. Se deshabilitaron algunas características del proyecto, como el análisis completo de la solución del proyecto con error y los proyectos que dependen de él.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">No se pudo cargar el proyecto.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Para descubrir la causa del problema, pruebe lo siguiente. 1. Cierre Visual Studio 2. Abra un símbolo del sistema para desarrolladores de Visual Studio. 3. Establezca la variable de entorno “TraceDesignTime” en true (TraceDesignTime=true). 4. Elimine el archivo .suo en el directorio .vs. 5. Reinicie VS desde el símbolo del sistema donde estableció la variable de entorno (devenv). 6. Abra la solución. 7. Compruebe “{0}”y busque las tareas con errores (FAILED).</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Información adicional:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">No se pudo instalar "{0}". Información adicional: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">No se pudo desinstalar "{0}". Información adicional: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Mover {0} bajo {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Mover {0} sobre {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Quitar {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Restaurar {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Volver a habilitar</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Más información</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Preferir tipo de marco de trabajo</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Preferir tipo predefinido</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Copiar al Portapapeles</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Cerrar</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Parámetros desconocidos&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Fin del seguimiento de la pila de la excepción interna ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Para variables locales, parámetros y miembros</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Para expresiones de acceso a miembro</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Preferir inicializador de objeto</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Preferencias de expresión:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Guías de estructura de bloque</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Esquematización</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Mostrar guías para construcciones a nivel de código</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Mostrar guías para regiones de preprocesador y comentarios</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Mostrar guías para construcciones a nivel de declaración</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Mostrar esquematización para construcciones a nivel de código</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Mostrar esquematización para regiones de preprocesador y comentarios</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Mostrar esquematización para construcciones a nivel de declaración</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Preferencias de variable:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Preferir declaración de variable insertada</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Usar cuerpo de expresiones para los métodos</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Preferencias de bloque de código:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Usar cuerpo de expresiones para los descriptores de acceso</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Usar cuerpo de expresiones para los constructores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Usar cuerpo de expresiones para los indizadores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Usar cuerpo de expresiones para los operadores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Usar cuerpo de expresiones para las propiedades</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Algunas reglas de nomenclatura están incompletas. Complételas o quítelas.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Administrar especificaciones</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Reordenar</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Gravedad</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Especificación</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Estilo requerido</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">No se puede eliminar este elemento porque una regla de nomenclatura existente lo usa.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Preferir inicializador de colección</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Preferir expresión de fusión</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Contraer #regions cuando se contraiga a las definiciones</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Preferir propagación nula</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Preferir nombre de tupla explícito</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Descripción</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Preferencia</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Implementar interfaz o clase abstracta</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Para un símbolo determinado, solo se aplicará la regla superior con una "especificación" concordante. Si se infringe el "estilo requerido" de esa regla, se informará en el nivel de "gravedad" elegido.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">al final</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Al insertar propiedades, eventos y métodos, colóquelos:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">Con otros miembros de la misma clase</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Preferir llaves</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">Antes que:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Preferir:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">o</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">Tipos integrados</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">En cualquier otra parte</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">El tipo es aparente en la expresión de asignación</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Bajar</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Subir</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Quitar</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Seleccionar miembros</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Lamentablemente, un proceso utilizado por Visual Studio ha encontrado un error irrecuperable. Recomendamos que guarde su trabajo y luego cierre y reinicie Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Agregar una especificación de símbolo</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Quitar especificación de símbolo</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Agregar elemento</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Editar elemento</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Quitar elemento</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Agregar una regla de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Quitar regla de nomenclatura</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">No se puede llamar a VisualStudioWorkspace.TryApplyChanges desde un subproceso en segundo plano.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">preferir propiedades de lanzamiento</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Al generar propiedades:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Opciones</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">No volver a mostrar</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Preferir la expresión simple "predeterminada"</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Preferir nombres de elementos de tupla inferidos</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Preferir nombres de miembro de tipo anónimo inferidos</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Panel de vista previa</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Análisis</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Atenuar código inaccesible</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Atenuando</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Preferir una función local frente a una función anónima</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Preferir declaración de variable desconstruida</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Se encontró una referencia externa</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">No se encontraron referencias a "{0}"</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">No se encontraron resultados para la búsqueda</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Preferir propiedades automáticas</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">preferir propiedades automáticas</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">El módulo se descargó.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Habilitar la navegación a orígenes decompilados (experimental)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">El archivo .editorconfig puede invalidar la configuración local definida en esta página que solo se aplica a su máquina. Para configurar estos valores de manera que se desplacen con su solución, use los archivos EditorConfig. Mas información</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Sincronizar vista de clases</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Analizando “{0}”</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Administrar estilos de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Preferir expresión condicional sobre "if" con asignaciones</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Preferir expresión condicional sobre "if" con devoluciones</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="es" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Se creará un espacio de nombres</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Se debe proporcionar un tipo y un nombre.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Acción</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Agregar</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Agregar parámetro</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Agregar al archivo _actual</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Se agregó el parámetro.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Se necesitan cambios adicionales para finalizar la refactorización. Revise los cambios a continuación.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Todos los métodos</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Todos los orígenes</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Permitir:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Permitir varias líneas en blanco</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Permitir una instrucción inmediatamente después del bloque</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Siempre por claridad</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analizadores</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Analizando las referencias del proyecto...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Aplicar</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Aplicar esquema de asignaciones de teclado "{0}"</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Ensamblados</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Evitar instrucciones de expresión que omiten implícitamente el valor</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Evitar parámetros sin usar</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Evitar asignaciones de valores sin usar</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Atrás</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Ámbito de análisis en segundo plano:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 bits</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 bits</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Compilación y análisis en directo (paquete NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Cliente de lenguaje de diagnóstico de C#/Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Calculando dependientes...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Valor del sitio de llamada:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Sitio de llamada</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">CR + Nueva línea (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">CR (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Categoría</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Elija la acción que quiera realizar en las referencias sin usar.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Estilo de código</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">El análisis de código se ha completado para "{0}".</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">El análisis de código se ha completado para la solución.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">El análisis de código terminó antes de completarse para "{0}".</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">El análisis de código terminó antes de completarse para la solución.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Sugerencias de color</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Colorear expresiones regulares</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Comentarios</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Miembro contenedor</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Tipo contenedor</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Documento actual</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Parámetro actual</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Deshabilitado</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Mostrar todas las sugerencias al presionar Alt+F1</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">_Mostrar sugerencias de nombre de parámetro insertadas</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Mostrar sugerencias de tipo insertado</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Editar</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Editar {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Combinación de colores del editor</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Las opciones de combinación de colores del editor solo están disponibles cuando se usa un tema de color incluido con Visual Studio. Dicho tema se puede configurar desde la página de Entorno &gt; Opciones generales.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">El elemento no es válido.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Habilitar diagnósticos "pull" de Razor (experimental, requiere reiniciar)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Habilitar todas las características de los archivos abiertos de los generadores de origen (experimental)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Habilitar registro de archivos para el diagnóstico (registrados en la carpeta "%Temp%\Roslyn")</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Habilitar diagnósticos "pull" (experimental, requiere reiniciar)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Habilitado</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Escriba un valor de sitio de llamada o elija otro tipo de inserción de valor.</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Todo el repositorio</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Toda la solución</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Error</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Actualización de errores de forma periódica: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Evaluando ({0} tareas en cola)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Extraer clase base</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Finalizar</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Dar formato al documento</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Generar archivo .editorconfig a partir de la configuración</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Resaltar componentes relacionados bajo el cursor</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">Id.</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Miembros implementados</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Implementando miembros</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">En otros operadores</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Índice</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Inferir del contexto</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Indexado en la organización</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Indexado en el repositorio</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margen de herencia (experimental)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Sugerencias en línea (experimental)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Insertando el valor del sitio de llamada "{0}"</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Instale los analizadores de Roslyn recomendados por Microsoft, que proporcionan diagnósticos y correcciones adicionales para problemas comunes de confiabilidad, rendimiento, seguridad y diseño de API.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">La interfaz no puede tener campos.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Introducir variables TODO sin definir</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Origen del elemento</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Mantener</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Mantener todos los paréntesis en:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Análisis en directo (extensión VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Elementos cargados</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Solución cargada</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Local</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Metadatos locales</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Convertir "{0}" en abstracto</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Convertir en abstracto</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Miembros</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Preferencias de modificador:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Mover a espacio de nombres</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Varios miembros son heredados</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Varios miembros se heredan en la línea {0}</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">El nombre está en conflicto con un nombre de tipo que ya existía.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">El nombre no es un identificador de {0} válido.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Espacio de nombres</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Espacio de nombres: "{0}"</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">campo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">Local</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">función local</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">método</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">parámetro</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">propiedad</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">parámetro de tipo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Campo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Local</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">método</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parámetro</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Parámetro de tipo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Reglas de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Navegar a "{0}"</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Nunca si es innecesario</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Nombre de tipo nuevo:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Nuevas preferencias de línea (experimental):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Nueva línea (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">No se encontraron referencias sin usar.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Miembros no públicos</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">NONE</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Omitir (solo para parámetros opcionales)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Documentos abiertos</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Los parámetros opcionales deben proporcionar un valor predeterminado.</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Opcional con valor predeterminado:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Otros</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Miembros reemplazados</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Reemplando miembros</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Paquetes</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Detalles de parámetros</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Nombre del parámetro:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Información de parámetros</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Clase de parámetro</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">El nombre de parámetro contiene caracteres no válidos.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Preferencias de parámetros:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">El tipo de parámetro contiene caracteres no válidos.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Preferencias de paréntesis:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">En pausa ({0} tareas en cola)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Escriba un nombre de tipo.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Preferir "System.HashCode" en "GetHashCode"</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Preferir asignaciones compuestas</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Preferir operador de índice</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Preferir operador de intervalo</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Preferir campos de solo lectura</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Preferir la instrucción "using" sencilla</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Preferir expresiones booleanas simplificadas</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Preferir funciones locales estáticas</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Proyectos</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Extraer miembros</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Solo refactorización</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Referencia</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Expresiones regulares</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Quitar todo</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Quitar referencias sin usar</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Cambiar nombre de {0} a {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Notificar expresiones regulares no válidas</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Repositorio</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Requerir:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Obligatorio</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Requiere que "System.HashCode" esté presente en el proyecto</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Restablecer asignaciones de teclado predeterminadas de Visual Studio</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Revisar cambios</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Ejecutar análisis de código en {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Ejecutando el análisis de código para "{0}"...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Ejecutando el análisis de código para la solución...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Ejecutando procesos en segundo plano de baja prioridad</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Guardar archivo .editorconfig</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Buscar configuración</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Seleccionar destino</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Seleccionar _dependientes</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Seleccionar _público</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Seleccionar destino y miembros para extraer.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Seleccionar destino:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Seleccionar miembro</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Seleccionar miembros:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Mostrar el comando "Quitar referencias sin usar" en el Explorador de soluciones (experimental)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Mostrar lista de finalización</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Mostrar sugerencias para todo lo demás</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Mostrar sugerencias para la creación implícita de objetos</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Mostrar sugerencias para los tipos de parámetros lambda</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Mostrar sugerencias para los literales</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Mostrar sugerencias para las variables con tipos inferidos</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Mostrar margen de herencia</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Algunos de los colores de la combinación se reemplazan por los cambios realizados en la página de opciones de Entorno &gt; Fuentes y colores. Elija "Usar valores predeterminados" en la página Fuentes y colores para revertir todas las personalizaciones.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Sugerencia</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Suprimir las sugerencias cuando el nombre del parámetro coincida con la intención del método</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Suprimir las sugerencias cuando los nombres de parámetro solo se diferencien por el sufijo</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Símbolos sin referencias</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Presionar dos veces la tecla Tab para insertar argumentos (experimental)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Espacio de nombres de destino:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">El generador "{0}" que creó este archivo se ha quitado del proyecto; el archivo ya no se incluye en el proyecto.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">El generador "{0}" que creaba este archivo ha dejado de generarlo; el archivo ya no se incluye en el proyecto.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Esta acción no se puede deshacer. ¿Quiere continuar?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">El generador "{0}" crea este archivo de forma automática y no se puede editar.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Este espacio de nombres no es válido</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Título</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Nombre de tipo:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">El nombre de tipo tiene un error de sintaxis</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">No se reconoce el nombre de tipo</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Se reconoce el nombre de tipo</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">El valor sin usar se asigna explícitamente a una variable local sin usar</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">El valor sin usar se asigna explícitamente para descartar</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Actualizando las referencias del proyecto...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Actualizando la gravedad</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Usar el proceso de 64 bits para el análisis de código (requiere reiniciar)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Usar cuerpo de expresión para lambdas</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Usar cuerpo de expresión para funciones locales</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Usar argumento con nombre</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Valor</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">El valor asignado aquí no se usa nunca</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Valor:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">El valor devuelto por la invocación se omite implícitamente</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Valor que se va a insertar en los sitios de llamada</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Advertencia</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Advertencia: Nombre de parámetro duplicado</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Advertencia: El tipo no se enlaza</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Observamos que ha suspendido "{0}". Restablezca las asignaciones de teclado para continuar navegando y refactorizando.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Esta área de trabajo no admite la actualización de opciones de compilación de Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Debe cambiar la firma</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Debe seleccionar al menos un miembro.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Caracteres no válidos en la ruta de acceso.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">El nombre de archivo debe tener la extensión "{0}".</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Depurador</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Determinando la ubicación del punto de interrupción...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Determinando automático...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Resolviendo la ubicación del punto de interrupción...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Validando la ubicación del punto de interrupción...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Obteniendo texto de sugerencia de datos...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Vista previa no disponible</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Invalidaciones</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Invalidado por</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Hereda</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Heredado por</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implementa</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Implementado por</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Está abierto el número máximo de documentos.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">No se pudo crear el documento en el proyecto de archivos varios.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Acceso no válido.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">No se encontraron las siguientes referencias. {0}Búsquelas y agréguelas manualmente.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">La posición final debe ser &gt;= que la posición de inicio</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">No es un valor válido</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">"{0}" is heredado</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">"{0}" se cambiará a abstracto.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">"{0}" se cambiará a no estático.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">"{0}" se cambiará a público.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[generado por {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[generado]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">el área de trabajo determinada no permite deshacer</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Agregar una referencia a "{0}"</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">El tipo de evento no es válido</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">No se puede encontrar un lugar para insertar el miembro</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">No se puede cambiar el nombre de los elementos "otro"</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Tipo de cambio de nombre desconocido</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Los identificadores no son compatibles con este tipo de símbolo.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">No se puede crear un identificador de nodo para el tipo de símbolo: "{0}"</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Referencias del proyecto</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Tipos base</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Archivos varios</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">No se pudo encontrar el proyecto "{0}"</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">No se pudo encontrar la ubicación de la carpeta en el disco</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Ensamblado </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Excepciones:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Miembro de {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parámetros:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Proyecto </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Comentarios:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Devuelve:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Resumen:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Parámetros de tipo:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Ya existe el archivo</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">La ruta de acceso del archivo no puede usar palabras clave reservadas</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">El valor de DocumentPath no es válido</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">La ruta de acceso del proyecto no es válida</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">La ruta de acceso no puede tener un nombre de archivo vacío</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">El DocumentId en cuestión no provenía del área de trabajo de Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Proyecto: {0} ({1}) Use la lista desplegable para ver y cambiar a otros proyectos a los que puede pertenecer este archivo.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Use el menú desplegable para ver y navegar a otros elementos de este archivo.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Proyecto: {0} Use la lista desplegable para ver y cambiar a otros proyectos a los que puede pertenecer este archivo.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">El ensamblado del analizador "{0}" cambió. Los diagnósticos podrían ser incorrectos hasta que se reinicie Visual Studio.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Origen de datos de tabla de diagnóstico de C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Origen de datos de tabla de lista de tareas pendientes de C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Cancelar</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Anular toda la selección</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Extraer interfaz</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Nombre generado:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Nuevo nombre de _archivo:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">_Nuevo nombre de interfaz:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">Aceptar</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Seleccionar todo</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Seleccionar miembros _públicos para formar interfaz</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Acceso:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Agregar a archivo _existente</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Cambiar firma</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Crear nuevo archivo</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Predeterminado</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Nombre de archivo:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Generar tipo</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Tipo:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Ubicación:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modificador</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Nombre:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parámetro</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parámetros:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Vista previa de signatura de método:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Vista previa de cambios de referencia</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Proyecto:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Detalles del tipo:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">Qui_tar</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Restablecer</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">Más información sobre {0}</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">La navegación se debe realizar en el subproceso en primer plano.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Referencia a "{0}" en el proyecto "{1}"</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Desconocido&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Referencia del analizador a "{0}" en el proyecto "{1}"</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Referencia del proyecto a "{0}" en el proyecto "{1}"</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Los dos ensamblados del analizador, "{0}" y "{1}", tienen la identidad "{2}" pero contenido distinto. Solo se cargará uno de ellos y es posible que estos analizadores no se ejecuten correctamente.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} referencias</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 referencia</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">"{0}" detectó un error y se ha deshabilitado.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Habilitar</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Habilitar y omitir futuros errores</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Sin cambios</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Bloque actual</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Determinando el bloque actual.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Origen de datos de tabla de compilación de C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">El ensamblado del analizador "{0}" depende de "{1}", pero no se encontró. Es posible que los analizadores no se ejecuten correctamente, a menos que el ensamblado que falta se agregue también como referencia del analizador.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Suprimir diagnóstico</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Procesando corrección de supresiones...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Aplicando corrección de supresiones...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Quitar supresiones</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Procesando corrección para quitar supresiones...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Aplicando corrección para quitar supresiones...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">El área de trabajo solo permite abrir documentos en el subproceso de interfaz de usuario.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Esta área de trabajo no admite la actualización de opciones de análisis de Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Sincronizar {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Sincronizando con {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio suspendió algunas características avanzadas para mejorar el rendimiento.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Instalando "{0}"</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Instalación de "{0}" completada</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">No se pudo instalar el paquete: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Desconocido&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">No</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Sí</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Elija una especificación de símbolo y un estilo de nomenclatura.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Escriba un título para la regla de nomenclatura.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Escriba un título para el estilo de nomenclatura.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Escriba un título para la especificación de símbolo.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Accesibilidades (puede coincidir con cualquiera)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Uso de mayúsculas:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">todo en minúsculas</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">TODO EN MAYÚSCULAS</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Nombre en camel Case</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Primera palabra en mayúsculas</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Nombre en Pascal Case</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Gravedad</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modificadores (deben coincidir todos)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Nombre:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Regla de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Estilo de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Estilo de nomenclatura:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Las reglas de nomenclatura le permiten definir qué nombres se deben establecer para los conjuntos especiales de símbolos y cómo se debe tratar con los símbolos con nombres incorrectos.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">La primera regla de nomenclatura coincidente de nivel superior se usa de manera predeterminada cuando se asigna un nombre a un símbolo, mientras que todo caso especial se administra según una regla secundaria coincidente.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Título de estilo de nomenclatura:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Regla principal:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Prefijo requerido:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Sufijo requerido:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Identificador de ejemplo:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Tipos de símbolo (pueden coincidir con cualquiera)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Especificación de símbolo</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Especificación de símbolo:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Título de especificación de símbolo:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Separador de palabras:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">ejemplo</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">identificador</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Instalar "{0}"</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Desinstalando "{0}"</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Deinstalación de "{0}" completada</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Desinstalar "{0}"</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">No se pudo desinstalar el paquete: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Se encontró un error al cargar el proyecto. Se deshabilitaron algunas características del proyecto, como el análisis completo de la solución del proyecto con error y los proyectos que dependen de él.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">No se pudo cargar el proyecto.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Para descubrir la causa del problema, pruebe lo siguiente. 1. Cierre Visual Studio 2. Abra un símbolo del sistema para desarrolladores de Visual Studio. 3. Establezca la variable de entorno “TraceDesignTime” en true (TraceDesignTime=true). 4. Elimine el archivo .suo en el directorio .vs. 5. Reinicie VS desde el símbolo del sistema donde estableció la variable de entorno (devenv). 6. Abra la solución. 7. Compruebe “{0}”y busque las tareas con errores (FAILED).</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Información adicional:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">No se pudo instalar "{0}". Información adicional: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">No se pudo desinstalar "{0}". Información adicional: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Mover {0} bajo {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Mover {0} sobre {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Quitar {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Restaurar {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Volver a habilitar</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Más información</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Preferir tipo de marco de trabajo</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Preferir tipo predefinido</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Copiar al Portapapeles</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Cerrar</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Parámetros desconocidos&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Fin del seguimiento de la pila de la excepción interna ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Para variables locales, parámetros y miembros</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Para expresiones de acceso a miembro</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Preferir inicializador de objeto</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Preferencias de expresión:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Guías de estructura de bloque</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Esquematización</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Mostrar guías para construcciones a nivel de código</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Mostrar guías para regiones de preprocesador y comentarios</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Mostrar guías para construcciones a nivel de declaración</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Mostrar esquematización para construcciones a nivel de código</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Mostrar esquematización para regiones de preprocesador y comentarios</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Mostrar esquematización para construcciones a nivel de declaración</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Preferencias de variable:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Preferir declaración de variable insertada</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Usar cuerpo de expresiones para los métodos</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Preferencias de bloque de código:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Usar cuerpo de expresiones para los descriptores de acceso</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Usar cuerpo de expresiones para los constructores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Usar cuerpo de expresiones para los indizadores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Usar cuerpo de expresiones para los operadores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Usar cuerpo de expresiones para las propiedades</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Algunas reglas de nomenclatura están incompletas. Complételas o quítelas.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Administrar especificaciones</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Reordenar</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Gravedad</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Especificación</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Estilo requerido</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">No se puede eliminar este elemento porque una regla de nomenclatura existente lo usa.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Preferir inicializador de colección</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Preferir expresión de fusión</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Contraer #regions cuando se contraiga a las definiciones</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Preferir propagación nula</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Preferir nombre de tupla explícito</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Descripción</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Preferencia</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Implementar interfaz o clase abstracta</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Para un símbolo determinado, solo se aplicará la regla superior con una "especificación" concordante. Si se infringe el "estilo requerido" de esa regla, se informará en el nivel de "gravedad" elegido.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">al final</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Al insertar propiedades, eventos y métodos, colóquelos:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">Con otros miembros de la misma clase</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Preferir llaves</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">Antes que:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Preferir:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">o</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">Tipos integrados</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">En cualquier otra parte</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">El tipo es aparente en la expresión de asignación</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Bajar</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Subir</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Quitar</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Seleccionar miembros</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Lamentablemente, un proceso utilizado por Visual Studio ha encontrado un error irrecuperable. Recomendamos que guarde su trabajo y luego cierre y reinicie Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Agregar una especificación de símbolo</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Quitar especificación de símbolo</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Agregar elemento</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Editar elemento</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Quitar elemento</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Agregar una regla de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Quitar regla de nomenclatura</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">No se puede llamar a VisualStudioWorkspace.TryApplyChanges desde un subproceso en segundo plano.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">preferir propiedades de lanzamiento</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Al generar propiedades:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Opciones</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">No volver a mostrar</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Preferir la expresión simple "predeterminada"</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Preferir nombres de elementos de tupla inferidos</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Preferir nombres de miembro de tipo anónimo inferidos</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Panel de vista previa</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Análisis</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Atenuar código inaccesible</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Atenuando</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Preferir una función local frente a una función anónima</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Preferir declaración de variable desconstruida</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Se encontró una referencia externa</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">No se encontraron referencias a "{0}"</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">No se encontraron resultados para la búsqueda</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Preferir propiedades automáticas</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">preferir propiedades automáticas</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">El módulo se descargó.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Habilitar la navegación a orígenes decompilados (experimental)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">El archivo .editorconfig puede invalidar la configuración local definida en esta página que solo se aplica a su máquina. Para configurar estos valores de manera que se desplacen con su solución, use los archivos EditorConfig. Mas información</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Sincronizar vista de clases</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Analizando “{0}”</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Administrar estilos de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Preferir expresión condicional sobre "if" con asignaciones</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Preferir expresión condicional sobre "if" con devoluciones</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.fr.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="fr" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">Un nouveau fichier .editorconfig a été détecté à la racine de votre solution. Voulez-vous en faire un élément de solution ?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Un espace de noms va être créé</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Vous devez fournir un type et un nom.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Action</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Ajouter</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Ajouter un paramètre</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Ajouter au fichier a_ctif</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Paramètre ajouté.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Des changements supplémentaires sont nécessaires pour effectuer la refactorisation. Passez en revue les changements ci-dessous.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Toutes les méthodes</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Toutes les sources</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Autoriser :</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Autoriser plusieurs lignes vides</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Autoriser l'instruction juste après le bloc</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Toujours pour plus de clarté</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analyseurs</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Analyse des références de projet...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Appliquer</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Appliquer le modèle de configuration du clavier '{0}'</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Assemblys</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Éviter les instructions d'expression qui ignorent implicitement la valeur</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Éviter les paramètres inutilisés</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Éviter les assignations de valeurs inutilisées</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Précédent</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Étendue de l'analyse en arrière-plan :</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 bits</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 bits</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Build + analyse en temps réel (package NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Client de langage de diagnostics C#/Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Calcul des dépendants...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Valeur du site d'appel :</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Site d'appel</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Retour chariot + saut de ligne (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Retour chariot (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Catégorie</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Choisissez l'action à effectuer sur les références inutilisées.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Style de code</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Analyse du code effectuée pour '{0}'.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Analyse du code effectuée pour la solution.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">L'analyse du code s'est terminée avant la fin de '{0}'.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">L'analyse du code s'est terminée avant la fin de la solution.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Indicateurs de couleurs</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Coloriser les expressions régulières</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Commentaires</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Membre conteneur</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Type conteneur</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Document en cours</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Paramètre actuel</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Désactivé</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Afficher tous les indicateurs en appuyant sur Alt+F1</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Affic_her les indicateurs de noms de paramètres inline</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Afficher les indicateurs de type inline</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Modifier</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Modifier {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Modèle de couleurs de l'éditeur</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Les options relatives au modèle de couleurs de l'éditeur sont disponibles uniquement quand vous utilisez un thème de couleur fourni en bundle avec Visual Studio. Vous pouvez configurer le thème de couleur à partir de la page d'options Environnement &gt; Général.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">L'élément n'est pas valide.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Activer les diagnostics de 'tirage (pull)' Razor (expérimental, nécessite un redémarrage)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Activer toutes les fonctionnalités dans les fichiers ouverts à partir des générateurs de code source (expérimental)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Activer la journalisation des fichiers pour les Diagnostics (connexion au dossier « %Temp% \Roslyn »)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Activer les diagnostics de 'tirage (pull)' (expérimental, nécessite un redémarrage)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Activé</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Entrer une valeur de site d'appel ou choisir un autre type d'injection de valeur</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Dépôt entier</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Solution complète</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Erreur</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Erreur lors de la mise à jour des suppressions : {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Évaluation ({0} tâches en file d'attente)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Extraire la classe de base</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Terminer</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Mettre en forme le document</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Générer le fichier .editorconfig à partir des paramètres</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Surligner les composants liés sous le curseur</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Membres implémentés</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Implémentation des membres</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">Dans les autres opérateurs</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Index</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Déduire à partir du contexte</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Indexé dans l'organisation</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Indexé dans le dépôt</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Marge d’héritage (expérimental)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Indicateurs inline (expérimental)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Insertion de la valeur de site d'appel '{0}'</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Installer les analyseurs Roslyn recommandés par Microsoft, qui fournissent des diagnostics et des correctifs supplémentaires pour les problèmes usuels liés à la conception, à la sécurité, au niveau de performance et à la fiabilité des API</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">L'interface ne peut pas avoir de champ.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Introduire des variables TODO non définies</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Origine de l'élément</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Conserver</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Conserver toutes les parenthèses dans :</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Genre</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Analyse en temps réel (extension VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Éléments chargés</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Solution chargée</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Local</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Métadonnées locales</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Rendre '{0}' abstrait</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Rendre abstrait</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Membres</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Préférences de modificateur :</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Déplacer vers un espace de noms</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Plusieurs membres sont hérités</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Plusieurs membres sont hérités à la ligne {0}</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Le nom est en conflit avec un nom de type existant.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Le nom n'est pas un identificateur {0} valide.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Espace de noms</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Espace de noms : '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">Champ</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">variable locale</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">fonction locale</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">méthode</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">paramètre</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">propriété</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">paramètre de type</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Champ</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Local</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">méthode</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Paramètre</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Paramètre de type</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Règles de nommage</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Accéder à « {0} »</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Jamais si ce n'est pas nécessaire</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Nouveau nom de type :</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Préférences de nouvelle ligne (expérimental) :</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Nouvelle ligne (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Références inutilisées introuvables.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Méthodes non publiques</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">Aucun(e)</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Omettre (uniquement pour les paramètres facultatifs)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Documents ouverts</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Les paramètres facultatifs doivent fournir une valeur par défaut</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Facultatif avec une valeur par défaut :</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Autres</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Membres remplacés</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Remplacement des membres</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Packages</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Détails du paramètre</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Nom du paramètre :</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Informations du paramètre</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Genre de paramètre</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Le nom du paramètre contient des caractères non valides.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Préférences relatives aux paramètres :</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Le type du paramètre contient des caractères non valides.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Préférences relatives aux parenthèses :</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Suspendu ({0} tâches en file d'attente)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Entrez un nom de type</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Préférer 'System.HashCode' dans 'GetHashCode'</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Préférer les affectations composées</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Préférer l'opérateur d'index</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Préférer l'opérateur de plage</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Préférer les champs readonly</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Préférer une instruction 'using' simple</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Préférer les expressions booléennes simplifiées</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Préférer les fonctions locales statiques</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Projets</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Élever les membres</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Refactoring Only</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Référence</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Expressions régulières</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Tout supprimer</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Supprimer les références inutilisées</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Renommer {0} en {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Signaler les expressions régulières non valides</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Dépôt</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Nécessite :</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Obligatoire</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Nécessite la présence de 'System.HashCode' dans le projet</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Réinitialiser la configuration du clavier par défaut de Visual Studio</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Passer en revue les changements</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Exécuter une analyse du code sur {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Exécution de l'analyse du code pour '{0}'...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Exécution de l'analyse du code pour la solution...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Exécution des processus d’arrière-plan basse priorité</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Enregistrer le fichier .editorconfig</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Paramètres de recherche</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Sélectionner la destination</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Sélectionner _Dépendants</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Sélectionner _Public</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Sélectionnez la destination et les membres à élever.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Sélectionner la destination :</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Sélectionner le membre</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Sélectionner les membres :</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Afficher la commande Supprimer les références inutilisées dans l'Explorateur de solutions (expérimental)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Afficher la liste de saisie semi-automatique</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Afficher les indicateurs pour tout le reste</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Afficher les indicateurs pour la création d'objet implicite</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Afficher les indicateurs pour les types de paramètre lambda</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Afficher les indicateurs pour les littéraux</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Afficher les indicateurs pour les variables ayant des types déduits</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Afficher la marge d’héritage</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Certaines couleurs du modèle de couleurs sont substituées à la suite des changements apportés dans la page d'options Environnement &gt; Polices et couleurs. Choisissez Utiliser les valeurs par défaut dans la page Polices et couleurs pour restaurer toutes les personnalisations.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Suggestion</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Supprimer les indicateurs quand le nom de paramètre correspond à l'intention de la méthode</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Supprimer les indicateurs quand les noms de paramètres ne diffèrent que par le suffixe</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Symboles sans références</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Appuyer deux fois sur Tab pour insérer des arguments (expérimental)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Espace de noms cible :</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Le générateur '{0}' qui a généré ce fichier a été supprimé du projet. Ce fichier n'est plus inclus dans votre projet.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Le générateur '{0}' qui a généré ce fichier a arrêté de générer ce dernier. Le fichier n'est plus inclus dans votre projet.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Il est impossible d'annuler cette action. Voulez-vous continuer ?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Ce fichier est généré automatiquement par le générateur '{0}' et ne peut pas être modifié.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Ceci est un espace de noms non valide</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Titre</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Nom du type :</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Le nom de type a une erreur de syntaxe</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Le nom de type n'est pas reconnu</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Le nom de type est reconnu</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">La valeur inutilisée est explicitement affectée à une variable locale inutilisée</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">La valeur inutilisée est explicitement affectée à une variable discard</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Mise à jour des références de projet...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Mise à jour de la gravité</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Utiliser le processus 64 bits pour l'analyse du code (redémarrage nécessaire)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Utiliser un corps d'expression pour les expressions lambda</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Utiliser un corps d'expression pour les fonctions locales</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Utiliser un argument nommé</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Valeur</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">La valeur affectée ici n'est jamais utilisée</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Valeur :</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">La valeur retournée par invocation est implicitement ignorée</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Valeur à injecter sur les sites d'appel</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Avertissement</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Avertissement : Nom de paramètre dupliqué</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Avertissement : Le type n'est pas lié</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Nous avons remarqué que vous avez interrompu '{0}'. Réinitialisez la configuration du clavier pour continuer à naviguer et à refactoriser.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Cet espace de travail ne prend pas en charge la mise à jour des options de compilation Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Vous devez changer la signature</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Vous devez sélectionner au moins un membre.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Caractères non autorisés dans le chemin.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Le nom de fichier doit avoir l'extension "{0}".</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Débogueur</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Détermination de l'emplacement du point d'arrêt...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Identification automatique...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Résolution de l'emplacement du point d'arrêt...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Validation de l'emplacement du point d'arrêt...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Obtention du texte de DataTip...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Aperçu non disponible</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Substitutions</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Remplacée par</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Hérite</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Hérité par</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implémente</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Implémenté par</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Le nombre maximum de documents est ouvert.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Échec de création du document dans le projet de fichiers divers.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Accès non valide.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">Les références suivantes sont introuvables. {0}Recherchez-les et ajoutez-les manuellement.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">La position de fin doit être &gt;= à la position de départ</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Valeur non valide</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">« {0} » est hérité</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}' va être changé en valeur abstraite.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}' va être changé en valeur non statique.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}' va être changé en valeur publique.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[généré par {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[généré]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">l'espace de travail donné ne prend pas en charge la fonction Annuler</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Ajouter une référence à '{0}'</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Type d'événement non valide</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Emplacement introuvable pour insérer le membre</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Impossible de renommer les éléments 'other'</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Type renommé inconnu</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Les ID ne sont pas pris en charge pour ce type de symbole.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Impossible de créer un ID de nœud pour ce genre de symbole : '{0}'</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Références du projet</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Types de base</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Fichiers divers</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Projet '{0}' introuvable</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Emplacement introuvable du dossier sur le disque</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Assembly </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Exceptions :</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Membre de {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Paramètres :</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Projet </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Notes :</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Retourne :</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Résumé :</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Paramètres de type :</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Le fichier existe déjà</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">Le chemin du fichier ne peut pas utiliser des mots clés réservés</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath n'est pas autorisé</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Le chemin du projet n'est pas autorisé</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Le chemin ne peut pas avoir un nom de fichier vide</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">Le DocumentId donné ne provient pas de l'espace de travail Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projet : {0} ({1}) Utilisez le menu déroulant pour afficher et basculer vers d'autres projets auquel ce fichier peut appartenir.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Utilisez le menu déroulant pour afficher d'autres éléments dans ce fichier, et y accéder.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projet : {0} Utilisez le menu déroulant pour afficher et basculer vers d'autres projets auquel ce fichier peut appartenir.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">L'assembly d'analyseur '{0}' a été modifié. Les diagnostics seront incorrects jusqu'au redémarrage de Visual Studio.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Source de données de la table de diagnostics C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Source de données de la table de liste Todo C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Annuler</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Désélectionner tout</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Extraire l'interface</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Nom généré :</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Nouveau nom de _fichier :</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Nouveau nom d'_interface :</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">Tout _sélectionner</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Sélectionner les _membres publics pour former l'interface</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Accès :</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Ajouter au fichier e_xistant</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Modifier la signature</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Créer un fichier</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Par défaut</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Nom du fichier :</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Générer le type</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Genre :</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Emplacement :</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modificateur</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Nom :</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Paramètre</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Paramètres :</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Aperçu de la signature de méthode :</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Afficher un aperçu des modifications de la référence</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Projet :</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Type</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Détails du type :</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">Suppri_mer</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Restaurer</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">En savoir plus sur {0}</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">La navigation doit être exécutée sur le thread de premier plan.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Référence à '{0}' dans le projet '{1}'</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Inconnu&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Référence d'analyseur à '{0}' dans le projet '{1}'</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Référence au projet à '{0}' dans le projet '{1}'</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Les assemblys d'analyseur '{0}' et '{1}' ont tous deux l'identité '{2}', mais des contenus différents. Un seul de ces assemblys est chargé et les analyseurs utilisant ces assemblys peuvent ne pas fonctionner correctement.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} références</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 référence</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' a rencontré une erreur et a été désactivé.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Activer</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Activer et ignorer les futures erreurs</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Aucune modification</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Bloc actif</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Détermination du bloc actif.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Source de données de la table de build C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">L'assembly d'analyseur '{0}' dépend de '{1}', mais il est introuvable. Les analyseurs peuvent ne pas s'exécuter correctement, sauf si l'assembly manquant est aussi ajouté comme référence d'analyseur.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Supprimer les diagnostics</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Calcul de la correction des suppressions...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Application de la correction des suppressions...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Retirer les suppressions</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Calcul de la correction de retrait des suppressions...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Application de la correction de retrait des suppressions...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Cet espace de travail prend en charge uniquement l'ouverture de documents sur le thread d'interface utilisateur.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Cet espace de travail ne prend pas en charge la mise à jour des options d'analyse Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Synchroniser {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Synchronisation avec {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio a interrompu certaines fonctionnalités avancées pour améliorer les performances.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Installation de '{0}'</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Installation de '{0}' terminée</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Échec de l'installation du package : {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Inconnu&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Non</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Oui</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Choisissez une spécification de symbole et un style de nommage.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Entrez un titre pour cette règle de nommage.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Entrez un titre pour ce style de nommage.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Entrez un titre pour cette spécification de symbole.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Niveaux d'accès (peut correspondre à n'importe quel élément)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Mise en majuscules :</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">tout en minuscules</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">TOUT EN MAJUSCULES</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Nom en casse mixte</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Premier mot en majuscules</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Nom en casse Pascal</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Gravité :</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modificateurs (doivent correspondre à tous les éléments)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Nom :</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Règle de nommage</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Style de nommage</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Style de nommage :</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Les règles de nommage vous permettent de définir le mode d'appellation d'ensembles particuliers de symboles et le traitement des symboles incorrectement nommés.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">La première règle de nommage de niveau supérieur correspondante est utilisée par défaut lors de l'appellation d'un symbole, tandis que les cas spéciaux sont gérés par une règle enfant correspondante.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Titre du style de nommage :</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Règle parente :</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Préfixe obligatoire :</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Suffixe obligatoire :</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Exemple d'identificateur :</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Genres de symboles (peuvent correspondre à n'importe quel élément)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Spécification du symbole</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Spécification du symbole :</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Titre de la spécification du symbole :</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Séparateur de mots :</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">exemple</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">identificateur</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Installer '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Désinstallation de '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Désinstallation de '{0}' terminée</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Désinstaller '{0}'</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Échec de la désinstallation du package : {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Erreur pendant le chargement du projet. Certaines fonctionnalités du projet, comme l'analyse complète de la solution pour le projet en échec et les projets qui en dépendent, ont été désactivées.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Échec du chargement du projet.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Pour déterminer la cause du problème, essayez d'effectuer les actions ci-dessous. 1. Fermez Visual Studio 2. Ouvrez une invite de commandes Visual Studio Developer 3. Affectez à la variable d'environnement "TraceDesignTime" la valeur true (set TraceDesignTime=true) 4. Supprimez le répertoire .vs/fichier .suo 5. Redémarrez VS à partir de l'invite de commandes définie dans la variable d'environnement (devenv) 6. Ouvrez la solution 7. Recherchez dans '{0}' les tâches qui n'ont pas abouti (FAILED)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Informations supplémentaires :</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">Échec de l'installation de '{0}'. Informations supplémentaires : {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">Échec de la désinstallation de '{0}'. Informations supplémentaires : {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Déplacer {0} sous {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Déplacer {0} au-dessus de {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Supprimer {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Restaurer {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Réactiver</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">En savoir plus</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Préférer le type d'infrastructure</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Préférer le type prédéfini</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Copier dans le Presse-papiers</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Fermer</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Paramètres inconnus&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Fin de la trace de la pile d'exception interne ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Pour les variables locales, les paramètres et les membres</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Pour les expressions d'accès de membre</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Préférer l'initialiseur d'objet</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Préférences en matière d'expressions :</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Repères de structure de bloc</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Mode plan</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Afficher les repères pour les constructions au niveau du code</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Afficher les repères pour les commentaires et les régions du préprocesseur</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Afficher les repères pour les constructions au niveau des déclarations</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Afficher le mode Plan pour les constructions au niveau du code</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Afficher le mode Plan pour les commentaires et les régions du préprocesseur</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Afficher le mode Plan pour les constructions au niveau des déclarations</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Préférences en matière de variables :</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Préférer la déclaration de variable inlined</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Utiliser un corps d'expression pour les méthodes</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Préférences en matière de blocs de code :</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Utiliser un corps d'expression pour les accesseurs</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Utiliser un corps d'expression pour les constructeurs</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Utiliser un corps d'expression pour les indexeurs</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Utiliser un corps d'expression pour les opérateurs</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Utiliser un corps d'expression pour les propriétés</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Certaines règles de nommage sont incomplètes. Complétez-les ou supprimez-les.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Gérer les spécifications</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Réorganiser</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Gravité</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Spécification</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Style obligatoire</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Impossible de supprimer cet élément car il est utilisé par une règle de nommage existante.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Préférer l'initialiseur de collection</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Préférer l'expression coalesce</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Réduire #regions lors de la réduction aux définitions</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Préférer la propagation nulle</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Préférer un nom de tuple explicite</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Description</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Préférence</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Implémenter une interface ou une classe abstraite</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Pour un symbole donné, seule la règle la plus élevée avec une 'Spécification' correspondante est appliquée. Toute violation du 'Style obligatoire' de cette de règle est signalée au niveau de 'Gravité' choisi.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">à la fin</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Quand vous insérez des propriétés, des événements et des méthodes, placez-les :</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">avec d'autres membres du même type</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Préférer des accolades</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">À :</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Préférer :</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">ou</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">types intégrés</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">n'importe où ailleurs</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">le type est visible dans l'expression d'assignation</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Descendre</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Monter</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Supprimer</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Choisir les membres</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Malheureusement, un processus utilisé par Visual Studio a rencontré une erreur irrécupérable. Nous vous recommandons d'enregistrer votre travail, puis de fermer et de redémarrer Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Ajouter une spécification de symbole</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Supprimer la spécification de symbole</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Ajouter l'élément</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Modifier l'élément</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Supprimer l'élément</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Ajouter une règle de nommage</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Supprimer la règle de nommage</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">Impossible d'appeler VisualStudioWorkspace.TryApplyChanges à partir d'un thread d'arrière-plan.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">préférer les propriétés de levée d'exceptions</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Durant la génération des propriétés :</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Options</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Ne plus afficher</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Préférer l'expression 'default' simple</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Préférer les noms d'éléments de tuple déduits</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Préférer les noms de membres de type anonyme déduits</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Volet d'aperçu</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Analyse</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Supprimer le code inaccessible</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Suppression</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Préférer une fonction locale à une fonction anonyme</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Préférer la déclaration de variable déconstruite</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Référence externe trouvée</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Références introuvables pour '{0}'</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">La recherche n'a donné aucun résultat</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Préférer les propriétés automatiques</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">préférer les propriétés automatiques</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Le module a été déchargé.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Activer la navigation vers des sources décompilées (expérimental)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">Votre fichier .editorconfig peut remplacer les paramètres locaux configurés sur cette page, qui s'appliquent uniquement à votre machine. Pour configurer ces paramètres afin qu'ils soient liés à votre solution, utilisez les fichiers EditorConfig. En savoir plus</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Synchroniser l'affichage de classes</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Analyse de '{0}'</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Gérer les styles de nommage</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Préférer une expression conditionnelle à 'if' avec des affectations</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Préférer une expression conditionnelle à 'if' avec des retours</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="fr" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Un espace de noms va être créé</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Vous devez fournir un type et un nom.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Action</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Ajouter</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Ajouter un paramètre</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Ajouter au fichier a_ctif</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Paramètre ajouté.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Des changements supplémentaires sont nécessaires pour effectuer la refactorisation. Passez en revue les changements ci-dessous.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Toutes les méthodes</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Toutes les sources</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Autoriser :</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Autoriser plusieurs lignes vides</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Autoriser l'instruction juste après le bloc</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Toujours pour plus de clarté</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analyseurs</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Analyse des références de projet...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Appliquer</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Appliquer le modèle de configuration du clavier '{0}'</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Assemblys</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Éviter les instructions d'expression qui ignorent implicitement la valeur</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Éviter les paramètres inutilisés</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Éviter les assignations de valeurs inutilisées</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Précédent</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Étendue de l'analyse en arrière-plan :</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 bits</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 bits</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Build + analyse en temps réel (package NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Client de langage de diagnostics C#/Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Calcul des dépendants...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Valeur du site d'appel :</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Site d'appel</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Retour chariot + saut de ligne (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Retour chariot (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Catégorie</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Choisissez l'action à effectuer sur les références inutilisées.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Style de code</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Analyse du code effectuée pour '{0}'.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Analyse du code effectuée pour la solution.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">L'analyse du code s'est terminée avant la fin de '{0}'.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">L'analyse du code s'est terminée avant la fin de la solution.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Indicateurs de couleurs</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Coloriser les expressions régulières</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Commentaires</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Membre conteneur</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Type conteneur</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Document en cours</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Paramètre actuel</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Désactivé</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Afficher tous les indicateurs en appuyant sur Alt+F1</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Affic_her les indicateurs de noms de paramètres inline</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Afficher les indicateurs de type inline</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Modifier</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Modifier {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Modèle de couleurs de l'éditeur</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Les options relatives au modèle de couleurs de l'éditeur sont disponibles uniquement quand vous utilisez un thème de couleur fourni en bundle avec Visual Studio. Vous pouvez configurer le thème de couleur à partir de la page d'options Environnement &gt; Général.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">L'élément n'est pas valide.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Activer les diagnostics de 'tirage (pull)' Razor (expérimental, nécessite un redémarrage)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Activer toutes les fonctionnalités dans les fichiers ouverts à partir des générateurs de code source (expérimental)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Activer la journalisation des fichiers pour les Diagnostics (connexion au dossier « %Temp% \Roslyn »)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Activer les diagnostics de 'tirage (pull)' (expérimental, nécessite un redémarrage)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Activé</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Entrer une valeur de site d'appel ou choisir un autre type d'injection de valeur</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Dépôt entier</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Solution complète</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Erreur</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Erreur lors de la mise à jour des suppressions : {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Évaluation ({0} tâches en file d'attente)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Extraire la classe de base</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Terminer</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Mettre en forme le document</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Générer le fichier .editorconfig à partir des paramètres</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Surligner les composants liés sous le curseur</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Membres implémentés</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Implémentation des membres</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">Dans les autres opérateurs</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Index</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Déduire à partir du contexte</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Indexé dans l'organisation</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Indexé dans le dépôt</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Marge d’héritage (expérimental)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Indicateurs inline (expérimental)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Insertion de la valeur de site d'appel '{0}'</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Installer les analyseurs Roslyn recommandés par Microsoft, qui fournissent des diagnostics et des correctifs supplémentaires pour les problèmes usuels liés à la conception, à la sécurité, au niveau de performance et à la fiabilité des API</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">L'interface ne peut pas avoir de champ.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Introduire des variables TODO non définies</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Origine de l'élément</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Conserver</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Conserver toutes les parenthèses dans :</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Genre</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Analyse en temps réel (extension VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Éléments chargés</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Solution chargée</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Local</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Métadonnées locales</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Rendre '{0}' abstrait</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Rendre abstrait</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Membres</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Préférences de modificateur :</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Déplacer vers un espace de noms</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Plusieurs membres sont hérités</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Plusieurs membres sont hérités à la ligne {0}</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Le nom est en conflit avec un nom de type existant.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Le nom n'est pas un identificateur {0} valide.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Espace de noms</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Espace de noms : '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">Champ</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">variable locale</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">fonction locale</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">méthode</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">paramètre</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">propriété</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">paramètre de type</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Champ</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Local</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">méthode</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Paramètre</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Paramètre de type</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Règles de nommage</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Accéder à « {0} »</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Jamais si ce n'est pas nécessaire</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Nouveau nom de type :</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Préférences de nouvelle ligne (expérimental) :</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Nouvelle ligne (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Références inutilisées introuvables.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Méthodes non publiques</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">Aucun(e)</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Omettre (uniquement pour les paramètres facultatifs)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Documents ouverts</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Les paramètres facultatifs doivent fournir une valeur par défaut</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Facultatif avec une valeur par défaut :</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Autres</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Membres remplacés</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Remplacement des membres</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Packages</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Détails du paramètre</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Nom du paramètre :</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Informations du paramètre</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Genre de paramètre</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Le nom du paramètre contient des caractères non valides.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Préférences relatives aux paramètres :</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Le type du paramètre contient des caractères non valides.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Préférences relatives aux parenthèses :</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Suspendu ({0} tâches en file d'attente)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Entrez un nom de type</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Préférer 'System.HashCode' dans 'GetHashCode'</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Préférer les affectations composées</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Préférer l'opérateur d'index</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Préférer l'opérateur de plage</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Préférer les champs readonly</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Préférer une instruction 'using' simple</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Préférer les expressions booléennes simplifiées</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Préférer les fonctions locales statiques</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Projets</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Élever les membres</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Refactoring Only</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Référence</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Expressions régulières</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Tout supprimer</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Supprimer les références inutilisées</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Renommer {0} en {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Signaler les expressions régulières non valides</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Dépôt</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Nécessite :</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Obligatoire</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Nécessite la présence de 'System.HashCode' dans le projet</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Réinitialiser la configuration du clavier par défaut de Visual Studio</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Passer en revue les changements</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Exécuter une analyse du code sur {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Exécution de l'analyse du code pour '{0}'...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Exécution de l'analyse du code pour la solution...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Exécution des processus d’arrière-plan basse priorité</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Enregistrer le fichier .editorconfig</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Paramètres de recherche</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Sélectionner la destination</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Sélectionner _Dépendants</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Sélectionner _Public</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Sélectionnez la destination et les membres à élever.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Sélectionner la destination :</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Sélectionner le membre</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Sélectionner les membres :</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Afficher la commande Supprimer les références inutilisées dans l'Explorateur de solutions (expérimental)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Afficher la liste de saisie semi-automatique</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Afficher les indicateurs pour tout le reste</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Afficher les indicateurs pour la création d'objet implicite</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Afficher les indicateurs pour les types de paramètre lambda</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Afficher les indicateurs pour les littéraux</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Afficher les indicateurs pour les variables ayant des types déduits</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Afficher la marge d’héritage</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Certaines couleurs du modèle de couleurs sont substituées à la suite des changements apportés dans la page d'options Environnement &gt; Polices et couleurs. Choisissez Utiliser les valeurs par défaut dans la page Polices et couleurs pour restaurer toutes les personnalisations.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Suggestion</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Supprimer les indicateurs quand le nom de paramètre correspond à l'intention de la méthode</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Supprimer les indicateurs quand les noms de paramètres ne diffèrent que par le suffixe</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Symboles sans références</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Appuyer deux fois sur Tab pour insérer des arguments (expérimental)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Espace de noms cible :</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Le générateur '{0}' qui a généré ce fichier a été supprimé du projet. Ce fichier n'est plus inclus dans votre projet.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Le générateur '{0}' qui a généré ce fichier a arrêté de générer ce dernier. Le fichier n'est plus inclus dans votre projet.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Il est impossible d'annuler cette action. Voulez-vous continuer ?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Ce fichier est généré automatiquement par le générateur '{0}' et ne peut pas être modifié.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Ceci est un espace de noms non valide</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Titre</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Nom du type :</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Le nom de type a une erreur de syntaxe</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Le nom de type n'est pas reconnu</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Le nom de type est reconnu</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">La valeur inutilisée est explicitement affectée à une variable locale inutilisée</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">La valeur inutilisée est explicitement affectée à une variable discard</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Mise à jour des références de projet...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Mise à jour de la gravité</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Utiliser le processus 64 bits pour l'analyse du code (redémarrage nécessaire)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Utiliser un corps d'expression pour les expressions lambda</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Utiliser un corps d'expression pour les fonctions locales</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Utiliser un argument nommé</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Valeur</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">La valeur affectée ici n'est jamais utilisée</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Valeur :</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">La valeur retournée par invocation est implicitement ignorée</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Valeur à injecter sur les sites d'appel</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Avertissement</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Avertissement : Nom de paramètre dupliqué</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Avertissement : Le type n'est pas lié</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Nous avons remarqué que vous avez interrompu '{0}'. Réinitialisez la configuration du clavier pour continuer à naviguer et à refactoriser.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Cet espace de travail ne prend pas en charge la mise à jour des options de compilation Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Vous devez changer la signature</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Vous devez sélectionner au moins un membre.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Caractères non autorisés dans le chemin.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Le nom de fichier doit avoir l'extension "{0}".</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Débogueur</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Détermination de l'emplacement du point d'arrêt...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Identification automatique...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Résolution de l'emplacement du point d'arrêt...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Validation de l'emplacement du point d'arrêt...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Obtention du texte de DataTip...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Aperçu non disponible</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Substitutions</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Remplacée par</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Hérite</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Hérité par</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implémente</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Implémenté par</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Le nombre maximum de documents est ouvert.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Échec de création du document dans le projet de fichiers divers.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Accès non valide.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">Les références suivantes sont introuvables. {0}Recherchez-les et ajoutez-les manuellement.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">La position de fin doit être &gt;= à la position de départ</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Valeur non valide</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">« {0} » est hérité</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}' va être changé en valeur abstraite.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}' va être changé en valeur non statique.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}' va être changé en valeur publique.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[généré par {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[généré]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">l'espace de travail donné ne prend pas en charge la fonction Annuler</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Ajouter une référence à '{0}'</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Type d'événement non valide</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Emplacement introuvable pour insérer le membre</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Impossible de renommer les éléments 'other'</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Type renommé inconnu</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Les ID ne sont pas pris en charge pour ce type de symbole.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Impossible de créer un ID de nœud pour ce genre de symbole : '{0}'</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Références du projet</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Types de base</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Fichiers divers</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Projet '{0}' introuvable</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Emplacement introuvable du dossier sur le disque</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Assembly </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Exceptions :</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Membre de {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Paramètres :</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Projet </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Notes :</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Retourne :</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Résumé :</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Paramètres de type :</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Le fichier existe déjà</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">Le chemin du fichier ne peut pas utiliser des mots clés réservés</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath n'est pas autorisé</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Le chemin du projet n'est pas autorisé</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Le chemin ne peut pas avoir un nom de fichier vide</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">Le DocumentId donné ne provient pas de l'espace de travail Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projet : {0} ({1}) Utilisez le menu déroulant pour afficher et basculer vers d'autres projets auquel ce fichier peut appartenir.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Utilisez le menu déroulant pour afficher d'autres éléments dans ce fichier, et y accéder.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projet : {0} Utilisez le menu déroulant pour afficher et basculer vers d'autres projets auquel ce fichier peut appartenir.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">L'assembly d'analyseur '{0}' a été modifié. Les diagnostics seront incorrects jusqu'au redémarrage de Visual Studio.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Source de données de la table de diagnostics C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Source de données de la table de liste Todo C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Annuler</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Désélectionner tout</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Extraire l'interface</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Nom généré :</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Nouveau nom de _fichier :</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Nouveau nom d'_interface :</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">Tout _sélectionner</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Sélectionner les _membres publics pour former l'interface</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Accès :</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Ajouter au fichier e_xistant</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Modifier la signature</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Créer un fichier</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Par défaut</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Nom du fichier :</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Générer le type</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Genre :</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Emplacement :</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modificateur</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Nom :</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Paramètre</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Paramètres :</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Aperçu de la signature de méthode :</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Afficher un aperçu des modifications de la référence</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Projet :</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Type</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Détails du type :</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">Suppri_mer</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Restaurer</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">En savoir plus sur {0}</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">La navigation doit être exécutée sur le thread de premier plan.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Référence à '{0}' dans le projet '{1}'</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Inconnu&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Référence d'analyseur à '{0}' dans le projet '{1}'</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Référence au projet à '{0}' dans le projet '{1}'</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Les assemblys d'analyseur '{0}' et '{1}' ont tous deux l'identité '{2}', mais des contenus différents. Un seul de ces assemblys est chargé et les analyseurs utilisant ces assemblys peuvent ne pas fonctionner correctement.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} références</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 référence</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' a rencontré une erreur et a été désactivé.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Activer</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Activer et ignorer les futures erreurs</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Aucune modification</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Bloc actif</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Détermination du bloc actif.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Source de données de la table de build C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">L'assembly d'analyseur '{0}' dépend de '{1}', mais il est introuvable. Les analyseurs peuvent ne pas s'exécuter correctement, sauf si l'assembly manquant est aussi ajouté comme référence d'analyseur.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Supprimer les diagnostics</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Calcul de la correction des suppressions...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Application de la correction des suppressions...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Retirer les suppressions</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Calcul de la correction de retrait des suppressions...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Application de la correction de retrait des suppressions...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Cet espace de travail prend en charge uniquement l'ouverture de documents sur le thread d'interface utilisateur.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Cet espace de travail ne prend pas en charge la mise à jour des options d'analyse Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Synchroniser {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Synchronisation avec {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio a interrompu certaines fonctionnalités avancées pour améliorer les performances.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Installation de '{0}'</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Installation de '{0}' terminée</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Échec de l'installation du package : {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Inconnu&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Non</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Oui</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Choisissez une spécification de symbole et un style de nommage.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Entrez un titre pour cette règle de nommage.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Entrez un titre pour ce style de nommage.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Entrez un titre pour cette spécification de symbole.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Niveaux d'accès (peut correspondre à n'importe quel élément)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Mise en majuscules :</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">tout en minuscules</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">TOUT EN MAJUSCULES</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Nom en casse mixte</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Premier mot en majuscules</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Nom en casse Pascal</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Gravité :</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modificateurs (doivent correspondre à tous les éléments)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Nom :</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Règle de nommage</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Style de nommage</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Style de nommage :</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Les règles de nommage vous permettent de définir le mode d'appellation d'ensembles particuliers de symboles et le traitement des symboles incorrectement nommés.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">La première règle de nommage de niveau supérieur correspondante est utilisée par défaut lors de l'appellation d'un symbole, tandis que les cas spéciaux sont gérés par une règle enfant correspondante.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Titre du style de nommage :</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Règle parente :</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Préfixe obligatoire :</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Suffixe obligatoire :</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Exemple d'identificateur :</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Genres de symboles (peuvent correspondre à n'importe quel élément)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Spécification du symbole</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Spécification du symbole :</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Titre de la spécification du symbole :</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Séparateur de mots :</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">exemple</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">identificateur</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Installer '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Désinstallation de '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Désinstallation de '{0}' terminée</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Désinstaller '{0}'</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Échec de la désinstallation du package : {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Erreur pendant le chargement du projet. Certaines fonctionnalités du projet, comme l'analyse complète de la solution pour le projet en échec et les projets qui en dépendent, ont été désactivées.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Échec du chargement du projet.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Pour déterminer la cause du problème, essayez d'effectuer les actions ci-dessous. 1. Fermez Visual Studio 2. Ouvrez une invite de commandes Visual Studio Developer 3. Affectez à la variable d'environnement "TraceDesignTime" la valeur true (set TraceDesignTime=true) 4. Supprimez le répertoire .vs/fichier .suo 5. Redémarrez VS à partir de l'invite de commandes définie dans la variable d'environnement (devenv) 6. Ouvrez la solution 7. Recherchez dans '{0}' les tâches qui n'ont pas abouti (FAILED)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Informations supplémentaires :</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">Échec de l'installation de '{0}'. Informations supplémentaires : {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">Échec de la désinstallation de '{0}'. Informations supplémentaires : {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Déplacer {0} sous {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Déplacer {0} au-dessus de {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Supprimer {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Restaurer {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Réactiver</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">En savoir plus</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Préférer le type d'infrastructure</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Préférer le type prédéfini</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Copier dans le Presse-papiers</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Fermer</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Paramètres inconnus&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Fin de la trace de la pile d'exception interne ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Pour les variables locales, les paramètres et les membres</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Pour les expressions d'accès de membre</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Préférer l'initialiseur d'objet</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Préférences en matière d'expressions :</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Repères de structure de bloc</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Mode plan</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Afficher les repères pour les constructions au niveau du code</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Afficher les repères pour les commentaires et les régions du préprocesseur</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Afficher les repères pour les constructions au niveau des déclarations</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Afficher le mode Plan pour les constructions au niveau du code</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Afficher le mode Plan pour les commentaires et les régions du préprocesseur</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Afficher le mode Plan pour les constructions au niveau des déclarations</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Préférences en matière de variables :</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Préférer la déclaration de variable inlined</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Utiliser un corps d'expression pour les méthodes</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Préférences en matière de blocs de code :</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Utiliser un corps d'expression pour les accesseurs</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Utiliser un corps d'expression pour les constructeurs</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Utiliser un corps d'expression pour les indexeurs</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Utiliser un corps d'expression pour les opérateurs</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Utiliser un corps d'expression pour les propriétés</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Certaines règles de nommage sont incomplètes. Complétez-les ou supprimez-les.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Gérer les spécifications</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Réorganiser</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Gravité</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Spécification</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Style obligatoire</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Impossible de supprimer cet élément car il est utilisé par une règle de nommage existante.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Préférer l'initialiseur de collection</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Préférer l'expression coalesce</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Réduire #regions lors de la réduction aux définitions</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Préférer la propagation nulle</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Préférer un nom de tuple explicite</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Description</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Préférence</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Implémenter une interface ou une classe abstraite</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Pour un symbole donné, seule la règle la plus élevée avec une 'Spécification' correspondante est appliquée. Toute violation du 'Style obligatoire' de cette de règle est signalée au niveau de 'Gravité' choisi.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">à la fin</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Quand vous insérez des propriétés, des événements et des méthodes, placez-les :</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">avec d'autres membres du même type</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Préférer des accolades</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">À :</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Préférer :</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">ou</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">types intégrés</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">n'importe où ailleurs</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">le type est visible dans l'expression d'assignation</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Descendre</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Monter</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Supprimer</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Choisir les membres</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Malheureusement, un processus utilisé par Visual Studio a rencontré une erreur irrécupérable. Nous vous recommandons d'enregistrer votre travail, puis de fermer et de redémarrer Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Ajouter une spécification de symbole</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Supprimer la spécification de symbole</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Ajouter l'élément</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Modifier l'élément</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Supprimer l'élément</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Ajouter une règle de nommage</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Supprimer la règle de nommage</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">Impossible d'appeler VisualStudioWorkspace.TryApplyChanges à partir d'un thread d'arrière-plan.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">préférer les propriétés de levée d'exceptions</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Durant la génération des propriétés :</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Options</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Ne plus afficher</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Préférer l'expression 'default' simple</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Préférer les noms d'éléments de tuple déduits</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Préférer les noms de membres de type anonyme déduits</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Volet d'aperçu</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Analyse</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Supprimer le code inaccessible</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Suppression</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Préférer une fonction locale à une fonction anonyme</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Préférer la déclaration de variable déconstruite</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Référence externe trouvée</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Références introuvables pour '{0}'</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">La recherche n'a donné aucun résultat</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Préférer les propriétés automatiques</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">préférer les propriétés automatiques</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Le module a été déchargé.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Activer la navigation vers des sources décompilées (expérimental)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">Votre fichier .editorconfig peut remplacer les paramètres locaux configurés sur cette page, qui s'appliquent uniquement à votre machine. Pour configurer ces paramètres afin qu'ils soient liés à votre solution, utilisez les fichiers EditorConfig. En savoir plus</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Synchroniser l'affichage de classes</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Analyse de '{0}'</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Gérer les styles de nommage</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Préférer une expression conditionnelle à 'if' avec des affectations</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Préférer une expression conditionnelle à 'if' avec des retours</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.it.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="it" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">È stato rilevato un nuovo file con estensione editorconfig nella radice della soluzione. Impostare come elemento della soluzione?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Verrà creato un nuovo spazio dei nomi</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">È necessario specificare un tipo e un nome.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Azione</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Aggiungi</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Aggiungi parametro</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Aggiungi al file _corrente</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Parametro aggiunto.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Per completare il refactoring, sono necessarie modifiche aggiuntive. Esaminare le modifiche di seguito.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Tutti i metodi</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Tutte le origini</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Consenti:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Consenti più righe vuote</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Consenti l'istruzione subito dopo il blocco</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Sempre per chiarezza</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analizzatori</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Analisi dei riferimenti al progetto...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Applica</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Applica lo schema di mapping dei tasti '{0}'</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Assembly</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Evita le istruzioni di espressione che ignorano il valore in modo implicito</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Evita i parametri inutilizzati</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Evita le assegnazioni di valori inutilizzati</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Indietro</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Ambito di analisi in background:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 bit</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 bit</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Compilazione + analisi in tempo reale (pacchetto NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Client del linguaggio di diagnostica C#/Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Calcolo dei dipendenti...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Valore del sito di chiamata:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Sito di chiamata</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Ritorno a capo + Nuova riga (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Ritorno a capo (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Categoria</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Scegliere l'operazione da eseguire sui riferimenti inutilizzati.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Stile codice</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Esecuzione di Code Analysis completata per '{0}'.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Esecuzione di Code Analysis completata per la soluzione.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">L'esecuzione di Code Analysis è stata terminata prima del completamento per '{0}'.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">L'esecuzione di Code Analysis è stata terminata prima del completamento per la soluzione.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Suggerimenti per i colori</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Colora espressioni regolari</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Commenti</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Membro contenitore</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Tipo contenitore</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Documento corrente</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Parametro corrente</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Disabilitato</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Visualizza tutti i suggerimenti quando si preme ALT+F1</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Visua_lizza suggerimenti per i nomi di parametro inline</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Visualizza suggerimenti di tipo inline</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Modifica</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Modifica {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Combinazione colori editor</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Le opzioni della combinazione colori dell'editor sono disponibili solo quando si usa un tema colori fornito con Visual Studio. È possibile configurare il tema colore nella pagina Ambiente &gt; Opzioni generali.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">L'elemento non è valido.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Abilita diagnostica 'pull' di Razor (sperimentale, richiede il riavvio)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Abilita tutte le funzionalità nei file aperti dai generatori di origine (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Abilita la registrazione dei file a scopo di diagnostica (nella cartella '%Temp%\Roslyn')</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Abilita diagnostica 'pull' (sperimentale, richiede il riavvio)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Abilitato</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Immettere un valore per il sito di chiamata o scegliere un tipo di inserimento valori diverso</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Intero repository</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Intera soluzione</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Errore</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Errore durante l'aggiornamento delle eliminazioni: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">In fase di valutazione ({0} attività in coda)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Estrai classe di base</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Fine</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Formatta documento</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Genera file con estensione editorconfig dalle impostazioni</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Evidenzia i componenti correlati sotto il cursore</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Membri implementati</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Membri di implementazione</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">In altri operatori</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Indice</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Deduci dal contesto</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Indicizzata nell'organizzazione</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Indicizzata nel repository</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margine di ereditarietà (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Suggerimenti inline (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Inserimento del valore '{0}' del sito di chiamata</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Installare gli analizzatori Roslyn consigliati da Microsoft, che offrono ulteriori funzionalità di diagnostica e correzioni per problemi comuni di sicurezza, prestazioni, affidabilità e progettazione di API</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">L'interfaccia non può contenere il campo.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Introduci variabili TODO non definite</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Origine dell'elemento</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Mantieni</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Mantieni tutte le parentesi in:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Analisi in tempo reale (estensione VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Elementi caricati</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Soluzione caricata</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Locale</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Metadati locali</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Rendi astratto '{0}'</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Rendi astratto</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Membri</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Preferenze per modificatore:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Sposta nello spazio dei nomi</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Più membri sono ereditati</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Più membri sono ereditati a riga {0}</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Il nome è in conflitto con un nome di tipo esistente.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Il nome non è un identificatore {0} valido.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Spazio dei nomi</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Spazio dei nomi: '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">campo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">variabile locale</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">funzione locale</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">metodo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">parametro</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">proprietà</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">parametro di tipo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Campo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Locale</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">metodo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parametro</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Parametro di tipo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Regole di denominazione</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Passa a '{0}'</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Mai se non necessario</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Nuovo nome di tipo:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Preferenze per nuova riga (sperimentale):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Nuova riga (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Non sono stati trovati riferimenti inutilizzati.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Metodi non pubblici</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">Nessuno</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Ometti (solo per parametri facoltativi)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Documenti aperti</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">I parametri facoltativi devono specificare un valore predefinito</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Facoltativo con valore predefinito:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Altri</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Membri sottoposti a override</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Membri di override</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Pacchetti</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Dettagli parametro</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Nome del parametro:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Informazioni sui parametri</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Tipo di parametro</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Il nome del parametro contiene caratteri non validi.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Preferenze per parametri:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Il tipo del parametro contiene caratteri non validi.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Preferenze per parentesi:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Sospeso ({0} attività in coda)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Immettere un nome di tipo</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Preferisci 'System.HashCode' in 'GetHashCode'</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Preferisci assegnazioni composte</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Preferisci operatore di indice</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Preferisci operatore di intervallo</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Preferisci campi readonly</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Preferisci l'istruzione 'using' semplice</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Preferisci espressioni booleane semplificate</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Preferisci funzioni locali statiche</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Progetti</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Recupera membri</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Refactoring Only</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Riferimento</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Espressioni regolari</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Rimuovi tutto</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Rimuovi riferimenti inutilizzati</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Rinomina {0} in {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Segnala espressioni regolari non valide</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Repository</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Richiedi:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Obbligatorio</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Richiede la presenza di 'System.HashCode' nel progetto</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Reimposta il mapping dei tasti predefinito di Visual Studio</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Esamina modifiche</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Esegui Code Analysis su {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Esecuzione di Code Analysis per '{0}'...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Esecuzione di Code Analysis per la soluzione...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Esecuzione di processi in background con priorità bassa</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Salva file con estensione editorconfig</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Impostazioni di ricerca</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Seleziona destinazione</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Seleziona _dipendenti</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Seleziona _pubblici</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Selezionare la destinazione e i membri da recuperare.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Selezionare la destinazione:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Seleziona membro</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Selezionare i membri:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Mostra il comando "Rimuovi riferimenti inutilizzati" in Esplora soluzioni (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Mostra l'elenco di completamento</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Mostra suggerimenti per tutto il resto</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Mostra i suggerimenti per la creazione implicita di oggetti</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Mostra suggerimenti per i tipi di parametro lambda</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Mostra suggerimenti per i valori letterali</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Mostra suggerimenti per variabili con tipi dedotti</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Mostra il margine di ereditarietà</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Alcuni colori della combinazione colori sono sostituiti dalle modifiche apportate nella pagina di opzioni Ambiente &gt; Tipi di carattere e colori. Scegliere `Usa impostazioni predefinite` nella pagina Tipi di carattere e colori per ripristinare tutte le personalizzazioni.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Suggerimento</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Non visualizzare suggerimenti quando il nome del parametro corrisponde alla finalità del metodo</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Non visualizzare suggerimenti quando i nomi dei parametri differiscono solo per il suffisso</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Simboli senza riferimenti</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Premi due volte TAB per inserire gli argomenti (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Spazio dei nomi di destinazione:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Il generatore '{0}' che ha generato questo file è stato rimosso dal progetto. Questo file non è più incluso nel progetto.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Il generatore '{0}' che ha generato questo file non genera più il file. Questo file non è più incluso nel progetto.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Questa azione non può essere annullata. Continuare?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Questo file è stato generato automaticamente dal generatore '{0}' e non è modificabile.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Questo è uno spazio dei nomi non valido</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Titolo</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Nome del tipo:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Il nome di tipo contiene un errore di sintassi</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Il nome di tipo non è riconosciuto</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Il nome di tipo è riconosciuto</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">Il valore inutilizzato viene assegnato in modo esplicito a una variabile locale inutilizzata</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">Il valore inutilizzato viene assegnato in modo esplicito a discard</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Aggiornamento dei riferimenti al progetto...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Aggiornamento della gravità</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Usa il processo a 64 bit per l'analisi codice (richiede il riavvio)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Usa il corpo dell'espressione per le espressioni lambda</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Usa il corpo dell'espressione per le funzioni locali</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Usa l'argomento denominato</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Valore</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">Il valore assegnato qui non viene mai usato</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Valore:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">Il valore restituito dalla chiamata viene ignorato in modo implicito</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Valore da inserire nei siti di chiamata</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Avviso</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Avviso: nome di parametro duplicato</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Avviso: il tipo non viene associato</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">È stato notato che '{0}' è stato sospeso. Reimpostare i mapping dei tasti per continuare a esplorare e a eseguire il refactoring.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Quest'area di lavoro non supporta l'aggiornamento delle opzioni di compilazione di Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">È necessario cambiare la firma</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">È necessario selezionare almeno un membro.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Il percorso contiene caratteri non validi.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Il nome file deve avere l'estensione "{0}".</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Debugger</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Determinazione della posizione del punto di interruzione...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Determinazione dei valori automatici...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Risoluzione della posizione del punto di interruzione...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Convalida della posizione del punto di interruzione...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Recupero del testo del suggerimento dati in corso...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Anteprima non disponibile</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Esegue l'override</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Sottoposto a override da</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Eredita</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Ereditato da</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implementa</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Implementato da</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">È stato aperto il numero massimo di documenti.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Non è stato possibile creare il documento nel progetto di file esterni.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">L'accesso non è valido.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">I riferimenti seguenti non sono stati trovati. {0}Individuarli e aggiungerli manualmente.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">La posizione finale deve essere maggiore o uguale alla posizione iniziale</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Valore non valido</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">'{0}' è ereditato</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}' verrà modificato in astratto.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}' verrà modificato in non statico.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}' verrà modificato in pubblico.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[generato da {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[generato]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">l'area di lavoro specificata non supporta l'annullamento di operazioni</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Aggiungi un riferimento a '{0}'</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Il tipo di evento non è valido</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Non è stato trovato il punto in cui inserire il membro</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Non è possibile rinominare elementi 'other'</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Tipo di ridenominazione sconosciuto</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Gli ID non sono supportati per questo tipo di simbolo.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Non è possibile creare un ID nodo per questo tipo di simbolo: '{0}'</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Riferimenti al progetto</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Tipi di base</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">File esterni</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Il progetto '{0}' non è stato trovato</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Il percorso della cartella nel disco non è stato trovato</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Assembly </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Eccezioni:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Membro di {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parametri:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Progetto </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Commenti:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Valori restituiti:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Riepilogo:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Parametri di tipo:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Il file esiste già</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">Nel percorso file non si possono usare parole chiave riservate</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">Il valore di DocumentPath non è valido</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Il percorso del progetto non è valido</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Il percorso non può contenere nomi file vuoti</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">L'elemento DocumentId specificato non proviene dall'area di lavoro di Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Progetto:{0} ({1}) Usare l'elenco a discesa per visualizzare e passare ad altri progetti a cui il file potrebbe appartenere.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Usare l'elenco a discesa per visualizzare e spostarsi tra altri elementi in questo file.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Progetto: {0} Usare l'elenco a discesa per visualizzare e passare ad altri progetti a cui questo file potrebbe appartenere.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">L'assembly '{0}' dell'analizzatore è stato modificato. È possibile che la diagnostica non sia corretta fino al riavvio di Visual Studio.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Origine dati tabella diagnostica C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Origine dati tabella elenco TODO C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Annulla</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Deseleziona tutto</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Estrai interfaccia</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Nome generato:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Nome nuovo _file:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Nome nuova _interfaccia:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Seleziona tutto</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Seleziona i _membri pubblici per l'interfaccia</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Accesso:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Aggiungi a file _esistente</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Cambia firma</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Crea nuovo file</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Predefinito</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Nome file:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Genera tipo</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Tipo:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Posizione:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modificatore</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Nome:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parametro</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parametri:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Anteprima firma metodo:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Anteprima modifiche riferimento</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Progetto:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Dettagli del tipo:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">Ri_muovi</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Ripristina</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">Altre informazioni su {0}</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">Gli spostamenti devono essere eseguiti nel thread in primo piano.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Riferimento a '{0}' nel progetto '{1}'</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Sconosciuto&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Riferimento dell'analizzatore a '{0}' nel progetto '{1}'</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Riferimento del progetto a '{0}' nel progetto '{1}'</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Gli assembly '{0}' e '{1}' dell'analizzatore hanno la stessa identità '{2}' ma contenuto diverso. Ne verrà caricato solo uno e gli analizzatori che usano tali assembly potrebbero non funzionare correttamente.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} riferimenti</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 riferimento</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' ha rilevato un errore ed è stato disabilitato.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Abilita</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Abilita e ignora gli errori futuri</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Nessuna modifica</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Blocco corrente</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">È in corso la determinazione del blocco corrente.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Origine dati tabella compilazione C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">L'assembly '{0}' dell'analizzatore dipende da '{1}', ma non è stato trovato. Gli assembly potrebbero non funzionare correttamente a meno che l'assembly mancante non venga aggiunto anche come riferimento all'analizzatore.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Elimina la diagnostica</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Calcolo della correzione per le eliminazioni...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Applicazione della correzione per le eliminazioni...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Rimuovi le eliminazioni</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Calcolo della correzione per la rimozione delle eliminazioni...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Applicazione della correzione per la rimozione delle eliminazioni...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Questa area di lavoro supporta l'apertura di documenti solo nel thread di UI.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Quest'area di lavoro non supporta l'aggiornamento delle opzioni di analisi di Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Sincronizza {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Sincronizzazione con {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Per migliorare le prestazioni, Visual Studio ha sospeso alcune funzionalità avanzate.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Installazione di '{0}'</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">L'installazione di '{0}' è stata completata</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">L'installazione del pacchetto non è riuscita: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Sconosciuto&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">No</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Sì</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Scegliere una specifica simboli e uno stile di denominazione.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Immettere un titolo per questa regola di denominazione.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Immettere un titolo per questo stile di denominazione.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Immettere un titolo per questa specifica simboli.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Livello di accesso (qualsiasi corrispondenza)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Maiuscole/minuscole:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">tutte minuscole</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">TUTTE MAIUSCOLE</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Nome notazione Camel</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Prima lettera maiuscola</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Nome notazione Pascal</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Gravità:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modificatori (corrispondenza esatta)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Nome:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Regola di denominazione</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Stile di denominazione</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Stile di denominazione:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Le regole di denominazione consentono di definire le modalità di denominazione di set di simboli specifici e di gestione dei simboli con nomi errati.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">Quando si assegna un nome a un simbolo, per impostazione predefinita viene usata la prima regola di denominazione corrispondente di primo livello, mentre eventuali casi speciali vengono gestiti da una regola figlio corrispondente.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Titolo per stile di denominazione:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Regola padre:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Prefisso obbligatorio:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Suffisso obbligatorio:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Identificatore di esempio:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Tipi di simboli (qualsiasi corrispondenza)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Specifica simboli</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Specifica simboli:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Titolo specifica simboli:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Separatore parole:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">esempio</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">identificatore</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Installa '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Disinstallazione di '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">La disinstallazione di '{0}' è stata completata</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Disinstalla '{0}'</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">La disinstallazione del pacchetto non è riuscita: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Si è verificato un errore durante il caricamento del progetto. Alcune funzionalità del progetto, come l'analisi della soluzione completa per il progetto in errore e i progetti che dipendono da essa, sono state disabilitate.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Il caricamento del progetto non è riuscito.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Per individuare la causa del problema, provare a eseguire le operazioni seguenti. 1. Chiudere Visual Studio 2. Aprire un prompt dei comandi per gli sviluppatori di Visual Studio 3. Impostare la variabile di ambiente "TraceDesignTime" su true (TraceDesignTime=true) 4. Eliminare la directory .vs/il file .suo 5. Riavviare Visual Studio dal prompt dei comandi da cui è stata impostata la variabile di ambiente (devenv) 6. Aprire la soluzione 7. Controllare '{0}' e cercare le attività non riuscite (FAILED)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Informazioni aggiuntive:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">L'installazione di '{0}' non è riuscita. Informazioni aggiuntive: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">La disinstallazione di '{0}' non è riuscita. Informazioni aggiuntive: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Sposta {0} sotto {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Sposta {0} sopra {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Rimuovi {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Ripristina {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Abilita di nuovo</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Altre informazioni</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Preferisci tipo di framework</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Preferisci tipo predefinito</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Copia negli Appunti</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Chiudi</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Parametri sconosciuti&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Fine dell'analisi dello stack dell'eccezione interna ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Per variabili locali, parametri e membri</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Per espressioni di accesso ai membri</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Preferisci inizializzatore di oggetto</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Preferenze per espressioni:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Guide per strutture a blocchi</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Struttura</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Mostra le guide per i costrutti a livello di codice</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Mostra le guide per i commenti e le aree del preprocessore</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Mostra le guide per i costrutti a livello di dichiarazione</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Mostra la struttura per i costrutti a livello di codice</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Mostra la struttura per i commenti e le aree del preprocessore</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Mostra la struttura per i costrutti a livello di dichiarazione</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Preferenze per variabili:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Preferisci dichiarazione di variabile inline</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Usa il corpo dell'espressione per i metodi</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Preferenze per blocchi di codice:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Usa il corpo dell'espressione per le funzioni di accesso</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Usa il corpo dell'espressione per i costruttori</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Usa il corpo dell'espressione per gli indicizzatori</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Usa il corpo dell'espressione per gli operatori</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Usa il corpo dell'espressione per le proprietà</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Alcune regole di denominazione sono incomplete. Completarle o rimuoverle.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Gestisci specifiche</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Riordina</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Gravità</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Specifica</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Stile obbligatorio</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Non è possibile eliminare questo elemento perché è già usato da una regola di denominazione esistente.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Preferisci inizializzatore di insieme</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Preferisci espressione COALESCE</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Comprimi #regions durante la compressione delle definizioni</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Preferisci propagazione di valori Null</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Preferisci nome di tupla esplicito</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Descrizione</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Preferenza</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Implementa interfaccia o classe astratta</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Per un simbolo specifico verrà applicata solo la regola di livello superiore con il valore corrispondente a 'Specifica'. Una violazione del valore specificato per 'Stile obbligatorio' in tale regola verrà segnalata con il livello specificato in 'Gravità'.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">alla fine</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Posiziona proprietà, eventi e metodi inseriti:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">con altri membri dello stesso tipo</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Preferisci parentesi graffe</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">A:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Preferisci:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">oppure</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">tipi predefiniti</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">in qualsiasi altra posizione</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">il tipo è apparente rispetto all'espressione di assegnazione</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Sposta giù</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Sposta su</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Rimuovi</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Seleziona membri</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Si è verificato un errore irreversibile in un processo usato da Visual Studio. È consigliabile salvare il lavoro e quindi chiudere e riavviare Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Aggiungi una specifica simboli</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Rimuovi specifica simboli</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Aggiungi elemento</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Modifica elemento</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Rimuovi elemento</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Aggiungi una regola di denominazione</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Rimuovi regola di denominazione</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">Non è possibile chiamare VisualStudioWorkspace.TryApplyChanges da un thread in background.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">preferisci proprietà generate</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Durante la generazione di proprietà:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Opzioni</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Non visualizzare più questo messaggio</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Preferisci l'espressione 'default' semplice</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Preferisci nomi di elemento di tupla dedotti</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Preferisci nomi di membro di tipo anonimo dedotti</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Riquadro di anteprima</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Analisi</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Applica dissolvenza a codice non eseguibile</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Dissolvenza</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Preferisci la funzione locale a quella anonima</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Preferisci dichiarazione di variabile decostruita</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">È stato trovato un riferimento esterno</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Non sono stati trovati riferimenti a '{0}'</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">La ricerca non ha restituito risultati</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Preferisci proprietà automatiche</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">preferisci proprietà automatiche</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Il modulo è stato scaricato.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Abilita lo spostamento in origini decompilate (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">Il file con estensione editorconfig potrebbe eseguire l'override delle impostazioni locali configurate in questa pagina che si applicano solo al computer locale. Per configurare queste impostazioni in modo che siano associate alla soluzione, usare file con estensione editorconfig. Altre informazioni</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Sincronizza visualizzazione classi</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Analisi di '{0}'</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Gestisci stili di denominazione</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Preferisci l'espressione condizionale a 'if' con assegnazioni</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Preferisci l'espressione condizionale a 'if' con valori restituiti</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="it" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Verrà creato un nuovo spazio dei nomi</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">È necessario specificare un tipo e un nome.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Azione</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Aggiungi</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Aggiungi parametro</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Aggiungi al file _corrente</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Parametro aggiunto.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Per completare il refactoring, sono necessarie modifiche aggiuntive. Esaminare le modifiche di seguito.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Tutti i metodi</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Tutte le origini</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Consenti:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Consenti più righe vuote</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Consenti l'istruzione subito dopo il blocco</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Sempre per chiarezza</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analizzatori</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Analisi dei riferimenti al progetto...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Applica</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Applica lo schema di mapping dei tasti '{0}'</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Assembly</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Evita le istruzioni di espressione che ignorano il valore in modo implicito</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Evita i parametri inutilizzati</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Evita le assegnazioni di valori inutilizzati</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Indietro</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Ambito di analisi in background:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 bit</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 bit</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Compilazione + analisi in tempo reale (pacchetto NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Client del linguaggio di diagnostica C#/Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Calcolo dei dipendenti...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Valore del sito di chiamata:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Sito di chiamata</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Ritorno a capo + Nuova riga (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Ritorno a capo (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Categoria</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Scegliere l'operazione da eseguire sui riferimenti inutilizzati.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Stile codice</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Esecuzione di Code Analysis completata per '{0}'.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Esecuzione di Code Analysis completata per la soluzione.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">L'esecuzione di Code Analysis è stata terminata prima del completamento per '{0}'.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">L'esecuzione di Code Analysis è stata terminata prima del completamento per la soluzione.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Suggerimenti per i colori</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Colora espressioni regolari</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Commenti</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Membro contenitore</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Tipo contenitore</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Documento corrente</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Parametro corrente</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Disabilitato</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Visualizza tutti i suggerimenti quando si preme ALT+F1</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Visua_lizza suggerimenti per i nomi di parametro inline</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Visualizza suggerimenti di tipo inline</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Modifica</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Modifica {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Combinazione colori editor</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Le opzioni della combinazione colori dell'editor sono disponibili solo quando si usa un tema colori fornito con Visual Studio. È possibile configurare il tema colore nella pagina Ambiente &gt; Opzioni generali.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">L'elemento non è valido.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Abilita diagnostica 'pull' di Razor (sperimentale, richiede il riavvio)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Abilita tutte le funzionalità nei file aperti dai generatori di origine (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Abilita la registrazione dei file a scopo di diagnostica (nella cartella '%Temp%\Roslyn')</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Abilita diagnostica 'pull' (sperimentale, richiede il riavvio)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Abilitato</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Immettere un valore per il sito di chiamata o scegliere un tipo di inserimento valori diverso</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Intero repository</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Intera soluzione</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Errore</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Errore durante l'aggiornamento delle eliminazioni: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">In fase di valutazione ({0} attività in coda)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Estrai classe di base</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Fine</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Formatta documento</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Genera file con estensione editorconfig dalle impostazioni</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Evidenzia i componenti correlati sotto il cursore</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Membri implementati</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Membri di implementazione</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">In altri operatori</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Indice</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Deduci dal contesto</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Indicizzata nell'organizzazione</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Indicizzata nel repository</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margine di ereditarietà (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Suggerimenti inline (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Inserimento del valore '{0}' del sito di chiamata</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Installare gli analizzatori Roslyn consigliati da Microsoft, che offrono ulteriori funzionalità di diagnostica e correzioni per problemi comuni di sicurezza, prestazioni, affidabilità e progettazione di API</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">L'interfaccia non può contenere il campo.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Introduci variabili TODO non definite</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Origine dell'elemento</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Mantieni</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Mantieni tutte le parentesi in:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Analisi in tempo reale (estensione VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Elementi caricati</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Soluzione caricata</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Locale</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Metadati locali</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Rendi astratto '{0}'</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Rendi astratto</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Membri</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Preferenze per modificatore:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Sposta nello spazio dei nomi</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Più membri sono ereditati</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Più membri sono ereditati a riga {0}</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Il nome è in conflitto con un nome di tipo esistente.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Il nome non è un identificatore {0} valido.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Spazio dei nomi</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Spazio dei nomi: '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">campo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">variabile locale</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">funzione locale</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">metodo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">parametro</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">proprietà</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">parametro di tipo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Campo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Locale</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">metodo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parametro</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Parametro di tipo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Regole di denominazione</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Passa a '{0}'</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Mai se non necessario</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Nuovo nome di tipo:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Preferenze per nuova riga (sperimentale):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Nuova riga (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Non sono stati trovati riferimenti inutilizzati.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Metodi non pubblici</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">Nessuno</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Ometti (solo per parametri facoltativi)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Documenti aperti</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">I parametri facoltativi devono specificare un valore predefinito</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Facoltativo con valore predefinito:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Altri</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Membri sottoposti a override</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Membri di override</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Pacchetti</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Dettagli parametro</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Nome del parametro:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Informazioni sui parametri</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Tipo di parametro</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Il nome del parametro contiene caratteri non validi.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Preferenze per parametri:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Il tipo del parametro contiene caratteri non validi.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Preferenze per parentesi:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Sospeso ({0} attività in coda)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Immettere un nome di tipo</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Preferisci 'System.HashCode' in 'GetHashCode'</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Preferisci assegnazioni composte</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Preferisci operatore di indice</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Preferisci operatore di intervallo</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Preferisci campi readonly</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Preferisci l'istruzione 'using' semplice</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Preferisci espressioni booleane semplificate</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Preferisci funzioni locali statiche</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Progetti</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Recupera membri</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Refactoring Only</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Riferimento</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Espressioni regolari</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Rimuovi tutto</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Rimuovi riferimenti inutilizzati</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Rinomina {0} in {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Segnala espressioni regolari non valide</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Repository</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Richiedi:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Obbligatorio</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Richiede la presenza di 'System.HashCode' nel progetto</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Reimposta il mapping dei tasti predefinito di Visual Studio</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Esamina modifiche</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Esegui Code Analysis su {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Esecuzione di Code Analysis per '{0}'...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Esecuzione di Code Analysis per la soluzione...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Esecuzione di processi in background con priorità bassa</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Salva file con estensione editorconfig</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Impostazioni di ricerca</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Seleziona destinazione</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Seleziona _dipendenti</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Seleziona _pubblici</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Selezionare la destinazione e i membri da recuperare.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Selezionare la destinazione:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Seleziona membro</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Selezionare i membri:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Mostra il comando "Rimuovi riferimenti inutilizzati" in Esplora soluzioni (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Mostra l'elenco di completamento</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Mostra suggerimenti per tutto il resto</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Mostra i suggerimenti per la creazione implicita di oggetti</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Mostra suggerimenti per i tipi di parametro lambda</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Mostra suggerimenti per i valori letterali</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Mostra suggerimenti per variabili con tipi dedotti</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Mostra il margine di ereditarietà</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Alcuni colori della combinazione colori sono sostituiti dalle modifiche apportate nella pagina di opzioni Ambiente &gt; Tipi di carattere e colori. Scegliere `Usa impostazioni predefinite` nella pagina Tipi di carattere e colori per ripristinare tutte le personalizzazioni.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Suggerimento</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Non visualizzare suggerimenti quando il nome del parametro corrisponde alla finalità del metodo</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Non visualizzare suggerimenti quando i nomi dei parametri differiscono solo per il suffisso</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Simboli senza riferimenti</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Premi due volte TAB per inserire gli argomenti (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Spazio dei nomi di destinazione:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Il generatore '{0}' che ha generato questo file è stato rimosso dal progetto. Questo file non è più incluso nel progetto.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Il generatore '{0}' che ha generato questo file non genera più il file. Questo file non è più incluso nel progetto.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Questa azione non può essere annullata. Continuare?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Questo file è stato generato automaticamente dal generatore '{0}' e non è modificabile.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Questo è uno spazio dei nomi non valido</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Titolo</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Nome del tipo:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Il nome di tipo contiene un errore di sintassi</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Il nome di tipo non è riconosciuto</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Il nome di tipo è riconosciuto</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">Il valore inutilizzato viene assegnato in modo esplicito a una variabile locale inutilizzata</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">Il valore inutilizzato viene assegnato in modo esplicito a discard</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Aggiornamento dei riferimenti al progetto...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Aggiornamento della gravità</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Usa il processo a 64 bit per l'analisi codice (richiede il riavvio)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Usa il corpo dell'espressione per le espressioni lambda</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Usa il corpo dell'espressione per le funzioni locali</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Usa l'argomento denominato</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Valore</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">Il valore assegnato qui non viene mai usato</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Valore:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">Il valore restituito dalla chiamata viene ignorato in modo implicito</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Valore da inserire nei siti di chiamata</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Avviso</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Avviso: nome di parametro duplicato</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Avviso: il tipo non viene associato</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">È stato notato che '{0}' è stato sospeso. Reimpostare i mapping dei tasti per continuare a esplorare e a eseguire il refactoring.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Quest'area di lavoro non supporta l'aggiornamento delle opzioni di compilazione di Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">È necessario cambiare la firma</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">È necessario selezionare almeno un membro.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Il percorso contiene caratteri non validi.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Il nome file deve avere l'estensione "{0}".</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Debugger</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Determinazione della posizione del punto di interruzione...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Determinazione dei valori automatici...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Risoluzione della posizione del punto di interruzione...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Convalida della posizione del punto di interruzione...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Recupero del testo del suggerimento dati in corso...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Anteprima non disponibile</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Esegue l'override</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Sottoposto a override da</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Eredita</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Ereditato da</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implementa</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Implementato da</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">È stato aperto il numero massimo di documenti.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Non è stato possibile creare il documento nel progetto di file esterni.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">L'accesso non è valido.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">I riferimenti seguenti non sono stati trovati. {0}Individuarli e aggiungerli manualmente.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">La posizione finale deve essere maggiore o uguale alla posizione iniziale</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Valore non valido</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">'{0}' è ereditato</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}' verrà modificato in astratto.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}' verrà modificato in non statico.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}' verrà modificato in pubblico.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[generato da {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[generato]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">l'area di lavoro specificata non supporta l'annullamento di operazioni</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Aggiungi un riferimento a '{0}'</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Il tipo di evento non è valido</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Non è stato trovato il punto in cui inserire il membro</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Non è possibile rinominare elementi 'other'</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Tipo di ridenominazione sconosciuto</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Gli ID non sono supportati per questo tipo di simbolo.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Non è possibile creare un ID nodo per questo tipo di simbolo: '{0}'</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Riferimenti al progetto</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Tipi di base</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">File esterni</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Il progetto '{0}' non è stato trovato</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Il percorso della cartella nel disco non è stato trovato</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Assembly </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Eccezioni:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Membro di {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parametri:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Progetto </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Commenti:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Valori restituiti:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Riepilogo:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Parametri di tipo:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Il file esiste già</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">Nel percorso file non si possono usare parole chiave riservate</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">Il valore di DocumentPath non è valido</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Il percorso del progetto non è valido</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Il percorso non può contenere nomi file vuoti</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">L'elemento DocumentId specificato non proviene dall'area di lavoro di Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Progetto:{0} ({1}) Usare l'elenco a discesa per visualizzare e passare ad altri progetti a cui il file potrebbe appartenere.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Usare l'elenco a discesa per visualizzare e spostarsi tra altri elementi in questo file.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Progetto: {0} Usare l'elenco a discesa per visualizzare e passare ad altri progetti a cui questo file potrebbe appartenere.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">L'assembly '{0}' dell'analizzatore è stato modificato. È possibile che la diagnostica non sia corretta fino al riavvio di Visual Studio.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Origine dati tabella diagnostica C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Origine dati tabella elenco TODO C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Annulla</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Deseleziona tutto</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Estrai interfaccia</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Nome generato:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Nome nuovo _file:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Nome nuova _interfaccia:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Seleziona tutto</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Seleziona i _membri pubblici per l'interfaccia</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Accesso:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Aggiungi a file _esistente</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Cambia firma</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Crea nuovo file</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Predefinito</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Nome file:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Genera tipo</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Tipo:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Posizione:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modificatore</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Nome:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parametro</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parametri:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Anteprima firma metodo:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Anteprima modifiche riferimento</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Progetto:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Dettagli del tipo:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">Ri_muovi</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Ripristina</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">Altre informazioni su {0}</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">Gli spostamenti devono essere eseguiti nel thread in primo piano.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Riferimento a '{0}' nel progetto '{1}'</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Sconosciuto&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Riferimento dell'analizzatore a '{0}' nel progetto '{1}'</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Riferimento del progetto a '{0}' nel progetto '{1}'</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Gli assembly '{0}' e '{1}' dell'analizzatore hanno la stessa identità '{2}' ma contenuto diverso. Ne verrà caricato solo uno e gli analizzatori che usano tali assembly potrebbero non funzionare correttamente.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} riferimenti</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 riferimento</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' ha rilevato un errore ed è stato disabilitato.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Abilita</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Abilita e ignora gli errori futuri</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Nessuna modifica</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Blocco corrente</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">È in corso la determinazione del blocco corrente.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Origine dati tabella compilazione C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">L'assembly '{0}' dell'analizzatore dipende da '{1}', ma non è stato trovato. Gli assembly potrebbero non funzionare correttamente a meno che l'assembly mancante non venga aggiunto anche come riferimento all'analizzatore.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Elimina la diagnostica</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Calcolo della correzione per le eliminazioni...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Applicazione della correzione per le eliminazioni...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Rimuovi le eliminazioni</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Calcolo della correzione per la rimozione delle eliminazioni...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Applicazione della correzione per la rimozione delle eliminazioni...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Questa area di lavoro supporta l'apertura di documenti solo nel thread di UI.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Quest'area di lavoro non supporta l'aggiornamento delle opzioni di analisi di Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Sincronizza {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Sincronizzazione con {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Per migliorare le prestazioni, Visual Studio ha sospeso alcune funzionalità avanzate.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Installazione di '{0}'</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">L'installazione di '{0}' è stata completata</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">L'installazione del pacchetto non è riuscita: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Sconosciuto&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">No</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Sì</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Scegliere una specifica simboli e uno stile di denominazione.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Immettere un titolo per questa regola di denominazione.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Immettere un titolo per questo stile di denominazione.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Immettere un titolo per questa specifica simboli.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Livello di accesso (qualsiasi corrispondenza)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Maiuscole/minuscole:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">tutte minuscole</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">TUTTE MAIUSCOLE</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Nome notazione Camel</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Prima lettera maiuscola</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Nome notazione Pascal</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Gravità:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modificatori (corrispondenza esatta)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Nome:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Regola di denominazione</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Stile di denominazione</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Stile di denominazione:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Le regole di denominazione consentono di definire le modalità di denominazione di set di simboli specifici e di gestione dei simboli con nomi errati.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">Quando si assegna un nome a un simbolo, per impostazione predefinita viene usata la prima regola di denominazione corrispondente di primo livello, mentre eventuali casi speciali vengono gestiti da una regola figlio corrispondente.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Titolo per stile di denominazione:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Regola padre:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Prefisso obbligatorio:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Suffisso obbligatorio:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Identificatore di esempio:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Tipi di simboli (qualsiasi corrispondenza)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Specifica simboli</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Specifica simboli:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Titolo specifica simboli:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Separatore parole:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">esempio</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">identificatore</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Installa '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Disinstallazione di '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">La disinstallazione di '{0}' è stata completata</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Disinstalla '{0}'</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">La disinstallazione del pacchetto non è riuscita: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Si è verificato un errore durante il caricamento del progetto. Alcune funzionalità del progetto, come l'analisi della soluzione completa per il progetto in errore e i progetti che dipendono da essa, sono state disabilitate.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Il caricamento del progetto non è riuscito.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Per individuare la causa del problema, provare a eseguire le operazioni seguenti. 1. Chiudere Visual Studio 2. Aprire un prompt dei comandi per gli sviluppatori di Visual Studio 3. Impostare la variabile di ambiente "TraceDesignTime" su true (TraceDesignTime=true) 4. Eliminare la directory .vs/il file .suo 5. Riavviare Visual Studio dal prompt dei comandi da cui è stata impostata la variabile di ambiente (devenv) 6. Aprire la soluzione 7. Controllare '{0}' e cercare le attività non riuscite (FAILED)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Informazioni aggiuntive:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">L'installazione di '{0}' non è riuscita. Informazioni aggiuntive: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">La disinstallazione di '{0}' non è riuscita. Informazioni aggiuntive: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Sposta {0} sotto {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Sposta {0} sopra {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Rimuovi {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Ripristina {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Abilita di nuovo</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Altre informazioni</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Preferisci tipo di framework</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Preferisci tipo predefinito</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Copia negli Appunti</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Chiudi</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Parametri sconosciuti&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Fine dell'analisi dello stack dell'eccezione interna ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Per variabili locali, parametri e membri</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Per espressioni di accesso ai membri</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Preferisci inizializzatore di oggetto</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Preferenze per espressioni:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Guide per strutture a blocchi</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Struttura</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Mostra le guide per i costrutti a livello di codice</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Mostra le guide per i commenti e le aree del preprocessore</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Mostra le guide per i costrutti a livello di dichiarazione</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Mostra la struttura per i costrutti a livello di codice</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Mostra la struttura per i commenti e le aree del preprocessore</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Mostra la struttura per i costrutti a livello di dichiarazione</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Preferenze per variabili:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Preferisci dichiarazione di variabile inline</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Usa il corpo dell'espressione per i metodi</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Preferenze per blocchi di codice:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Usa il corpo dell'espressione per le funzioni di accesso</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Usa il corpo dell'espressione per i costruttori</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Usa il corpo dell'espressione per gli indicizzatori</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Usa il corpo dell'espressione per gli operatori</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Usa il corpo dell'espressione per le proprietà</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Alcune regole di denominazione sono incomplete. Completarle o rimuoverle.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Gestisci specifiche</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Riordina</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Gravità</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Specifica</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Stile obbligatorio</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Non è possibile eliminare questo elemento perché è già usato da una regola di denominazione esistente.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Preferisci inizializzatore di insieme</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Preferisci espressione COALESCE</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Comprimi #regions durante la compressione delle definizioni</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Preferisci propagazione di valori Null</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Preferisci nome di tupla esplicito</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Descrizione</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Preferenza</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Implementa interfaccia o classe astratta</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Per un simbolo specifico verrà applicata solo la regola di livello superiore con il valore corrispondente a 'Specifica'. Una violazione del valore specificato per 'Stile obbligatorio' in tale regola verrà segnalata con il livello specificato in 'Gravità'.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">alla fine</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Posiziona proprietà, eventi e metodi inseriti:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">con altri membri dello stesso tipo</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Preferisci parentesi graffe</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">A:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Preferisci:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">oppure</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">tipi predefiniti</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">in qualsiasi altra posizione</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">il tipo è apparente rispetto all'espressione di assegnazione</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Sposta giù</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Sposta su</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Rimuovi</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Seleziona membri</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Si è verificato un errore irreversibile in un processo usato da Visual Studio. È consigliabile salvare il lavoro e quindi chiudere e riavviare Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Aggiungi una specifica simboli</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Rimuovi specifica simboli</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Aggiungi elemento</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Modifica elemento</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Rimuovi elemento</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Aggiungi una regola di denominazione</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Rimuovi regola di denominazione</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">Non è possibile chiamare VisualStudioWorkspace.TryApplyChanges da un thread in background.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">preferisci proprietà generate</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Durante la generazione di proprietà:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Opzioni</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Non visualizzare più questo messaggio</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Preferisci l'espressione 'default' semplice</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Preferisci nomi di elemento di tupla dedotti</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Preferisci nomi di membro di tipo anonimo dedotti</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Riquadro di anteprima</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Analisi</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Applica dissolvenza a codice non eseguibile</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Dissolvenza</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Preferisci la funzione locale a quella anonima</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Preferisci dichiarazione di variabile decostruita</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">È stato trovato un riferimento esterno</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Non sono stati trovati riferimenti a '{0}'</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">La ricerca non ha restituito risultati</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Preferisci proprietà automatiche</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">preferisci proprietà automatiche</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Il modulo è stato scaricato.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Abilita lo spostamento in origini decompilate (sperimentale)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">Il file con estensione editorconfig potrebbe eseguire l'override delle impostazioni locali configurate in questa pagina che si applicano solo al computer locale. Per configurare queste impostazioni in modo che siano associate alla soluzione, usare file con estensione editorconfig. Altre informazioni</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Sincronizza visualizzazione classi</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Analisi di '{0}'</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Gestisci stili di denominazione</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Preferisci l'espressione condizionale a 'if' con assegnazioni</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Preferisci l'espressione condizionale a 'if' con valori restituiti</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.ja.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ja" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">新しい .editorconfig ファイルがソリューションのルートで検出されました。ソリューション項目にしますか?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">新しい名前空間が作成されます</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">種類と名前を指定する必要があります。</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">操作</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">追加(_A)</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">パラメーターの追加</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">現在のファイルに追加(_C)</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">追加されたパラメーター。</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">リファクタリングを完了するには、追加的な変更が必要です。下記の変更内容を確認してください。</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">すべてのメソッド</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">すべてのソース</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">許可:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">複数の空白行を許可する</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">ブロックの直後にステートメントを許可する</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">わかりやすくするために常に</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">アナライザー</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">プロジェクト参照を分析しています...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">適用</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">'{0}' のキー マップ スキームを適用します</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">アセンブリ</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">値を暗黙的に無視する式ステートメントを指定しないでください</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">使用されないパラメーターを指定しないでください</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">使用されない値の代入を指定しないでください</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">戻る</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">バックグラウンドの分析スコープ:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 ビット</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 ビット</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">ビルド + ライブ分析 (NuGet パッケージ)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">C#/Visual Basic 診断言語クライアント</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">依存を計算しています...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">呼び出しサイトの値:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">呼び出しサイト</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">復帰 + 改行 (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">復帰 (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">カテゴリ</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">未使用の参照に対して実行する操作を選択します。</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">コード スタイル</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">'{0}' のコード分析が完了しました。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">ソリューションのコード分析が完了しました。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">コード分析が、'{0}' の完了前に終了しました。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">コード分析が、ソリューションでの完了前に終了しました。</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">色のヒント</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">正規表現をカラー化</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">コメント</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">含んでいるメンバー</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">含んでいる型</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">現在のドキュメント</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">現在のパラメーター</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">無効</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Alt+F1 を押しながらすべてのヒントを表示する</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">インライン パラメーター名のヒントを表示する(_L)</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">インライン型のヒントを表示する</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">編集(_E)</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">{0} の編集</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">エディターの配色</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">エディターの配色オプションは、Visual Studio にバンドルされている配色テーマを使用している場合にのみ使用できます。配色テーマは、[環境] &gt; [全般] オプション ページで構成できます。</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">要素が有効ではありません。</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Razor 'pull' 診断を有効にする (試験段階、再起動が必要)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">ソース ジェネレーターから開いたファイル内のすべての機能を有効にする (試験段階)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">診断のファイル ログを有効にする (' %Temp%/Roslyn ' フォルダーにログインしています)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">'pull' 診断を有効にする (試験段階、再起動が必要)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">有効</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">呼び出しサイトの値を入力するか、別の値の挿入の種類を選択してください</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">リポジトリ全体</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">ソリューション全体</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">エラー</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">抑制の更新でエラーが発生しました: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">評価中 ({0} 個のタスクがキューにあります)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">基底クラスの抽出</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">終了</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">ドキュメントのフォーマット</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">設定から .editorconfig ファイルを生成</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">カーソルの下にある関連コンポーネントをハイライトする</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">実装されたメンバー</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">メンバーを実装中</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">その他の演算子内で</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">インデックス</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">コンテキストから推論する</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">組織内でインデックス付け</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">リポジトリ内でインデックス付け</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">継承の余白 (試験段階)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">インラインのヒント (試験段階)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">呼び出しサイトの値 "{0}" を挿入しています</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Microsoft で推奨されている Roslyn アナライザーをインストールします。これにより、一般的な API の設計、セキュリティ、パフォーマンス、信頼性の問題に対する追加の診断と修正が提供されます</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">インターフェイスにフィールドを含めることはできません。</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">未定義の TODO 変数の導入</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">項目の送信元</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">保持</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">すべてのかっこを保持:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">種類</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">ライブ分析 (VSIX 拡張機能)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">読み込まれた項目</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">読み込まれたソリューション</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">ローカル</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">ローカル メタデータ</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">'{0}' を抽象化する</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">抽象化する</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">メンバー</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">修飾子設定:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">名前空間に移動します</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">複数のメンバーが継承済み</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">複数のメンバーが行 {0} に継承されています</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">名前が既存の型名と競合します。</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">名前が有効な {0} 識別子ではありません。</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">名前空間</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">名前空間: '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">フィールド</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">ローカル</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">ローカル関数</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">メソッド</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">パラメーター</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">プロパティ</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">型パラメーター</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">フィールド</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">ローカル</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">メソッド</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">パラメーター</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">型パラメーター</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">名前付けルール</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">'{0}' に移動する</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">不必要なら保持しない</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">新しい型名:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">改行設定 (試験段階):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">改行 (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">未使用の参照が見つかりませんでした。</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">パブリックでないメソッド</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">なし</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">省略 (省略可能なパラメーターの場合のみ)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">開かれているドキュメント</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">省略可能なパラメーターには、既定値を指定する必要があります</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">既定値を含むオプション:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">その他</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">上書きされたメンバー</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">メンバーを上書き中</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">パッケージ</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">パラメーターの詳細</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">パラメーター名:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">パラメーター情報</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">パラメーターの種類</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">パラメーター名に無効な文字が含まれています。</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">パラメーターの優先順位:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">パラメーターの種類に無効な文字が含まれています。</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">かっこの優先順位:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">一時停止中 ({0} 個のタスクがキューにあります)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">型の名前を入力してください</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">'GetHashCode' の 'System.HashCode' を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">複合代入を優先</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">インデックス演算子を優先</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">範囲演算子を優先</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">readonly フィールドを優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">単純な 'using' ステートメントを優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">単純なブール式を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">静的ローカル関数を優先する</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">プロジェクト</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">メンバーをプルアップ</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">リファクタリングのみ</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">参照</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">正規表現</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">すべて削除</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">未使用の参照を削除する</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">{0} の名前を {1} に変更</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">無効な正規表現を報告</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">リポジトリ</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">必要:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">必須</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">'System.HashCode' がプロジェクトに存在する必要があります</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Visual Studio の既定のキーマップをリセットします</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">変更のプレビュー</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">{0} で Code Analysis を実行</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">'{0}' のコード分析を実行しています...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">ソリューションのコード分析を実行しています...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">優先度の低いバックグラウンド プロセスを実行しています</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">.editorconfig ファイルの保存</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">検索設定</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">宛先の選択</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">依存の選択(_D)</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">パブリックの選択(_P)</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">プルアップする宛先とメンバーを選択します。</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">宛先の選択:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">メンバーの選択</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">メンバーの選択:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">ソリューション エクスプローラーで [未使用の参照を削除する] コマンドを表示する (試験段階)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">入力候補一覧の表示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">その他すべてのヒントを表示する</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">暗黙的なオブジェクト作成のヒントを表示します</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">ラムダ パラメーター型のヒントを表示する</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">リテラルのヒントを表示する</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">推論された型の変数のヒントを表示する</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">継承の余白を表示する</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">一部の配色パターンの色は、[環境] &gt; [フォントおよび色] オプション ページで行われた変更によって上書きされます。[フォントおよび色] オプション ページで [既定値を使用] を選択すると、すべてのカスタマイズが元に戻ります。</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">提案事項</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">パラメーター名がメソッドの意図と一致する場合にヒントを非表示にする</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">パラメーター名のサフィックスのみが異なる場合にヒントを非表示にする</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">参照のないシンボル</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">タブを 2 回押して引数を挿入する (試験段階)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">ターゲット名前空間:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">このファイルの生成元であるジェネレーター '{0}' がプロジェクトから削除されました。このファイルはもうプロジェクトに含まれていません。</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">このファイルの生成元であるジェネレーター '{0}' で、このファイルの生成が停止しました。このファイルはもうプロジェクトに含まれていません。</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">この操作を元に戻すことはできません。続行しますか?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">このファイルはジェネレーター '{0}' によって自動生成されているため、編集できません。</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">これは無効な名前空間です</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">タイトル</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">種類の名前:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">型名に構文エラーがあります</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">型名が認識されません</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">型名が認識されます</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">未使用のローカルに未使用の値が明示的に割り当てられます</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">未使用の値が discard に明示的に割り当てられます</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">プロジェクト参照を更新しています...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">重要度を更新しています</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">コード分析に 64 ビット プロセスを使用する (再起動が必要)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">ラムダに式本体を使用します</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">ローカル関数に式本体を使用します</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">名前付き引数を使用する</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">値</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">ここで割り当てた値は一度も使用されません</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">値:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">呼び出しによって返された値が暗黙的に無視されます</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">呼び出しサイトで挿入する値</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">警告</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">警告: パラメーター名が重複しています</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">警告: 型はバインドしていません</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">'{0}' が中断されました。キーマップをリセットして、移動とリファクターを続行してください。</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">このワークスペースでは、Visual Basic コンパイル オプションの更新がサポートされていません。</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">署名を変更する必要があります</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">少なくとも 1 人のメンバーを選択する必要があります。</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">パスに無効な文字があります。</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">ファイル名には拡張子 "{0}" が必要です。</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">デバッガー</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">ブレークポイントの位置を特定しています...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">自動変数を特定しています...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">ブレークポイントの位置を解決しています...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">ブレークポイントの場所を検証しています...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">データヒント テキストを取得しています...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">プレビューを利用できません</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">オーバーライド</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">オーバーライド元</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">継承</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">継承先</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">実装</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">実装先</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">最大数のドキュメントが開いています。</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">その他のファイル プロジェクトにドキュメントを作成できませんでした。</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">アクセスが無効です。</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">次の参照が見つかりませんでした。{0}これらを検索して手動で追加してください。</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">終了位置は、開始位置以上の値にする必要があります</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">有効な値ではありません</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">'{0}' が継承済み</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}' は抽象に変更されます。</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}' は非静的に変更されます。</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}' はパブリックに変更されます。</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[{0} により生成]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[生成]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">指定されたワークスペースは元に戻す操作をサポートしていません</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">参照を '{0}' に追加</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">イベントの種類が無効です</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">メンバーを挿入する場所を見つけることができません</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">other' 要素の名前は変更できません</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">名前変更の型が不明です</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">ID は、このシンボルの種類ではサポートされていません。</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">このシンボルの種類のノード ID を作成することはできません: '{0}'</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">プロジェクトの参照</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">基本型</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">その他のファイル</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">プロジェクト '{0}' が見つかりませんでした</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">ディスクにフォルダーの場所が見つかりませんでした</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">アセンブリ </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">例外:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">{0} のメンバー</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">パラメーター:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">プロジェクト </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">コメント:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">戻り値:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">概要:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">型パラメーター:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">ファイルは既に存在します</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">ファイル パスには予約されたキーワードを使用できません</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath が無効です</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">プロジェクトのパスが無効です</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">パスのファイル名を空にすることはできません</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">指定された DocumentId は、Visual Studio のワークスペースからのものではありません。</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">プロジェクト: {0} ({1}) ドロップダウンを使用して、このファイルが属している可能性のある他のプロジェクトを表示し、それらのプロジェクトに切り替えます。</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} ドロップダウンを使用して、このファイル内の他の項目を表示し、そこに移動します。</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">プロジェクト: {0} ドロップダウンを使用して、このファイルが属している可能性のある他のプロジェクトを表示し、それらのプロジェクトに切り替えます。</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">アナライザー アセンブリ '{0}' が変更されました。Visual Studio を再起動するまで正しい診断ができない可能性があります。</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">C#/VB 診断テーブル データ ソース</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">C#/VB Todo リスト テーブル データ ソース</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">キャンセル</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">すべて選択解除(_D)</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">インターフェイスの抽出</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">生成された名前:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">新しいファイル名(_F):</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">新しいインターフェイス名(_I):</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">すべて選択(_S)</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">インターフェイスを形成するパブリック メンバーを選択する(_M)</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">アクセス(_A):</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">既存ファイルに追加(_E)</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">署名の変更</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">新しいファイルの作成(_C)</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">既定</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">ファイル名:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">型の生成</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">種類(_K):</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">場所:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">修飾子</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">名前:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">パラメーター</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">パラメーター:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">メソッド シグネチャのプレビュー:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">参照の変更のプレビュー</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">プロジェクト(_P):</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">型</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">型の詳細:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">削除(_M)</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">復元(_R)</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">{0} の詳細</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">ナビゲーションは、フォアグラウンドのスレッドで行う必要があります。</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">プロジェクト '{1}' 内の '{0}' に対する参照</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;不明&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">プロジェクト '{1}' 内の '{0}' に対するアナライザー参照</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">プロジェクト '{1}' 内の '{0}' に対するプロジェクト参照</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">アナライザー アセンブリ '{0}' と '{1}' は両方とも ID が '{2}' ですが、内容が異なります。読み込まれるのは 1 つだけです。これらのアセンブリを使用するアナライザーは正常に実行されない可能性があります。</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} 個の参照</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 個の参照</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' でエラーが生じ、無効になりました。</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">有効にする</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">有効化して今後のエラーを無視する</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">変更なし</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">現在のブロック</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">現在のブロックを特定しています。</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">C#/VB ビルド テーブル データ ソース</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">アナライザー アセンブリ '{0}' は '{1}' に依存しますが、見つかりませんでした。欠落しているアセンブリがアナライザー参照として追加されない限り、アナライザーを正常に実行できない可能性があります。</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">診断を抑制する</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">抑制の修正を計算しています...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">抑制の修正を適用しています...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">抑制の削除</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">抑制の削除の修正を計算しています...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">抑制の削除の修正を適用しています...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">このワークスペースでは、UI スレッドでドキュメントを開くことしかできません。</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">このワークスペースでは、Visual Basic の解析オプションの更新はサポートされていません。</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">{0} を同期する</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">{0} と同期しています...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio は、パフォーマンス向上のため一部の高度な機能を中断しました。</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">'{0}' をインストールしています</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">'{0}' のインストールが完了しました</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">パッケージをインストールできませんでした: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;不明&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">いいえ</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">はい</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">シンボル仕様と名前付けスタイルを選択します。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">この名前付けルールのタイトルを入力してください。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">この名前付けスタイルのタイトルを入力してください。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">このシンボル仕様のタイトルを入力してください。</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">アクセシビリティ (任意のレベルと一致できます)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">大文字化:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">すべて小文字(all lower)</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">すべて大文字(ALL UPPER)</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">キャメル ケース名</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">先頭文字を大文字にする</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">パスカル ケース名</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">重要度:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">修飾子 (すべてと一致する必要があります)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">名前:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">名前付けルール</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">名前付けスタイル</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">名前付けスタイル:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">名前付けルールを使用すると、特定のシンボル セットの名前付け方法と、正しく名前付けされていないシンボルの処理方法を定義できます。</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">シンボルに名前を付けるときには、最初に一致するトップレベルの名前付けルールが既定で使用されますが、特殊なケースの場合は一致する子ルールによって処理されます。</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">名前付けスタイルのタイトル:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">親規則:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">必要なプレフィックス:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">必要なサフィックス:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">サンプル識別子:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">シンボルの種類 (任意のものと一致できます)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">シンボル仕様</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">シンボル仕様:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">シンボル仕様のタイトル:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">単語の区切り記号:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">例</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">識別子</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">'{0}' をインストールする</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">'{0}' アンインストールしています</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">'{0}' のアンインストールが完了しました</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">'{0}' をアンインストールする</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">パッケージをアンインストールできませんでした: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">プロジェクトの読み込み中にエラーが発生しました。失敗したプロジェクトとそれに依存するプロジェクトの完全なソリューション解析など、一部のプロジェクト機能が使用できなくなりました。</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">プロジェクトの読み込みに失敗しました。</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">この問題の原因を確認するには、次をお試しください。 1. Visual Studio を閉じる 2. Visual Studio 開発者コマンド プロンプトを開く 3. 環境変数 "TraceDesignTime" を true に設定する (set TraceDesignTime=true) 4. .vs directory/.suo ファイルを削除する 5. 環境変数 (devenv) を設定したコマンド プロンプトから VS を再起動する 6. ソリューションを開く 7. '{0}' を確認し、失敗したタスク (FAILED) を探す</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">追加情報:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">'{0}' をインストールできませんでした。 追加情報: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">'{0}' をアンインストールできませんでした。 追加情報: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">{0} を {1} の下に移動する</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">{0} を {1} の上に移動する</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">{0} の削除</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">{0} を復元する</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">再有効化</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">詳細を表示</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">フレームワークの型を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">定義済みの型を優先する</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">クリップボードにコピー</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">閉じる</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;不明なパラメーター&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- 内部例外のスタック トレースの終わり ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">ローカル、パラメーター、メンバーの場合</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">メンバー アクセス式の場合</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">オブジェクト初期化子を優先する</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">式の優先順位:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">ブロック構造のガイド</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">アウトライン</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">コード レベルのコンストラクトのガイドを表示する</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">コメントとプリプロセッサ領域のガイドを表示する</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">宣言レベルのコンストラクトのガイドを表示する</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">コード レベルのコンストラクトのアウトラインを表示する</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">コメントとプリプロセッサ領域のアウトラインを表示する</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">宣言レベルのコンストラクトのアウトラインを表示する</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">変数の優先順位:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">インライン変数宣言を優先する</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">メソッドに式本体を使用する</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">コード ブロックの優先順位:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">アクセサーに式本体を使用する</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">コンストラクターに式本体を使用する</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">インデクサーに式本体を使用する</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">オペレーターに式本体を使用する</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">プロパティに式本体を使用する</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">一部の名前付けルールが不完全です。不完全なルールを完成させるか削除してください。</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">仕様の管理</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">並べ替え</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">重要度</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">仕様</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">必要なスタイル</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">このアイテムは既存の名前付けルールで使用されているため、削除できませんでした。</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">コレクション初期化子を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">合体式を優先する</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">定義を折りたたむときに #regions を折りたたむ</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">null 値の反映を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">明示的なタプル名を優先します</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">説明</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">優先順位</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">インターフェイスまたは抽象クラスの実装</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">指定されたシンボルには、一致する '仕様' を含む最上位のルールのみが適用されます。そのルールの '必要なスタイル' の違反は、選択した '重要度' レベルで報告されます。</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">末尾</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">プロパティ、イベント、メソッドを挿入する際には、次の場所に挿入します:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">同じ種類の他のメンバーと共に</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">波かっこを優先します</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">非優先:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">優先:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">または</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">組み込み型</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">他のすべての場所</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">型は代入式から明確</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">下へ移動</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">上へ移動</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">削除</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">メンバーの選択</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Visual Studio で使用されたプロセスで、修復不可能なエラーが発生しました。作業内容を保存してから Visual Studio を終了し、再起動してください。</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">シンボル仕様の追加</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">シンボル仕様の削除</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">項目の追加</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">項目の編集</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">項目の削除</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">名前付けルールの追加</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">名前付けルールの削除</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">VisualStudioWorkspace.TryApplyChanges をバックグラウンド スレッドから呼び出すことはできません。</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">スロー プロパティを優先する</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">プロパティの生成時:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">オプション</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">今後は表示しない</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">単純な 'default' 式を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">推定されたタプル要素の名前を優先します</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">推定された匿名型のメンバー名を優先します</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">プレビュー ウィンドウ</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">解析</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">到達できないコードをフェードアウトします</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">フェード</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">匿名関数よりローカル関数を優先します</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">分解された変数宣言を優先する</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">外部参照が見つかりました</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">'{0}' の参照は見つかりませんでした</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">一致する検索結果はありません</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">自動プロパティを優先する</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">自動プロパティを優先する</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">モジュールがアンロードされました。</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">逆コンパイルされたソースへのナビゲーションを有効にする (試験段階)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">このページに構成されているローカル設定 (ご使用のマシンにのみ適用される) が .editorconfig ファイルによって上書きされる可能性があります。これらの設定をソリューション全体に適用するよう構成するには、EditorConfig ファイルを使用します。詳細情報</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">クラス ビューの同期</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">'{0}' の分析</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">名前付けスタイルを管理する</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">代入のある 'if' より条件式を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">戻り値のある 'if' より条件式を優先する</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ja" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">新しい名前空間が作成されます</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">種類と名前を指定する必要があります。</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">操作</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">追加(_A)</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">パラメーターの追加</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">現在のファイルに追加(_C)</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">追加されたパラメーター。</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">リファクタリングを完了するには、追加的な変更が必要です。下記の変更内容を確認してください。</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">すべてのメソッド</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">すべてのソース</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">許可:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">複数の空白行を許可する</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">ブロックの直後にステートメントを許可する</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">わかりやすくするために常に</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">アナライザー</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">プロジェクト参照を分析しています...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">適用</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">'{0}' のキー マップ スキームを適用します</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">アセンブリ</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">値を暗黙的に無視する式ステートメントを指定しないでください</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">使用されないパラメーターを指定しないでください</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">使用されない値の代入を指定しないでください</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">戻る</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">バックグラウンドの分析スコープ:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 ビット</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 ビット</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">ビルド + ライブ分析 (NuGet パッケージ)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">C#/Visual Basic 診断言語クライアント</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">依存を計算しています...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">呼び出しサイトの値:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">呼び出しサイト</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">復帰 + 改行 (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">復帰 (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">カテゴリ</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">未使用の参照に対して実行する操作を選択します。</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">コード スタイル</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">'{0}' のコード分析が完了しました。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">ソリューションのコード分析が完了しました。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">コード分析が、'{0}' の完了前に終了しました。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">コード分析が、ソリューションでの完了前に終了しました。</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">色のヒント</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">正規表現をカラー化</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">コメント</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">含んでいるメンバー</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">含んでいる型</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">現在のドキュメント</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">現在のパラメーター</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">無効</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Alt+F1 を押しながらすべてのヒントを表示する</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">インライン パラメーター名のヒントを表示する(_L)</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">インライン型のヒントを表示する</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">編集(_E)</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">{0} の編集</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">エディターの配色</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">エディターの配色オプションは、Visual Studio にバンドルされている配色テーマを使用している場合にのみ使用できます。配色テーマは、[環境] &gt; [全般] オプション ページで構成できます。</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">要素が有効ではありません。</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Razor 'pull' 診断を有効にする (試験段階、再起動が必要)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">ソース ジェネレーターから開いたファイル内のすべての機能を有効にする (試験段階)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">診断のファイル ログを有効にする (' %Temp%/Roslyn ' フォルダーにログインしています)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">'pull' 診断を有効にする (試験段階、再起動が必要)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">有効</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">呼び出しサイトの値を入力するか、別の値の挿入の種類を選択してください</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">リポジトリ全体</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">ソリューション全体</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">エラー</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">抑制の更新でエラーが発生しました: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">評価中 ({0} 個のタスクがキューにあります)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">基底クラスの抽出</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">終了</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">ドキュメントのフォーマット</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">設定から .editorconfig ファイルを生成</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">カーソルの下にある関連コンポーネントをハイライトする</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">実装されたメンバー</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">メンバーを実装中</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">その他の演算子内で</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">インデックス</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">コンテキストから推論する</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">組織内でインデックス付け</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">リポジトリ内でインデックス付け</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">継承の余白 (試験段階)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">インラインのヒント (試験段階)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">呼び出しサイトの値 "{0}" を挿入しています</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Microsoft で推奨されている Roslyn アナライザーをインストールします。これにより、一般的な API の設計、セキュリティ、パフォーマンス、信頼性の問題に対する追加の診断と修正が提供されます</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">インターフェイスにフィールドを含めることはできません。</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">未定義の TODO 変数の導入</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">項目の送信元</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">保持</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">すべてのかっこを保持:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">種類</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">ライブ分析 (VSIX 拡張機能)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">読み込まれた項目</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">読み込まれたソリューション</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">ローカル</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">ローカル メタデータ</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">'{0}' を抽象化する</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">抽象化する</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">メンバー</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">修飾子設定:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">名前空間に移動します</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">複数のメンバーが継承済み</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">複数のメンバーが行 {0} に継承されています</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">名前が既存の型名と競合します。</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">名前が有効な {0} 識別子ではありません。</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">名前空間</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">名前空間: '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">フィールド</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">ローカル</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">ローカル関数</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">メソッド</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">パラメーター</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">プロパティ</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">型パラメーター</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">フィールド</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">ローカル</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">メソッド</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">パラメーター</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">型パラメーター</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">名前付けルール</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">'{0}' に移動する</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">不必要なら保持しない</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">新しい型名:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">改行設定 (試験段階):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">改行 (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">未使用の参照が見つかりませんでした。</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">パブリックでないメソッド</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">なし</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">省略 (省略可能なパラメーターの場合のみ)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">開かれているドキュメント</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">省略可能なパラメーターには、既定値を指定する必要があります</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">既定値を含むオプション:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">その他</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">上書きされたメンバー</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">メンバーを上書き中</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">パッケージ</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">パラメーターの詳細</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">パラメーター名:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">パラメーター情報</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">パラメーターの種類</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">パラメーター名に無効な文字が含まれています。</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">パラメーターの優先順位:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">パラメーターの種類に無効な文字が含まれています。</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">かっこの優先順位:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">一時停止中 ({0} 個のタスクがキューにあります)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">型の名前を入力してください</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">'GetHashCode' の 'System.HashCode' を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">複合代入を優先</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">インデックス演算子を優先</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">範囲演算子を優先</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">readonly フィールドを優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">単純な 'using' ステートメントを優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">単純なブール式を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">静的ローカル関数を優先する</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">プロジェクト</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">メンバーをプルアップ</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">リファクタリングのみ</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">参照</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">正規表現</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">すべて削除</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">未使用の参照を削除する</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">{0} の名前を {1} に変更</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">無効な正規表現を報告</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">リポジトリ</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">必要:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">必須</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">'System.HashCode' がプロジェクトに存在する必要があります</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Visual Studio の既定のキーマップをリセットします</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">変更のプレビュー</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">{0} で Code Analysis を実行</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">'{0}' のコード分析を実行しています...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">ソリューションのコード分析を実行しています...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">優先度の低いバックグラウンド プロセスを実行しています</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">.editorconfig ファイルの保存</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">検索設定</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">宛先の選択</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">依存の選択(_D)</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">パブリックの選択(_P)</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">プルアップする宛先とメンバーを選択します。</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">宛先の選択:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">メンバーの選択</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">メンバーの選択:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">ソリューション エクスプローラーで [未使用の参照を削除する] コマンドを表示する (試験段階)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">入力候補一覧の表示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">その他すべてのヒントを表示する</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">暗黙的なオブジェクト作成のヒントを表示します</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">ラムダ パラメーター型のヒントを表示する</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">リテラルのヒントを表示する</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">推論された型の変数のヒントを表示する</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">継承の余白を表示する</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">一部の配色パターンの色は、[環境] &gt; [フォントおよび色] オプション ページで行われた変更によって上書きされます。[フォントおよび色] オプション ページで [既定値を使用] を選択すると、すべてのカスタマイズが元に戻ります。</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">提案事項</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">パラメーター名がメソッドの意図と一致する場合にヒントを非表示にする</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">パラメーター名のサフィックスのみが異なる場合にヒントを非表示にする</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">参照のないシンボル</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">タブを 2 回押して引数を挿入する (試験段階)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">ターゲット名前空間:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">このファイルの生成元であるジェネレーター '{0}' がプロジェクトから削除されました。このファイルはもうプロジェクトに含まれていません。</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">このファイルの生成元であるジェネレーター '{0}' で、このファイルの生成が停止しました。このファイルはもうプロジェクトに含まれていません。</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">この操作を元に戻すことはできません。続行しますか?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">このファイルはジェネレーター '{0}' によって自動生成されているため、編集できません。</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">これは無効な名前空間です</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">タイトル</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">種類の名前:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">型名に構文エラーがあります</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">型名が認識されません</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">型名が認識されます</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">未使用のローカルに未使用の値が明示的に割り当てられます</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">未使用の値が discard に明示的に割り当てられます</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">プロジェクト参照を更新しています...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">重要度を更新しています</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">コード分析に 64 ビット プロセスを使用する (再起動が必要)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">ラムダに式本体を使用します</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">ローカル関数に式本体を使用します</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">名前付き引数を使用する</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">値</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">ここで割り当てた値は一度も使用されません</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">値:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">呼び出しによって返された値が暗黙的に無視されます</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">呼び出しサイトで挿入する値</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">警告</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">警告: パラメーター名が重複しています</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">警告: 型はバインドしていません</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">'{0}' が中断されました。キーマップをリセットして、移動とリファクターを続行してください。</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">このワークスペースでは、Visual Basic コンパイル オプションの更新がサポートされていません。</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">署名を変更する必要があります</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">少なくとも 1 人のメンバーを選択する必要があります。</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">パスに無効な文字があります。</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">ファイル名には拡張子 "{0}" が必要です。</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">デバッガー</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">ブレークポイントの位置を特定しています...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">自動変数を特定しています...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">ブレークポイントの位置を解決しています...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">ブレークポイントの場所を検証しています...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">データヒント テキストを取得しています...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">プレビューを利用できません</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">オーバーライド</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">オーバーライド元</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">継承</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">継承先</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">実装</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">実装先</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">最大数のドキュメントが開いています。</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">その他のファイル プロジェクトにドキュメントを作成できませんでした。</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">アクセスが無効です。</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">次の参照が見つかりませんでした。{0}これらを検索して手動で追加してください。</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">終了位置は、開始位置以上の値にする必要があります</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">有効な値ではありません</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">'{0}' が継承済み</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}' は抽象に変更されます。</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}' は非静的に変更されます。</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}' はパブリックに変更されます。</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[{0} により生成]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[生成]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">指定されたワークスペースは元に戻す操作をサポートしていません</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">参照を '{0}' に追加</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">イベントの種類が無効です</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">メンバーを挿入する場所を見つけることができません</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">other' 要素の名前は変更できません</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">名前変更の型が不明です</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">ID は、このシンボルの種類ではサポートされていません。</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">このシンボルの種類のノード ID を作成することはできません: '{0}'</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">プロジェクトの参照</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">基本型</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">その他のファイル</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">プロジェクト '{0}' が見つかりませんでした</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">ディスクにフォルダーの場所が見つかりませんでした</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">アセンブリ </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">例外:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">{0} のメンバー</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">パラメーター:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">プロジェクト </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">コメント:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">戻り値:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">概要:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">型パラメーター:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">ファイルは既に存在します</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">ファイル パスには予約されたキーワードを使用できません</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath が無効です</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">プロジェクトのパスが無効です</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">パスのファイル名を空にすることはできません</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">指定された DocumentId は、Visual Studio のワークスペースからのものではありません。</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">プロジェクト: {0} ({1}) ドロップダウンを使用して、このファイルが属している可能性のある他のプロジェクトを表示し、それらのプロジェクトに切り替えます。</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} ドロップダウンを使用して、このファイル内の他の項目を表示し、そこに移動します。</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">プロジェクト: {0} ドロップダウンを使用して、このファイルが属している可能性のある他のプロジェクトを表示し、それらのプロジェクトに切り替えます。</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">アナライザー アセンブリ '{0}' が変更されました。Visual Studio を再起動するまで正しい診断ができない可能性があります。</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">C#/VB 診断テーブル データ ソース</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">C#/VB Todo リスト テーブル データ ソース</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">キャンセル</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">すべて選択解除(_D)</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">インターフェイスの抽出</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">生成された名前:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">新しいファイル名(_F):</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">新しいインターフェイス名(_I):</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">すべて選択(_S)</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">インターフェイスを形成するパブリック メンバーを選択する(_M)</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">アクセス(_A):</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">既存ファイルに追加(_E)</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">署名の変更</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">新しいファイルの作成(_C)</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">既定</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">ファイル名:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">型の生成</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">種類(_K):</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">場所:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">修飾子</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">名前:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">パラメーター</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">パラメーター:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">メソッド シグネチャのプレビュー:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">参照の変更のプレビュー</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">プロジェクト(_P):</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">型</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">型の詳細:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">削除(_M)</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">復元(_R)</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">{0} の詳細</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">ナビゲーションは、フォアグラウンドのスレッドで行う必要があります。</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">プロジェクト '{1}' 内の '{0}' に対する参照</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;不明&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">プロジェクト '{1}' 内の '{0}' に対するアナライザー参照</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">プロジェクト '{1}' 内の '{0}' に対するプロジェクト参照</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">アナライザー アセンブリ '{0}' と '{1}' は両方とも ID が '{2}' ですが、内容が異なります。読み込まれるのは 1 つだけです。これらのアセンブリを使用するアナライザーは正常に実行されない可能性があります。</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} 個の参照</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 個の参照</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' でエラーが生じ、無効になりました。</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">有効にする</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">有効化して今後のエラーを無視する</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">変更なし</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">現在のブロック</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">現在のブロックを特定しています。</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">C#/VB ビルド テーブル データ ソース</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">アナライザー アセンブリ '{0}' は '{1}' に依存しますが、見つかりませんでした。欠落しているアセンブリがアナライザー参照として追加されない限り、アナライザーを正常に実行できない可能性があります。</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">診断を抑制する</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">抑制の修正を計算しています...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">抑制の修正を適用しています...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">抑制の削除</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">抑制の削除の修正を計算しています...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">抑制の削除の修正を適用しています...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">このワークスペースでは、UI スレッドでドキュメントを開くことしかできません。</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">このワークスペースでは、Visual Basic の解析オプションの更新はサポートされていません。</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">{0} を同期する</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">{0} と同期しています...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio は、パフォーマンス向上のため一部の高度な機能を中断しました。</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">'{0}' をインストールしています</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">'{0}' のインストールが完了しました</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">パッケージをインストールできませんでした: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;不明&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">いいえ</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">はい</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">シンボル仕様と名前付けスタイルを選択します。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">この名前付けルールのタイトルを入力してください。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">この名前付けスタイルのタイトルを入力してください。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">このシンボル仕様のタイトルを入力してください。</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">アクセシビリティ (任意のレベルと一致できます)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">大文字化:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">すべて小文字(all lower)</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">すべて大文字(ALL UPPER)</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">キャメル ケース名</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">先頭文字を大文字にする</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">パスカル ケース名</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">重要度:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">修飾子 (すべてと一致する必要があります)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">名前:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">名前付けルール</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">名前付けスタイル</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">名前付けスタイル:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">名前付けルールを使用すると、特定のシンボル セットの名前付け方法と、正しく名前付けされていないシンボルの処理方法を定義できます。</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">シンボルに名前を付けるときには、最初に一致するトップレベルの名前付けルールが既定で使用されますが、特殊なケースの場合は一致する子ルールによって処理されます。</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">名前付けスタイルのタイトル:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">親規則:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">必要なプレフィックス:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">必要なサフィックス:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">サンプル識別子:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">シンボルの種類 (任意のものと一致できます)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">シンボル仕様</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">シンボル仕様:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">シンボル仕様のタイトル:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">単語の区切り記号:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">例</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">識別子</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">'{0}' をインストールする</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">'{0}' アンインストールしています</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">'{0}' のアンインストールが完了しました</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">'{0}' をアンインストールする</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">パッケージをアンインストールできませんでした: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">プロジェクトの読み込み中にエラーが発生しました。失敗したプロジェクトとそれに依存するプロジェクトの完全なソリューション解析など、一部のプロジェクト機能が使用できなくなりました。</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">プロジェクトの読み込みに失敗しました。</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">この問題の原因を確認するには、次をお試しください。 1. Visual Studio を閉じる 2. Visual Studio 開発者コマンド プロンプトを開く 3. 環境変数 "TraceDesignTime" を true に設定する (set TraceDesignTime=true) 4. .vs directory/.suo ファイルを削除する 5. 環境変数 (devenv) を設定したコマンド プロンプトから VS を再起動する 6. ソリューションを開く 7. '{0}' を確認し、失敗したタスク (FAILED) を探す</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">追加情報:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">'{0}' をインストールできませんでした。 追加情報: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">'{0}' をアンインストールできませんでした。 追加情報: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">{0} を {1} の下に移動する</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">{0} を {1} の上に移動する</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">{0} の削除</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">{0} を復元する</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">再有効化</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">詳細を表示</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">フレームワークの型を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">定義済みの型を優先する</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">クリップボードにコピー</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">閉じる</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;不明なパラメーター&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- 内部例外のスタック トレースの終わり ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">ローカル、パラメーター、メンバーの場合</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">メンバー アクセス式の場合</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">オブジェクト初期化子を優先する</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">式の優先順位:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">ブロック構造のガイド</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">アウトライン</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">コード レベルのコンストラクトのガイドを表示する</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">コメントとプリプロセッサ領域のガイドを表示する</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">宣言レベルのコンストラクトのガイドを表示する</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">コード レベルのコンストラクトのアウトラインを表示する</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">コメントとプリプロセッサ領域のアウトラインを表示する</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">宣言レベルのコンストラクトのアウトラインを表示する</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">変数の優先順位:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">インライン変数宣言を優先する</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">メソッドに式本体を使用する</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">コード ブロックの優先順位:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">アクセサーに式本体を使用する</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">コンストラクターに式本体を使用する</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">インデクサーに式本体を使用する</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">オペレーターに式本体を使用する</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">プロパティに式本体を使用する</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">一部の名前付けルールが不完全です。不完全なルールを完成させるか削除してください。</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">仕様の管理</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">並べ替え</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">重要度</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">仕様</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">必要なスタイル</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">このアイテムは既存の名前付けルールで使用されているため、削除できませんでした。</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">コレクション初期化子を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">合体式を優先する</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">定義を折りたたむときに #regions を折りたたむ</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">null 値の反映を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">明示的なタプル名を優先します</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">説明</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">優先順位</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">インターフェイスまたは抽象クラスの実装</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">指定されたシンボルには、一致する '仕様' を含む最上位のルールのみが適用されます。そのルールの '必要なスタイル' の違反は、選択した '重要度' レベルで報告されます。</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">末尾</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">プロパティ、イベント、メソッドを挿入する際には、次の場所に挿入します:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">同じ種類の他のメンバーと共に</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">波かっこを優先します</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">非優先:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">優先:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">または</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">組み込み型</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">他のすべての場所</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">型は代入式から明確</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">下へ移動</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">上へ移動</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">削除</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">メンバーの選択</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Visual Studio で使用されたプロセスで、修復不可能なエラーが発生しました。作業内容を保存してから Visual Studio を終了し、再起動してください。</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">シンボル仕様の追加</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">シンボル仕様の削除</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">項目の追加</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">項目の編集</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">項目の削除</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">名前付けルールの追加</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">名前付けルールの削除</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">VisualStudioWorkspace.TryApplyChanges をバックグラウンド スレッドから呼び出すことはできません。</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">スロー プロパティを優先する</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">プロパティの生成時:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">オプション</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">今後は表示しない</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">単純な 'default' 式を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">推定されたタプル要素の名前を優先します</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">推定された匿名型のメンバー名を優先します</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">プレビュー ウィンドウ</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">解析</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">到達できないコードをフェードアウトします</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">フェード</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">匿名関数よりローカル関数を優先します</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">分解された変数宣言を優先する</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">外部参照が見つかりました</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">'{0}' の参照は見つかりませんでした</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">一致する検索結果はありません</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">自動プロパティを優先する</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">自動プロパティを優先する</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">モジュールがアンロードされました。</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">逆コンパイルされたソースへのナビゲーションを有効にする (試験段階)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">このページに構成されているローカル設定 (ご使用のマシンにのみ適用される) が .editorconfig ファイルによって上書きされる可能性があります。これらの設定をソリューション全体に適用するよう構成するには、EditorConfig ファイルを使用します。詳細情報</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">クラス ビューの同期</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">'{0}' の分析</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">名前付けスタイルを管理する</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">代入のある 'if' より条件式を優先する</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">戻り値のある 'if' より条件式を優先する</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.ko.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ko" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">솔루션 루트에서 새 .editorconfig 파일이 검색되었습니다. 이 파일을 솔루션 항목으로 설정하시겠습니까?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">새 네임스페이스가 만들어집니다.</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">형식과 이름을 지정해야 합니다.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">작업</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">추가(_A)</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">매개 변수 추가</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">현재 파일에 추가(_C)</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">매개 변수를 추가했습니다.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">리팩터링을 완료하려면 추가 변경이 필요합니다. 아래 변경 내용을 검토하세요.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">모든 메서드</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">모든 소스</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">허용:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">여러 빈 줄 허용</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">블록 바로 뒤에 문 허용</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">명확하게 하기 위해 항상</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">분석기</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">프로젝트 참조를 분석하는 중...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">적용</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">'{0}' 키 매핑 구성표 적용</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">어셈블리</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">암시적으로 값을 무시하는 식 문을 사용하지 마세요.</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">사용되지 않는 매개 변수를 사용하지 마세요.</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">사용되지 않는 값 할당을 사용하지 마세요.</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">뒤로</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">백그라운드 분석 범위:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32비트</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64비트</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">빌드 + 실시간 분석(NuGet 패키지)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">C#/Visual Basic 진단 언어 클라이언트</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">종속 항목을 계산하는 중...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">호출 사이트 값:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">호출 사이트</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">캐리지 리턴 + 줄 바꿈(\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">캐리지 리턴(\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">범주</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">사용하지 않는 참조에 대해 수행할 작업을 선택합니다.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">코드 스타일</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">'{0}'에 대한 코드 분석이 완료되었습니다.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">솔루션에 대한 코드 분석이 완료되었습니다.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">'{0}' 완료 전에 코드 분석이 종료되었습니다.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">솔루션 완료 전에 코드 분석이 종료되었습니다.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">색 힌트</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">정규식 색 지정</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">설명</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">포함하는 멤버</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">포함하는 형식</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">현재 문서</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">현재 매개 변수</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">사용 안 함</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Alt+F1을 누른 채 모든 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">인라인 매개 변수 이름 힌트 표시(_L)</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">인라인 유형 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">편집(_E)</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">{0} 편집</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">편집기 색 구성표</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">편집기 색 구성표 옵션은 Visual Studio와 함께 제공되는 색 테마를 사용하는 경우에만 사용할 수 있습니다. 색 테마는 [환경] &gt; [일반] 옵션 페이지에서 구성할 수 있습니다.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">요소가 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Razor '풀' 진단 사용(실험적, 다시 시작 필요)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">소스 생성기에서 열린 파일의 모든 기능 사용 (실험적)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">진단용 파일 로깅 사용('%Temp%\Roslyn' 폴더에 로그인)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">'풀' 진단 사용(실험적, 다시 시작 필요)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">사용</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">호출 사이트 값을 입력하거나 다른 값 삽입 종류를 선택하세요.</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">전체 리포지토리</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">전체 솔루션</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">오류</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">표시 중지를 업데이트하는 동안 오류가 발생했습니다. {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">평가 중(큐의 {0}개 작업)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">기본 클래스 추출</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">마침</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">문서 서식</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">설정에서 .editorconfig 파일 생성</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">커서 아래의 관련 구성 요소 강조</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">구현된 구성원</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">구성원을 구현하는 중</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">기타 연산자</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">인덱스</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">컨텍스트에서 유추</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">조직에서 인덱싱됨</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">리포지토리에서 인덱싱됨</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">상속 여백(실험용)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">인라인 힌트(실험적)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">호출 사이트 값 '{0}'을(를) 삽입하는 중</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">일반적인 API 디자인, 보안, 성능 및 안정성 문제에 대한 추가 진단 및 수정을 제공하는 Microsoft 권장 Roslyn 분석기를 설치합니다.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">인터페이스에는 필드가 포함될 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">정의되지 않은 TODO 변수 소개</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">항목 원본</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">유지</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">모든 괄호 유지:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">종류</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">실시간 분석(VSIX 확장)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">로드된 항목</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">로드된 솔루션</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">로컬</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">로컬 메타데이터</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">'{0}'을(를) 추상으로 지정</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">추상으로 지정</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">멤버</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">한정자 기본 설정:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">네임스페이스로 이동</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">여러 구성원이 상속됨</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">여러 구성원이 {0} 행에 상속됨</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">이름이 기존 형식 이름과 충돌합니다.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">이름이 유효한 {0} 식별자가 아닙니다.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">네임스페이스</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">네임스페이스: '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">필드</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">로컬</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">로컬 함수</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">메서드</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">매개 변수</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">속성</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">형식 매개 변수</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">필드</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">로컬</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">메서드</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">매개 변수</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">형식 매개 변수</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">명명 규칙</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">'{0}'(으)로 이동</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">필요한 경우 사용 안 함</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">새 형식 이름:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">새 줄 기본 설정(실험적):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">줄 바꿈(\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">사용되지 않는 참조가 없습니다.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">public이 아닌 메서드</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">None</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">생략(선택적 매개 변수에만 해당)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">열린 문서</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">선택적 매개 변수는 기본값을 제공해야 합니다.</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">다음 기본값을 사용하는 경우 선택적:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">기타</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">재정의된 구성원</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">구성원 재정의</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">패키지</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">매개 변수 정보</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">매개 변수 이름:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">매개 변수 정보</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">매개 변수 종류</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">매개 변수 이름에 잘못된 문자가 들어 있습니다.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">매개 변수 기본 설정:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">매개 변수 형식에 잘못된 문자가 들어 있습니다.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">괄호 기본 설정:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">일시 중지됨(큐의 {0}개 작업)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">형식 이름을 입력하세요.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">'GetHashCode'에서 'System.HashCode' 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">복합 대입 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">인덱스 연산자 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">범위 연산자 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">읽기 전용 필드 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">간단한 'using' 문 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">간단한 부울 식을 기본으로 사용</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">정적 로컬 함수 선호</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">프로젝트</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">멤버 풀하기</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">리팩터링만</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">참조</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">정규식</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">모두 제거</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">사용하지 않는 참조 제거</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">{0} 이름을 {1}(으)로 바꾸기</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">잘못된 정규식 보고</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">리포지토리</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">필요:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">필수</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">'System.HashCode'가 프로젝트에 있어야 합니다.</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Visual Studio 기본 키 매핑을 다시 설정</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">변경 내용 검토</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">{0}에서 코드 분석 실행</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">'{0}'에 대한 코드 분석을 실행하는 중...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">솔루션에 대한 코드 분석을 실행하는 중...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">낮은 우선 순위 백그라운드 프로세스 실행 중</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">editorconfig 파일 저장</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">검색 설정</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">대상 선택</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">종속 항목 선택(_D)</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">공용 선택(_P)</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">풀할 대상 및 멤버를 선택합니다.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">대상 선택:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">멤버 선택</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">멤버 선택:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">솔루션 탐색기에서 "사용하지 않는 참조 제거" 명령 표시(실험적)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">완성 목록 표시</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">다른 모든 항목에 대한 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">암시적 개체 만들기에 대한 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">람다 매개 변수 형식에 대한 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">리터럴에 대한 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">유추된 형식의 변수에 대한 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">상속 여백 표시</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">색 구성표의 일부 색이 [환경] &gt; [글꼴 및 색] 옵션 페이지에서 변경한 내용에 따라 재정의됩니다. 모든 사용자 지정을 되돌리려면 [글꼴 및 색] 페이지에서 '기본값 사용'을 선택하세요.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">제안</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">매개 변수 이름이 메서드의 의도와 일치하는 경우 힌트 표시 안 함</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">매개 변수 이름이 접미사만 다른 경우 힌트 표시 안 함</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">참조 없는 기호</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">두 번 탭하여 인수 삽입(실험적)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">대상 네임스페이스:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">이 파일을 생성한 생성기 '{0}'이(가) 프로젝트에서 제거되었습니다. 이 파일은 프로젝트에 더 이상 포함되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">이 파일을 생성한 생성기 '{0}'이(가) 이 파일 생성을 중지했습니다. 이 파일은 프로젝트에 더 이상 포함되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">이 작업은 실행 취소할 수 없습니다. 계속하시겠습니까?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">이 파일은 생성기 '{0}'(으)로 자동 생성되며 편집할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">잘못된 네임스페이스입니다.</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">제목</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">형식 이름:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">형식 이름에 구문 오류가 있습니다.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">형식 이름을 인식할 수 없습니다.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">형식 이름이 인식됩니다.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">사용되지 않는 값이 사용되지 않는 로컬에 명시적으로 할당됩니다.</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">사용되지 않는 값이 무시 항목에 명시적으로 할당됩니다.</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">프로젝트 참조를 업데이트하는 중...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">심각도를 업데이트하는 중</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">코드 분석에 64비트 프로세스 사용(다시 시작 필요)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">람다에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">로컬 함수에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">명명된 인수 사용</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">값</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">여기에 할당된 값은 사용되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">값:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">호출로 반환된 값은 암시적으로 무시됩니다.</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">호출 사이트에서 삽입할 값</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">경고</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">경고: 매개 변수 이름이 중복되었습니다.</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">경고: 형식이 바인딩되어 있지 않습니다.</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">'{0}'을(를) 일시 중단하신 것으로 보입니다. 계속 탐색하고 리팩터링하려면 키 매핑을 다시 설정하세요.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">이 작업 영역은 Visual Basic 컴파일 옵션 업데이트를 지원하지 않습니다.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">시그니처를 변경해야 합니다.</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">멤버를 하나 이상 선택해야 합니다.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">경로에 잘못된 문자가 있습니다.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">파일 이름에 "{0}" 확장이 있어야 합니다.</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">디버거</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">중단점 위치를 확인하는 중...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">자동을 확인하는 중...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">중단점 위치를 확인하는 중...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">중단점 위치를 확인하는 중...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">DataTip 텍스트를 가져오는 중...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">미리 보기를 사용할 수 없음</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">재정의</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">재정의 수행자</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">상속</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">상속 대상</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">구현</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">구현자</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">최대 수의 문서가 열려 있습니다.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">기타 파일 프로젝트에 문서를 만들지 못했습니다.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">액세스가 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">다음 참조를 찾지 못했습니다. {0}수동으로 찾아 추가하세요.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">끝 위치는 시작 위치보다 크거나 같아야 합니다.</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">값이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">'{0}'이(가) 상속되었습니다.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}'이(가) 추상으로 변경됩니다.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}'이(가) 비정적으로 변경됩니다.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}'이(가) 공용으로 변경됩니다.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[{0}이(가) 생성함]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[생성됨]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">지정한 작업 영역에서 실행을 취소할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">'{0}'에 참조 추가</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">이벤트 형식이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">멤버를 삽입할 위치를 찾을 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">other' 요소의 이름을 바꿀 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">알 수 없는 이름 바꾸기 형식</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">이 기호 형식에 대한 ID가 지원되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">'{0}' 기호 종류에 대한 노드 ID를 만들 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">프로젝트 참조</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">기본 형식</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">기타 파일</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">'{0}' 프로젝트를 찾을 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">디스크에서 폴더의 위치를 찾을 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">어셈블리 </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">예외:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">{0}의 멤버</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">매개 변수:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">프로젝트 </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">설명:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">반환 값:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">요약:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">형식 매개 변수:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">파일이 이미 존재함</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">파일 경로는 예약된 키워드를 사용할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath가 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">프로젝트 경로가 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">경로에는 빈 파일 이름이 있을 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">제공된 DocumentId는 Visual Studio 작업 영역에서 가져오지 않았습니다.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">프로젝트: {0}({1}) 드롭다운을 사용하여 이 파일이 속할 수 있는 다른 프로젝트를 보고 해당 프로젝트로 전환합니다.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} 드롭다운을 사용하여 이 파일의 다른 항목을 보고 탐색합니다.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">프로젝트: {0} 드롭다운을 사용하여 이 파일이 속할 수 있는 다른 프로젝트를 보고 해당 프로젝트로 전환합니다.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">분석기 어셈블리 '{0}'이(가) 변경되었습니다. Visual Studio를 다시 시작할 때까지 진단이 올바르지 않을 수 있습니다.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">C#/VB 진단 테이블 데이터 원본</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">C#/VB 할일 목록 테이블 데이터 원본</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">취소</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">모두 선택 취소(_D)</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">인터페이스 추출</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">생성된 이름:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">새 파일 이름(_F):</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">새 인터페이스 이름(_I):</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">확인</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">모두 선택(_S)</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">인터페이스를 구성할 공용 멤버 선택(_M)</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">액세스(_A):</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">기존 파일에 추가(_E)</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">시그니처 변경</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">새 파일 만들기(_C)</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">기본값</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">파일 이름:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">형식 생성</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">종류(_K):</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">위치:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">한정자</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">이름:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">매개 변수</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">매개 변수:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">메서드 시그니처 미리 보기:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">참조 변경 내용 미리 보기</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">프로젝트(_P):</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">형식</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">형식 세부 정보:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">제거(_M)</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">복원(_R)</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">{0}에 대한 추가 정보</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">탐색은 포그라운드 스레드에서 수행해야 합니다.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">프로젝트 '{1}'에 '{0}'에 대한 참조가 있습니다.</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;알 수 없음&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">프로젝트 '{1}'에 '{0}'에 대한 분석기 참조가 있습니다.</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">프로젝트 '{1}'에 '{0}'에 대한 프로젝트 참조가 있습니다.</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">'{0}' 및 '{1}' 분석기 어셈블리의 ID는 '{2}'(으)로 동일하지만 콘텐츠가 다릅니다. 둘 중 하나만 로드되며 이러한 어셈블리를 사용하는 분석기는 제대로 실행되지 않을 수 있습니다.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">참조 {0}개</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">참조 1개</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}'에 오류가 발생하여 사용할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">사용</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">추가 오류 무시하고 사용</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">변경 내용 없음</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">현재 블록</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">현재 블록을 확인하는 중입니다.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">C#/VB 빌드 테이블 데이터 원본</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">분석기 어셈블리 '{0}'은(는) 찾을 수 없는 '{1}'에 종속됩니다. 없는 어셈블리가 분석기 참조로 추가되지 않으면 분석기가 올바르게 실행되지 않을 수 있습니다.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">진단 표시 안 함</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">비표시 오류(Suppression) 수정을 계산하는 중...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">비표시 오류(Suppression) 수정을 적용하는 중...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">비표시 오류(Suppression) 제거</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">비표시 오류(Suppression) 제거 수정을 계산하는 중...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">비표시 오류(Suppression) 제거 수정을 적용하는 중...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">이 작업 영역에서는 UI 스레드에서 문서를 여는 것만 지원합니다.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">이 작업 영역은 Visual Basic 구문 분석 옵션 업데이트를 지원하지 않습니다.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">{0} 동기화</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">{0}과(와) 동기화하는 중...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio에서 성능 향상을 위해 일부 고급 기능을 일시 중단했습니다.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">'{0}' 설치 중</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">'{0}' 설치 완료</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">패키지 설치 실패: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;알 수 없음&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">아니요</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">예</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">기호 사양 및 명명 스타일을 선택하세요.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">이 명명 규칙의 제목을 입력하세요.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">이 명명 스타일의 제목을 입력하세요.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">이 기호 사양의 제목을 입력하세요.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">접근성(임의 항목과 일치 가능)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">대문자 표시:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">모두 소문자(all lower)</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">모두 대문자(ALL UPPER)</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">카멜 대/소문자 이름</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">첫 번째 단어 대문자</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">파스칼식 대/소문자 이름</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">심각도:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">한정자(모두와 일치해야 함)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">이름:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">명명 규칙</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">명명 스타일</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">명명 스타일:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">명명 규칙을 사용하여 특정 기호 집합의 이름을 지정하는 방법과 이름이 잘못 지정된 기호를 처리하는 방법을 정의할 수 있습니다.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">기호 이름을 지정할 때는 기본적으로 첫 번째 일치하는 최상위 명명 규칙이 사용되지만, 특별한 경우는 일치하는 자식 규칙으로 처리됩니다.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">명명 스타일 제목:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">부모 규칙:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">필수 접두사:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">필수 접미사:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">샘플 식별자:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">기호 종류(임의 항목과 일치 가능)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">기호 사양</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">기호 사양:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">기호 사양 제목:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">단어 구분 기호:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">예</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">식별자</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">'{0}' 설치</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">'{0}' 제거 중</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">'{0}' 제거 완료</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">'{0}' 제거</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">패키지 제거 실패: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">프로젝트를 로드하는 동안 오류가 발생했습니다. 실패한 프로젝트 및 이 프로젝트에 종속된 프로젝트에 대한 전체 솔루션 분석과 같은 일부 프로젝트 기능을 사용할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">프로젝트를 로드하지 못했습니다.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">이 문제를 일으킨 원인을 확인하려면 다음을 시도하세요. 1. Visual Studio를 닫습니다. 2. Visual Studio 개발자 명령 프롬프트를 엽니다. 3. 환경 변수 "TraceDesignTime"을 true로 설정합니다(set TraceDesignTime=true). 4. .vs 디렉터리/.suo 파일을 삭제합니다. 5. 환경 변수(devenv)를 설정한 명령 프롬프트에서 VS를 다시 시작합니다. 6. 솔루션을 엽니다. 7. '{0}'을(를) 확인하고 실패한 작업(FAILED)을 찾습니다.</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">추가 정보:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">'{0}'을(를) 설치하지 못했습니다. 추가 정보: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">'{0}'을(를) 제거하지 못했습니다. 추가 정보: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">{1} 아래로 {0} 이동</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">{1} 위로 {0} 이동</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">{0} 제거</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">{0} 복원</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">다시 사용</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">자세한 정보</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">프레임워크 형식 사용</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">미리 정의된 형식 사용</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">클립보드로 복사</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">닫기</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;알 수 없는 매개 변수&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- 내부 예외 스택 추적 끝 ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">로컬, 매개 변수 및 멤버의 경우</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">멤버 액세스 식의 경우</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">개체 이니셜라이저 사용</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">식 기본 설정:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">블록 구조 가이드</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">개요</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">코드 수준 구문에 대한 가이드 표시</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">설명 및 전처리기 영역에 대한 가이드 표시</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">선언 수준 구문에 대한 가이드 표시</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">코드 수준 구문에 대한 개요 표시</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">설명 및 전처리기 영역에 대한 개요 표시</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">선언 수준 구문에 대한 개요 표시</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">변수 기본 설정:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">인라인 변수 선언 사용</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">메서드에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">코드 블록 기본 설정:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">접근자에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">생성자에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">인덱서에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">연산자에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">속성에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">일부 명명 규칙이 불완전합니다. 완전하게 만들거나 제거하세요.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">사양 관리</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">다시 정렬</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">심각도</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">사양</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">필수 스타일</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">이 항목은 기존 명명 규칙에서 사용되기 때문에 삭제할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">컬렉션 이니셜라이저 사용</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">coalesce 식 사용</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">정의로 축소할 때 #regions 축소</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">null 전파 사용</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">명시적 튜플 이름 기본 사용</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">설명</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">기본 설정</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">인터페이스 또는 추상 클래스 구현</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">제공된 기호의 경우, 일치하는 '사양'이 있는 최상위 규칙만 적용됩니다. 해당 규칙의 '필수 스타일' 위반은 선택한 '심각도' 수준에서 보고됩니다.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">끝에 삽입</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">속성, 이벤트 및 메서드 삽입 시 다음에 배치합니다.</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">같은 종류의 다른 멤버와 함께 있는 경우</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">중괄호 기본 사용</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">비선호:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">선호:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">또는</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">기본 제공 형식인 경우</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">다른 모든 위치인 경우</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">할당 식에서 형식이 명백하게 나타나는 경우</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">아래로 이동</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">위로 이동</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">제거</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">멤버 선택</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Visual Studio에서 사용하는 프로세스에서 복원할 수 없는 오류가 발생했습니다. 작업을 저장하고, Visual Studio를 종료한 후 다시 시작하시는 것을 권장해 드립니다.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">기호 사양 추가</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">기호 사양 제거</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">항목 추가</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">항목 편집</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">항목 제거</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">명명 규칙 추가</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">명명 규칙 제거</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">백그라운드 스레드에서 VisualStudioWorkspace.TryApplyChanges를 호출할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">throw되는 속성 선호</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">속성을 생성하는 경우:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">옵션</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">다시 표시 안 함</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">간단한 'default' 식을 기본으로 사용</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">유추된 튜플 요소 이름 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">유추된 무명 형식 멤버 이름 선호</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">미리 보기 창</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">분석</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">접근할 수 없는 코드 페이드 아웃</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">페이딩</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">익명 함수보다 로컬 함수 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">분해된 변수 선언 사용</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">외부 참조가 있습니다.</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">'{0}'에 대한 참조가 없습니다.</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">검색 결과가 없습니다.</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">자동 속성 선호</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">자동 속성 선호</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">모듈이 언로드되었습니다.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">디컴파일된 소스에 탐색을 사용하도록 설정(실험적)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">.editorconfig 파일이 이 페이지에서 구성된 로컬 설정을 재정의할 수 있으며 해당 내용은 사용자의 머신에만 적용됩니다. 솔루션과 함께 이동하도록 해당 설정을 구성하려면 EditorConfig 파일을 사용하세요. 추가 정보 </target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">클래스 뷰 동기화</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">'{0}' 분석 중</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">명명 스타일 관리</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">할당이 포함된 'if'보다 조건식 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">반환이 포함된 'if'보다 조건식 선호</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ko" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">새 네임스페이스가 만들어집니다.</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">형식과 이름을 지정해야 합니다.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">작업</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">추가(_A)</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">매개 변수 추가</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">현재 파일에 추가(_C)</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">매개 변수를 추가했습니다.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">리팩터링을 완료하려면 추가 변경이 필요합니다. 아래 변경 내용을 검토하세요.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">모든 메서드</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">모든 소스</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">허용:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">여러 빈 줄 허용</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">블록 바로 뒤에 문 허용</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">명확하게 하기 위해 항상</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">분석기</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">프로젝트 참조를 분석하는 중...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">적용</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">'{0}' 키 매핑 구성표 적용</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">어셈블리</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">암시적으로 값을 무시하는 식 문을 사용하지 마세요.</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">사용되지 않는 매개 변수를 사용하지 마세요.</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">사용되지 않는 값 할당을 사용하지 마세요.</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">뒤로</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">백그라운드 분석 범위:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32비트</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64비트</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">빌드 + 실시간 분석(NuGet 패키지)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">C#/Visual Basic 진단 언어 클라이언트</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">종속 항목을 계산하는 중...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">호출 사이트 값:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">호출 사이트</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">캐리지 리턴 + 줄 바꿈(\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">캐리지 리턴(\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">범주</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">사용하지 않는 참조에 대해 수행할 작업을 선택합니다.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">코드 스타일</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">'{0}'에 대한 코드 분석이 완료되었습니다.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">솔루션에 대한 코드 분석이 완료되었습니다.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">'{0}' 완료 전에 코드 분석이 종료되었습니다.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">솔루션 완료 전에 코드 분석이 종료되었습니다.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">색 힌트</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">정규식 색 지정</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">설명</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">포함하는 멤버</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">포함하는 형식</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">현재 문서</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">현재 매개 변수</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">사용 안 함</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Alt+F1을 누른 채 모든 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">인라인 매개 변수 이름 힌트 표시(_L)</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">인라인 유형 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">편집(_E)</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">{0} 편집</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">편집기 색 구성표</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">편집기 색 구성표 옵션은 Visual Studio와 함께 제공되는 색 테마를 사용하는 경우에만 사용할 수 있습니다. 색 테마는 [환경] &gt; [일반] 옵션 페이지에서 구성할 수 있습니다.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">요소가 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Razor '풀' 진단 사용(실험적, 다시 시작 필요)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">소스 생성기에서 열린 파일의 모든 기능 사용 (실험적)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">진단용 파일 로깅 사용('%Temp%\Roslyn' 폴더에 로그인)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">'풀' 진단 사용(실험적, 다시 시작 필요)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">사용</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">호출 사이트 값을 입력하거나 다른 값 삽입 종류를 선택하세요.</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">전체 리포지토리</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">전체 솔루션</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">오류</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">표시 중지를 업데이트하는 동안 오류가 발생했습니다. {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">평가 중(큐의 {0}개 작업)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">기본 클래스 추출</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">마침</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">문서 서식</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">설정에서 .editorconfig 파일 생성</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">커서 아래의 관련 구성 요소 강조</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">구현된 구성원</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">구성원을 구현하는 중</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">기타 연산자</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">인덱스</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">컨텍스트에서 유추</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">조직에서 인덱싱됨</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">리포지토리에서 인덱싱됨</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">상속 여백(실험용)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">인라인 힌트(실험적)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">호출 사이트 값 '{0}'을(를) 삽입하는 중</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">일반적인 API 디자인, 보안, 성능 및 안정성 문제에 대한 추가 진단 및 수정을 제공하는 Microsoft 권장 Roslyn 분석기를 설치합니다.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">인터페이스에는 필드가 포함될 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">정의되지 않은 TODO 변수 소개</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">항목 원본</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">유지</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">모든 괄호 유지:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">종류</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">실시간 분석(VSIX 확장)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">로드된 항목</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">로드된 솔루션</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">로컬</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">로컬 메타데이터</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">'{0}'을(를) 추상으로 지정</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">추상으로 지정</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">멤버</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">한정자 기본 설정:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">네임스페이스로 이동</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">여러 구성원이 상속됨</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">여러 구성원이 {0} 행에 상속됨</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">이름이 기존 형식 이름과 충돌합니다.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">이름이 유효한 {0} 식별자가 아닙니다.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">네임스페이스</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">네임스페이스: '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">필드</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">로컬</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">로컬 함수</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">메서드</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">매개 변수</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">속성</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">형식 매개 변수</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">필드</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">로컬</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">메서드</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">매개 변수</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">형식 매개 변수</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">명명 규칙</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">'{0}'(으)로 이동</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">필요한 경우 사용 안 함</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">새 형식 이름:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">새 줄 기본 설정(실험적):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">줄 바꿈(\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">사용되지 않는 참조가 없습니다.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">public이 아닌 메서드</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">None</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">생략(선택적 매개 변수에만 해당)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">열린 문서</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">선택적 매개 변수는 기본값을 제공해야 합니다.</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">다음 기본값을 사용하는 경우 선택적:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">기타</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">재정의된 구성원</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">구성원 재정의</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">패키지</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">매개 변수 정보</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">매개 변수 이름:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">매개 변수 정보</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">매개 변수 종류</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">매개 변수 이름에 잘못된 문자가 들어 있습니다.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">매개 변수 기본 설정:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">매개 변수 형식에 잘못된 문자가 들어 있습니다.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">괄호 기본 설정:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">일시 중지됨(큐의 {0}개 작업)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">형식 이름을 입력하세요.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">'GetHashCode'에서 'System.HashCode' 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">복합 대입 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">인덱스 연산자 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">범위 연산자 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">읽기 전용 필드 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">간단한 'using' 문 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">간단한 부울 식을 기본으로 사용</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">정적 로컬 함수 선호</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">프로젝트</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">멤버 풀하기</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">리팩터링만</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">참조</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">정규식</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">모두 제거</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">사용하지 않는 참조 제거</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">{0} 이름을 {1}(으)로 바꾸기</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">잘못된 정규식 보고</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">리포지토리</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">필요:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">필수</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">'System.HashCode'가 프로젝트에 있어야 합니다.</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Visual Studio 기본 키 매핑을 다시 설정</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">변경 내용 검토</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">{0}에서 코드 분석 실행</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">'{0}'에 대한 코드 분석을 실행하는 중...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">솔루션에 대한 코드 분석을 실행하는 중...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">낮은 우선 순위 백그라운드 프로세스 실행 중</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">editorconfig 파일 저장</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">검색 설정</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">대상 선택</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">종속 항목 선택(_D)</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">공용 선택(_P)</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">풀할 대상 및 멤버를 선택합니다.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">대상 선택:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">멤버 선택</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">멤버 선택:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">솔루션 탐색기에서 "사용하지 않는 참조 제거" 명령 표시(실험적)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">완성 목록 표시</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">다른 모든 항목에 대한 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">암시적 개체 만들기에 대한 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">람다 매개 변수 형식에 대한 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">리터럴에 대한 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">유추된 형식의 변수에 대한 힌트 표시</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">상속 여백 표시</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">색 구성표의 일부 색이 [환경] &gt; [글꼴 및 색] 옵션 페이지에서 변경한 내용에 따라 재정의됩니다. 모든 사용자 지정을 되돌리려면 [글꼴 및 색] 페이지에서 '기본값 사용'을 선택하세요.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">제안</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">매개 변수 이름이 메서드의 의도와 일치하는 경우 힌트 표시 안 함</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">매개 변수 이름이 접미사만 다른 경우 힌트 표시 안 함</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">참조 없는 기호</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">두 번 탭하여 인수 삽입(실험적)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">대상 네임스페이스:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">이 파일을 생성한 생성기 '{0}'이(가) 프로젝트에서 제거되었습니다. 이 파일은 프로젝트에 더 이상 포함되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">이 파일을 생성한 생성기 '{0}'이(가) 이 파일 생성을 중지했습니다. 이 파일은 프로젝트에 더 이상 포함되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">이 작업은 실행 취소할 수 없습니다. 계속하시겠습니까?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">이 파일은 생성기 '{0}'(으)로 자동 생성되며 편집할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">잘못된 네임스페이스입니다.</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">제목</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">형식 이름:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">형식 이름에 구문 오류가 있습니다.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">형식 이름을 인식할 수 없습니다.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">형식 이름이 인식됩니다.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">사용되지 않는 값이 사용되지 않는 로컬에 명시적으로 할당됩니다.</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">사용되지 않는 값이 무시 항목에 명시적으로 할당됩니다.</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">프로젝트 참조를 업데이트하는 중...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">심각도를 업데이트하는 중</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">코드 분석에 64비트 프로세스 사용(다시 시작 필요)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">람다에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">로컬 함수에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">명명된 인수 사용</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">값</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">여기에 할당된 값은 사용되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">값:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">호출로 반환된 값은 암시적으로 무시됩니다.</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">호출 사이트에서 삽입할 값</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">경고</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">경고: 매개 변수 이름이 중복되었습니다.</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">경고: 형식이 바인딩되어 있지 않습니다.</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">'{0}'을(를) 일시 중단하신 것으로 보입니다. 계속 탐색하고 리팩터링하려면 키 매핑을 다시 설정하세요.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">이 작업 영역은 Visual Basic 컴파일 옵션 업데이트를 지원하지 않습니다.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">시그니처를 변경해야 합니다.</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">멤버를 하나 이상 선택해야 합니다.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">경로에 잘못된 문자가 있습니다.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">파일 이름에 "{0}" 확장이 있어야 합니다.</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">디버거</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">중단점 위치를 확인하는 중...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">자동을 확인하는 중...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">중단점 위치를 확인하는 중...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">중단점 위치를 확인하는 중...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">DataTip 텍스트를 가져오는 중...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">미리 보기를 사용할 수 없음</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">재정의</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">재정의 수행자</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">상속</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">상속 대상</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">구현</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">구현자</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">최대 수의 문서가 열려 있습니다.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">기타 파일 프로젝트에 문서를 만들지 못했습니다.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">액세스가 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">다음 참조를 찾지 못했습니다. {0}수동으로 찾아 추가하세요.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">끝 위치는 시작 위치보다 크거나 같아야 합니다.</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">값이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">'{0}'이(가) 상속되었습니다.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}'이(가) 추상으로 변경됩니다.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}'이(가) 비정적으로 변경됩니다.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}'이(가) 공용으로 변경됩니다.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[{0}이(가) 생성함]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[생성됨]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">지정한 작업 영역에서 실행을 취소할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">'{0}'에 참조 추가</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">이벤트 형식이 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">멤버를 삽입할 위치를 찾을 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">other' 요소의 이름을 바꿀 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">알 수 없는 이름 바꾸기 형식</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">이 기호 형식에 대한 ID가 지원되지 않습니다.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">'{0}' 기호 종류에 대한 노드 ID를 만들 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">프로젝트 참조</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">기본 형식</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">기타 파일</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">'{0}' 프로젝트를 찾을 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">디스크에서 폴더의 위치를 찾을 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">어셈블리 </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">예외:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">{0}의 멤버</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">매개 변수:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">프로젝트 </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">설명:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">반환 값:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">요약:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">형식 매개 변수:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">파일이 이미 존재함</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">파일 경로는 예약된 키워드를 사용할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath가 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">프로젝트 경로가 잘못되었습니다.</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">경로에는 빈 파일 이름이 있을 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">제공된 DocumentId는 Visual Studio 작업 영역에서 가져오지 않았습니다.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">프로젝트: {0}({1}) 드롭다운을 사용하여 이 파일이 속할 수 있는 다른 프로젝트를 보고 해당 프로젝트로 전환합니다.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} 드롭다운을 사용하여 이 파일의 다른 항목을 보고 탐색합니다.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">프로젝트: {0} 드롭다운을 사용하여 이 파일이 속할 수 있는 다른 프로젝트를 보고 해당 프로젝트로 전환합니다.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">분석기 어셈블리 '{0}'이(가) 변경되었습니다. Visual Studio를 다시 시작할 때까지 진단이 올바르지 않을 수 있습니다.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">C#/VB 진단 테이블 데이터 원본</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">C#/VB 할일 목록 테이블 데이터 원본</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">취소</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">모두 선택 취소(_D)</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">인터페이스 추출</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">생성된 이름:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">새 파일 이름(_F):</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">새 인터페이스 이름(_I):</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">확인</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">모두 선택(_S)</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">인터페이스를 구성할 공용 멤버 선택(_M)</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">액세스(_A):</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">기존 파일에 추가(_E)</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">시그니처 변경</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">새 파일 만들기(_C)</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">기본값</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">파일 이름:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">형식 생성</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">종류(_K):</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">위치:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">한정자</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">이름:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">매개 변수</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">매개 변수:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">메서드 시그니처 미리 보기:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">참조 변경 내용 미리 보기</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">프로젝트(_P):</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">형식</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">형식 세부 정보:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">제거(_M)</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">복원(_R)</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">{0}에 대한 추가 정보</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">탐색은 포그라운드 스레드에서 수행해야 합니다.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">프로젝트 '{1}'에 '{0}'에 대한 참조가 있습니다.</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;알 수 없음&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">프로젝트 '{1}'에 '{0}'에 대한 분석기 참조가 있습니다.</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">프로젝트 '{1}'에 '{0}'에 대한 프로젝트 참조가 있습니다.</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">'{0}' 및 '{1}' 분석기 어셈블리의 ID는 '{2}'(으)로 동일하지만 콘텐츠가 다릅니다. 둘 중 하나만 로드되며 이러한 어셈블리를 사용하는 분석기는 제대로 실행되지 않을 수 있습니다.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">참조 {0}개</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">참조 1개</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}'에 오류가 발생하여 사용할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">사용</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">추가 오류 무시하고 사용</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">변경 내용 없음</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">현재 블록</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">현재 블록을 확인하는 중입니다.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">C#/VB 빌드 테이블 데이터 원본</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">분석기 어셈블리 '{0}'은(는) 찾을 수 없는 '{1}'에 종속됩니다. 없는 어셈블리가 분석기 참조로 추가되지 않으면 분석기가 올바르게 실행되지 않을 수 있습니다.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">진단 표시 안 함</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">비표시 오류(Suppression) 수정을 계산하는 중...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">비표시 오류(Suppression) 수정을 적용하는 중...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">비표시 오류(Suppression) 제거</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">비표시 오류(Suppression) 제거 수정을 계산하는 중...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">비표시 오류(Suppression) 제거 수정을 적용하는 중...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">이 작업 영역에서는 UI 스레드에서 문서를 여는 것만 지원합니다.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">이 작업 영역은 Visual Basic 구문 분석 옵션 업데이트를 지원하지 않습니다.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">{0} 동기화</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">{0}과(와) 동기화하는 중...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio에서 성능 향상을 위해 일부 고급 기능을 일시 중단했습니다.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">'{0}' 설치 중</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">'{0}' 설치 완료</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">패키지 설치 실패: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;알 수 없음&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">아니요</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">예</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">기호 사양 및 명명 스타일을 선택하세요.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">이 명명 규칙의 제목을 입력하세요.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">이 명명 스타일의 제목을 입력하세요.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">이 기호 사양의 제목을 입력하세요.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">접근성(임의 항목과 일치 가능)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">대문자 표시:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">모두 소문자(all lower)</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">모두 대문자(ALL UPPER)</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">카멜 대/소문자 이름</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">첫 번째 단어 대문자</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">파스칼식 대/소문자 이름</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">심각도:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">한정자(모두와 일치해야 함)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">이름:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">명명 규칙</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">명명 스타일</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">명명 스타일:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">명명 규칙을 사용하여 특정 기호 집합의 이름을 지정하는 방법과 이름이 잘못 지정된 기호를 처리하는 방법을 정의할 수 있습니다.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">기호 이름을 지정할 때는 기본적으로 첫 번째 일치하는 최상위 명명 규칙이 사용되지만, 특별한 경우는 일치하는 자식 규칙으로 처리됩니다.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">명명 스타일 제목:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">부모 규칙:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">필수 접두사:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">필수 접미사:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">샘플 식별자:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">기호 종류(임의 항목과 일치 가능)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">기호 사양</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">기호 사양:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">기호 사양 제목:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">단어 구분 기호:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">예</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">식별자</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">'{0}' 설치</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">'{0}' 제거 중</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">'{0}' 제거 완료</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">'{0}' 제거</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">패키지 제거 실패: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">프로젝트를 로드하는 동안 오류가 발생했습니다. 실패한 프로젝트 및 이 프로젝트에 종속된 프로젝트에 대한 전체 솔루션 분석과 같은 일부 프로젝트 기능을 사용할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">프로젝트를 로드하지 못했습니다.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">이 문제를 일으킨 원인을 확인하려면 다음을 시도하세요. 1. Visual Studio를 닫습니다. 2. Visual Studio 개발자 명령 프롬프트를 엽니다. 3. 환경 변수 "TraceDesignTime"을 true로 설정합니다(set TraceDesignTime=true). 4. .vs 디렉터리/.suo 파일을 삭제합니다. 5. 환경 변수(devenv)를 설정한 명령 프롬프트에서 VS를 다시 시작합니다. 6. 솔루션을 엽니다. 7. '{0}'을(를) 확인하고 실패한 작업(FAILED)을 찾습니다.</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">추가 정보:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">'{0}'을(를) 설치하지 못했습니다. 추가 정보: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">'{0}'을(를) 제거하지 못했습니다. 추가 정보: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">{1} 아래로 {0} 이동</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">{1} 위로 {0} 이동</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">{0} 제거</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">{0} 복원</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">다시 사용</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">자세한 정보</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">프레임워크 형식 사용</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">미리 정의된 형식 사용</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">클립보드로 복사</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">닫기</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;알 수 없는 매개 변수&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- 내부 예외 스택 추적 끝 ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">로컬, 매개 변수 및 멤버의 경우</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">멤버 액세스 식의 경우</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">개체 이니셜라이저 사용</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">식 기본 설정:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">블록 구조 가이드</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">개요</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">코드 수준 구문에 대한 가이드 표시</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">설명 및 전처리기 영역에 대한 가이드 표시</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">선언 수준 구문에 대한 가이드 표시</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">코드 수준 구문에 대한 개요 표시</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">설명 및 전처리기 영역에 대한 개요 표시</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">선언 수준 구문에 대한 개요 표시</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">변수 기본 설정:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">인라인 변수 선언 사용</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">메서드에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">코드 블록 기본 설정:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">접근자에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">생성자에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">인덱서에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">연산자에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">속성에 식 본문 사용</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">일부 명명 규칙이 불완전합니다. 완전하게 만들거나 제거하세요.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">사양 관리</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">다시 정렬</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">심각도</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">사양</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">필수 스타일</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">이 항목은 기존 명명 규칙에서 사용되기 때문에 삭제할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">컬렉션 이니셜라이저 사용</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">coalesce 식 사용</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">정의로 축소할 때 #regions 축소</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">null 전파 사용</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">명시적 튜플 이름 기본 사용</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">설명</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">기본 설정</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">인터페이스 또는 추상 클래스 구현</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">제공된 기호의 경우, 일치하는 '사양'이 있는 최상위 규칙만 적용됩니다. 해당 규칙의 '필수 스타일' 위반은 선택한 '심각도' 수준에서 보고됩니다.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">끝에 삽입</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">속성, 이벤트 및 메서드 삽입 시 다음에 배치합니다.</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">같은 종류의 다른 멤버와 함께 있는 경우</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">중괄호 기본 사용</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">비선호:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">선호:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">또는</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">기본 제공 형식인 경우</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">다른 모든 위치인 경우</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">할당 식에서 형식이 명백하게 나타나는 경우</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">아래로 이동</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">위로 이동</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">제거</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">멤버 선택</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Visual Studio에서 사용하는 프로세스에서 복원할 수 없는 오류가 발생했습니다. 작업을 저장하고, Visual Studio를 종료한 후 다시 시작하시는 것을 권장해 드립니다.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">기호 사양 추가</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">기호 사양 제거</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">항목 추가</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">항목 편집</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">항목 제거</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">명명 규칙 추가</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">명명 규칙 제거</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">백그라운드 스레드에서 VisualStudioWorkspace.TryApplyChanges를 호출할 수 없습니다.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">throw되는 속성 선호</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">속성을 생성하는 경우:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">옵션</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">다시 표시 안 함</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">간단한 'default' 식을 기본으로 사용</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">유추된 튜플 요소 이름 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">유추된 무명 형식 멤버 이름 선호</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">미리 보기 창</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">분석</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">접근할 수 없는 코드 페이드 아웃</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">페이딩</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">익명 함수보다 로컬 함수 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">분해된 변수 선언 사용</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">외부 참조가 있습니다.</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">'{0}'에 대한 참조가 없습니다.</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">검색 결과가 없습니다.</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">자동 속성 선호</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">자동 속성 선호</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">모듈이 언로드되었습니다.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">디컴파일된 소스에 탐색을 사용하도록 설정(실험적)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">.editorconfig 파일이 이 페이지에서 구성된 로컬 설정을 재정의할 수 있으며 해당 내용은 사용자의 머신에만 적용됩니다. 솔루션과 함께 이동하도록 해당 설정을 구성하려면 EditorConfig 파일을 사용하세요. 추가 정보 </target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">클래스 뷰 동기화</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">'{0}' 분석 중</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">명명 스타일 관리</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">할당이 포함된 'if'보다 조건식 선호</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">반환이 포함된 'if'보다 조건식 선호</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.pl.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pl" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">W katalogu głównym rozwiązania wykryto nowy plik editorconfig. Czy chcesz, aby stał się on elementem rozwiązania?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Zostanie utworzona nowa przestrzeń nazw</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Konieczne jest podanie typu i nazwy.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Akcja</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Dodaj</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Dodaj parametr</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Dodaj do _bieżącego pliku</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Dodano parametr.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">W celu ukończenia refaktoryzacji wymagane są dodatkowe zmiany. Przejrzyj zmiany poniżej.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Wszystkie metody</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Wszystkie źródła</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Zezwalaj:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Zezwalaj na wiele pustych wierszy</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Zezwalaj na instrukcję bezpośrednio po bloku</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Zawsze w celu zachowania jednoznaczności</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analizatory</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Analizowanie odwołań do projektu...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Zastosuj</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Zastosuj schemat mapowania klawiszy „{0}”</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Zestawy</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Unikaj instrukcji wyrażeń, które niejawnie ignorują wartość</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Unikaj nieużywanych parametrów</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Unikaj nieużywanych przypisań wartości</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Wstecz</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Zakres analizy w tle:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32-bitowa</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64-bitowa</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Kompilacja i analiza na żywo (pakiet NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Klient języka diagnostyki języka C#/Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Obliczanie elementów zależnych...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Wartość miejsca wywołania:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Miejsce wywołania</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Powrót karetki + nowy wiersz (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Powrót karetki (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Kategoria</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Wybierz akcję, którą chcesz wykonać na nieużywanych odwołaniach.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Styl kodu</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Ukończono analizę kodu dla elementu „{0}”.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Ukończono analizę kodu dla rozwiązania.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">Analiza kodu zakończyła się przed zakończeniem dla: „{0}”.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">Analiza kodu zakończyła się przed zakończeniem dla rozwiązania.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Wskazówki kolorów</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Koloruj wyrażenia regularne</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Komentarze</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Zawierająca składowa</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Zawierający typ</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Bieżący dokument</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Bieżący parametr</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Wyłączone</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Wyświetl wszystkie wskazówki po naciśnięciu klawiszy Alt+F1</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Wyś_wietl wskazówki w tekście dla nazw parametrów</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Wyświetl wskazówki w tekście dla typów</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Edytuj</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Edytuj: {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Schemat kolorów edytora</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Opcje schematu kolorów edytora są dostępne tylko w przypadku używania motywu kolorów wbudowanego w program Visual Studio. Motyw kolorów można skonfigurować za pomocą strony Środowisko &gt; Opcje ogólne.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">Element jest nieprawidłowy.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Włącz diagnostykę operacji „pull” oprogramowania Razor (eksperymentalne, wymaga ponownego uruchomienia)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Włącz wszystkie funkcje w otwartych plikach z generatorów źródeł (eksperymentalne)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Włącz rejestrowanie plików w celach diagnostycznych (rejestrowane w folderze „%Temp%\Roslyn”)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Włącz diagnostykę operacji „pull” (eksperymentalne, wymaga ponownego uruchomienia)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Włączone</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Wprowadź wartość lokalizacji wywołania lub wybierz inny rodzaj iniekcji wartości</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Całe repozytorium</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Całe rozwiązanie</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Błąd</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Błąd podczas pomijania aktualizacji: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Szacowanie (zadania w kolejce: {0})</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Wyodrębnij klasę bazową</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Zakończ</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Formatuj dokument</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Wygeneruj plik .editorconfig na podstawie ustawień</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Wyróżnij powiązane składniki pod kursorem</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">Identyfikator</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Zaimplementowane składowe</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Implementowanie składowych</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">W innych operatorach</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Indeks</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Wnioskuj z kontekstu</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Indeksowane w organizacji</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Indeksowane w repozytorium</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margines dziedziczenia (eksperymentalny)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Wskazówki w tekście (eksperymentalne)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Wstawianie wartości miejsca wywołania „{0}”</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Zainstaluj analizatory Roslyn rekomendowane przez firmę Microsoft, które oferują dodatkową diagnostykę i poprawki w zakresie typowego projektu interfejsu API, zabezpieczeń, wydajności i niezawodności</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Interfejs nie może mieć pola.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Wprowadź niezdefiniowane zmienne TODO</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Źródło elementu</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Zachowaj</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Zachowaj wszystkie nawiasy w:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Rodzaj</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Analiza na żywo (rozszerzenie VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Załadowane elementy</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Załadowane rozwiązanie</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Lokalne</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Lokalne metadane</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Ustaw element „{0}” jako abstrakcyjny</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Ustaw jako abstrakcyjny</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Elementy członkowskie</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Preferencje modyfikatora:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Przenieś do przestrzeni nazw</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Dziedziczonych jest wiele składowych</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Na linii {0} dziedziczonych jest wiele składowych</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Wystąpił konflikt z nazwą istniejącego typu.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Nazwa nie jest prawidłowym identyfikatorem {0}.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Obszar nazw</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Przestrzeń nazw: „{0}”</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">pole</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">lokalne</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">funkcja lokalna</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">metoda</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">parametr</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">właściwość</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">parametr typu</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Pole</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Lokalny</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">metoda</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parametr</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Parametr typu</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Reguły nazewnictwa</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Przejdź do pozycji „{0}”</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Nigdy, jeśli niepotrzebne</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Nazwa nowego typu:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Preferencje nowego wiersza (eksperymentalne):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Nowy wiersz (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Nie znaleziono żadnych nieużywanych odwołań.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Metody niepubliczne</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">brak</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Pomiń (tylko dla parametrów opcjonalnych)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Otwarte dokumenty</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Parametry opcjonalne muszą określać wartość domyślną</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Opcjonalne z wartością domyślną:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Inne</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Zastąpione składowe</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Zastępowanie składowych</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Pakiety</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Szczegóły parametru</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Nazwa parametru:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Informacje o parametrach</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Rodzaj parametru</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Nazwa parametru zawiera nieprawidłowe znaki.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Preferencje dotyczące parametrów:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Typ parametru zawiera nieprawidłowe znaki.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Preferencje dotyczące nawiasów:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Wstrzymano (zadania w kolejce: {0})</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Wprowadź nazwę typu</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Preferuj element „System.HashCode” w metodzie „GetHashCode”</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Preferuj przypisania złożone</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Preferuj operator indeksowania</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Preferuj operator zakresu</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Preferuj pola tylko do odczytu</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Preferuj prostą instrukcję „using”</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Preferuj uproszczone wyrażenia logiczne</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Preferuj statyczne funkcje lokalne</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Projekty</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Podciągnij składowe w górę</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Tylko refaktoryzacja</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Odwołanie</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Wyrażenia regularne</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Usuń wszystko</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Usuń nieużywane odwołania</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Zmień nazwę {0} na {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Raportuj nieprawidłowe wyrażenia regularne</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Repozytorium</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Wymagaj:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Wymagane</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Wymaga, aby element „System.HashCode” był obecny w projekcie</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Zresetuj domyślne mapowanie klawiszy programu Visual Studio</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Przejrzyj zmiany</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Uruchom analizę kodu dla: {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Trwa analizowanie kodu dla elementu „{0}”...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Trwa analizowanie kodu dla rozwiązania...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Uruchamianie procesów w tle o niskim priorytecie</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Zapisz plik .editorconfig</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Ustawienia wyszukiwania</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Wybierz miejsce docelowe</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">_Wybierz elementy zależne</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">_Wybierz elementy publiczne</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Wybierz miejsce docelowe i składowe do podciągnięcia w górę.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Wybierz miejsce docelowe:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Wybierz składową</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Wybierz składowe:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Pokaż polecenie „Usuń nieużywane odwołania” w Eksploratorze rozwiązań (eksperymentalne)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Pokaż listę uzupełniania</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Pokaż wskazówki dla wszystkich innych elementów</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Pokazuj wskazówki dotyczące niejawnego tworzenia obiektów</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Pokaż wskazówki dla typów parametrów funkcji lambda</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Pokaż wskazówki dla literałów</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Pokaż wskazówki dla zmiennych z wnioskowanymi typami</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Pokaż margines dziedziczenia</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Niektóre kolory w schemacie kolorów są przesłaniane przez zmiany wprowadzone na stronie opcji Środowisko &gt; Czcionki i kolory. Wybierz pozycję „Użyj ustawień domyślnych” na stronie Czcionki i kolory, aby wycofać wszystkie dostosowania.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Sugestia</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Pomiń wskazówki, gdy nazwa parametru pasuje do intencji metody</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Pomiń wskazówki, gdy nazwy parametrów różnią się tylko sufiksem</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Symbole bez odwołań</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Dwukrotnie naciśnij klawisz Tab, aby wstawić argumenty (eksperymentalna)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Docelowa przestrzeń nazw:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Generator „{0}”, który wygenerował ten plik, został usunięty z projektu; ten plik nie jest już uwzględniany w Twoim projekcie.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Generator „{0}”, który wygenerował ten plik, przestał generować ten plik; ten plik nie jest już uwzględniany w Twoim projekcie.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Tej akcji nie można cofnąć. Czy chcesz kontynuować?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Ten plik jest generowany automatycznie przez generator „{0}” i nie może być edytowany.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">To jest nieprawidłowa przestrzeń nazw</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Tytuł</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Nazwa typu:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Nazwa typu zawiera błąd składni</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Nazwa typu nie jest rozpoznawana</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Nazwa typu jest rozpoznawana</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">Nieużywana wartość jest jawnie przypisywana do nieużywanej zmiennej lokalnej</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">Nieużywana wartość jest jawnie przypisywana do odrzutu</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Aktualizowanie odwołań projektu...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Aktualizowanie ważności</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Użyj procesu 64-bitowego do analizy kodu (wymaga ponownego uruchomienia)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Użyj treści wyrażenia dla wyrażeń lambda</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Użyj treści wyrażenia dla funkcji lokalnych</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Użyj nazwanego argumentu</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Wartość</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">Przypisana tu wartość nigdy nie jest używana</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Wartość:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">Wartość zwracana przez wywołanie jest niejawnie ignorowana</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Wartość do iniekcji w lokalizacjach wywołania</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Ostrzeżenie</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Ostrzeżenie: zduplikowana nazwa parametru</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Ostrzeżenie: nie można powiązać typu</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Zauważyliśmy, że element „{0}” został przez Ciebie wstrzymany. Zresetuj mapowanie klawiszy, aby kontynuować nawigowanie i refaktoryzację.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Ten obszar roboczy nie obsługuje aktualizowania opcji kompilacji dla języka Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Musisz zmienić sygnaturę</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Musisz wybrać co najmniej jeden element członkowski.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Niedozwolone znaki w ścieżce.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Nazwa pliku musi mieć rozszerzenie „{0}”.</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Debuger</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Trwa określanie lokalizacji punktu przerwania...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Trwa określanie zmiennych automatycznych...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Trwa rozpoznawanie lokalizacji punktu przerwania...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Trwa weryfikowanie lokalizacji punktu przerwania...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Trwa pobieranie tekstu etykietki danych...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Podgląd niedostępny</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Przesłania</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Przesłonione przez</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Dziedziczy</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Dziedziczone przez</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implementuje</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Zaimplementowane przez</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Otwarta jest maksymalna liczba dokumentów.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Nie powiodło się utworzenie dokumentu w projekcie o różnych plikach.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Nieprawidłowy dostęp.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">Nie znaleziono następujących odwołań. {0}Znajdź je i dodaj ręcznie.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">Pozycja końcowa musi być większa lub równa pozycji początkowej</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Nieprawidłowa wartość</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">Dziedziczone: „{0}”</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">Element „{0}” zostanie zmieniony na abstrakcyjny.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">Element „{0}” zostanie zmieniony na niestatyczny.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">Element „{0}” zostanie zmieniony na publiczny.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[wygenerowane przez: {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[wygenerowane]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">dany obszar roboczy nie obsługuje operacji cofania</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Dodaj odwołanie do elementu „{0}”</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Typ zdarzenia jest nieprawidłowy</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Nie można znaleźć miejsca do wstawienia składowej</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Nie można zmienić nazwy elementów „other”</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Nieznany typ zmiany nazwy</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Identyfikatory są nieobsługiwane w przypadku tego typu symbolu.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Nie można utworzyć identyfikatora węzła dla tego rodzaju symbolu: „{0}”</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Odwołania projektu</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Typy podstawowe</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Różne pliki</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Nie można odnaleźć projektu „{0}”</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Nie można odnaleźć lokalizacji folderu na dysku</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Zestaw </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Wyjątki:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Składowa {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parametry:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Projekt </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Uwagi:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Zwraca:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Podsumowanie:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Parametry typu:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Plik już istnieje</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">Ścieżka pliku nie może zawierać zastrzeżonych słów kluczowych</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">Element DocumentPath jest nieprawidłowy</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Ścieżka projektu jest nieprawidłowa</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Ścieżka nie może zawierać pustej nazwy pliku</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">Dany element DocumentId nie pochodzi z obszaru roboczego programu Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projekt: {0} ({1}) Przy użyciu menu rozwijanego możesz przeglądać inne projekty, do których może należeć ten plik, i przełączać się na nie.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Przy użyciu menu rozwijanego możesz wyświetlać inne elementy w tym pliku i przechodzić do nich.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projekt: {0} Użyj listy rozwijanej, aby wyświetlać inne projekty, do których może należeć ten plik i przełączać się do nich.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">Zmieniono zestaw analizatora „{0}”. Diagnostyka może nie działać poprawnie do czasu ponownego uruchomienia programu Visual Studio.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Źródło danych tabeli diagnostyki dla języka C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Źródło danych tabeli listy zadań do wykonania dla języka C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Anuluj</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Odznacz wszystkie</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Wyodrębnij interfejs</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Wygenerowana nazwa:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Nowa nazwa _pliku:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Nowa nazwa _interfejsu:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Zaznacz wszystko</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Wybierz publiczne _elementy członkowskie, aby utworzyć interfejs</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Dostęp:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Dodaj do _istniejącego pliku</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Zmień sygnaturę</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Utwórz nowy plik</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Domyślny</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Nazwa pliku:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Generuj typ</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Rodzaj:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Lokalizacja:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modyfikator</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Nazwa:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parametr</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parametry:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Podgląd sygnatury metody:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Podgląd zmian odwołania</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Projekt:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Typ</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Szczegóły typu:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">_Usuń</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Przywróć</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">Więcej informacji o elemencie {0}</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">Nawigacja musi zostać wykonana w wątku na pierwszym planie.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Odwołanie do elementu „{0}” w projekcie „{1}”</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Nieznany&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Odwołanie analizatora do elementu „{0}” w projekcie „{1}”</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Odwołanie projektu do elementu „{0}” w projekcie „{1}”</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Zestawy analizatora „{0}” i „{1}” mają tożsamość „{2}”, ale inną zawartość. Po ich załadowaniu i użyciu przez analizatory te analizatory mogą nie działać prawidłowo.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">Odwołania: {0}</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">Jedno odwołanie</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'Element „{0}” napotkał błąd i został wyłączony.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Włącz</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Włącz i ignoruj przyszłe błędy</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Brak zmian</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Bieżący blok</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Określanie bieżącego bloku.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Źródło danych tabeli kompilacji dla języka C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">Zestaw analizatora „{0}” jest zależny od zestawu „{1}”, ale nie odnaleziono go. Analizatory mogą nie działać poprawnie, dopóki brakujący zestaw również nie zostanie dodany jako odwołanie analizatora.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Pomiń diagnostykę</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Trwa obliczanie poprawki pominięcia...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Trwa stosowanie poprawki pominięcia...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Usuń pominięcia</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Trwa obliczanie poprawki usuwania pominięcia...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Trwa stosowanie poprawki usuwania pominięcia...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Ten obszar roboczy obsługuje tylko otwieranie dokumentów w wątku interfejsu użytkownika.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Ten obszar roboczy nie obsługuje aktualizowania opcji analizy programu Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Synchronizuj element {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Trwa synchronizowanie z elementem {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Program Visual Studio wstrzymał niektóre zaawansowane funkcje w celu zwiększenia wydajności.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Instalowanie składnika „{0}”</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Zakończono instalowanie składnika „{0}”</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Instalowanie pakietu nie powiodło się: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Nieznany&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Nie</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Tak</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Wybierz specyfikację symbolu i styl nazewnictwa.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Wprowadź tytuł dla tej reguły nazewnictwa.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Wprowadź tytuł dla tego stylu nazewnictwa.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Wprowadź tytuł dla tej specyfikacji symbolu.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Poziomy dostępu (mogą być zgodne z dowolnym elementem)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Wielkie litery:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">wszystko małymi literami</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">WSZYSTKO WIELKIMI LITERAMI</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Nazwa z wyrazami pisanymi wielkimi literami, pierwszy z małej</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Pierwszy wyraz wielką literą</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Nazwa z wyrazami pisanymi wielkimi literami, pierwszy z wielkiej</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Ważność:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modyfikatory (muszą być zgodne ze wszystkimi elementami)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Nazwa:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Reguła nazewnictwa</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Styl nazewnictwa</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Styl nazewnictwa:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Reguły nazewnictwa umożliwiają definiowanie sposobu nazywania określonych zestawów symboli i sposobu obsługi symboli z niepoprawnymi nazwami.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">Pierwsza zgodna reguła nazewnictwa najwyższego poziomu jest używany domyślnie podczas nazywania symbolu, a wszystkie szczególne przypadki są obsługiwane przez zgodną regułę podrzędną.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Tytuł stylu nazewnictwa:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Reguła nadrzędna:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Wymagany prefiks:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Wymagany sufiks:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Identyfikator przykładowy:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Rodzaje symboli (mogą być zgodne z dowolnym elementem)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Specyfikacja symbolu</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Specyfikacja symbolu:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Tytuł specyfikacji symbolu:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Separator wyrazów:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">przykład</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">identyfikator</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Zainstaluj składnik „{0}”</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Odinstalowywanie składnika „{0}”</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Zakończono odinstalowywanie składnika „{0}”</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Odinstaluj składnik „{0}”</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Odinstalowywanie pakietu nie powiodło się: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Napotkano błąd podczas ładowania projektu. Zostały wyłączone niektóre funkcje projektu, takie jak pełna analiza rozwiązania dla błędnego projektu i zależnych od niego projektów.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Ładowanie projektu nie powiodło się.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Aby ustalić przyczynę problemu, spróbuj wykonać poniższe czynności. 1. Zamknij program Visual Studio 2. Otwórz wiersz polecenia dla deweloperów w programie Visual Studio 3. Ustaw zmienną środowiskową „TraceDesignTime” na wartość true (set TraceDesignTime=true) 4. Usuń plik .suo w katalogu .vs 5. Uruchom ponownie program Visual Studio z poziomu wiersza polecenia, w którym została ustawiona zmienna środowiskowa (devenv) 6. Otwórz rozwiązanie 7. Sprawdź element „{0}” i poszukaj zadań zakończonych niepowodzeniem (NIEPOWODZENIE)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Informacje dodatkowe:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">Instalowanie składnika „{0}” nie powiodło się. Dodatkowe informacje: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">Odinstalowywanie składnika „{0}” nie powiodło się. Dodatkowe informacje: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Przenieś element {0} poniżej elementu {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Przenieś element {0} powyżej elementu {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Usuń element {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Przywróć element {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Włącz ponownie</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Dowiedz się więcej</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Preferuj typ struktury</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Preferuj wstępnie zdefiniowany typ</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Kopiuj do Schowka</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Zamknij</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Nieznane parametry&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Koniec śladu stosu wyjątków wewnętrznych ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Dla zmiennych lokalnych, parametrów i składowych</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Dla wyrażenia dostępu do składowych</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Preferuj inicjator obiektu</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Preferencje wyrażeń:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Prowadnice struktury blokowej</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Konspekt</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Pokaż przewodniki dla konstrukcji na poziomie kodu</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Pokaż prowadnice dla regionów komentarzy i preprocesora</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Pokaż przewodniki dla konstrukcji na poziomie deklaracji</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Pokaż konspekt dla konstrukcji na poziomie kodu</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Pokaż konspekt dla regionów komentarzy i preprocesora</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Pokaż konspekt dla konstrukcji na poziomie deklaracji</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Preferencje zmiennej:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Preferuj śródwierszową deklarację zmiennej</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Użyj treści wyrażenia dla metod</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Preferencje bloku kodu:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Użyj treści wyrażenia dla metod dostępu</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Użyj treści wyrażenia dla konstruktorów</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Użyj treści wyrażenia dla indeksatorów</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Użyj treści wyrażenia dla operatorów</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Użyj treści wyrażenia dla właściwości</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Niektóre reguły nazewnictwa są niekompletne. Uzupełnij je lub usuń.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Zarządzaj specyfikacjami</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Zmień kolejność</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Ważność</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Specyfikacja</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Wymagany styl</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Nie można usunąć tego elementu, ponieważ jest on używany przez istniejącą regułę nazewnictwa.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Preferuj inicjator kolekcji</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Preferuj wyrażenie łączące</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Zwiń bloki #regions podczas zwijania do definicji</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Preferuj propagację wartości null</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Preferuj jawną nazwę krotki</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Opis</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Preferencja</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Implementuj interfejs lub klasę abstrakcyjną</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Dla danego symbolu zostanie zastosowana tylko reguła najwyższego poziomu ze zgodną specyfikacją. Naruszenie wymaganego stylu tej reguły będzie raportowane na wybranym poziomie ważności.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">na końcu</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">W przypadku wstawiania właściwości, zdarzeń i metod umieszczaj je:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">z innymi składowymi tego samego rodzaju</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Preferuj klamry</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">Przed:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Preferuj:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">lub</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">wbudowane typy</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">gdziekolwiek indziej</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">typ jest widoczny z wyrażenia przypisania</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Przenieś w dół</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Przenieś w górę</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Usuń</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Wybierz składowe</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Niestety, proces używany przez program Visual Studio napotkał nieodwracalny błąd. Zalecamy zapisanie pracy, a następnie zamknięcie i ponowne uruchomienie programu Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Dodaj specyfikację symbolu</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Usuń specyfikację symbolu</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Dodaj element</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Edytuj element</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Usuń element</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Dodaj regułę nazewnictwa</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Usuń regułę nazewnictwa</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">Nie można wywołać elementu VisualStudioWorkspace.TryApplyChanges z wątku w tle.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">preferuj właściwości przerzucane</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Podczas generowania właściwości:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Opcje</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Nie pokazuj tego ponownie</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Preferuj proste wyrażenie „default”</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Preferuj wywnioskowane nazwy elementów krotki</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Preferuj wywnioskowane nazwy anonimowych składowych typu</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Okienko podglądu</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Analiza</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Zanikanie nieosiągalnego kodu</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Zanikanie</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Preferuj funkcję lokalną zamiast funkcji anonimowej</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Preferuj śródwierszową deklarację zmiennej</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Znaleziono odwołanie zewnętrzne</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Nie znaleziono odwołań do elementu „{0}”</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">Brak wyników wyszukiwania</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Preferuj właściwości automatyczne</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">preferuj właściwości automatyczne</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Moduł został zwolniony.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Włącz nawigowanie do dekompilowanych źródeł (funkcja eksperymentalna)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">Plik editorconfig może przesłonić ustawienia lokalne skonfigurowane na tej stronie, które mają zastosowanie tylko do maszyny. Aby skonfigurować te ustawienia w celu ich przenoszenia wraz z rozwiązaniem, skorzystaj z plików EditorConfig. Więcej informacji</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Synchronizuj widok klasy</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Analizowanie elementu „{0}”</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Zarządzaj stylami nazewnictwa</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Preferuj wyrażenia warunkowe przed instrukcjami „if” z przypisaniami</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Preferuj wyrażenia warunkowe przed instrukcjami „if” ze zwracaniem</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pl" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Zostanie utworzona nowa przestrzeń nazw</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Konieczne jest podanie typu i nazwy.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Akcja</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Dodaj</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Dodaj parametr</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Dodaj do _bieżącego pliku</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Dodano parametr.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">W celu ukończenia refaktoryzacji wymagane są dodatkowe zmiany. Przejrzyj zmiany poniżej.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Wszystkie metody</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Wszystkie źródła</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Zezwalaj:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Zezwalaj na wiele pustych wierszy</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Zezwalaj na instrukcję bezpośrednio po bloku</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Zawsze w celu zachowania jednoznaczności</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analizatory</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Analizowanie odwołań do projektu...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Zastosuj</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Zastosuj schemat mapowania klawiszy „{0}”</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Zestawy</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Unikaj instrukcji wyrażeń, które niejawnie ignorują wartość</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Unikaj nieużywanych parametrów</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Unikaj nieużywanych przypisań wartości</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Wstecz</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Zakres analizy w tle:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32-bitowa</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64-bitowa</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Kompilacja i analiza na żywo (pakiet NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Klient języka diagnostyki języka C#/Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Obliczanie elementów zależnych...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Wartość miejsca wywołania:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Miejsce wywołania</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Powrót karetki + nowy wiersz (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Powrót karetki (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Kategoria</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Wybierz akcję, którą chcesz wykonać na nieużywanych odwołaniach.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Styl kodu</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Ukończono analizę kodu dla elementu „{0}”.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Ukończono analizę kodu dla rozwiązania.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">Analiza kodu zakończyła się przed zakończeniem dla: „{0}”.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">Analiza kodu zakończyła się przed zakończeniem dla rozwiązania.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Wskazówki kolorów</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Koloruj wyrażenia regularne</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Komentarze</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Zawierająca składowa</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Zawierający typ</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Bieżący dokument</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Bieżący parametr</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Wyłączone</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Wyświetl wszystkie wskazówki po naciśnięciu klawiszy Alt+F1</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Wyś_wietl wskazówki w tekście dla nazw parametrów</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Wyświetl wskazówki w tekście dla typów</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Edytuj</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Edytuj: {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Schemat kolorów edytora</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Opcje schematu kolorów edytora są dostępne tylko w przypadku używania motywu kolorów wbudowanego w program Visual Studio. Motyw kolorów można skonfigurować za pomocą strony Środowisko &gt; Opcje ogólne.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">Element jest nieprawidłowy.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Włącz diagnostykę operacji „pull” oprogramowania Razor (eksperymentalne, wymaga ponownego uruchomienia)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Włącz wszystkie funkcje w otwartych plikach z generatorów źródeł (eksperymentalne)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Włącz rejestrowanie plików w celach diagnostycznych (rejestrowane w folderze „%Temp%\Roslyn”)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Włącz diagnostykę operacji „pull” (eksperymentalne, wymaga ponownego uruchomienia)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Włączone</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Wprowadź wartość lokalizacji wywołania lub wybierz inny rodzaj iniekcji wartości</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Całe repozytorium</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Całe rozwiązanie</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Błąd</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Błąd podczas pomijania aktualizacji: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Szacowanie (zadania w kolejce: {0})</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Wyodrębnij klasę bazową</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Zakończ</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Formatuj dokument</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Wygeneruj plik .editorconfig na podstawie ustawień</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Wyróżnij powiązane składniki pod kursorem</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">Identyfikator</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Zaimplementowane składowe</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Implementowanie składowych</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">W innych operatorach</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Indeks</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Wnioskuj z kontekstu</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Indeksowane w organizacji</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Indeksowane w repozytorium</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margines dziedziczenia (eksperymentalny)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Wskazówki w tekście (eksperymentalne)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Wstawianie wartości miejsca wywołania „{0}”</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Zainstaluj analizatory Roslyn rekomendowane przez firmę Microsoft, które oferują dodatkową diagnostykę i poprawki w zakresie typowego projektu interfejsu API, zabezpieczeń, wydajności i niezawodności</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Interfejs nie może mieć pola.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Wprowadź niezdefiniowane zmienne TODO</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Źródło elementu</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Zachowaj</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Zachowaj wszystkie nawiasy w:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Rodzaj</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Analiza na żywo (rozszerzenie VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Załadowane elementy</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Załadowane rozwiązanie</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Lokalne</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Lokalne metadane</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Ustaw element „{0}” jako abstrakcyjny</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Ustaw jako abstrakcyjny</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Elementy członkowskie</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Preferencje modyfikatora:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Przenieś do przestrzeni nazw</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Dziedziczonych jest wiele składowych</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Na linii {0} dziedziczonych jest wiele składowych</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Wystąpił konflikt z nazwą istniejącego typu.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Nazwa nie jest prawidłowym identyfikatorem {0}.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Obszar nazw</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Przestrzeń nazw: „{0}”</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">pole</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">lokalne</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">funkcja lokalna</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">metoda</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">parametr</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">właściwość</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">parametr typu</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Pole</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Lokalny</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">metoda</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parametr</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Parametr typu</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Reguły nazewnictwa</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Przejdź do pozycji „{0}”</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Nigdy, jeśli niepotrzebne</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Nazwa nowego typu:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Preferencje nowego wiersza (eksperymentalne):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Nowy wiersz (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Nie znaleziono żadnych nieużywanych odwołań.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Metody niepubliczne</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">brak</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Pomiń (tylko dla parametrów opcjonalnych)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Otwarte dokumenty</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Parametry opcjonalne muszą określać wartość domyślną</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Opcjonalne z wartością domyślną:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Inne</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Zastąpione składowe</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Zastępowanie składowych</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Pakiety</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Szczegóły parametru</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Nazwa parametru:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Informacje o parametrach</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Rodzaj parametru</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Nazwa parametru zawiera nieprawidłowe znaki.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Preferencje dotyczące parametrów:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Typ parametru zawiera nieprawidłowe znaki.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Preferencje dotyczące nawiasów:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Wstrzymano (zadania w kolejce: {0})</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Wprowadź nazwę typu</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Preferuj element „System.HashCode” w metodzie „GetHashCode”</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Preferuj przypisania złożone</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Preferuj operator indeksowania</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Preferuj operator zakresu</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Preferuj pola tylko do odczytu</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Preferuj prostą instrukcję „using”</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Preferuj uproszczone wyrażenia logiczne</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Preferuj statyczne funkcje lokalne</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Projekty</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Podciągnij składowe w górę</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Tylko refaktoryzacja</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Odwołanie</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Wyrażenia regularne</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Usuń wszystko</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Usuń nieużywane odwołania</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Zmień nazwę {0} na {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Raportuj nieprawidłowe wyrażenia regularne</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Repozytorium</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Wymagaj:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Wymagane</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Wymaga, aby element „System.HashCode” był obecny w projekcie</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Zresetuj domyślne mapowanie klawiszy programu Visual Studio</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Przejrzyj zmiany</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Uruchom analizę kodu dla: {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Trwa analizowanie kodu dla elementu „{0}”...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Trwa analizowanie kodu dla rozwiązania...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Uruchamianie procesów w tle o niskim priorytecie</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Zapisz plik .editorconfig</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Ustawienia wyszukiwania</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Wybierz miejsce docelowe</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">_Wybierz elementy zależne</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">_Wybierz elementy publiczne</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Wybierz miejsce docelowe i składowe do podciągnięcia w górę.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Wybierz miejsce docelowe:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Wybierz składową</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Wybierz składowe:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Pokaż polecenie „Usuń nieużywane odwołania” w Eksploratorze rozwiązań (eksperymentalne)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Pokaż listę uzupełniania</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Pokaż wskazówki dla wszystkich innych elementów</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Pokazuj wskazówki dotyczące niejawnego tworzenia obiektów</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Pokaż wskazówki dla typów parametrów funkcji lambda</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Pokaż wskazówki dla literałów</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Pokaż wskazówki dla zmiennych z wnioskowanymi typami</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Pokaż margines dziedziczenia</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Niektóre kolory w schemacie kolorów są przesłaniane przez zmiany wprowadzone na stronie opcji Środowisko &gt; Czcionki i kolory. Wybierz pozycję „Użyj ustawień domyślnych” na stronie Czcionki i kolory, aby wycofać wszystkie dostosowania.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Sugestia</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Pomiń wskazówki, gdy nazwa parametru pasuje do intencji metody</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Pomiń wskazówki, gdy nazwy parametrów różnią się tylko sufiksem</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Symbole bez odwołań</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Dwukrotnie naciśnij klawisz Tab, aby wstawić argumenty (eksperymentalna)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Docelowa przestrzeń nazw:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Generator „{0}”, który wygenerował ten plik, został usunięty z projektu; ten plik nie jest już uwzględniany w Twoim projekcie.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Generator „{0}”, który wygenerował ten plik, przestał generować ten plik; ten plik nie jest już uwzględniany w Twoim projekcie.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Tej akcji nie można cofnąć. Czy chcesz kontynuować?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Ten plik jest generowany automatycznie przez generator „{0}” i nie może być edytowany.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">To jest nieprawidłowa przestrzeń nazw</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Tytuł</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Nazwa typu:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Nazwa typu zawiera błąd składni</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Nazwa typu nie jest rozpoznawana</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Nazwa typu jest rozpoznawana</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">Nieużywana wartość jest jawnie przypisywana do nieużywanej zmiennej lokalnej</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">Nieużywana wartość jest jawnie przypisywana do odrzutu</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Aktualizowanie odwołań projektu...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Aktualizowanie ważności</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Użyj procesu 64-bitowego do analizy kodu (wymaga ponownego uruchomienia)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Użyj treści wyrażenia dla wyrażeń lambda</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Użyj treści wyrażenia dla funkcji lokalnych</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Użyj nazwanego argumentu</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Wartość</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">Przypisana tu wartość nigdy nie jest używana</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Wartość:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">Wartość zwracana przez wywołanie jest niejawnie ignorowana</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Wartość do iniekcji w lokalizacjach wywołania</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Ostrzeżenie</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Ostrzeżenie: zduplikowana nazwa parametru</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Ostrzeżenie: nie można powiązać typu</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Zauważyliśmy, że element „{0}” został przez Ciebie wstrzymany. Zresetuj mapowanie klawiszy, aby kontynuować nawigowanie i refaktoryzację.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Ten obszar roboczy nie obsługuje aktualizowania opcji kompilacji dla języka Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Musisz zmienić sygnaturę</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Musisz wybrać co najmniej jeden element członkowski.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Niedozwolone znaki w ścieżce.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Nazwa pliku musi mieć rozszerzenie „{0}”.</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Debuger</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Trwa określanie lokalizacji punktu przerwania...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Trwa określanie zmiennych automatycznych...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Trwa rozpoznawanie lokalizacji punktu przerwania...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Trwa weryfikowanie lokalizacji punktu przerwania...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Trwa pobieranie tekstu etykietki danych...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Podgląd niedostępny</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Przesłania</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Przesłonione przez</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Dziedziczy</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Dziedziczone przez</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implementuje</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Zaimplementowane przez</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Otwarta jest maksymalna liczba dokumentów.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Nie powiodło się utworzenie dokumentu w projekcie o różnych plikach.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Nieprawidłowy dostęp.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">Nie znaleziono następujących odwołań. {0}Znajdź je i dodaj ręcznie.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">Pozycja końcowa musi być większa lub równa pozycji początkowej</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Nieprawidłowa wartość</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">Dziedziczone: „{0}”</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">Element „{0}” zostanie zmieniony na abstrakcyjny.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">Element „{0}” zostanie zmieniony na niestatyczny.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">Element „{0}” zostanie zmieniony na publiczny.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[wygenerowane przez: {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[wygenerowane]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">dany obszar roboczy nie obsługuje operacji cofania</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Dodaj odwołanie do elementu „{0}”</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Typ zdarzenia jest nieprawidłowy</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Nie można znaleźć miejsca do wstawienia składowej</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Nie można zmienić nazwy elementów „other”</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Nieznany typ zmiany nazwy</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Identyfikatory są nieobsługiwane w przypadku tego typu symbolu.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Nie można utworzyć identyfikatora węzła dla tego rodzaju symbolu: „{0}”</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Odwołania projektu</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Typy podstawowe</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Różne pliki</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Nie można odnaleźć projektu „{0}”</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Nie można odnaleźć lokalizacji folderu na dysku</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Zestaw </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Wyjątki:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Składowa {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parametry:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Projekt </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Uwagi:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Zwraca:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Podsumowanie:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Parametry typu:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Plik już istnieje</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">Ścieżka pliku nie może zawierać zastrzeżonych słów kluczowych</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">Element DocumentPath jest nieprawidłowy</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Ścieżka projektu jest nieprawidłowa</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Ścieżka nie może zawierać pustej nazwy pliku</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">Dany element DocumentId nie pochodzi z obszaru roboczego programu Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projekt: {0} ({1}) Przy użyciu menu rozwijanego możesz przeglądać inne projekty, do których może należeć ten plik, i przełączać się na nie.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Przy użyciu menu rozwijanego możesz wyświetlać inne elementy w tym pliku i przechodzić do nich.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projekt: {0} Użyj listy rozwijanej, aby wyświetlać inne projekty, do których może należeć ten plik i przełączać się do nich.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">Zmieniono zestaw analizatora „{0}”. Diagnostyka może nie działać poprawnie do czasu ponownego uruchomienia programu Visual Studio.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Źródło danych tabeli diagnostyki dla języka C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Źródło danych tabeli listy zadań do wykonania dla języka C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Anuluj</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Odznacz wszystkie</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Wyodrębnij interfejs</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Wygenerowana nazwa:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Nowa nazwa _pliku:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Nowa nazwa _interfejsu:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Zaznacz wszystko</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Wybierz publiczne _elementy członkowskie, aby utworzyć interfejs</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Dostęp:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Dodaj do _istniejącego pliku</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Zmień sygnaturę</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Utwórz nowy plik</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Domyślny</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Nazwa pliku:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Generuj typ</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Rodzaj:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Lokalizacja:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modyfikator</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Nazwa:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parametr</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parametry:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Podgląd sygnatury metody:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Podgląd zmian odwołania</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Projekt:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Typ</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Szczegóły typu:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">_Usuń</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Przywróć</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">Więcej informacji o elemencie {0}</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">Nawigacja musi zostać wykonana w wątku na pierwszym planie.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Odwołanie do elementu „{0}” w projekcie „{1}”</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Nieznany&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Odwołanie analizatora do elementu „{0}” w projekcie „{1}”</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Odwołanie projektu do elementu „{0}” w projekcie „{1}”</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Zestawy analizatora „{0}” i „{1}” mają tożsamość „{2}”, ale inną zawartość. Po ich załadowaniu i użyciu przez analizatory te analizatory mogą nie działać prawidłowo.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">Odwołania: {0}</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">Jedno odwołanie</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'Element „{0}” napotkał błąd i został wyłączony.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Włącz</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Włącz i ignoruj przyszłe błędy</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Brak zmian</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Bieżący blok</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Określanie bieżącego bloku.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Źródło danych tabeli kompilacji dla języka C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">Zestaw analizatora „{0}” jest zależny od zestawu „{1}”, ale nie odnaleziono go. Analizatory mogą nie działać poprawnie, dopóki brakujący zestaw również nie zostanie dodany jako odwołanie analizatora.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Pomiń diagnostykę</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Trwa obliczanie poprawki pominięcia...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Trwa stosowanie poprawki pominięcia...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Usuń pominięcia</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Trwa obliczanie poprawki usuwania pominięcia...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Trwa stosowanie poprawki usuwania pominięcia...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Ten obszar roboczy obsługuje tylko otwieranie dokumentów w wątku interfejsu użytkownika.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Ten obszar roboczy nie obsługuje aktualizowania opcji analizy programu Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Synchronizuj element {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Trwa synchronizowanie z elementem {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Program Visual Studio wstrzymał niektóre zaawansowane funkcje w celu zwiększenia wydajności.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Instalowanie składnika „{0}”</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Zakończono instalowanie składnika „{0}”</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Instalowanie pakietu nie powiodło się: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Nieznany&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Nie</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Tak</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Wybierz specyfikację symbolu i styl nazewnictwa.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Wprowadź tytuł dla tej reguły nazewnictwa.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Wprowadź tytuł dla tego stylu nazewnictwa.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Wprowadź tytuł dla tej specyfikacji symbolu.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Poziomy dostępu (mogą być zgodne z dowolnym elementem)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Wielkie litery:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">wszystko małymi literami</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">WSZYSTKO WIELKIMI LITERAMI</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Nazwa z wyrazami pisanymi wielkimi literami, pierwszy z małej</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Pierwszy wyraz wielką literą</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Nazwa z wyrazami pisanymi wielkimi literami, pierwszy z wielkiej</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Ważność:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modyfikatory (muszą być zgodne ze wszystkimi elementami)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Nazwa:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Reguła nazewnictwa</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Styl nazewnictwa</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Styl nazewnictwa:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Reguły nazewnictwa umożliwiają definiowanie sposobu nazywania określonych zestawów symboli i sposobu obsługi symboli z niepoprawnymi nazwami.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">Pierwsza zgodna reguła nazewnictwa najwyższego poziomu jest używany domyślnie podczas nazywania symbolu, a wszystkie szczególne przypadki są obsługiwane przez zgodną regułę podrzędną.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Tytuł stylu nazewnictwa:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Reguła nadrzędna:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Wymagany prefiks:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Wymagany sufiks:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Identyfikator przykładowy:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Rodzaje symboli (mogą być zgodne z dowolnym elementem)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Specyfikacja symbolu</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Specyfikacja symbolu:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Tytuł specyfikacji symbolu:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Separator wyrazów:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">przykład</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">identyfikator</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Zainstaluj składnik „{0}”</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Odinstalowywanie składnika „{0}”</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Zakończono odinstalowywanie składnika „{0}”</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Odinstaluj składnik „{0}”</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Odinstalowywanie pakietu nie powiodło się: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Napotkano błąd podczas ładowania projektu. Zostały wyłączone niektóre funkcje projektu, takie jak pełna analiza rozwiązania dla błędnego projektu i zależnych od niego projektów.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Ładowanie projektu nie powiodło się.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Aby ustalić przyczynę problemu, spróbuj wykonać poniższe czynności. 1. Zamknij program Visual Studio 2. Otwórz wiersz polecenia dla deweloperów w programie Visual Studio 3. Ustaw zmienną środowiskową „TraceDesignTime” na wartość true (set TraceDesignTime=true) 4. Usuń plik .suo w katalogu .vs 5. Uruchom ponownie program Visual Studio z poziomu wiersza polecenia, w którym została ustawiona zmienna środowiskowa (devenv) 6. Otwórz rozwiązanie 7. Sprawdź element „{0}” i poszukaj zadań zakończonych niepowodzeniem (NIEPOWODZENIE)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Informacje dodatkowe:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">Instalowanie składnika „{0}” nie powiodło się. Dodatkowe informacje: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">Odinstalowywanie składnika „{0}” nie powiodło się. Dodatkowe informacje: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Przenieś element {0} poniżej elementu {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Przenieś element {0} powyżej elementu {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Usuń element {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Przywróć element {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Włącz ponownie</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Dowiedz się więcej</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Preferuj typ struktury</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Preferuj wstępnie zdefiniowany typ</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Kopiuj do Schowka</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Zamknij</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Nieznane parametry&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Koniec śladu stosu wyjątków wewnętrznych ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Dla zmiennych lokalnych, parametrów i składowych</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Dla wyrażenia dostępu do składowych</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Preferuj inicjator obiektu</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Preferencje wyrażeń:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Prowadnice struktury blokowej</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Konspekt</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Pokaż przewodniki dla konstrukcji na poziomie kodu</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Pokaż prowadnice dla regionów komentarzy i preprocesora</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Pokaż przewodniki dla konstrukcji na poziomie deklaracji</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Pokaż konspekt dla konstrukcji na poziomie kodu</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Pokaż konspekt dla regionów komentarzy i preprocesora</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Pokaż konspekt dla konstrukcji na poziomie deklaracji</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Preferencje zmiennej:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Preferuj śródwierszową deklarację zmiennej</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Użyj treści wyrażenia dla metod</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Preferencje bloku kodu:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Użyj treści wyrażenia dla metod dostępu</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Użyj treści wyrażenia dla konstruktorów</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Użyj treści wyrażenia dla indeksatorów</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Użyj treści wyrażenia dla operatorów</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Użyj treści wyrażenia dla właściwości</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Niektóre reguły nazewnictwa są niekompletne. Uzupełnij je lub usuń.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Zarządzaj specyfikacjami</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Zmień kolejność</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Ważność</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Specyfikacja</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Wymagany styl</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Nie można usunąć tego elementu, ponieważ jest on używany przez istniejącą regułę nazewnictwa.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Preferuj inicjator kolekcji</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Preferuj wyrażenie łączące</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Zwiń bloki #regions podczas zwijania do definicji</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Preferuj propagację wartości null</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Preferuj jawną nazwę krotki</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Opis</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Preferencja</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Implementuj interfejs lub klasę abstrakcyjną</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Dla danego symbolu zostanie zastosowana tylko reguła najwyższego poziomu ze zgodną specyfikacją. Naruszenie wymaganego stylu tej reguły będzie raportowane na wybranym poziomie ważności.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">na końcu</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">W przypadku wstawiania właściwości, zdarzeń i metod umieszczaj je:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">z innymi składowymi tego samego rodzaju</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Preferuj klamry</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">Przed:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Preferuj:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">lub</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">wbudowane typy</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">gdziekolwiek indziej</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">typ jest widoczny z wyrażenia przypisania</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Przenieś w dół</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Przenieś w górę</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Usuń</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Wybierz składowe</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Niestety, proces używany przez program Visual Studio napotkał nieodwracalny błąd. Zalecamy zapisanie pracy, a następnie zamknięcie i ponowne uruchomienie programu Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Dodaj specyfikację symbolu</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Usuń specyfikację symbolu</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Dodaj element</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Edytuj element</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Usuń element</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Dodaj regułę nazewnictwa</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Usuń regułę nazewnictwa</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">Nie można wywołać elementu VisualStudioWorkspace.TryApplyChanges z wątku w tle.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">preferuj właściwości przerzucane</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Podczas generowania właściwości:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Opcje</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Nie pokazuj tego ponownie</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Preferuj proste wyrażenie „default”</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Preferuj wywnioskowane nazwy elementów krotki</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Preferuj wywnioskowane nazwy anonimowych składowych typu</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Okienko podglądu</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Analiza</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Zanikanie nieosiągalnego kodu</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Zanikanie</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Preferuj funkcję lokalną zamiast funkcji anonimowej</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Preferuj śródwierszową deklarację zmiennej</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Znaleziono odwołanie zewnętrzne</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Nie znaleziono odwołań do elementu „{0}”</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">Brak wyników wyszukiwania</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Preferuj właściwości automatyczne</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">preferuj właściwości automatyczne</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Moduł został zwolniony.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Włącz nawigowanie do dekompilowanych źródeł (funkcja eksperymentalna)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">Plik editorconfig może przesłonić ustawienia lokalne skonfigurowane na tej stronie, które mają zastosowanie tylko do maszyny. Aby skonfigurować te ustawienia w celu ich przenoszenia wraz z rozwiązaniem, skorzystaj z plików EditorConfig. Więcej informacji</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Synchronizuj widok klasy</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Analizowanie elementu „{0}”</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Zarządzaj stylami nazewnictwa</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Preferuj wyrażenia warunkowe przed instrukcjami „if” z przypisaniami</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Preferuj wyrażenia warunkowe przed instrukcjami „if” ze zwracaniem</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.pt-BR.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pt-BR" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">Um novo arquivo .editorconfig foi detectado na raiz da sua solução. Deseja torná-lo um item de solução?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Um namespace será criado</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Um tipo e um nome precisam ser fornecidos.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Ação</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Adicionar</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Adicionar Parâmetro</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Adicionar ao _arquivo atual</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Parâmetro adicionado.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Alterações adicionais são necessárias para concluir a refatoração. Revise as alterações abaixo.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Todos os métodos</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Todas as fontes</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Permitir:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Permitir várias linhas em branco</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Permitir uma instrução imediatamente após o bloco</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Sempre para esclarecimento</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analisadores</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Analisando as referências do projeto...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Aplicar</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Aplicar esquema de mapeamento de teclas '{0}'</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Assemblies</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Evitar instruções de expressão que implicitamente ignoram valor</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Evitar parâmetros não utilizados</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Evitar atribuições de valor não utilizadas</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Voltar</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Escopo da análise em segundo plano:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 bits</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 bits</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Build + análise em tempo real (pacote NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Cliente da Linguagem de Diagnóstico C#/Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Calculando dependentes...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Chamar valor do site:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Chamar site</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Retorno de Carro + Nova linha (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Retorno de carro (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Categoria</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Escolha qual ação você deseja executar nas referências não usadas.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Estilo do Código</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Análise de código concluída para '{0}'.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Análise de código concluída para a Solução.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">Análise de código terminada antes da conclusão para '{0}'.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">Análise de código terminada antes da conclusão da Solução.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Dicas com cores</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Colorir expressões regulares</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Comentários</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Contendo Membro</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Contendo Tipo</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Documento atual</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Parâmetro atual</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Desabilitado</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Exibir todas as dicas ao pressionar Alt+F1</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Exi_bir as dicas embutidas de nome de parâmetro</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Exibir as dicas embutidas de tipo</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Editar</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Editar {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Esquema de Cores do Editor</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">As opções do esquema de cores do editor estão disponíveis somente ao usar um tema de cores agrupado com Visual Studio. O tema de cores pode ser configurado na página Ambiente &gt; Opções gerais.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">O elemento é inválido.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Habilitar o diagnóstico de 'pull' do Razor (experimental, exige uma reinicialização)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Habilitar todos os recursos nos arquivos abertos dos geradores de origem (experimental)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Habilite o registro de arquivos para diagnósticos (logado na pasta '%Temp%\Roslyn')</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Habilitar o diagnóstico de 'pull' (experimental, exige uma reinicialização)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Habilitado</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Insira um valor de site de chamada ou escolha um tipo de injeção de valor diferente</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Repositório inteiro</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Solução Inteira</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Erro</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Erro ao atualizar supressões: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Avaliando ({0} tarefas na fila)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Extrair a Classe Base</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Concluir</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Formatar o documento</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Gerar o arquivo .editorconfig das configurações</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Realçar componentes relacionados usando o cursor</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Membros implementados</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Implementando membros</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">Em outros operadores</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Índice</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Inferir do contexto</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Indexado na organização</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Indexado no repositório</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margem de Herança (experimental)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Dicas Embutidas (experimental)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Inserindo o valor do site de chamada '{0}'</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Instale os analisadores Roslyn recomendados pela Microsoft, que fornecem diagnósticos adicionais e correções para problemas comuns de confiabilidade, desempenho, segurança e design de API</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">A interface não pode ter campo.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Introduzir variáveis de TODO indefinidas</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Origem do item</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Manter</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Mantenha todos os parênteses em:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Análise em tempo real (extensão do VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Itens carregados</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Solução carregada</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Local</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Metadados locais</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Fazer '{0}' abstrato</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Fazer abstrato</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Membros</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Preferências do modificador:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Mover para o Namespace</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Múltiplos membros são herdados</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Múltiplos membros são herdados online {0}</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">O nome está em conflito com um nome de tipo existente.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">O nome não é um identificador de {0} válido.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Namespace</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Namespace: '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">Campo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">local</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">função local</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">método</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">parâmetro</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">propriedade</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">parâmetro de tipo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Campo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Local</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">método</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parâmetro</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Parâmetro de Tipo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Regras de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Navegar até '{0}'</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Nunca se desnecessário</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Novo Nome de Tipo:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Preferências de nova linha (experimental):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Nova linha (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Não foi encontrada nenhuma referência não usada.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Métodos não públicos</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">NENHUM</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Omitir (somente para parâmetros opcionais)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Abrir documentos</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Os parâmetros opcionais precisam especificar um valor padrão</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Opcional com o valor padrão:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Outros</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Membros substituídos</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Substituindo membros</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Pacotes</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Detalhes do Parâmetro</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Nome do parâmetro:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Informações do parâmetro</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Tipo de parâmetro</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">O nome do parâmetro contém caracteres inválidos.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Preferências de parâmetro:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">O tipo de parâmetro contém caracteres inválidos.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Preferências de parênteses:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Em pausa ({0} tarefas na fila)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Insira um nome de tipo</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Prefira 'System.HashCode' em 'GetHashCode'</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Preferir atribuições de compostos</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Preferir operador de índice</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Preferir operador de intervalo</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Preferir campos readonly</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Preferir a instrução 'using' simples</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Preferir expressões boolianas simplificadas</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Preferir as funções locais estáticas</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Projetos</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Levantar os membros</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Somente Refatoração</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Referência</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Expressões regulares</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Remover Tudo</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Remover as Referências Não Usadas</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Renomear {0} para {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Relatar expressões regulares inválidas</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Repositório</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Exigir:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Necessário</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Requer que 'System.HashCode' esteja presente no projeto</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Redefinir mapeamento de teclas padrão do Visual Studio</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Revisar alterações</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Executar Análise de Código em {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Executando a análise de código para '{0}'...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Executando a análise de código para a Solução...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Executando processos de baixa prioridade em segundo plano</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Salvar arquivo .editorconfig</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Pesquisar as Configurações</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Selecionar destino</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Selecionar _Dependentes</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Selecionar _Público</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Selecionar o destino e os membros a serem exibidos.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Selecionar destino:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Selecionar membro</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Selecionar membros:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Mostrar o comando "Remover as Referências Não Usadas" no Gerenciador de Soluções (experimental)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Mostrar a lista de conclusão</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Mostrar as dicas para tudo</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Mostrar dicas para a criação de objeto implícito</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Mostrar as dicas para os tipos de parâmetro lambda</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Mostrar as dicas para os literais</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Mostrar as dicas para as variáveis com tipos inferidos</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Mostrar margem de herança</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Algumas cores do esquema de cores estão sendo substituídas pelas alterações feitas na página de Ambiente &gt; Opções de Fontes e Cores. Escolha 'Usar Padrões' na página Fontes e Cores para reverter todas as personalizações.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Sugestão</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Suprimir as dicas quando o nome do parâmetro corresponder à intenção do método</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Suprimir as dicas quando os nomes de parâmetros diferirem somente pelo sufixo</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Símbolos sem referências</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Pressione Tab duas vezes para inserir argumentos (experimental)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Namespace de Destino:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">O gerador '{0}' que gerou esse arquivo foi removido do projeto. Esse arquivo não será mais incluído no projeto.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">O gerador '{0}' que gerou esse arquivo parou de gerá-lo. Esse arquivo não será mais incluído no projeto.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Esta ação não pode ser desfeita. Deseja continuar?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Esse arquivo é gerado automaticamente pelo gerador '{0}' e não pode ser editado.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Este é um namespace inválido</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Título</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Nome do tipo:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">O nome do Tipo tem um erro de sintaxe</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">O nome do Tipo não é reconhecido</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">O nome do Tipo é reconhecido</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">O valor não utilizado é explicitamente atribuído a um local não utilizado</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">O valor não utilizado é explicitamente atribuído ao descarte</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Atualizando as referências do projeto...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Atualizando a severidade</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Usar o processo de 64 bits para análise de código (requer reinicialização)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Usar o corpo da expressão para lambdas</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Usar o corpo da expressão para funções locais</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Usar argumento nomeado</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Valor</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">O valor atribuído aqui nunca é usado</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Valor:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">O valor retornado por chamada é implicitamente ignorado</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Valor a ser injetado nos sites de chamada</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Aviso</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Aviso: nome de parâmetro duplicado</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Aviso: o tipo não se associa</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Notamos que você suspendeu '{0}'. Redefina os mapeamentos de teclas para continuar a navegar e refatorar.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Este workspace não é compatível com a atualização das opções de compilação do Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Você precisa alterar a assinatura</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Você deve selecionar pelo menos um membro.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">O caminho contém caracteres inválidos.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">O nome do arquivo deve ter a extensão "{0}".</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Depurador</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Determinando a localização do ponto de interrupção...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Determinando autos...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Resolvendo a localização do ponto de interrupção...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Validando localização do ponto de interrupção...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Obtendo texto DataTip...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Visualização não disponível</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Substitui</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Substituído por</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Herda</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Herdado por</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implementos</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Implementado por</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Número máximo de documentos abertos.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Falha ao criar o documento no projeto arquivos diversos.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Acesso inválido.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">As referências a seguir não foram encontradas. {0}Localize e adicione-as manualmente.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">A posição final deve ser &gt;= posição inicial</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">O valor não é válido</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">'{0}' é herdado</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}' será alterado para abstrato.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}' será alterado para não estático.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}' será alterado para público.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[gerado por {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[gerado]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">o workspace fornecido não dá suporte a desfazer</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Adicionar uma referência a '{0}'</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">O tipo de evento é inválido</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Não é possível encontrar onde inserir o membro</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Não é possível renomear 'outros' elementos</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Tipo de renomeação desconhecido</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Este tipo de símbolo não dá suporte a IDs.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Não é possível criar uma ID de nó para esse tipo de símbolo: '{0}'</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Referências do Projeto</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Tipos Base</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Arquivos Diversos</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Não foi possível encontrar o projeto '{0}'</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Não foi possível encontrar o local da pasta no disco</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Assembly </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Exceções:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Membro de {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parâmetros:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Projeto </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Comentários:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Devoluções:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Resumo:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Parâmetros de Tipo:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">O arquivo já existe</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">O caminho do arquivo não pode usar palavras-chave reservadas</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">O DocumentPath é ilegal</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">O Caminho do Projeto é ilegal</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">O caminho não pode ter nome de arquivo vazio</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">O DocumentId fornecido não veio do workspace do Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projeto: {0} ({1}) Use a lista suspensa para exibir e mudar entre outros projetos aos quais este arquivo possa pertencer.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Use a lista suspensa para exibir e navegar para outros itens neste arquivo.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projeto: {0} Use a lista suspensa para exibir e mudar entre outros projetos aos quais este arquivo possa pertencer.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">O assembly do analisador '{0}' mudou. O diagnóstico pode estar incorreto até que o Visual Studio seja reiniciado.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Fonte de Dados da Tabela de Diagnóstico do C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Fonte de Dados da Tabela da Lista de Tarefas Pendentes C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Cancelar</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Desmarcar Tudo</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Extrair a Interface</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Nome gerado:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Nome do novo _arquivo:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Nome da nova _interface:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Selecionar Tudo</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Selecionar _membros públicos para formar a interface</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Acessar:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Adicionar ao arquivo _existente</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Alterar Assinatura</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Criar novo arquivo</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Padrão</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Nome do Arquivo:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Gerar Tipo</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Tipo:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Local:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modificador</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Nome:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parâmetro</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parâmetros:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Visualizar assinatura do método:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Visualizar alterações de referência</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Projeto:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Detalhes do Tipo:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">Re_mover</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Restaurar</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">Mais sobre {0}</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">A navegação deve ser executada no thread em primeiro plano.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Referência a '{0}' no projeto '{1}'</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Desconhecido&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Referência do analisador a '{0}' no projeto '{1}'</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Referência do projeto a '{0}' no projeto '{1}'</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Os assemblies do analisador '{0}' e '{1}' têm a identidade '{2}', porém conteúdos diferentes. Somente um será carregado e os analisadores usando esses conjuntos podem não executar corretamente.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} referências</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 referência</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' encontrou um erro e foi desabilitado.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Habilitar</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Habilitar e ignorar erros futuros</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Nenhuma Alteração</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Bloco atual</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Determinando o bloco atual.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Fonte de Dados da Tabela de Build do C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">O assembly do analisador '{0}' depende do '{1}', mas não foi encontrado. Os analisadores podem não ser executados corretamente a menos que o assembly ausente também seja adicionado como uma referência do analisador.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Suprimir diagnósticos</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Calculando correção de supressões...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Aplicando correção de supressões...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Remover supressões</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Calculando a correção de remoção de supressões...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Aplicando correção de supressões de remoção...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Este workspace só dá suporte à abertura de documentos no thread da IU.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Este workspace não dá suporte à atualização das opções de análise do Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Sincronizar {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Sincronizando a {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">O Visual Studio suspendeu alguns recursos avançados para melhorar o desempenho.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Instalando '{0}'</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Instalação de '{0}' concluída</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Falha na instalação do pacote: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Desconhecido&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Não</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Sim</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Escolha uma Especificação de Símbolo e um Estilo de Nomenclatura.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Insira um título para essa Regra de Nomenclatura.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Insira um título para esse Estilo de Nomenclatura.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Insira um título para essa Especificação de Símbolo.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Acessibilidades (podem corresponder a qualquer uma)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Uso de maiúsculas:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">todas minúsculas</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">TODAS MAIÚSCULAS</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">nome Em Minúsculas Concatenadas</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Primeira palavra com maiúsculas</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Nome do Caso Pascal</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Gravidade:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modificadores (devem corresponder a todos)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Nome:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Regra de Nomenclatura</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Estilo de Nomenclatura</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Estilo de Nomenclatura:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">As Regras de Nomenclatura permitem definir como os conjuntos de símbolos específicos devem ser nomeados e como os símbolos nomeados incorretamente devem ser manuseados.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">A primeira Regra de Nomenclatura superior correspondente é usada por padrão ao nomear um símbolo, enquanto qualquer caso especial é manuseado por uma regra filha correspondente.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Título do Estilo de Nomenclatura:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Regra Pai:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Prefixo Necessário:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Sufixo Necessário:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Identificador de Amostra:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Tipos de Símbolo (podem corresponder a qualquer um)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Especificação do Símbolo</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Especificação do Símbolo:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Título da Especificação do Símbolo:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Separador de Palavras:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">exemplo</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">identificador</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Instalar '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Desinstalando '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Desinstalação do '{0}' concluída</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Desinstalar '{0}'</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Falha na desinstalação do pacote: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Erro encontrado ao carregar o projeto. Alguns recursos do projeto, como a análise de solução completa e projetos que dependem dela, foram desabilitados.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Falha ao carregar o projeto.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Para ver o que causou o problema, tente a opção abaixo. 1. Feche o Visual Studio 2. Abra um Prompt de Comando do Desenvolvedor do Visual Studio 3. Defina a variável de ambiente “TraceDesignTime” como true (set TraceDesignTime=true) 4. Exclua o diretório .vs/arquivo .suo 5. Reinicie o VS do prompt de comando em que você definiu a variável de ambiente (devenv) 6. Abra a solução 7. Marque '{0}' e procure as tarefas com falha (COM FALHA)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Informações adicionais:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">Falha na Instalação de '{0}'. Informações Adicionais: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">Desinstalação do '{0}' falhou. Informações adicionais: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Mover {0} pra baixo {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Mover {0} pra cima {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Remover {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Restaurar {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Habilitar novamente</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Saiba mais</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Preferir tipo de estrutura</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Preferir tipo predefinido</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Copiar para Área de Transferência</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Fechar</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Parâmetros Desconhecidos&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Fim do rastreamento da pilha de exceções internas ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Para locais, parâmetros e membros</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Para expressões de acesso de membro</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Preferir inicializador de objeto</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Preferências de expressão:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Guias de Estrutura de Bloco</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Estrutura de Tópicos</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Mostrar guias para construções de nível de código</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Mostrar guias para regiões do pré-processador e comentários</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Mostrar guias para construções de nível de declaração</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Mostrar estrutura de tópicos para construções de nível de código</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Mostrar estrutura de tópicos para regiões de pré-processador e comentários</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Mostrar estrutura de código para construções de nível de declaração</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Preferências de variáveis:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Preferir declaração de variável embutida</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Usar o corpo da expressão para métodos</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Preferências do bloco de código:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Usar o corpo da expressão para acessadores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Usar o corpo da expressão para construtores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Usar o corpo da expressão para indexadores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Usar o corpo da expressão para operadores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Usar o corpo da expressão para propriedades</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Algumas regras de nomenclatura são incompletas. Complete ou remova-as.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Gerenciar especificações</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Reordenar</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Gravidade</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Especificação</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Estilo Necessário</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Este item não pode ser excluído porque é usado por uma Regra de Nomenclatura existente.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Preferir o inicializador de coleção</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Preferir a expressão de união</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Recolher #regions ao recolher para definições</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Preferir tratamento simplificado de nulo</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Preferir nome de tupla explícito</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Descrição</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Preferência</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Implementar Interface ou Classe Abstrata</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Para um determinado símbolo, somente a regra superior com uma 'Especificação' correspondente será aplicada. A violação do 'Estilo Necessário' da regra será reportada no nível de 'Gravidade' escolhido.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">no final</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Ao inserir as propriedades, eventos e métodos, coloque-os:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">com outros membros do mesmo tipo</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Preferir chaves</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">Sobre:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Preferir:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">ou</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">tipos internos</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">em todos os lugares</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">o tipo é aparente da expressão de atribuição</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Mover para baixo</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Mover para cima</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Remover</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Escolher membros</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Infelizmente, um processo usado pelo Visual Studio encontrou um erro irrecuperável. Recomendamos que salve seu trabalho e então, feche e reinicie o Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Adicionar uma especificação de símbolo</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Remover especificação de símbolo</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Adicionar item</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Editar item</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Remover item</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Adicionar uma regra de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Remover regra de nomenclatura</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">VisualStudioWorkspace.TryApplyChanges não pode ser chamado de um thread de tela de fundo.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">preferir propriedades de lançamento</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Ao gerar propriedades:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Opções</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Nunca mostrar isso novamente</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Preferir a expressão 'default' simples</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Preferir usar nomes de elementos inferidos de tupla</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Prefira usar nomes de membro inferidos do tipo anônimo</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Painel de versão prévia</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Análise</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Esmaecer código inacessível</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Esmaecimento</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Preferir usar função anônima em vez de local</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Preferir declaração de variável desconstruída</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Referência externa encontrada</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Nenhuma referência encontrada para '{0}'</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">A pesquisa não encontrou resultados</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Preferir propriedades automáticas</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">preferir propriedades automáticas</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">O módulo foi descarregado.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Habilitar a navegação para origens descompiladas (experimental)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">O arquivo .editorconfig pode substituir as configurações locais definidas nesta página que se aplicam somente ao seu computador. Para definir que essas configurações se desloquem com a sua solução, use arquivos EditorConfig. Mais informações</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Sincronizar Modo de Exibição de Classe</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Analisando '{0}'</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Gerenciar estilos de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Preferir expressão condicional em vez de 'if' com atribuições</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Preferir expressão condicional em vez de 'if' com retornos</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pt-BR" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Um namespace será criado</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Um tipo e um nome precisam ser fornecidos.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Ação</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Adicionar</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Adicionar Parâmetro</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Adicionar ao _arquivo atual</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Parâmetro adicionado.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Alterações adicionais são necessárias para concluir a refatoração. Revise as alterações abaixo.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Todos os métodos</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Todas as fontes</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Permitir:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Permitir várias linhas em branco</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Permitir uma instrução imediatamente após o bloco</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Sempre para esclarecimento</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Analisadores</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Analisando as referências do projeto...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Aplicar</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Aplicar esquema de mapeamento de teclas '{0}'</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Assemblies</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Evitar instruções de expressão que implicitamente ignoram valor</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Evitar parâmetros não utilizados</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Evitar atribuições de valor não utilizadas</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Voltar</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Escopo da análise em segundo plano:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 bits</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 bits</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Build + análise em tempo real (pacote NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Cliente da Linguagem de Diagnóstico C#/Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Calculando dependentes...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Chamar valor do site:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Chamar site</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Retorno de Carro + Nova linha (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Retorno de carro (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Categoria</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Escolha qual ação você deseja executar nas referências não usadas.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Estilo do Código</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Análise de código concluída para '{0}'.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Análise de código concluída para a Solução.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">Análise de código terminada antes da conclusão para '{0}'.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">Análise de código terminada antes da conclusão da Solução.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Dicas com cores</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Colorir expressões regulares</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Comentários</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Contendo Membro</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Contendo Tipo</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Documento atual</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Parâmetro atual</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Desabilitado</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Exibir todas as dicas ao pressionar Alt+F1</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Exi_bir as dicas embutidas de nome de parâmetro</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Exibir as dicas embutidas de tipo</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Editar</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Editar {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Esquema de Cores do Editor</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">As opções do esquema de cores do editor estão disponíveis somente ao usar um tema de cores agrupado com Visual Studio. O tema de cores pode ser configurado na página Ambiente &gt; Opções gerais.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">O elemento é inválido.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Habilitar o diagnóstico de 'pull' do Razor (experimental, exige uma reinicialização)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Habilitar todos os recursos nos arquivos abertos dos geradores de origem (experimental)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Habilite o registro de arquivos para diagnósticos (logado na pasta '%Temp%\Roslyn')</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Habilitar o diagnóstico de 'pull' (experimental, exige uma reinicialização)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Habilitado</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Insira um valor de site de chamada ou escolha um tipo de injeção de valor diferente</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Repositório inteiro</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Solução Inteira</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Erro</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Erro ao atualizar supressões: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Avaliando ({0} tarefas na fila)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Extrair a Classe Base</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Concluir</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Formatar o documento</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Gerar o arquivo .editorconfig das configurações</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Realçar componentes relacionados usando o cursor</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Membros implementados</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Implementando membros</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">Em outros operadores</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Índice</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Inferir do contexto</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Indexado na organização</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Indexado no repositório</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Margem de Herança (experimental)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Dicas Embutidas (experimental)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Inserindo o valor do site de chamada '{0}'</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Instale os analisadores Roslyn recomendados pela Microsoft, que fornecem diagnósticos adicionais e correções para problemas comuns de confiabilidade, desempenho, segurança e design de API</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">A interface não pode ter campo.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Introduzir variáveis de TODO indefinidas</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Origem do item</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Manter</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Mantenha todos os parênteses em:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Análise em tempo real (extensão do VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Itens carregados</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Solução carregada</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Local</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Metadados locais</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Fazer '{0}' abstrato</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Fazer abstrato</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Membros</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Preferências do modificador:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Mover para o Namespace</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Múltiplos membros são herdados</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Múltiplos membros são herdados online {0}</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">O nome está em conflito com um nome de tipo existente.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">O nome não é um identificador de {0} válido.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Namespace</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Namespace: '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">Campo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">local</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">função local</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">método</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">parâmetro</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">propriedade</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">parâmetro de tipo</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Campo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Local</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">método</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parâmetro</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Parâmetro de Tipo</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Regras de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Navegar até '{0}'</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Nunca se desnecessário</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Novo Nome de Tipo:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Preferências de nova linha (experimental):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Nova linha (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Não foi encontrada nenhuma referência não usada.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Métodos não públicos</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">NENHUM</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Omitir (somente para parâmetros opcionais)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Abrir documentos</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Os parâmetros opcionais precisam especificar um valor padrão</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Opcional com o valor padrão:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Outros</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Membros substituídos</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Substituindo membros</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Pacotes</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Detalhes do Parâmetro</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Nome do parâmetro:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Informações do parâmetro</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Tipo de parâmetro</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">O nome do parâmetro contém caracteres inválidos.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Preferências de parâmetro:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">O tipo de parâmetro contém caracteres inválidos.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Preferências de parênteses:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Em pausa ({0} tarefas na fila)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Insira um nome de tipo</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Prefira 'System.HashCode' em 'GetHashCode'</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Preferir atribuições de compostos</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Preferir operador de índice</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Preferir operador de intervalo</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Preferir campos readonly</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Preferir a instrução 'using' simples</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Preferir expressões boolianas simplificadas</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Preferir as funções locais estáticas</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Projetos</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Levantar os membros</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Somente Refatoração</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Referência</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Expressões regulares</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Remover Tudo</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Remover as Referências Não Usadas</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Renomear {0} para {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Relatar expressões regulares inválidas</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Repositório</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Exigir:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Necessário</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Requer que 'System.HashCode' esteja presente no projeto</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Redefinir mapeamento de teclas padrão do Visual Studio</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Revisar alterações</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Executar Análise de Código em {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Executando a análise de código para '{0}'...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Executando a análise de código para a Solução...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Executando processos de baixa prioridade em segundo plano</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Salvar arquivo .editorconfig</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Pesquisar as Configurações</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Selecionar destino</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Selecionar _Dependentes</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Selecionar _Público</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Selecionar o destino e os membros a serem exibidos.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Selecionar destino:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Selecionar membro</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Selecionar membros:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Mostrar o comando "Remover as Referências Não Usadas" no Gerenciador de Soluções (experimental)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Mostrar a lista de conclusão</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Mostrar as dicas para tudo</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Mostrar dicas para a criação de objeto implícito</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Mostrar as dicas para os tipos de parâmetro lambda</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Mostrar as dicas para os literais</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Mostrar as dicas para as variáveis com tipos inferidos</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Mostrar margem de herança</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Algumas cores do esquema de cores estão sendo substituídas pelas alterações feitas na página de Ambiente &gt; Opções de Fontes e Cores. Escolha 'Usar Padrões' na página Fontes e Cores para reverter todas as personalizações.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Sugestão</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Suprimir as dicas quando o nome do parâmetro corresponder à intenção do método</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Suprimir as dicas quando os nomes de parâmetros diferirem somente pelo sufixo</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Símbolos sem referências</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Pressione Tab duas vezes para inserir argumentos (experimental)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Namespace de Destino:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">O gerador '{0}' que gerou esse arquivo foi removido do projeto. Esse arquivo não será mais incluído no projeto.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">O gerador '{0}' que gerou esse arquivo parou de gerá-lo. Esse arquivo não será mais incluído no projeto.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Esta ação não pode ser desfeita. Deseja continuar?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Esse arquivo é gerado automaticamente pelo gerador '{0}' e não pode ser editado.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Este é um namespace inválido</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Título</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Nome do tipo:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">O nome do Tipo tem um erro de sintaxe</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">O nome do Tipo não é reconhecido</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">O nome do Tipo é reconhecido</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">O valor não utilizado é explicitamente atribuído a um local não utilizado</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">O valor não utilizado é explicitamente atribuído ao descarte</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Atualizando as referências do projeto...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Atualizando a severidade</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Usar o processo de 64 bits para análise de código (requer reinicialização)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Usar o corpo da expressão para lambdas</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Usar o corpo da expressão para funções locais</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Usar argumento nomeado</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Valor</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">O valor atribuído aqui nunca é usado</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Valor:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">O valor retornado por chamada é implicitamente ignorado</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Valor a ser injetado nos sites de chamada</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Aviso</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Aviso: nome de parâmetro duplicado</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Aviso: o tipo não se associa</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Notamos que você suspendeu '{0}'. Redefina os mapeamentos de teclas para continuar a navegar e refatorar.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Este workspace não é compatível com a atualização das opções de compilação do Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Você precisa alterar a assinatura</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Você deve selecionar pelo menos um membro.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">O caminho contém caracteres inválidos.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">O nome do arquivo deve ter a extensão "{0}".</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Depurador</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Determinando a localização do ponto de interrupção...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Determinando autos...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Resolvendo a localização do ponto de interrupção...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Validando localização do ponto de interrupção...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Obtendo texto DataTip...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Visualização não disponível</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Substitui</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Substituído por</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Herda</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Herdado por</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Implementos</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Implementado por</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Número máximo de documentos abertos.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Falha ao criar o documento no projeto arquivos diversos.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Acesso inválido.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">As referências a seguir não foram encontradas. {0}Localize e adicione-as manualmente.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">A posição final deve ser &gt;= posição inicial</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">O valor não é válido</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">'{0}' é herdado</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}' será alterado para abstrato.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}' será alterado para não estático.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}' será alterado para público.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[gerado por {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[gerado]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">o workspace fornecido não dá suporte a desfazer</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Adicionar uma referência a '{0}'</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">O tipo de evento é inválido</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Não é possível encontrar onde inserir o membro</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Não é possível renomear 'outros' elementos</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Tipo de renomeação desconhecido</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Este tipo de símbolo não dá suporte a IDs.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Não é possível criar uma ID de nó para esse tipo de símbolo: '{0}'</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Referências do Projeto</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Tipos Base</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Arquivos Diversos</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Não foi possível encontrar o projeto '{0}'</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Não foi possível encontrar o local da pasta no disco</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Assembly </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Exceções:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Membro de {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parâmetros:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Projeto </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Comentários:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Devoluções:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Resumo:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Parâmetros de Tipo:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">O arquivo já existe</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">O caminho do arquivo não pode usar palavras-chave reservadas</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">O DocumentPath é ilegal</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">O Caminho do Projeto é ilegal</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">O caminho não pode ter nome de arquivo vazio</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">O DocumentId fornecido não veio do workspace do Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projeto: {0} ({1}) Use a lista suspensa para exibir e mudar entre outros projetos aos quais este arquivo possa pertencer.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Use a lista suspensa para exibir e navegar para outros itens neste arquivo.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Projeto: {0} Use a lista suspensa para exibir e mudar entre outros projetos aos quais este arquivo possa pertencer.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">O assembly do analisador '{0}' mudou. O diagnóstico pode estar incorreto até que o Visual Studio seja reiniciado.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Fonte de Dados da Tabela de Diagnóstico do C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Fonte de Dados da Tabela da Lista de Tarefas Pendentes C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Cancelar</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Desmarcar Tudo</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Extrair a Interface</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Nome gerado:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Nome do novo _arquivo:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Nome da nova _interface:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">OK</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Selecionar Tudo</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Selecionar _membros públicos para formar a interface</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Acessar:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Adicionar ao arquivo _existente</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Alterar Assinatura</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Criar novo arquivo</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Padrão</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Nome do Arquivo:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Gerar Tipo</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Tipo:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Local:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Modificador</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Nome:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parâmetro</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parâmetros:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Visualizar assinatura do método:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Visualizar alterações de referência</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Projeto:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Tipo</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Detalhes do Tipo:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">Re_mover</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Restaurar</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">Mais sobre {0}</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">A navegação deve ser executada no thread em primeiro plano.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Referência a '{0}' no projeto '{1}'</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Desconhecido&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Referência do analisador a '{0}' no projeto '{1}'</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Referência do projeto a '{0}' no projeto '{1}'</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Os assemblies do analisador '{0}' e '{1}' têm a identidade '{2}', porém conteúdos diferentes. Somente um será carregado e os analisadores usando esses conjuntos podem não executar corretamente.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} referências</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 referência</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' encontrou um erro e foi desabilitado.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Habilitar</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Habilitar e ignorar erros futuros</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Nenhuma Alteração</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Bloco atual</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Determinando o bloco atual.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Fonte de Dados da Tabela de Build do C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">O assembly do analisador '{0}' depende do '{1}', mas não foi encontrado. Os analisadores podem não ser executados corretamente a menos que o assembly ausente também seja adicionado como uma referência do analisador.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Suprimir diagnósticos</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Calculando correção de supressões...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Aplicando correção de supressões...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Remover supressões</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Calculando a correção de remoção de supressões...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Aplicando correção de supressões de remoção...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Este workspace só dá suporte à abertura de documentos no thread da IU.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Este workspace não dá suporte à atualização das opções de análise do Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Sincronizar {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Sincronizando a {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">O Visual Studio suspendeu alguns recursos avançados para melhorar o desempenho.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Instalando '{0}'</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Instalação de '{0}' concluída</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Falha na instalação do pacote: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Desconhecido&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Não</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Sim</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Escolha uma Especificação de Símbolo e um Estilo de Nomenclatura.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Insira um título para essa Regra de Nomenclatura.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Insira um título para esse Estilo de Nomenclatura.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Insira um título para essa Especificação de Símbolo.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Acessibilidades (podem corresponder a qualquer uma)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Uso de maiúsculas:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">todas minúsculas</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">TODAS MAIÚSCULAS</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">nome Em Minúsculas Concatenadas</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Primeira palavra com maiúsculas</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Nome do Caso Pascal</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Gravidade:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Modificadores (devem corresponder a todos)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Nome:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Regra de Nomenclatura</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Estilo de Nomenclatura</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Estilo de Nomenclatura:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">As Regras de Nomenclatura permitem definir como os conjuntos de símbolos específicos devem ser nomeados e como os símbolos nomeados incorretamente devem ser manuseados.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">A primeira Regra de Nomenclatura superior correspondente é usada por padrão ao nomear um símbolo, enquanto qualquer caso especial é manuseado por uma regra filha correspondente.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Título do Estilo de Nomenclatura:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Regra Pai:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Prefixo Necessário:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Sufixo Necessário:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Identificador de Amostra:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Tipos de Símbolo (podem corresponder a qualquer um)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Especificação do Símbolo</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Especificação do Símbolo:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Título da Especificação do Símbolo:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Separador de Palavras:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">exemplo</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">identificador</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Instalar '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Desinstalando '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Desinstalação do '{0}' concluída</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Desinstalar '{0}'</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Falha na desinstalação do pacote: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Erro encontrado ao carregar o projeto. Alguns recursos do projeto, como a análise de solução completa e projetos que dependem dela, foram desabilitados.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Falha ao carregar o projeto.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Para ver o que causou o problema, tente a opção abaixo. 1. Feche o Visual Studio 2. Abra um Prompt de Comando do Desenvolvedor do Visual Studio 3. Defina a variável de ambiente “TraceDesignTime” como true (set TraceDesignTime=true) 4. Exclua o diretório .vs/arquivo .suo 5. Reinicie o VS do prompt de comando em que você definiu a variável de ambiente (devenv) 6. Abra a solução 7. Marque '{0}' e procure as tarefas com falha (COM FALHA)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Informações adicionais:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">Falha na Instalação de '{0}'. Informações Adicionais: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">Desinstalação do '{0}' falhou. Informações adicionais: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Mover {0} pra baixo {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Mover {0} pra cima {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Remover {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Restaurar {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Habilitar novamente</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Saiba mais</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Preferir tipo de estrutura</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Preferir tipo predefinido</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Copiar para Área de Transferência</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Fechar</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Parâmetros Desconhecidos&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Fim do rastreamento da pilha de exceções internas ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Para locais, parâmetros e membros</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Para expressões de acesso de membro</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Preferir inicializador de objeto</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Preferências de expressão:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Guias de Estrutura de Bloco</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Estrutura de Tópicos</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Mostrar guias para construções de nível de código</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Mostrar guias para regiões do pré-processador e comentários</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Mostrar guias para construções de nível de declaração</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Mostrar estrutura de tópicos para construções de nível de código</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Mostrar estrutura de tópicos para regiões de pré-processador e comentários</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Mostrar estrutura de código para construções de nível de declaração</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Preferências de variáveis:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Preferir declaração de variável embutida</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Usar o corpo da expressão para métodos</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Preferências do bloco de código:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Usar o corpo da expressão para acessadores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Usar o corpo da expressão para construtores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Usar o corpo da expressão para indexadores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Usar o corpo da expressão para operadores</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Usar o corpo da expressão para propriedades</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Algumas regras de nomenclatura são incompletas. Complete ou remova-as.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Gerenciar especificações</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Reordenar</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Gravidade</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Especificação</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Estilo Necessário</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Este item não pode ser excluído porque é usado por uma Regra de Nomenclatura existente.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Preferir o inicializador de coleção</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Preferir a expressão de união</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Recolher #regions ao recolher para definições</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Preferir tratamento simplificado de nulo</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Preferir nome de tupla explícito</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Descrição</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Preferência</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Implementar Interface ou Classe Abstrata</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Para um determinado símbolo, somente a regra superior com uma 'Especificação' correspondente será aplicada. A violação do 'Estilo Necessário' da regra será reportada no nível de 'Gravidade' escolhido.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">no final</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Ao inserir as propriedades, eventos e métodos, coloque-os:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">com outros membros do mesmo tipo</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Preferir chaves</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">Sobre:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Preferir:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">ou</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">tipos internos</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">em todos os lugares</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">o tipo é aparente da expressão de atribuição</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Mover para baixo</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Mover para cima</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Remover</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Escolher membros</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Infelizmente, um processo usado pelo Visual Studio encontrou um erro irrecuperável. Recomendamos que salve seu trabalho e então, feche e reinicie o Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Adicionar uma especificação de símbolo</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Remover especificação de símbolo</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Adicionar item</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Editar item</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Remover item</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Adicionar uma regra de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Remover regra de nomenclatura</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">VisualStudioWorkspace.TryApplyChanges não pode ser chamado de um thread de tela de fundo.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">preferir propriedades de lançamento</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Ao gerar propriedades:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Opções</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Nunca mostrar isso novamente</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Preferir a expressão 'default' simples</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Preferir usar nomes de elementos inferidos de tupla</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Prefira usar nomes de membro inferidos do tipo anônimo</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Painel de versão prévia</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Análise</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Esmaecer código inacessível</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Esmaecimento</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Preferir usar função anônima em vez de local</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Preferir declaração de variável desconstruída</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Referência externa encontrada</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Nenhuma referência encontrada para '{0}'</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">A pesquisa não encontrou resultados</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Preferir propriedades automáticas</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">preferir propriedades automáticas</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">O módulo foi descarregado.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Habilitar a navegação para origens descompiladas (experimental)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">O arquivo .editorconfig pode substituir as configurações locais definidas nesta página que se aplicam somente ao seu computador. Para definir que essas configurações se desloquem com a sua solução, use arquivos EditorConfig. Mais informações</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Sincronizar Modo de Exibição de Classe</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Analisando '{0}'</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Gerenciar estilos de nomenclatura</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Preferir expressão condicional em vez de 'if' com atribuições</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Preferir expressão condicional em vez de 'if' com retornos</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.ru.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ru" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">В корневом узле вашего решения обнаружен новый файл EDITORCONFIG. Вы хотите сделать его элементом решения?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Будет создано пространство имен</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Следует указать тип и имя.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Действие</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">Д_обавить</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Добавить параметр</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Добавить в _текущий файл</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Добавлен параметр.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Для завершения рефакторинга требуется внести дополнительные изменения. Просмотрите их ниже.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Все методы</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Все источники</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Разрешить:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Разрешать несколько пустых строк</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Разрешать помещать оператор сразу же после блока</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Всегда использовать для ясности</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Анализаторы</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Анализ ссылок проекта…</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Применить</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Применить схему назначения клавиш "{0}"</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Сборки</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Избегайте операторов-выражений, неявно игнорирующих значение.</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Избегайте неиспользуемых параметров.</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Избегайте присваивания неиспользуемых значений.</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Назад</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Область фонового анализа:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32-разрядный</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64-разрядный</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Сборка и динамический анализ (пакет NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Языковой клиент диагностики C#/Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Вычисление зависимостей…</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Значение места вызова:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Место вызова</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Возврат каретки + символ новой строки (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Возврат каретки (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Категория</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Выберите действие, которое необходимо выполнить для неиспользуемых ссылок.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Стиль кода</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Анализ кода для "{0}" выполнен.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Анализ кода для решения выполнен.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">Анализ кода прерван до завершения "{0}".</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">Анализ кода прерван до завершения решения.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Цветовые подсказки</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Выделить регулярные выражения цветом</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Комментарии</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Содержащий член</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Содержащий тип</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Текущий документ</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Текущий параметр</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Отключено</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Отображать все подсказки при нажатии клавиш ALT+F1</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Отображать п_одсказки для имен встроенных параметров</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Отображать подсказки для встроенных типов</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Изменить</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Изменить {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Цветовая схема редактора</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Параметры цветовой схемы редактора доступны только при использовании цветовой темы, поставляемой вместе с Visual Studio. Цветовую тему можно настроить на странице "Среда" &gt; "Общие параметры".</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">Элемент недопустим.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Включить диагностику "pull" Razor (экспериментальная функция, требуется перезапуск)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Включить все функции в открытых файлах из генераторов источника (экспериментальная версия)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Включить ведение журнала файлов для диагностики (в папке "%Temp%\Roslyn")</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Включить диагностику "pull" (экспериментальная функция, требуется перезапуск)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Включено</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Введите значение места вызова или выберите другой тип введения значения</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Весь репозиторий</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Все решение</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Ошибка</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Ошибка при обновлении подавлений: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Оценка (задач в очереди: {0})</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Извлечь базовый класс</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Готово</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Форматировать документ</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Создать файл EDITORCONFIG на основе параметров</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Выделить связанные компоненты под курсором</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ИД</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Реализованные элементы</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Реализация элементов</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">В других операторах</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Индекс</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Вывести из контекста</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Индексированный в организации</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Индексированный в репозитории</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Граница наследования (экспериментальная)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Встроенные подсказки (экспериментальная функция)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Вставка значения "{0}" места вызова</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Установите рекомендуемые корпорацией Майкрософт анализаторы Roslyn, которые предоставляют дополнительные средства диагностики и исправления для распространенных проблем, связанных с разработкой, безопасностью, производительностью и надежностью API.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Интерфейс не может содержать поле.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Ввести неопределенные переменные TODO</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Источник элемента</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Сохранить</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Сохранять все круглые скобки в:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Вид</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Динамический анализ (расширение VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Загруженные элементы</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Загруженное решение</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Локальное</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Локальные метаданные</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Сделать "{0}" абстрактным</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Сделать абстрактным</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Члены</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Предпочтения модификатора:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Переместить в пространство имен</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Несколько элементов наследуются</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Несколько элементов наследуются в строке {0}</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Имя конфликтует с существующим именем типа.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Имя не является допустимым идентификатором {0}.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Пространство имен</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Пространство имен: "{0}"</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">Поле</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">локальный</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">локальная функция</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">метод</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">параметр</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">свойство</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">параметр типа</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Поле</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Локальные</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">метод</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Параметр</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Параметр типа</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Правила именования</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Перейти к {0}</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Никогда, если не требуется</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Новое имя типа:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Предпочтения для новых строк (экспериментальная функция):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Новая строка (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Неиспользуемые ссылки не найдены.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Методы, не являющиеся открытыми</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">NONE</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Опустить (только для необязательных параметров)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Открыть документы</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Для необязательных параметров необходимо указать значение по умолчанию.</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Необязательный параметр со значением по умолчанию:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Другие</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Переопределенные элементы</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Идет переопределение элементов</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Пакеты</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Дополнительные сведения о параметрах</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Имя параметра:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Сведения о параметре</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Тип параметра</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Имя параметра содержит недопустимые знаки.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Предпочтения для параметров:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Тип параметра содержит недопустимые знаки.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Параметры круглых скобок:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Приостановлено (задач в очереди: {0})</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Введите имя типа</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Предпочитать "System.HashCode" в "GetHashCode"</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Предпочитать составные назначения</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Предпочитать оператор index</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Предпочитать оператор range</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Предпочитать поля только для чтения</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Предпочитать простой оператор using</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Предпочитать упрощенные логические выражения</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Предпочитать статические локальные функции</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Проекты</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Повышение элементов</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Только рефакторинг</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Ссылка</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Регулярные выражения</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Удалить все</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Удалить неиспользуемые ссылки</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Переименовать {0} в {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Сообщать о недопустимых регулярных выражениях</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Репозиторий</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Обязательно:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Обязательный параметр</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Требуется наличие "System.HashCode" в проекте.</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Сброс схемы назначения клавиш Visual Studio по умолчанию</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Проверить изменения</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Запустить Code Analysis для {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Выполняется анализ кода для "{0}"…</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Выполняется анализ кода для решения…</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Запуск фоновых процессов с низким приоритетом</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Сохранить файл EDITORCONFIG</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Параметры поиска</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Выбрать место назначения</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Выбрать _зависимости</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Выбрать _открытые</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Выбрать место назначения и повышаемые в иерархии элементы.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Выбрать место назначения:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Выбрать элемент</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Выбрать элементы:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Показать команду "Удалить неиспользуемые ссылки" в Обозревателе решений (экспериментальная версия)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Показать список завершения</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Отображать подсказки для всех остальных элементов</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Показать указания для неявного создания объекта</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Отображать подсказки для типов лямбда-параметров</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Отображать подсказки для литералов</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Отображать подсказки для переменных с выводимыми типами</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Показать границу наследования</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Некоторые цвета цветовой схемы переопределяются изменениями, сделанными на странице "Среда" &gt; "Шрифты и цвета". Выберите "Использовать значения по умолчанию" на странице "Шрифты и цвета", чтобы отменить все настройки.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Рекомендация</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Скрывать подсказки, если имя параметра соответствует намерению метода.</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Скрывать подсказки, если имена параметров различаются только суффиксом.</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Символы без ссылок</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Дважды нажмите клавишу TAB, чтобы вставить аргументы (экспериментальная функция)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Целевое пространство имен:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Генератор "{0}", создавший этот файл, был удален из проекта; этот файл больше не включен в проект.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Генератор "{0}", создавший этот файл, остановил создание этого файла; этот файл больше не включен в проект.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Это действие не может быть отменено. Вы хотите продолжить?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Этот файл создан автоматически генератором "{0}" и не может быть изменен.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Это недопустимое пространство имен.</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Название</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Имя типа:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Имя типа содержит синтаксическую ошибку.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Не удалось распознать имя типа.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Имя типа распознано.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">Неиспользуемое значение явным образом задано неиспользуемой локальной переменной.</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">Неиспользуемое значение явным образом задано пустой переменной.</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Обновление ссылок проекта…</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Обновление уровня серьезности</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Использовать 64-разрядный процесс для анализа кода (требуется перезапуск)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Использовать тело выражения для лямбда-выражений</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Использовать тело выражения для локальных функций</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Использовать именованный аргумент</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Значение</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">Заданное здесь значение не используется.</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Значение:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">Значение, возвращаемое вызовом, неявным образом игнорируется.</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Значение, которое необходимо вставить во все точки вызова</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Предупреждение</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Предупреждение: повторяющееся имя параметра.</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Предупреждение: привязка типа невозможна.</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Вы приостановили действие "{0}". Сбросьте назначения клавиш, чтобы продолжить работу и рефакторинг.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Эта рабочая область не поддерживает обновление параметров компиляции Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Необходимо изменить подпись</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Необходимо выбрать по крайней мере один элемент.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Недопустимые символы в пути.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Файл должен иметь расширение "{0}".</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Отладчик</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Определение положения точки останова...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Определение видимых переменных...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Разрешение положения точки останова...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Проверка положения точки останова...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Получение текста подсказки (DataTip) по данным...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Предпросмотр недоступен.</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Переопределяет</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Переопределяется</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Наследует</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Наследуется</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Реализует</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Реализуется</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Открыто предельное число документов.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Не удалось создать документ в списке прочих файлов.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Недопустимый доступ.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">Не найдены следующие ссылки. {0} Найдите и добавьте их вручную.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">Конечное положение не должно быть меньше начального.</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Недопустимое значение</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">"{0}" наследуется</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">Элемент "{0}" будет изменен на абстрактный.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">Элемент "{0}" будет изменен на нестатический.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">Элемент "{0}" будет изменен на открытый.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[создан генератором {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[создан генератором]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">заданная рабочая область не поддерживает отмену.</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Добавить ссылку на "{0}"</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Тип события недопустим.</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Не удается найти место вставки элемента.</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Не удается переименовать элементы "other".</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Неизвестный тип переименования</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Идентификаторы не поддерживаются для данного типа символов.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Не удается создать идентификатор узла для этого вида символов: "{0}".</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Ссылки проекта</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Базовые типы</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Прочие файлы</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Не удалось найти проект "{0}".</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Не удалось найти путь к папке на диске.</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Сборка </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Исключения:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Элемент объекта {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Параметры:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Проект </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Примечания.</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Возврат:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Сводка:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Параметры типа:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Файл уже существует.</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">В пути к файлу нельзя использовать зарезервированные ключевые слова.</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">Параметр DocumentPath недопустим.</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Путь проекта недопустим.</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Имя файла в пути не может быть пустым.</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">Указанный идентификатор документа DocumentId получен не из рабочей области Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Проект: {0} ({1}) Используйте раскрывающийся список для просмотра других проектов, к которым может относиться этот файл, и перехода к ним.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Для просмотра других элементов в этом файле используйте раскрывающийся список.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Проект: {0} Используйте раскрывающийся список для просмотра других проектов, к которым может относиться этот файл, и перехода к ним.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">Сборка анализатора "{0}" была изменена. Перезапустите Visual Studio, в противном случае диагностика может быть неправильной.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Источник данных для таблицы диагностики C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Источник данных для таблицы списка задач C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Отмена</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Отменить все</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Извлечь интерфейс</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Созданное название:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Новое им_я файла:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Новое название _интерфейса:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">ОК</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">В_ыбрать все</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Выбрать открытые _элементы для создания интерфейса</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">Д_оступ:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Добавить в _существующий файл</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Изменить сигнатуру</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Создать файл</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">По умолчанию</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Имя файла:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Сформировать тип</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Вид:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Расположение:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Модификатор</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Название:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Параметр</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Параметры:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Предпросмотр сигнатуры метода:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Предпросмотр изменений в ссылках</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Проект:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Тип</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Подробности о типе:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">Уд_алить</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Восстановить</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">{0}: подробнее</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">Навигация должна осуществляться в потоке переднего плана.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Ссылка на "{0}" в проекте "{1}"</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;нет данных&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Ссылка анализатора на "{0}" в проекте "{1}"</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Ссылка проекта на "{0}" в проекте "{1}"</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Сборки анализатора "{0}" и "{1}" имеют одно и то же удостоверение ("{2}"), но разное содержимое. Будет загружена только одна сборка, и анализаторы, использующие эти сборки, могут работать неправильно.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">Ссылок: {0}</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 ссылка</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'Произошла ошибка, и анализатор "{0}" отключен.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Включить</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Включить и пропускать будущие ошибки</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Изменений нет</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Текущий блок</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Определение текущего блока.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Источник данных для таблицы сборки C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">Сборка анализатора "{0}" зависит от "{1}", но последняя не найдена. Анализаторы могут работать неправильно, если не добавить отсутствующую сборку в качестве ссылки анализатора.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Подавление диагностики</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Вычисление исправления для подавлений...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Применяется исправление для подавлений...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Удалить подавления</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Вычисление исправления для удаления подавлений...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Применяется исправление для удаления подавлений...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Эта рабочая область поддерживает открытие документов только в потоке пользовательского интерфейса.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Эта рабочая область не поддерживает обновление параметров синтаксического анализа Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Синхронизировать {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Синхронизация с {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio временно отключила некоторые дополнительные возможности, чтобы повысить производительность.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Идет установка "{0}"</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Установка "{0}" завершена</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Сбой при установке пакета: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;нет данных&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Нет</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Да</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Выберите спецификацию символов и стиль именования.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Введите название для этого правила именования.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Введите название для этого стиля именования.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Введите название для этой спецификации символа.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Модификаторы доступности (соответствие любому)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Написание прописными буквами:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">все строчные</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">ВСЕ ПРОПИСНЫЕ</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Название в "Верблюжьем" стиле c первой прописной буквой</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Первое слово с прописной буквы</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Название в регистре Pascal</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Серьезность:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Модификаторы (должны соответствовать всему)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Название:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Правило именования</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Стиль именования</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Стиль именования:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Правила именования позволяют определить, как должны именоваться определенные наборы символов и как должны обрабатываться неправильно названные символы.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">По умолчанию при именовании символа используется первое соответствующее правило именования верхнего уровня, а все особые случаи обрабатываются соответствующим дочерним правилом.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Название стиля именования:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Родительское правило:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Необходимый префикс:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Необходимый суффикс:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Пример идентификатора:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Виды символов (соответствие любому)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Спецификация символа</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Спецификация символа:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Название спецификации символа:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Разделитель слов:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">пример</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">идентификатор</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Установить "{0}"</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Идет удаление "{0}"</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Удаление "{0}" завершено.</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Удалить "{0}"</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Сбой при удалении пакета: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Произошла ошибка при загрузке проекта. Некоторые возможности проекта, например полный анализ решения для неработоспособного проекта и зависящих от него проектов, были отключены.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Сбой при загрузке проекта.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Чтобы узнать, что вызвало проблему, попробуйте сделать следующее. 1. Закройте Visual Studio. 2. Откройте командную строку разработчика Visual Studio. 3. Присвойте переменной "TraceDesignTime" значение true (set TraceDesignTime=true). 4. Удалите файл ".vs directory/.suo". 5. Перезапустите VS из командной строки, в которой вы присвоили значение переменной среды (devenv). 6. Откройте решение. 7. Проверьте "{0}" и найдите задачи, которые завершились сбоем (FAILED).</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Дополнительная информация:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">Сбой при установке "{0}". Дополнительная информация: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">Сбой при удалении "{0}". Дополнительная информация: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Переместить {0} под {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Переместить {0} над {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Удалить {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Восстановить {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Повторно включить</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Подробнее...</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Предпочитать тип платформы</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Предпочитать предопределенный тип</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Копировать в буфер обмена</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Закрыть</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Неизвестные параметры&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Конец трассировки внутреннего стека исключений ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Для локальных переменных, параметров и элементов</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Для выражений доступа к элементам</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Предпочитать инициализатор объекта</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Предпочтения в отношении выражения:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Направляющие для структуры блоков</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Структура</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Показывать направляющие для конструкций уровня кода</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Показывать направляющие для комментариев и областей препроцессора</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Показывать направляющие для конструкций уровня объявления</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Показывать структуру для конструкций уровня кода</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Показывать структуру для комментариев и областей препроцессора</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Показывать структуру для конструкций уровня объявления</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Предпочтения в отношении переменных:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Предпочитать встроенное объявление переменной</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Использовать тело выражения для методов</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Предпочтения в отношении блока кода:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Использовать тело выражения для методов доступа</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Использовать тело выражения для конструкторов</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Использовать тело выражения для индексаторов</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Использовать тело выражения для операторов</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Использовать тело выражения для свойств</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Некоторые правила именования являются неполными. Дополните или удалите их.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Управление спецификациями</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Переупорядочить</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Серьезность</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Спецификация</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Необходимый стиль</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Невозможно удалить этот элемент, так как он используется существующим правилом именования.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Предпочитать инициализатор коллекции</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Предпочитать объединенное выражение</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Сворачивать #regions при сворачивании в определения</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Предпочитать распространение значений NULL</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Предпочитать явное имя кортежа</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Описание</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Предпочтения</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Реализовать интерфейс или абстрактный класс</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Для указанного символа будет применено только самое верхнее правило соответствующей спецификации. При нарушении требуемого стиля для этого правила будет создано оповещение указанного уровня серьезности.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">в конец</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">При вставке свойств, методов и событий помещать их:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">вместе с другими элементами того же типа</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Предпочитать фигурные скобки</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">А не:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Предпочтение:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">или</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">встроенные типы</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">в любое другое место</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">тип предполагается из выражения назначения</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Переместить вниз</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Переместить вверх</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Удалить</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Выбрать члены</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">В процессе, используемом Visual Studio, произошла неустранимая ошибка. Рекомендуется сохранить изменения, а затем закрыть и снова запустить Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Добавить спецификацию символа</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Удалить спецификацию символа</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Добавить элемент</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Изменить элемент</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Удалить элемент</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Добавить правило именования</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Удалить правило именования</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">VisualStudioWorkspace.TryApplyChanges нельзя вызывать из фонового потока.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">предпочитать свойства, создающие исключения</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">При создании свойств:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Параметры</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Больше не показывать</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Предпочитать простое выражение default</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Предпочитать выводимые имена элементов кортежа</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Предпочитать выводимые имена членов анонимного типа</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Область просмотра</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Анализ</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Скрывать недостижимый код</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Исчезание</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Предпочитать локальную функцию анонимной функции</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Предпочитать деконструированное объявление переменной</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Найдена внешняя ссылка.</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Ссылки не найдены в "{0}".</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">Поиск не дал результатов.</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Предпочитать автосвойства</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">предпочитать автосвойства</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Модуль был выгружен.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Включить переход к декомпилированным источникам (экспериментальная функция)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">Файл EditorConfig может переопределять локальные параметры, настроенные на этой странице, только для этого компьютера. Чтобы эти параметры были привязаны к решению, используйте файлы EditorConfig. Дополнительные сведения.</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Синхронизировать представление классов</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Выполняется анализ "{0}"</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Управление стилями именования</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Предпочитать условное выражение оператору if в назначениях</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Предпочитать условное выражение оператору if в операторах return</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="ru" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Будет создано пространство имен</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Следует указать тип и имя.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Действие</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">Д_обавить</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Добавить параметр</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Добавить в _текущий файл</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Добавлен параметр.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Для завершения рефакторинга требуется внести дополнительные изменения. Просмотрите их ниже.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Все методы</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Все источники</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">Разрешить:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Разрешать несколько пустых строк</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Разрешать помещать оператор сразу же после блока</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Всегда использовать для ясности</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Анализаторы</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Анализ ссылок проекта…</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Применить</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">Применить схему назначения клавиш "{0}"</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Сборки</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Избегайте операторов-выражений, неявно игнорирующих значение.</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Избегайте неиспользуемых параметров.</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Избегайте присваивания неиспользуемых значений.</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Назад</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Область фонового анализа:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32-разрядный</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64-разрядный</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Сборка и динамический анализ (пакет NuGet)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">Языковой клиент диагностики C#/Visual Basic</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Вычисление зависимостей…</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Значение места вызова:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Место вызова</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Возврат каретки + символ новой строки (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Возврат каретки (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Категория</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Выберите действие, которое необходимо выполнить для неиспользуемых ссылок.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Стиль кода</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">Анализ кода для "{0}" выполнен.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Анализ кода для решения выполнен.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">Анализ кода прерван до завершения "{0}".</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">Анализ кода прерван до завершения решения.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Цветовые подсказки</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Выделить регулярные выражения цветом</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Комментарии</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Содержащий член</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Содержащий тип</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Текущий документ</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Текущий параметр</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Отключено</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Отображать все подсказки при нажатии клавиш ALT+F1</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Отображать п_одсказки для имен встроенных параметров</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Отображать подсказки для встроенных типов</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Изменить</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">Изменить {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Цветовая схема редактора</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Параметры цветовой схемы редактора доступны только при использовании цветовой темы, поставляемой вместе с Visual Studio. Цветовую тему можно настроить на странице "Среда" &gt; "Общие параметры".</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">Элемент недопустим.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Включить диагностику "pull" Razor (экспериментальная функция, требуется перезапуск)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Включить все функции в открытых файлах из генераторов источника (экспериментальная версия)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Включить ведение журнала файлов для диагностики (в папке "%Temp%\Roslyn")</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Включить диагностику "pull" (экспериментальная функция, требуется перезапуск)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Включено</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Введите значение места вызова или выберите другой тип введения значения</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Весь репозиторий</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Все решение</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Ошибка</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Ошибка при обновлении подавлений: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Оценка (задач в очереди: {0})</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Извлечь базовый класс</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Готово</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Форматировать документ</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Создать файл EDITORCONFIG на основе параметров</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">Выделить связанные компоненты под курсором</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ИД</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Реализованные элементы</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Реализация элементов</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">В других операторах</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Индекс</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Вывести из контекста</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Индексированный в организации</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Индексированный в репозитории</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Граница наследования (экспериментальная)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Встроенные подсказки (экспериментальная функция)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Вставка значения "{0}" места вызова</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Установите рекомендуемые корпорацией Майкрософт анализаторы Roslyn, которые предоставляют дополнительные средства диагностики и исправления для распространенных проблем, связанных с разработкой, безопасностью, производительностью и надежностью API.</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Интерфейс не может содержать поле.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Ввести неопределенные переменные TODO</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Источник элемента</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Сохранить</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Сохранять все круглые скобки в:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Вид</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Динамический анализ (расширение VSIX)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Загруженные элементы</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Загруженное решение</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Локальное</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Локальные метаданные</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">Сделать "{0}" абстрактным</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Сделать абстрактным</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Члены</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Предпочтения модификатора:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Переместить в пространство имен</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Несколько элементов наследуются</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">Несколько элементов наследуются в строке {0}</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Имя конфликтует с существующим именем типа.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Имя не является допустимым идентификатором {0}.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Пространство имен</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Пространство имен: "{0}"</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">Поле</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">локальный</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">локальная функция</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">метод</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">параметр</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">свойство</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">параметр типа</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Поле</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Локальные</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">метод</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Параметр</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Параметр типа</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Правила именования</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">Перейти к {0}</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Никогда, если не требуется</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Новое имя типа:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Предпочтения для новых строк (экспериментальная функция):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Новая строка (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Неиспользуемые ссылки не найдены.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Методы, не являющиеся открытыми</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">NONE</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Опустить (только для необязательных параметров)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Открыть документы</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">Для необязательных параметров необходимо указать значение по умолчанию.</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Необязательный параметр со значением по умолчанию:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Другие</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Переопределенные элементы</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Идет переопределение элементов</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Пакеты</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Дополнительные сведения о параметрах</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Имя параметра:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Сведения о параметре</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Тип параметра</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Имя параметра содержит недопустимые знаки.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Предпочтения для параметров:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Тип параметра содержит недопустимые знаки.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Параметры круглых скобок:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Приостановлено (задач в очереди: {0})</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Введите имя типа</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">Предпочитать "System.HashCode" в "GetHashCode"</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Предпочитать составные назначения</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Предпочитать оператор index</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Предпочитать оператор range</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Предпочитать поля только для чтения</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Предпочитать простой оператор using</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Предпочитать упрощенные логические выражения</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Предпочитать статические локальные функции</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Проекты</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Повышение элементов</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Только рефакторинг</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Ссылка</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Регулярные выражения</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Удалить все</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Удалить неиспользуемые ссылки</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">Переименовать {0} в {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Сообщать о недопустимых регулярных выражениях</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Репозиторий</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Обязательно:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Обязательный параметр</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Требуется наличие "System.HashCode" в проекте.</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Сброс схемы назначения клавиш Visual Studio по умолчанию</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Проверить изменения</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">Запустить Code Analysis для {0}</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">Выполняется анализ кода для "{0}"…</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Выполняется анализ кода для решения…</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Запуск фоновых процессов с низким приоритетом</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">Сохранить файл EDITORCONFIG</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Параметры поиска</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Выбрать место назначения</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">Выбрать _зависимости</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">Выбрать _открытые</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Выбрать место назначения и повышаемые в иерархии элементы.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Выбрать место назначения:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Выбрать элемент</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Выбрать элементы:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Показать команду "Удалить неиспользуемые ссылки" в Обозревателе решений (экспериментальная версия)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Показать список завершения</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Отображать подсказки для всех остальных элементов</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Показать указания для неявного создания объекта</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Отображать подсказки для типов лямбда-параметров</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Отображать подсказки для литералов</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Отображать подсказки для переменных с выводимыми типами</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Показать границу наследования</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Некоторые цвета цветовой схемы переопределяются изменениями, сделанными на странице "Среда" &gt; "Шрифты и цвета". Выберите "Использовать значения по умолчанию" на странице "Шрифты и цвета", чтобы отменить все настройки.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Рекомендация</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Скрывать подсказки, если имя параметра соответствует намерению метода.</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Скрывать подсказки, если имена параметров различаются только суффиксом.</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Символы без ссылок</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Дважды нажмите клавишу TAB, чтобы вставить аргументы (экспериментальная функция)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Целевое пространство имен:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Генератор "{0}", создавший этот файл, был удален из проекта; этот файл больше не включен в проект.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Генератор "{0}", создавший этот файл, остановил создание этого файла; этот файл больше не включен в проект.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Это действие не может быть отменено. Вы хотите продолжить?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Этот файл создан автоматически генератором "{0}" и не может быть изменен.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Это недопустимое пространство имен.</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Название</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Имя типа:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Имя типа содержит синтаксическую ошибку.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Не удалось распознать имя типа.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Имя типа распознано.</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">Неиспользуемое значение явным образом задано неиспользуемой локальной переменной.</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">Неиспользуемое значение явным образом задано пустой переменной.</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Обновление ссылок проекта…</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Обновление уровня серьезности</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Использовать 64-разрядный процесс для анализа кода (требуется перезапуск)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Использовать тело выражения для лямбда-выражений</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Использовать тело выражения для локальных функций</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Использовать именованный аргумент</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Значение</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">Заданное здесь значение не используется.</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Значение:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">Значение, возвращаемое вызовом, неявным образом игнорируется.</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Значение, которое необходимо вставить во все точки вызова</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Предупреждение</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Предупреждение: повторяющееся имя параметра.</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Предупреждение: привязка типа невозможна.</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">Вы приостановили действие "{0}". Сбросьте назначения клавиш, чтобы продолжить работу и рефакторинг.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Эта рабочая область не поддерживает обновление параметров компиляции Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">Необходимо изменить подпись</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">Необходимо выбрать по крайней мере один элемент.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Недопустимые символы в пути.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Файл должен иметь расширение "{0}".</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Отладчик</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Определение положения точки останова...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">Определение видимых переменных...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Разрешение положения точки останова...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Проверка положения точки останова...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">Получение текста подсказки (DataTip) по данным...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Предпросмотр недоступен.</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Переопределяет</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Переопределяется</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Наследует</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Наследуется</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Реализует</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Реализуется</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Открыто предельное число документов.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Не удалось создать документ в списке прочих файлов.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Недопустимый доступ.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">Не найдены следующие ссылки. {0} Найдите и добавьте их вручную.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">Конечное положение не должно быть меньше начального.</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Недопустимое значение</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">"{0}" наследуется</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">Элемент "{0}" будет изменен на абстрактный.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">Элемент "{0}" будет изменен на нестатический.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">Элемент "{0}" будет изменен на открытый.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[создан генератором {0}]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[создан генератором]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">заданная рабочая область не поддерживает отмену.</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">Добавить ссылку на "{0}"</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Тип события недопустим.</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Не удается найти место вставки элемента.</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">Не удается переименовать элементы "other".</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Неизвестный тип переименования</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Идентификаторы не поддерживаются для данного типа символов.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">Не удается создать идентификатор узла для этого вида символов: "{0}".</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Ссылки проекта</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Базовые типы</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Прочие файлы</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">Не удалось найти проект "{0}".</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Не удалось найти путь к папке на диске.</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Сборка </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Исключения:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">Элемент объекта {0}</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Параметры:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Проект </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Примечания.</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Возврат:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Сводка:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Параметры типа:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Файл уже существует.</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">В пути к файлу нельзя использовать зарезервированные ключевые слова.</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">Параметр DocumentPath недопустим.</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Путь проекта недопустим.</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Имя файла в пути не может быть пустым.</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">Указанный идентификатор документа DocumentId получен не из рабочей области Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Проект: {0} ({1}) Используйте раскрывающийся список для просмотра других проектов, к которым может относиться этот файл, и перехода к ним.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Для просмотра других элементов в этом файле используйте раскрывающийся список.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Проект: {0} Используйте раскрывающийся список для просмотра других проектов, к которым может относиться этот файл, и перехода к ним.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">Сборка анализатора "{0}" была изменена. Перезапустите Visual Studio, в противном случае диагностика может быть неправильной.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">Источник данных для таблицы диагностики C#/VB</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">Источник данных для таблицы списка задач C#/VB</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">Отмена</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Отменить все</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Извлечь интерфейс</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Созданное название:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Новое им_я файла:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Новое название _интерфейса:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">ОК</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">В_ыбрать все</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Выбрать открытые _элементы для создания интерфейса</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">Д_оступ:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">Добавить в _существующий файл</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">Изменить сигнатуру</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">_Создать файл</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">По умолчанию</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Имя файла:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Сформировать тип</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Вид:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Расположение:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Модификатор</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Название:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Параметр</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Параметры:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Предпросмотр сигнатуры метода:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Предпросмотр изменений в ссылках</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Проект:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Тип</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Подробности о типе:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">Уд_алить</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Восстановить</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">{0}: подробнее</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">Навигация должна осуществляться в потоке переднего плана.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">Ссылка на "{0}" в проекте "{1}"</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;нет данных&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">Ссылка анализатора на "{0}" в проекте "{1}"</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">Ссылка проекта на "{0}" в проекте "{1}"</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">Сборки анализатора "{0}" и "{1}" имеют одно и то же удостоверение ("{2}"), но разное содержимое. Будет загружена только одна сборка, и анализаторы, использующие эти сборки, могут работать неправильно.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">Ссылок: {0}</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 ссылка</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'Произошла ошибка, и анализатор "{0}" отключен.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Включить</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Включить и пропускать будущие ошибки</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Изменений нет</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Текущий блок</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Определение текущего блока.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">Источник данных для таблицы сборки C#/VB</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">Сборка анализатора "{0}" зависит от "{1}", но последняя не найдена. Анализаторы могут работать неправильно, если не добавить отсутствующую сборку в качестве ссылки анализатора.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Подавление диагностики</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Вычисление исправления для подавлений...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Применяется исправление для подавлений...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Удалить подавления</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Вычисление исправления для удаления подавлений...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Применяется исправление для удаления подавлений...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Эта рабочая область поддерживает открытие документов только в потоке пользовательского интерфейса.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Эта рабочая область не поддерживает обновление параметров синтаксического анализа Visual Basic.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">Синхронизировать {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">Синхронизация с {0}...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio временно отключила некоторые дополнительные возможности, чтобы повысить производительность.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">Идет установка "{0}"</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">Установка "{0}" завершена</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Сбой при установке пакета: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;нет данных&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Нет</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Да</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Выберите спецификацию символов и стиль именования.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Введите название для этого правила именования.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Введите название для этого стиля именования.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Введите название для этой спецификации символа.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Модификаторы доступности (соответствие любому)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Написание прописными буквами:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">все строчные</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">ВСЕ ПРОПИСНЫЕ</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">Название в "Верблюжьем" стиле c первой прописной буквой</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">Первое слово с прописной буквы</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Название в регистре Pascal</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Серьезность:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Модификаторы (должны соответствовать всему)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Название:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Правило именования</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Стиль именования</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Стиль именования:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Правила именования позволяют определить, как должны именоваться определенные наборы символов и как должны обрабатываться неправильно названные символы.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">По умолчанию при именовании символа используется первое соответствующее правило именования верхнего уровня, а все особые случаи обрабатываются соответствующим дочерним правилом.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Название стиля именования:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Родительское правило:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Необходимый префикс:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Необходимый суффикс:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Пример идентификатора:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Виды символов (соответствие любому)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Спецификация символа</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Спецификация символа:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Название спецификации символа:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Разделитель слов:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">пример</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">идентификатор</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">Установить "{0}"</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">Идет удаление "{0}"</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">Удаление "{0}" завершено.</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">Удалить "{0}"</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Сбой при удалении пакета: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Произошла ошибка при загрузке проекта. Некоторые возможности проекта, например полный анализ решения для неработоспособного проекта и зависящих от него проектов, были отключены.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Сбой при загрузке проекта.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Чтобы узнать, что вызвало проблему, попробуйте сделать следующее. 1. Закройте Visual Studio. 2. Откройте командную строку разработчика Visual Studio. 3. Присвойте переменной "TraceDesignTime" значение true (set TraceDesignTime=true). 4. Удалите файл ".vs directory/.suo". 5. Перезапустите VS из командной строки, в которой вы присвоили значение переменной среды (devenv). 6. Откройте решение. 7. Проверьте "{0}" и найдите задачи, которые завершились сбоем (FAILED).</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Дополнительная информация:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">Сбой при установке "{0}". Дополнительная информация: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">Сбой при удалении "{0}". Дополнительная информация: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">Переместить {0} под {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">Переместить {0} над {1}</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">Удалить {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">Восстановить {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Повторно включить</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Подробнее...</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Предпочитать тип платформы</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Предпочитать предопределенный тип</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Копировать в буфер обмена</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Закрыть</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Неизвестные параметры&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- Конец трассировки внутреннего стека исключений ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Для локальных переменных, параметров и элементов</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Для выражений доступа к элементам</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Предпочитать инициализатор объекта</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">Предпочтения в отношении выражения:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Направляющие для структуры блоков</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Структура</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Показывать направляющие для конструкций уровня кода</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Показывать направляющие для комментариев и областей препроцессора</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Показывать направляющие для конструкций уровня объявления</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Показывать структуру для конструкций уровня кода</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Показывать структуру для комментариев и областей препроцессора</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Показывать структуру для конструкций уровня объявления</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Предпочтения в отношении переменных:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Предпочитать встроенное объявление переменной</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Использовать тело выражения для методов</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Предпочтения в отношении блока кода:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Использовать тело выражения для методов доступа</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Использовать тело выражения для конструкторов</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Использовать тело выражения для индексаторов</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">Использовать тело выражения для операторов</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Использовать тело выражения для свойств</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Некоторые правила именования являются неполными. Дополните или удалите их.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Управление спецификациями</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Переупорядочить</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Серьезность</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Спецификация</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Необходимый стиль</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Невозможно удалить этот элемент, так как он используется существующим правилом именования.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Предпочитать инициализатор коллекции</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Предпочитать объединенное выражение</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Сворачивать #regions при сворачивании в определения</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Предпочитать распространение значений NULL</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Предпочитать явное имя кортежа</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Описание</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Предпочтения</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Реализовать интерфейс или абстрактный класс</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Для указанного символа будет применено только самое верхнее правило соответствующей спецификации. При нарушении требуемого стиля для этого правила будет создано оповещение указанного уровня серьезности.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">в конец</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">При вставке свойств, методов и событий помещать их:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">вместе с другими элементами того же типа</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Предпочитать фигурные скобки</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">А не:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Предпочтение:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">или</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">встроенные типы</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">в любое другое место</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">тип предполагается из выражения назначения</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Переместить вниз</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Переместить вверх</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Удалить</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Выбрать члены</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">В процессе, используемом Visual Studio, произошла неустранимая ошибка. Рекомендуется сохранить изменения, а затем закрыть и снова запустить Visual Studio.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Добавить спецификацию символа</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Удалить спецификацию символа</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Добавить элемент</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Изменить элемент</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Удалить элемент</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Добавить правило именования</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Удалить правило именования</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">VisualStudioWorkspace.TryApplyChanges нельзя вызывать из фонового потока.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">предпочитать свойства, создающие исключения</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">При создании свойств:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Параметры</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Больше не показывать</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Предпочитать простое выражение default</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Предпочитать выводимые имена элементов кортежа</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Предпочитать выводимые имена членов анонимного типа</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Область просмотра</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Анализ</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Скрывать недостижимый код</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Исчезание</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Предпочитать локальную функцию анонимной функции</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Предпочитать деконструированное объявление переменной</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Найдена внешняя ссылка.</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">Ссылки не найдены в "{0}".</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">Поиск не дал результатов.</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Предпочитать автосвойства</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">предпочитать автосвойства</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Модуль был выгружен.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Включить переход к декомпилированным источникам (экспериментальная функция)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">Файл EditorConfig может переопределять локальные параметры, настроенные на этой странице, только для этого компьютера. Чтобы эти параметры были привязаны к решению, используйте файлы EditorConfig. Дополнительные сведения.</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Синхронизировать представление классов</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">Выполняется анализ "{0}"</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Управление стилями именования</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Предпочитать условное выражение оператору if в назначениях</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Предпочитать условное выражение оператору if в операторах return</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.tr.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="tr" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">Çözümünüzün kökünde yeni bir .editorconfig dosyası algılandı. Bunu bir çözüm öğesi yapmak istiyor musunuz?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Yeni bir ad alanı oluşturulacak</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Bir tür ve ad verilmesi gerekiyor.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Eylem</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Ekle</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Parametre Ekle</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Geçerli _dosyaya ekle</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Parametre eklendi.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Yeniden düzenlemeyi tamamlamak için ek değişiklikler gerekli. Aşağıdaki değişiklikleri gözden geçirin.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Tüm yöntemler</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Tüm kaynaklar</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">İzin ver:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Birden çok boş satıra izin ver</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Bloktan hemen sonra deyime izin ver</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Açıklık sağlamak için her zaman</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Çözümleyiciler</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Proje başvuruları analiz ediliyor...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Uygula</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">'{0}' tuş eşlemesi düzenini uygula</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Derlemeler</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Değeri örtük olarak yok sayan ifade deyimlerini engelle</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Kullanılmayan parametreleri engelle</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Kullanılmayan değer atamalarını engelle</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Geri</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Arka plan çözümleme kapsamı:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 bit</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 bit</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Derleme ve canlı analiz (NuGet paketi)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">C#/Visual Basic Tanılama Dili İstemcisi</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Bağımlılar hesaplanıyor...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Çağrı konumu değeri:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Çağrı konumu</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Satır Başı + Yeni Satır (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Satır başı (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Kategori</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Kullanılmayan başvurularda hangi eylemi gerçekleştirmek istediğinizi seçin.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Kod Stili</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">'{0}' için kod analizi tamamlandı.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Çözüm için kod analizi tamamlandı.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">Kod analizi, '{0}' için tamamlanmadan önce sonlandırıldı.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">Kod analizi, Çözüm için tamamlanmadan önce sonlandırıldı.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Renk ipuçları</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Normal ifadeleri renklendir</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Açıklamalar</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Kapsayan Üye</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Kapsayan Tür</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Geçerli belge</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Geçerli parametre</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Devre dışı</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Alt+F1 tuşlarına basılırken tüm ipuçlarını görüntüle</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Satır içi parametre adı ipuç_larını göster</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Satır içi tür ipuçlarını göster</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Düzenle</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">{0} öğesini düzenle</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Düzenleyici Renk Düzeni</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Düzenleyici renk düzeni seçenekleri yalnızca Visual Studio ile paketlenmiş bir renk teması ile birlikte kullanılabilir. Renk teması, Ortam &gt; Genel seçenekler sayfasından yapılandırılabilir.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">Öğe geçerli değil.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Razor 'pull' tanılamasını etkinleştir (deneysel, yeniden başlatma gerekir)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Kaynak oluşturuculardan alınan açık sayfalarda tüm özellikleri etkinleştir (deneysel)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Tanılama için dosya günlüğünü etkinleştir (oturum açan '%Temp%\Roslyn' klasörü)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">'Pull' tanılamasını etkinleştir (deneysel, yeniden başlatma gerekir)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Etkin</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Bir çağrı sitesi değeri girin veya farklı bir değer yerleştirme tipi seçin</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Tüm depo</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Tüm çözüm</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Hata</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Gizlemeler güncellenirken hata oluştu: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Değerlendiriliyor (kuyrukta {0} görev var)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Temel Sınıfı Ayıkla</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Son</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Belgeyi biçimlendir</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Ayarlardan .editorconfig dosyası oluştur</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">İmlecin altında ilgili bileşenleri vurgula</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">Kimlik</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Uygulanan üyeler</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Üyeleri uygulama</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">Diğer işleçlerde</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Dizin</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Bağlamdan çıkarsa</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Kuruluş içinde dizini oluşturulmuş</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Depo içinde dizini oluşturulmuş</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Devralma Marjı (deneysel)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Satır İçi İpuçları (deneysel)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Çağırma yeri değeri '{0}' ekleniyor</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Microsoft'un önerdiği, genel API tasarımı, güvenlik, performans ve güvenilirlik sorunları için ek tanılama ve düzeltmeler sağlayan Roslyn çözümleyicilerini yükleyin</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Arabirimde alan olamaz.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Tanımsız TODO değişkenlerini tanıtın</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Öğe çıkış noktası</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Koru</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Şunun içindeki tüm parantezleri tut:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Tür</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Canlı analiz (VSIX uzantısı)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Öğeler yüklendi</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Çözüm yüklendi</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Yerel</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Yerel meta veriler</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">'{0}' değerini soyut yap</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Soyut yap</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Üyeler</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Değiştirici tercihleri:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Ad Alanına Taşı</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Birden fazla üye devralındı</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">{0}. satırda birden fazla üye devralındı</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Ad, mevcut bir tür adıyla çakışıyor.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Ad geçerli bir {0} tanımlayıcısı değil.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Ad alanı</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Ad alanı: '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">alan</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">yerel</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">yerel işlev</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">yöntem</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">parametre</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">özellik</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">tür parametresi</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Alan</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Yerel</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">yöntem</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parametre</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Tür Parametresi</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Adlandırma kuralları</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">'{0}' öğesine git</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Gereksizse hiçbir zaman</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Yeni Tür Adı:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Yeni satır tercihleri (deneysel):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Yeni Satır (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Kullanılmayan başvuru bulunamadı.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Ortak olmayan yöntemler</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">yok</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Atla (yalnızca isteğe bağlı parametreler için)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Açık belgeler</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">İsteğe bağlı parametrelerde varsayılan değer sağlanmalıdır</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Varsayılan değerle isteğe bağlı:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Diğer</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Geçersiz kılınan üyeler</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Üyeleri geçersiz kılma</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Paketler</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Parametre Ayrıntıları</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Parametre adı:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Parametre bilgileri</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Parametre tipi</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Parametre adı geçersiz karakterler içeriyor.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Parametre tercihleri:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Parametre türü geçersiz karakterler içeriyor.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Parantez tercihleri:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Duraklatıldı (kuyrukta {0} görev var)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Lütfen bir tür adı yazın</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">'GetHashCode' içinde 'System.HashCode' tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Bileşik atamaları tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Dizin işlecini tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Aralık işlecini tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Saltokunur alanları tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Basit 'using' deyimini tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Basitleştirilmiş boolean ifadelerini tercih edin</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Statik yerel işlevleri tercih et</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Projeler</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Üyeleri Yukarı Çek</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Sadece Yeniden Düzenlenme</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Başvuru</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Normal İfadeler</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Tümünü Kaldır</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Kullanılmayan Başvuruları Kaldır</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">{0} öğesini {1} olarak yeniden adlandır</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Geçersiz normal ifadeleri bildir</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Depo</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Gerektir:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Gerekli</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Projede 'System.HashCode' bulunmasını gerektirir</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Visual Studio varsayılan tuş eşlemesine sıfırla</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Değişiklikleri Gözden Geçir</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">{0} Öğesinde Code Analysis Çalıştır</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">'{0}' için kod analizi çalıştırılıyor...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Çözüm için kod analizi çalıştırılıyor...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Düşük öncelikli arka plan işlemleri çalıştırılıyor</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">.editorconfig dosyasını kaydet</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Arama Ayarları</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Hedef seçin</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">_Bağımlıları Seçin</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">_Geneli Seçin</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Hedef ve yukarı çekilecek üyeleri seçin.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Hedef seçin:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Üye seçin</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Üye seçin:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Çözüm Gezgini'nde "Kullanılmayan Başvuruları Kaldır" komutunu göster (deneysel)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Tamamlama listesini göster</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Diğer her şey için ipuçlarını göster</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Örtük nesne oluşturma ipuçlarını göster</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Lambda parametre türleri için ipuçlarını göster</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Sabit değerler için ipuçlarını göster</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Çıkarsanan türlere sahip değişkenler için ipuçlarını göster</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Devralma boşluğunu göster</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Bazı renk düzeni renkleri, Ortam &gt; Yazı Tipleri ve Renkler seçenek sayfasında yapılan değişiklikler tarafından geçersiz kılınıyor. Tüm özelleştirmeleri geri döndürmek için Yazı Tipleri ve Renkler sayfasında `Varsayılanları Kullan` seçeneğini belirleyin.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Öneri</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Parametre adı metodun hedefi ile eşleştiğinde ipuçlarını gizle</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Parametre adlarının yalnızca sonekleri farklı olduğunda ipuçlarını gizle</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Başvuruları olmayan semboller</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Bağımsız değişkenleri eklemek için iki kez dokunun (deneysel)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Hedef Ad Alanı:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Bu dosyayı oluşturan '{0}' oluşturucusu projeden kaldırıldı; bu dosya artık projenize dahil edilmiyor.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Bu dosyayı oluşturan '{0}' oluşturucusu bu dosyayı oluşturmayı durdurdu; bu dosya artık projenize dahil edilmiyor.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Bu işlem geri alınamaz. Devam etmek istiyor musunuz?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Bu dosya, '{0}' oluşturucusu tarafından otomatik olarak oluşturuldu ve düzenlenemez.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Bu geçersiz bir ad alanı</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Başlık</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Tür adı:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Tür adında söz dizimi hatası var</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Tür adı tanınmıyor</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Tür adı tanınıyor</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">Kullanılmayan değer açıkça kullanılmayan bir yerele atandı</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">Kullanılmayan değer açıkça atılmak üzere atandı</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Proje başvuruları güncelleştiriliyor...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Önem derecesi güncelleştiriliyor</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Kod analizi için 64 bit işlemi kullanın (yeniden başlatma gerekir)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Lambdalar için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Yerel işlevler için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Adlandırılmış bağımsız değişken kullan</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Değer</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">Burada atanan değer hiçbir zaman kullanılmadı</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Değer:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">Çağrı ile döndürülen değer örtük olarak yok sayıldı</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Çağrı sitelerinde eklenecek değer</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Uyarı</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Uyarı: Yinelenen parametre adı</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Uyarı: Tür bağlamıyor</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">'{0}' öğesini askıya aldığınızı fark ettik. Gezintiye ve yeniden düzenlemeye devam etmek için tuş eşlemelerini sıfırlayın.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Bu çalışma alanı Visual Basic derleme seçeneklerinin güncelleştirilmesini desteklemiyor.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">İmzayı değiştirmelisiniz</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">En az bir üye seçmelisiniz.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Yolda geçersiz karakterler var.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Dosya adı "{0}" uzantısını içermelidir.</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Hata Ayıklayıcı</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Kesme noktası konumu belirleniyor...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">İfade ve değişkenler belirleniyor...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Kesme noktası konumu çözümleniyor...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Kesme noktası konumu doğrulanıyor...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">DataTip metni alınıyor...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Önizleme kullanılamıyor</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Geçersiz Kılan</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Geçersiz Kılınan</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Devralınan</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Devralan</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Uygulanan</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Uygulayan</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Açılabilecek en fazla belge sayısına ulaşıldı.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Diğer Dosyalar projesinde belge oluşturulamadı.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Geçersiz erişim.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">Aşağıdaki başvurular bulunamadı. {0}Lütfen bu başvuruları el ile bulun ve ekleyin.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">Bitiş konumu, başlangıç konumuna eşit veya bundan sonra olmalıdır</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Geçerli bir değer değil</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">'{0}' devralındı</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}' soyut olacak şekilde değiştirildi.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}' statik olmayacak şekilde değiştirildi.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}' ortak olacak şekilde değiştirildi.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[{0} tarafından oluşturuldu]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[oluşturuldu]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">sağlanan çalışma alanı, geri almayı desteklemiyor</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">'{0}' öğesine başvuru ekleyin</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Olay türü geçersiz</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Üyenin ekleneceği konum bulunamıyor</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">other' öğeleri yeniden adlandırılamıyor</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Bilinmeyen yeniden adlandırma türü</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Bu sembol türü için kimlikler desteklenmiyor.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">'{0}' sembol türü için düğüm kimliği oluşturulamıyor</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Proje Başvuruları</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Temel Türler</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Diğer Dosyalar</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">'{0}' adlı proje bulunamadı</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Diskte klasörün konumu bulunamadı</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Bütünleştirilmiş Kod </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Özel Durumlar:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">{0} üyesi</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parametreler:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Proje </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Açıklamalar:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Döndürülenler:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Özet:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Tür Parametreleri:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Dosya zaten var</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">Dosya yolunda ayrılmış anahtar sözcükler kullanılamaz</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath geçersiz</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Proje Yolu geçersiz</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Yoldaki dosya adı boş olamaz</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">Sağlanan DocumentId değeri, Visual Studio çalışma alanında bulunmuyor.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Proje: {0} ({1}) Bu dosyanın ait olabileceği diğer projeleri görüntülemek ve bunlara geçiş yapmak için açılan menüyü kullanın.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Bu dosyadaki diğer öğeleri görüntülemek ve bu öğelere gitmek için açılan menüyü kullanın.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Proje: {0} Bu dosyanın ait olabileceği diğer projeleri görüntülemek ve bunlara geçiş yapmak için açılan menüyü kullanın.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">Çözümleyici bütünleştirilmiş kodu '{0}' değiştirildi. Visual Studio yeniden başlatılmazsa tanılama yanlış olabilir.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">C#/VB Tanılama Tablosu Veri Kaynağı</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">C#/VB Yapılacaklar Listesi Tablosu Veri Kaynağı</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">İptal</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Tüm Seçimleri Kaldır</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Arabirimi Ayıkla</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Oluşturulan ad:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Yeni _dosya adı:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Yeni _arabirim adı:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">Tamam</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Tümünü Seç</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Arabirim oluşturmak için ortak _üyeleri seçin</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Erişim:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">_Mevcut dosyaya ekle</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">İmzayı Değiştir</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">Yeni dosya _oluştur</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Varsayılan</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Dosya Adı:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Tür Oluştur</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Tür:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Konum:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Değiştirici</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Ad:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parametre</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parametreler:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Metot imzasını önizle:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Başvuru değişikliklerini önizle</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Proje:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Tür</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Tür Ayrıntıları:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">_Kaldır</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Geri yükle</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">{0} hakkında daha fazla bilgi</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">Gezintinin, ön plan iş parçacığında gerçekleştirilmesi gerekir.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">'{1}' adlı projedeki '{0}' öğesine yönelik başvuru</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Bilinmiyor&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">'{1}' projesindeki '{0}' öğesine yönelik çözümleyici başvurusu</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">'{1}' adlı projedeki '{0}' öğesine yönelik proje başvurusu</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">'{0}' ve '{1}' çözümleyici bütünleştirilmiş kodlarının ikisi de '{2}' kimliğine sahip, ancak içerikleri farklı. Yalnızca biri yüklenecek; bu bütünleştirilmiş kodları kullanan çözümleyiciler düzgün şekilde çalışmayabilir.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} başvuru</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 başvuru</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' bir hatayla karşılaştı ve devre dışı bırakıldı.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Etkinleştir</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Etkinleştir ve gelecekteki hataları yoksay</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Değişiklik Yok</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Geçerli blok</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Geçerli blok belirleniyor.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">C#/VB Derleme Tablosu Veri Kaynağı</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">Çözümleyici bütünleştirilmiş kodu '{0}', '{1}' öğesine bağımlı ancak bu öğe bulunamadı. Eksik bütünleştirilmiş kod da çözümleyici başvurusu olarak eklenmeden, çözümleyiciler düzgün şekilde çalışmayabilir.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Tanılamayı gizle</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Gizlemeler düzeltmesi hesaplanıyor...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Gizlemeler düzeltmesi uygulanıyor...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Gizlemeleri kaldır</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Gizlemeleri kaldırma düzeltmesi hesaplanıyor...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Gizlemeleri kaldırma düzeltmesi uygulanıyor...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Bu çalışma alanı, belgelerin yalnızca kullanıcı arabirimi iş parçacığında açılmasını destekler.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Bu çalışma alanı Visual Basic ayrıştırma seçeneklerinin güncelleştirilmesini desteklemiyor.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">{0} ile eşitle</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">{0} ile eşitleniyor...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio, performansı artırmak için bazı gelişmiş özellikleri askıya aldı.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">'{0}' yükleniyor</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">'{0}' yüklendi</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Paket yüklenemedi: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Bilinmiyor&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Hayır</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Evet</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Sembol Belirtimi ve Adlandırma Stili seçin.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Bu Adlandırma Kuralı için bir başlık girin.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Bu Adlandırma Stili için bir başlık girin.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Bu Sembol Belirtimi için bir başlık girin.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Erişim düzeyleri (herhangi biriyle eşleşebilir)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Büyük Harfe Çevirme:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">tümü küçük harf</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">TÜMÜ BÜYÜK HARF</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">orta Harfleri Büyük Ad</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">İlk sözcük büyük harfle</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Baş Harfleri Büyük Ad</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Önem Derecesi:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Değiştiriciler (tümüyle eşleşmelidir)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Ad:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Adlandırma Kuralı</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Adlandırma Stili</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Adlandırma Stili:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Adlandırma Kuralları, belirli sembol kümelerinin nasıl adlandırılması gerektiğini ve yanlış adlandırılan sembollerin nasıl işlenmesi gerektiğini tanımlamanızı sağlar.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">Sembol adlandırılırken varsayılan olarak, eşleşen ilk üst düzey Adlandırma Kuralı kullanılır. Özel durumlar ise eşleşen bir alt kural tarafından işlenir.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Adlandırma Stili Başlığı:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Üst Kural:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Gerekli Ön Ek:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Gerekli Sonek:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Örnek Tanımlayıcı:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Sembol Türleri (tümüyle eşleşebilir)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Sembol Belirtimi</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Sembol Belirtimi:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Sembol Belirtimi Başlığı:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Sözcük Ayırıcı:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">örnek</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">tanımlayıcı</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">'{0}' öğesini yükle</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">'{0}' kaldırılıyor</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">'{0}' kaldırıldı</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">'{0}' öğesini kaldır</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Paket kaldırılamadı: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Proje yüklenirken hatayla karşılaşıldı. Başarısız olan proje ve buna bağımlı projeler için, tam çözüm denetimi gibi bazı proje özellikleri devre dışı bırakıldı.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Proje yüklenemedi.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Sorunun neden kaynaklandığını görmek için lütfen aşağıdaki çözümleri deneyin. 1. Visual Studio'yu kapatın 2. Visual Studio Geliştirici Komut İstemi'ni açın 3. “TraceDesignTime” ortam değişkenini true olarak ayarlayın (set TraceDesignTime=true) 4. .vs dizini/.suo dosyasını silin 5. Visual Studio'yu, ortam değişkenini ayarladığınız komut isteminden yeniden başlatın (devenv) 6. Çözümü açın 7. '{0}' konumuna giderek başarısız olan görevlere bakın (FAILED)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Ek bilgi:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">'{0}' yüklenemedi. Ek bilgiler: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">'{0}' kaldırılamadı. Ek bilgiler: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">{0} öğesini {1} öğesinin altına taşı</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">{0} öğesini {1} öğesinin üstüne taşı</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">{0} öğesini kaldır</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">{0} öğesini geri yükle</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Yeniden etkinleştir</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Daha fazla bilgi</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Çerçeve türünü tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Önceden tanımlanmış türü tercih et</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Panoya Kopyala</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Kapat</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Bilinmeyen Parametreler&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- İç özel durum yığın izlemesi sonu ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Yerel öğeler, parametreler ve üyeler için</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Üye erişimi ifadeleri için</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Nesne başlatıcısını tercih et</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">İfade tercihleri:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Blok Yapısı Kılavuzları</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Ana Hat</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Kod düzeyinde yapılar için kılavuzları göster</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Açıklamalar ve ön işlemci bölgeleri için kılavuzları göster</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Bildirim düzeyinde yapılar için kılavuzları göster</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Kod düzeyinde yapılar için ana hattı göster</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Açıklamalar ve ön işlemci bölgeleri için ana hattı göster</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Bildirim düzeyinde yapılar için ana hattı göster</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Değişken tercihleri:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Satır içine alınmış değişken bildirimini tercih et</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Metotlar için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Kod bloğu tercihleri:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Erişimciler için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Oluşturucular için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Dizin oluşturucular için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">İşleçler için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Özellikler için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Bazı adlandırma kuralları eksik. Lütfen bunları tamamlayın veya kaldırın.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Belirtimleri yönet</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Yeniden sırala</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Önem Derecesi</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Belirtim</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Gerekli Stil</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Öğe, mevcut bir Adlandırma Kuralı tarafından kullanıldığından silinemiyor.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Koleksiyon başlatıcısını tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Birleştirme ifadesini tercih et</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Tanımlara daraltırken #region öğelerini daralt</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Null yaymayı tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Açık demet adını tercih et</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Açıklama</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Tercih</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Interface veya Abstract Sınıfı Uygula</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Sağlanan bir sembolde yalnızca, eşleşen bir 'Belirtim' içeren kurallardan en üstte bulunanı uygulanır. Bu kural için 'Gerekli Stil' ihlal edilirse, bu durum seçilen 'Önem Derecesi' düzeyinde bildirilir.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">sonda</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Özellik, olay ve metot eklerken, bunları şuraya yerleştir:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">aynı türden başka üyelerle birlikte</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Küme ayraçlarını tercih et</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">Bunun yerine:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Tercih edilen:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">veya</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">yerleşik türler</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">diğer yerlerde</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">tür, atama ifadesinden görünür</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Aşağı taşı</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Yukarı taşı</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Kaldır</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Üyeleri seçin</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Visual Studio tarafından kullanılan bir işlemde, kurtarılamayan bir hatayla karşılaşıldı. Çalışmanızı kaydettikten sonra Visual Studio'yu kapatıp yeniden başlatmanız önerilir.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Sembol belirtimi ekle</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Sembol belirtimini kaldır</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Öğe ekle</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Öğeyi düzenle</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Öğeyi kaldır</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Adlandırma kuralı ekle</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Adlandırma kuralını kaldır</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">VisualStudioWorkspace.TryApplyChanges bir arka plan iş parçacığından çağırılamaz.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">özel durum oluşturan özellikleri tercih et</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Özellikler oluşturulurken:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Seçenekler</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Bunu bir daha gösterme</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Basit 'default' ifadesini tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Gösterilen demet öğesi adlarını tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Gösterilen anonim tip üye adlarını tercih et</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Önizleme bölmesi</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Analiz</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Erişilemeyen kodu soluklaştır</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Soluklaştırılıyor</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Anonim işlevler yerine yerel işlevleri tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Ayrıştırılmış değişken bildirimini tercih et</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Dış başvuru bulundu</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">'{0}' için başvuru bulunamadı</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">Aramada sonuç bulunamadı</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Otomatik özellikleri tercih et</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">otomatik özellikleri tercih et</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Modül kaldırıldı.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Derlemesi ayrılan kaynaklar için gezintiyi etkinleştirme (deneysel)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">.editorconfig dosyanız, bu sayfada yapılandırılan ve yalnızca makinenizde uygulanan yerel ayarları geçersiz kılabilir. Bu ayarları çözümünüzle birlikte hareket etmek üzere yapılandırmak için EditorConfig dosyalarını kullanın. Daha fazla bilgi</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Sınıf Görünümünü Eşitle</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">'{0}' Analiz Ediliyor</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Adlandırma stillerini yönetme</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Atamalarda 'if' yerine koşullu deyim tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Dönüşlerde 'if' yerine koşullu deyim tercih et</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="tr" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">Yeni bir ad alanı oluşturulacak</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">Bir tür ve ad verilmesi gerekiyor.</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">Eylem</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">_Ekle</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">Parametre Ekle</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">Geçerli _dosyaya ekle</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">Parametre eklendi.</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">Yeniden düzenlemeyi tamamlamak için ek değişiklikler gerekli. Aşağıdaki değişiklikleri gözden geçirin.</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">Tüm yöntemler</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">Tüm kaynaklar</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">İzin ver:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">Birden çok boş satıra izin ver</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">Bloktan hemen sonra deyime izin ver</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">Açıklık sağlamak için her zaman</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">Çözümleyiciler</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">Proje başvuruları analiz ediliyor...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">Uygula</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">'{0}' tuş eşlemesi düzenini uygula</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">Derlemeler</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">Değeri örtük olarak yok sayan ifade deyimlerini engelle</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">Kullanılmayan parametreleri engelle</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">Kullanılmayan değer atamalarını engelle</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">Geri</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">Arka plan çözümleme kapsamı:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 bit</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 bit</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">Derleme ve canlı analiz (NuGet paketi)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">C#/Visual Basic Tanılama Dili İstemcisi</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">Bağımlılar hesaplanıyor...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">Çağrı konumu değeri:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">Çağrı konumu</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">Satır Başı + Yeni Satır (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">Satır başı (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">Kategori</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">Kullanılmayan başvurularda hangi eylemi gerçekleştirmek istediğinizi seçin.</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">Kod Stili</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">'{0}' için kod analizi tamamlandı.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">Çözüm için kod analizi tamamlandı.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">Kod analizi, '{0}' için tamamlanmadan önce sonlandırıldı.</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">Kod analizi, Çözüm için tamamlanmadan önce sonlandırıldı.</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">Renk ipuçları</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">Normal ifadeleri renklendir</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Açıklamalar</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">Kapsayan Üye</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">Kapsayan Tür</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">Geçerli belge</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">Geçerli parametre</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">Devre dışı</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">Alt+F1 tuşlarına basılırken tüm ipuçlarını görüntüle</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">Satır içi parametre adı ipuç_larını göster</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">Satır içi tür ipuçlarını göster</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">_Düzenle</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">{0} öğesini düzenle</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">Düzenleyici Renk Düzeni</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">Düzenleyici renk düzeni seçenekleri yalnızca Visual Studio ile paketlenmiş bir renk teması ile birlikte kullanılabilir. Renk teması, Ortam &gt; Genel seçenekler sayfasından yapılandırılabilir.</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">Öğe geçerli değil.</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">Razor 'pull' tanılamasını etkinleştir (deneysel, yeniden başlatma gerekir)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">Kaynak oluşturuculardan alınan açık sayfalarda tüm özellikleri etkinleştir (deneysel)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">Tanılama için dosya günlüğünü etkinleştir (oturum açan '%Temp%\Roslyn' klasörü)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">'Pull' tanılamasını etkinleştir (deneysel, yeniden başlatma gerekir)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">Etkin</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">Bir çağrı sitesi değeri girin veya farklı bir değer yerleştirme tipi seçin</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">Tüm depo</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">Tüm çözüm</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">Hata</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">Gizlemeler güncellenirken hata oluştu: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">Değerlendiriliyor (kuyrukta {0} görev var)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">Temel Sınıfı Ayıkla</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">Son</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">Belgeyi biçimlendir</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">Ayarlardan .editorconfig dosyası oluştur</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">İmlecin altında ilgili bileşenleri vurgula</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">Kimlik</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">Uygulanan üyeler</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">Üyeleri uygulama</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">Diğer işleçlerde</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">Dizin</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">Bağlamdan çıkarsa</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">Kuruluş içinde dizini oluşturulmuş</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">Depo içinde dizini oluşturulmuş</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">Devralma Marjı (deneysel)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">Satır İçi İpuçları (deneysel)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">Çağırma yeri değeri '{0}' ekleniyor</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">Microsoft'un önerdiği, genel API tasarımı, güvenlik, performans ve güvenilirlik sorunları için ek tanılama ve düzeltmeler sağlayan Roslyn çözümleyicilerini yükleyin</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">Arabirimde alan olamaz.</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">Tanımsız TODO değişkenlerini tanıtın</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">Öğe çıkış noktası</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">Koru</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">Şunun içindeki tüm parantezleri tut:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">Tür</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">Canlı analiz (VSIX uzantısı)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">Öğeler yüklendi</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">Çözüm yüklendi</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">Yerel</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">Yerel meta veriler</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">'{0}' değerini soyut yap</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">Soyut yap</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">Üyeler</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">Değiştirici tercihleri:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">Ad Alanına Taşı</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">Birden fazla üye devralındı</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">{0}. satırda birden fazla üye devralındı</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">Ad, mevcut bir tür adıyla çakışıyor.</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">Ad geçerli bir {0} tanımlayıcısı değil.</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">Ad alanı</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">Ad alanı: '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">alan</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">yerel</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">yerel işlev</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">yöntem</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">parametre</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">özellik</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">tür parametresi</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">Alan</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">Yerel</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">yöntem</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">Parametre</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">Tür Parametresi</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">Adlandırma kuralları</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">'{0}' öğesine git</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">Gereksizse hiçbir zaman</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">Yeni Tür Adı:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">Yeni satır tercihleri (deneysel):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">Yeni Satır (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">Kullanılmayan başvuru bulunamadı.</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">Ortak olmayan yöntemler</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">yok</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">Atla (yalnızca isteğe bağlı parametreler için)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">Açık belgeler</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">İsteğe bağlı parametrelerde varsayılan değer sağlanmalıdır</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">Varsayılan değerle isteğe bağlı:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">Diğer</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">Geçersiz kılınan üyeler</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">Üyeleri geçersiz kılma</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">Paketler</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">Parametre Ayrıntıları</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">Parametre adı:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">Parametre bilgileri</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">Parametre tipi</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">Parametre adı geçersiz karakterler içeriyor.</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">Parametre tercihleri:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">Parametre türü geçersiz karakterler içeriyor.</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">Parantez tercihleri:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">Duraklatıldı (kuyrukta {0} görev var)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">Lütfen bir tür adı yazın</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">'GetHashCode' içinde 'System.HashCode' tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">Bileşik atamaları tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">Dizin işlecini tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">Aralık işlecini tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">Saltokunur alanları tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">Basit 'using' deyimini tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">Basitleştirilmiş boolean ifadelerini tercih edin</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">Statik yerel işlevleri tercih et</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">Projeler</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">Üyeleri Yukarı Çek</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">Sadece Yeniden Düzenlenme</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">Başvuru</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">Normal İfadeler</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">Tümünü Kaldır</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">Kullanılmayan Başvuruları Kaldır</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">{0} öğesini {1} olarak yeniden adlandır</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">Geçersiz normal ifadeleri bildir</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">Depo</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">Gerektir:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">Gerekli</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">Projede 'System.HashCode' bulunmasını gerektirir</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">Visual Studio varsayılan tuş eşlemesine sıfırla</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">Değişiklikleri Gözden Geçir</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">{0} Öğesinde Code Analysis Çalıştır</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">'{0}' için kod analizi çalıştırılıyor...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">Çözüm için kod analizi çalıştırılıyor...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">Düşük öncelikli arka plan işlemleri çalıştırılıyor</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">.editorconfig dosyasını kaydet</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">Arama Ayarları</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">Hedef seçin</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">_Bağımlıları Seçin</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">_Geneli Seçin</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">Hedef ve yukarı çekilecek üyeleri seçin.</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">Hedef seçin:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">Üye seçin</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">Üye seçin:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">Çözüm Gezgini'nde "Kullanılmayan Başvuruları Kaldır" komutunu göster (deneysel)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">Tamamlama listesini göster</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">Diğer her şey için ipuçlarını göster</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">Örtük nesne oluşturma ipuçlarını göster</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">Lambda parametre türleri için ipuçlarını göster</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">Sabit değerler için ipuçlarını göster</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">Çıkarsanan türlere sahip değişkenler için ipuçlarını göster</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">Devralma boşluğunu göster</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">Bazı renk düzeni renkleri, Ortam &gt; Yazı Tipleri ve Renkler seçenek sayfasında yapılan değişiklikler tarafından geçersiz kılınıyor. Tüm özelleştirmeleri geri döndürmek için Yazı Tipleri ve Renkler sayfasında `Varsayılanları Kullan` seçeneğini belirleyin.</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">Öneri</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">Parametre adı metodun hedefi ile eşleştiğinde ipuçlarını gizle</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">Parametre adlarının yalnızca sonekleri farklı olduğunda ipuçlarını gizle</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">Başvuruları olmayan semboller</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">Bağımsız değişkenleri eklemek için iki kez dokunun (deneysel)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">Hedef Ad Alanı:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">Bu dosyayı oluşturan '{0}' oluşturucusu projeden kaldırıldı; bu dosya artık projenize dahil edilmiyor.</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">Bu dosyayı oluşturan '{0}' oluşturucusu bu dosyayı oluşturmayı durdurdu; bu dosya artık projenize dahil edilmiyor.</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">Bu işlem geri alınamaz. Devam etmek istiyor musunuz?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">Bu dosya, '{0}' oluşturucusu tarafından otomatik olarak oluşturuldu ve düzenlenemez.</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">Bu geçersiz bir ad alanı</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">Başlık</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">Tür adı:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">Tür adında söz dizimi hatası var</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">Tür adı tanınmıyor</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">Tür adı tanınıyor</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">Kullanılmayan değer açıkça kullanılmayan bir yerele atandı</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">Kullanılmayan değer açıkça atılmak üzere atandı</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">Proje başvuruları güncelleştiriliyor...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">Önem derecesi güncelleştiriliyor</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">Kod analizi için 64 bit işlemi kullanın (yeniden başlatma gerekir)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">Lambdalar için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">Yerel işlevler için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">Adlandırılmış bağımsız değişken kullan</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">Değer</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">Burada atanan değer hiçbir zaman kullanılmadı</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">Değer:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">Çağrı ile döndürülen değer örtük olarak yok sayıldı</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">Çağrı sitelerinde eklenecek değer</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">Uyarı</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">Uyarı: Yinelenen parametre adı</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">Uyarı: Tür bağlamıyor</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">'{0}' öğesini askıya aldığınızı fark ettik. Gezintiye ve yeniden düzenlemeye devam etmek için tuş eşlemelerini sıfırlayın.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">Bu çalışma alanı Visual Basic derleme seçeneklerinin güncelleştirilmesini desteklemiyor.</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">İmzayı değiştirmelisiniz</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">En az bir üye seçmelisiniz.</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">Yolda geçersiz karakterler var.</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">Dosya adı "{0}" uzantısını içermelidir.</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">Hata Ayıklayıcı</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">Kesme noktası konumu belirleniyor...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">İfade ve değişkenler belirleniyor...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">Kesme noktası konumu çözümleniyor...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">Kesme noktası konumu doğrulanıyor...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">DataTip metni alınıyor...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">Önizleme kullanılamıyor</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">Geçersiz Kılan</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">Geçersiz Kılınan</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">Devralınan</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">Devralan</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">Uygulanan</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">Uygulayan</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">Açılabilecek en fazla belge sayısına ulaşıldı.</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">Diğer Dosyalar projesinde belge oluşturulamadı.</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">Geçersiz erişim.</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">Aşağıdaki başvurular bulunamadı. {0}Lütfen bu başvuruları el ile bulun ve ekleyin.</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">Bitiş konumu, başlangıç konumuna eşit veya bundan sonra olmalıdır</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">Geçerli bir değer değil</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">'{0}' devralındı</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}' soyut olacak şekilde değiştirildi.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}' statik olmayacak şekilde değiştirildi.</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}' ortak olacak şekilde değiştirildi.</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[{0} tarafından oluşturuldu]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[oluşturuldu]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">sağlanan çalışma alanı, geri almayı desteklemiyor</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">'{0}' öğesine başvuru ekleyin</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">Olay türü geçersiz</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">Üyenin ekleneceği konum bulunamıyor</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">other' öğeleri yeniden adlandırılamıyor</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">Bilinmeyen yeniden adlandırma türü</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">Bu sembol türü için kimlikler desteklenmiyor.</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">'{0}' sembol türü için düğüm kimliği oluşturulamıyor</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">Proje Başvuruları</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">Temel Türler</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">Diğer Dosyalar</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">'{0}' adlı proje bulunamadı</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">Diskte klasörün konumu bulunamadı</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">Bütünleştirilmiş Kod </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">Özel Durumlar:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">{0} üyesi</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">Parametreler:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">Proje </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">Açıklamalar:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">Döndürülenler:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">Özet:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">Tür Parametreleri:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">Dosya zaten var</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">Dosya yolunda ayrılmış anahtar sözcükler kullanılamaz</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath geçersiz</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">Proje Yolu geçersiz</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">Yoldaki dosya adı boş olamaz</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">Sağlanan DocumentId değeri, Visual Studio çalışma alanında bulunmuyor.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Proje: {0} ({1}) Bu dosyanın ait olabileceği diğer projeleri görüntülemek ve bunlara geçiş yapmak için açılan menüyü kullanın.</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} Bu dosyadaki diğer öğeleri görüntülemek ve bu öğelere gitmek için açılan menüyü kullanın.</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">Proje: {0} Bu dosyanın ait olabileceği diğer projeleri görüntülemek ve bunlara geçiş yapmak için açılan menüyü kullanın.</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">Çözümleyici bütünleştirilmiş kodu '{0}' değiştirildi. Visual Studio yeniden başlatılmazsa tanılama yanlış olabilir.</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">C#/VB Tanılama Tablosu Veri Kaynağı</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">C#/VB Yapılacaklar Listesi Tablosu Veri Kaynağı</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">İptal</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">_Tüm Seçimleri Kaldır</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">Arabirimi Ayıkla</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">Oluşturulan ad:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">Yeni _dosya adı:</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">Yeni _arabirim adı:</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">Tamam</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">_Tümünü Seç</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">Arabirim oluşturmak için ortak _üyeleri seçin</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">_Erişim:</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">_Mevcut dosyaya ekle</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">İmzayı Değiştir</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">Yeni dosya _oluştur</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">Varsayılan</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">Dosya Adı:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">Tür Oluştur</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">_Tür:</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">Konum:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">Değiştirici</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">Ad:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">Parametre</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">Parametreler:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">Metot imzasını önizle:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">Başvuru değişikliklerini önizle</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">_Proje:</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">Tür</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">Tür Ayrıntıları:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">_Kaldır</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">_Geri yükle</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">{0} hakkında daha fazla bilgi</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">Gezintinin, ön plan iş parçacığında gerçekleştirilmesi gerekir.</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">'{1}' adlı projedeki '{0}' öğesine yönelik başvuru</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Bilinmiyor&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">'{1}' projesindeki '{0}' öğesine yönelik çözümleyici başvurusu</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">'{1}' adlı projedeki '{0}' öğesine yönelik proje başvurusu</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">'{0}' ve '{1}' çözümleyici bütünleştirilmiş kodlarının ikisi de '{2}' kimliğine sahip, ancak içerikleri farklı. Yalnızca biri yüklenecek; bu bütünleştirilmiş kodları kullanan çözümleyiciler düzgün şekilde çalışmayabilir.</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} başvuru</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 başvuru</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' bir hatayla karşılaştı ve devre dışı bırakıldı.</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">Etkinleştir</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">Etkinleştir ve gelecekteki hataları yoksay</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">Değişiklik Yok</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">Geçerli blok</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">Geçerli blok belirleniyor.</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">C#/VB Derleme Tablosu Veri Kaynağı</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">Çözümleyici bütünleştirilmiş kodu '{0}', '{1}' öğesine bağımlı ancak bu öğe bulunamadı. Eksik bütünleştirilmiş kod da çözümleyici başvurusu olarak eklenmeden, çözümleyiciler düzgün şekilde çalışmayabilir.</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">Tanılamayı gizle</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">Gizlemeler düzeltmesi hesaplanıyor...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">Gizlemeler düzeltmesi uygulanıyor...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">Gizlemeleri kaldır</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">Gizlemeleri kaldırma düzeltmesi hesaplanıyor...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">Gizlemeleri kaldırma düzeltmesi uygulanıyor...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">Bu çalışma alanı, belgelerin yalnızca kullanıcı arabirimi iş parçacığında açılmasını destekler.</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">Bu çalışma alanı Visual Basic ayrıştırma seçeneklerinin güncelleştirilmesini desteklemiyor.</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">{0} ile eşitle</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">{0} ile eşitleniyor...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio, performansı artırmak için bazı gelişmiş özellikleri askıya aldı.</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">'{0}' yükleniyor</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">'{0}' yüklendi</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">Paket yüklenemedi: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;Bilinmiyor&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">Hayır</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">Evet</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">Sembol Belirtimi ve Adlandırma Stili seçin.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">Bu Adlandırma Kuralı için bir başlık girin.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">Bu Adlandırma Stili için bir başlık girin.</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">Bu Sembol Belirtimi için bir başlık girin.</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">Erişim düzeyleri (herhangi biriyle eşleşebilir)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">Büyük Harfe Çevirme:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">tümü küçük harf</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">TÜMÜ BÜYÜK HARF</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">orta Harfleri Büyük Ad</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">İlk sözcük büyük harfle</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Baş Harfleri Büyük Ad</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">Önem Derecesi:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">Değiştiriciler (tümüyle eşleşmelidir)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">Ad:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">Adlandırma Kuralı</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">Adlandırma Stili</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">Adlandırma Stili:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">Adlandırma Kuralları, belirli sembol kümelerinin nasıl adlandırılması gerektiğini ve yanlış adlandırılan sembollerin nasıl işlenmesi gerektiğini tanımlamanızı sağlar.</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">Sembol adlandırılırken varsayılan olarak, eşleşen ilk üst düzey Adlandırma Kuralı kullanılır. Özel durumlar ise eşleşen bir alt kural tarafından işlenir.</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">Adlandırma Stili Başlığı:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">Üst Kural:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">Gerekli Ön Ek:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">Gerekli Sonek:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">Örnek Tanımlayıcı:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">Sembol Türleri (tümüyle eşleşebilir)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">Sembol Belirtimi</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">Sembol Belirtimi:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">Sembol Belirtimi Başlığı:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">Sözcük Ayırıcı:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">örnek</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">tanımlayıcı</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">'{0}' öğesini yükle</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">'{0}' kaldırılıyor</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">'{0}' kaldırıldı</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">'{0}' öğesini kaldır</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">Paket kaldırılamadı: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">Proje yüklenirken hatayla karşılaşıldı. Başarısız olan proje ve buna bağımlı projeler için, tam çözüm denetimi gibi bazı proje özellikleri devre dışı bırakıldı.</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">Proje yüklenemedi.</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">Sorunun neden kaynaklandığını görmek için lütfen aşağıdaki çözümleri deneyin. 1. Visual Studio'yu kapatın 2. Visual Studio Geliştirici Komut İstemi'ni açın 3. “TraceDesignTime” ortam değişkenini true olarak ayarlayın (set TraceDesignTime=true) 4. .vs dizini/.suo dosyasını silin 5. Visual Studio'yu, ortam değişkenini ayarladığınız komut isteminden yeniden başlatın (devenv) 6. Çözümü açın 7. '{0}' konumuna giderek başarısız olan görevlere bakın (FAILED)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">Ek bilgi:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">'{0}' yüklenemedi. Ek bilgiler: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">'{0}' kaldırılamadı. Ek bilgiler: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">{0} öğesini {1} öğesinin altına taşı</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">{0} öğesini {1} öğesinin üstüne taşı</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">{0} öğesini kaldır</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">{0} öğesini geri yükle</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">Yeniden etkinleştir</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">Daha fazla bilgi</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">Çerçeve türünü tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">Önceden tanımlanmış türü tercih et</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">Panoya Kopyala</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">Kapat</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;Bilinmeyen Parametreler&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- İç özel durum yığın izlemesi sonu ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">Yerel öğeler, parametreler ve üyeler için</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">Üye erişimi ifadeleri için</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">Nesne başlatıcısını tercih et</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">İfade tercihleri:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">Blok Yapısı Kılavuzları</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">Ana Hat</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">Kod düzeyinde yapılar için kılavuzları göster</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">Açıklamalar ve ön işlemci bölgeleri için kılavuzları göster</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">Bildirim düzeyinde yapılar için kılavuzları göster</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">Kod düzeyinde yapılar için ana hattı göster</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">Açıklamalar ve ön işlemci bölgeleri için ana hattı göster</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">Bildirim düzeyinde yapılar için ana hattı göster</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">Değişken tercihleri:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">Satır içine alınmış değişken bildirimini tercih et</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">Metotlar için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">Kod bloğu tercihleri:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">Erişimciler için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">Oluşturucular için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">Dizin oluşturucular için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">İşleçler için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">Özellikler için ifade gövdesi kullan</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">Bazı adlandırma kuralları eksik. Lütfen bunları tamamlayın veya kaldırın.</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">Belirtimleri yönet</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">Yeniden sırala</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">Önem Derecesi</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">Belirtim</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">Gerekli Stil</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">Öğe, mevcut bir Adlandırma Kuralı tarafından kullanıldığından silinemiyor.</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">Koleksiyon başlatıcısını tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">Birleştirme ifadesini tercih et</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">Tanımlara daraltırken #region öğelerini daralt</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">Null yaymayı tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">Açık demet adını tercih et</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">Açıklama</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">Tercih</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">Interface veya Abstract Sınıfı Uygula</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">Sağlanan bir sembolde yalnızca, eşleşen bir 'Belirtim' içeren kurallardan en üstte bulunanı uygulanır. Bu kural için 'Gerekli Stil' ihlal edilirse, bu durum seçilen 'Önem Derecesi' düzeyinde bildirilir.</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">sonda</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">Özellik, olay ve metot eklerken, bunları şuraya yerleştir:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">aynı türden başka üyelerle birlikte</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">Küme ayraçlarını tercih et</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">Bunun yerine:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">Tercih edilen:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">veya</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">yerleşik türler</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">diğer yerlerde</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">tür, atama ifadesinden görünür</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">Aşağı taşı</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">Yukarı taşı</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">Kaldır</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">Üyeleri seçin</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">Visual Studio tarafından kullanılan bir işlemde, kurtarılamayan bir hatayla karşılaşıldı. Çalışmanızı kaydettikten sonra Visual Studio'yu kapatıp yeniden başlatmanız önerilir.</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">Sembol belirtimi ekle</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">Sembol belirtimini kaldır</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">Öğe ekle</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">Öğeyi düzenle</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">Öğeyi kaldır</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">Adlandırma kuralı ekle</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">Adlandırma kuralını kaldır</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">VisualStudioWorkspace.TryApplyChanges bir arka plan iş parçacığından çağırılamaz.</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">özel durum oluşturan özellikleri tercih et</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">Özellikler oluşturulurken:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">Seçenekler</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">Bunu bir daha gösterme</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">Basit 'default' ifadesini tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">Gösterilen demet öğesi adlarını tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">Gösterilen anonim tip üye adlarını tercih et</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">Önizleme bölmesi</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">Analiz</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">Erişilemeyen kodu soluklaştır</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">Soluklaştırılıyor</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">Anonim işlevler yerine yerel işlevleri tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">Ayrıştırılmış değişken bildirimini tercih et</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">Dış başvuru bulundu</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">'{0}' için başvuru bulunamadı</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">Aramada sonuç bulunamadı</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">Otomatik özellikleri tercih et</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">otomatik özellikleri tercih et</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">Modül kaldırıldı.</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">Derlemesi ayrılan kaynaklar için gezintiyi etkinleştirme (deneysel)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">.editorconfig dosyanız, bu sayfada yapılandırılan ve yalnızca makinenizde uygulanan yerel ayarları geçersiz kılabilir. Bu ayarları çözümünüzle birlikte hareket etmek üzere yapılandırmak için EditorConfig dosyalarını kullanın. Daha fazla bilgi</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">Sınıf Görünümünü Eşitle</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">'{0}' Analiz Ediliyor</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">Adlandırma stillerini yönetme</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">Atamalarda 'if' yerine koşullu deyim tercih et</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">Dönüşlerde 'if' yerine koşullu deyim tercih et</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hans.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hans" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">在解决方案的根目录中检测到一个新的 .editorconfig 文件。是否要将其设置为解决方案项?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">将创建一个新的命名空间</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">必须提供类型和名称。</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">操作</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">添加(_A)</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">添加参数</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">添加到当前文件(_C)</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">添加了参数。</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">需要进行其他更改才可完成重构。请在下方查看所作更改。</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">所有方法</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">所有源</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">允许:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">允许使用多个空白行</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">允许块后紧跟语句</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">为始终保持清楚起见</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">分析器</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">正在分析项目引用…</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">应用</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">应用“{0}”项映射计划</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">程序集</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">避免会隐式忽略值的表达式语句</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">避免未使用的参数</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">避免未使用的值赋值</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">后退</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">后台分析范围:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 位</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 位</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">生成 + 实时分析(NuGet 包)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">C#/Visual Basic 语言服务器客户端</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">正在计算依赖项...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">调用站点值:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">调用站点</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">回车 + 换行(\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">回车(\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">类别</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">选择要对未使用的引用执行的操作。</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">代码样式</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">“{0}”的代码分析已完成。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">解决方案的代码分析已完成。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">“{0}”的代码分析在完成之前终止。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">解决方案的代码分析在完成之前终止。</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">颜色提示</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">为正规表达式着色</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">备注</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">包含成员</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">包含类型</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">当前文档</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">当前参数</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">已禁用</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">按 Alt+F1 时显示所有提示</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">显示内联参数名称提示(_L)</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">显示内联类型提示</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">编辑(_E)</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">编辑 {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">编辑器配色方案</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">只有在使用与 Visual Studio 绑定的颜色主题时,编辑器配色方案选项才可用。可在“环境”&gt;“常规”选项页中配置颜色主题。</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">元素无效。</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">启用 Razor“拉取”诊断(实验性,需要重启)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">从源生成器在打开的文件中启用所有功能(实验性)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">为诊断启用文件日志记录(记录在“%Temp%\Roslyn”文件夹中)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">启用“拉取”诊断(实验性,需要重启)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">已启用</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">输入调用站点值或选择其他值注入类型</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">整个存储库</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">整个解决方案</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">错误</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">更新抑制时出现错误: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">正在评估(队列中有 {0} 个任务)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">提取基类</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">完成</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">设置文档的格式</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">基于设置生成 .editorconfig 文件</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">突出显示光标下的相关组件</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">实现的成员</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">正在实现成员</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">在其他运算符中</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">索引</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">从上下文推断</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">已在组织中编入索引</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">已在存储库中编入索引</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">继承边距(实验性)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">内联提示(实验性)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">正在插入调用站点值 "{0}"</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">安装 Microsoft 推荐的 Roslyn 分析器,它提供了针对常见 API 设计、安全性、性能和可靠性问题的额外诊断和修补程序</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">接口不可具有字段。</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">引入未定义的 TODO 变量</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">项来源</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">保留</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">保留所有括号:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">种类</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">实时分析(VSIX 扩展)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">加载的项</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">加载的解决方案</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">本地</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">本地元数据</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">将“{0}”设为抽象</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">设为抽象</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">成员</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">修饰符首选项:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">移动到命名空间</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">已继承多个成员</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">第 {0} 行继承了多个成员</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">名称与现有类型名称相冲突。</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">名称不是有效的 {0} 标识符。</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">命名空间</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">命名空间:“{0}”</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">字段</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">局部</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">本地函数</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">方法</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">参数</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">属性</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">类型形参</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">字段</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">本地</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">方法</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">参数</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">类型参数</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">命名规则</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">导航到“{0}”</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">从不(若无必要)</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">新类型名称:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">新行首选项(实验性):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">换行(\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">找不到未使用的引用。</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">非公共成员</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">无</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">省略(仅对于可选参数)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">打开的文档</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">可选参数必须提供默认值</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">默认值可选:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">其他</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">替代的成员</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">替代成员</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">包</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">参数详细信息</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">参数名称:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">参数信息</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">参数种类</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">参数名包含无效的字符。</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">参数首选项:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">参数类型包含无效的字符。</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">括号首选项:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">已暂停(队列中有 {0} 个任务)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">请输入一个类型名称</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">在 "GetHashCode" 中首选 "System.HashCode"</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">首选复合赋值</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">首选索引运算符</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">首选范围运算符</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">首选只读字段</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">首选简单的 "using" 语句</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">首选简化的布尔表达式</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">首选静态本地函数</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">项目</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">拉取成员</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">仅重构</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">引用</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">正规表达式</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">全部删除</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">删除未使用的引用</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">将 {0} 重命名为 {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">报告无效的正规表达式</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">存储库</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">需要:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">必需</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">要求项目中存在 "System.HashCode"</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">重置 Visual Studio 默认项映射</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">预览更改</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">对 {0} 运行 Code Analysis</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">正在为“{0}”运行代码分析…</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">正在为解决方案运行代码分析…</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">正在运行低优先级后台进程</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">保存 .editorconfig 文件</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">搜索设置</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">选择目标</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">选择依赖项(_D)</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">选择公共(_P)</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">选择要拉取的目标和成员。</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">选择目标:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">选择成员</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">选择成员:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">在解决方案资源管理器中显示“删除未使用的引用”命令(实验性)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">显示完成列表</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">显示其他所有内容的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">显示创建隐式对象的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">显示 lambda 参数类型的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">显示文本提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">显示具有推断类型的变量的提示</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">显示继承边距</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">在“环境”&gt;“字体和颜色”选项页中所做的更改将替代某些配色方案颜色。在“字体和颜色”页中选择“使用默认值”,还原所有自定义项。</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">建议</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">当参数名称与方法的意图匹配时禁止显示提示</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">当参数名称只有后缀不同时禁止显示提示</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">不带引用的符号</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">按两次 Tab 以插入参数(实验性)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">目标命名空间:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">生成此文件的生成器“{0}”已从项目中删除;项目中不再包含此文件。</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">生成此文件的生成器“{0}”已停止生成此文件;项目中不再包含此文件。</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">此操作无法撤消。是否要继续?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">此文件由生成器“{0}”自动生成,无法编辑。</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">这是一个无效的命名空间</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">标题</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">类型名称:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">类型名称有语法错误</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">无法识别类型名称</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">已识别类型名称</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">未使用的值会显式分配给未使用的本地函数</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">未使用的值会显式分配以弃用</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">正在更新项目引用…</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">正在更新严重性</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">对代码分析使用 64 位进程(需要重启)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">使用 lambdas 的表达式主体</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">使用本地函数的表达式主体</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">使用命名参数</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">值</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">此处分配的值从未使用过</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">值:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">已隐式忽略调用所返回的值</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">要在调用站点插入的值</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">警告</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">警告: 参数名重复</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">警告: 类型未绑定</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">我们注意到你挂起了“{0}”。请重置项映射以继续导航和重构。</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">此工作区不支持更新 Visual Basic 编译选项。</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">必须更改签名</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">必须至少选择一个成员。</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">路径中存在非法字符。</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">文件名必须具有“{0}”扩展。</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">调试程序</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">正在确定断点位置...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">正在确定自动窗口...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">正在解析断点位置...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">正在验证断点位置...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">正在获取数据提示文本...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">预览不可用</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">重写</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">重写者</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">继承</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">继承者</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">实现</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">实现者</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">打开的文档达到最大数目。</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">未能在杂项文件项目中创建文档。</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">访问无效。</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">找不到以下引用。{0}请手动查找并添加这些引用。</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">结束位置必须 &gt;= 开始位置</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">值无效</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">已继承“{0}”</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">“{0}”将更改为“抽象”。</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">“{0}”将更改为“非静态”。</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">“{0}”将更改为“公共”。</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[由 {0} 生成]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[已生成]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">给定的工作区不支持撤消</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">添加对“{0}”的引用</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">事件类型无效</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">无法找到插入成员的位置</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">无法重命名 "other" 元素</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">重命名类型未知</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">此符号类型不支持 ID。</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">无法为此符号种类创建节点 ID:“{0}”</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">项目引用</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">基类型</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">杂项文件</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">无法找到项目“{0}”</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">无法在磁盘上找到文件夹的位置</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">程序集</target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">异常:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">{0} 的成员</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">参数:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">项目</target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">备注:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">返回结果:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">摘要:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">类型参数:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">文件已存在</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">文件路径无法使用保留的关键字</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath 非法</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">项目路径非法</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">路径中不能包含空文件名</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">给定的 DocumentId 并非来自 Visual Studio 工作区。</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">项目: {0} ({1}) 使用下拉列表可查看和切换到此文件所属的其他项目。</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} 使用下拉列表可查看并导航到此文件中的其他项。</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">项目: {0} 使用下拉列表可查看和切换到此文件所属的其他项目。</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">分析器程序集“{0}”已更改。如果不重启 Visual Studio,诊断则可能出错。</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">C#/VB 诊断表格数据源</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">C#/VB 待办事项表格数据源</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">取消</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">取消全选(_D)</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">提取接口</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">生成的名称:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">新文件名(_F):</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">新接口名称(_I):</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">确定</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">全选(_S)</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">选择构成接口的公共成员(_M)</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">访问(_A):</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">添加到现有文件(_E)</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">更改签名</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">创建新文件(_C)</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">默认值</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">文件名:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">生成类型</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">种类(_K):</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">位置:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">修饰符</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">名称:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">参数</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">参数:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">预览方法签名:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">预览引用更改</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">项目(_P):</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">类型</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">类型详细信息:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">删除(_M)</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">还原(_R)</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">有关 {0} 的详细信息</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">导航必须在前台线程上进行。</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">项目“{1}”中对“{0}”的引用</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;未知&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">项目“{1}”中对“{0}”的分析器引用</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">项目“{1}”中对“{0}”的项目引用</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">分析器程序集“{0}”和“{1}”都具有标识“{2}”,但是却具有不同的内容。只会加载其中一个程序集,并且使用这些程序集的分析器可能不会正确运行。</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} 个引用</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 个引用</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">“{0}”遇到了错误,且已被禁用。</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">启用</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">启用并忽略将来发生的错误</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">未更改</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">当前块</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">正在确定当前块。</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">C#/VB 内部版本表格数据源</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">分析器程序集“{0}”依赖于“{1}”,但是却找不到它。除非将缺少的程序集也添加为分析器引用,否则分析器可能不会正确运行。</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">禁止诊断</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">正在计算禁止显示修复...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">正在应用禁止显示修复...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">删除禁止显示</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">正在计算删除禁止显示修复...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">正在应用删除禁止显示修复...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">此工作区仅支持在 UI 线程上打开文档。</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">此工作区不支持更新 Visual Basic 分析选项。</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">同步 {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">正在与 {0} 同步...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio 已挂起一些高级功能来提高性能。</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">正在安装“{0}”</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">安装“{0}”已完成</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">包安装失败: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;未知&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">否</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">是</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">选择符号规范和命名样式。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">为此命名规则输入标题。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">为此命名样式输入标题。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">为此符号规范输入标题。</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">可访问性(可任意匹配)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">大写:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">全部小写(all lower)</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">全部大写(ALL UPPER)</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">驼峰式大小写命名</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">第一个单词大写(First word upper)</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">帕斯卡式大小写命名</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">严重性:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">修饰符(必须全部匹配)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">名称:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">命名规则</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">命名样式</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">命名样式:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">命名规则能够使用户定义特定符号集的命名方式以及错误命名符号的处理方式。</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">命名符号时,默认使用第一个匹配的顶级命名规则,而匹配的子规则会处理任何的特殊情况。</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">命名样式标题:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">父规则:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">必填前缀:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">必填后缀:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">示例标识符:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">符号种类(可任意匹配)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">符号规范</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">符号规范:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">符号规范标题:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">单词分隔符:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">示例</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">标识符</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">安装“{0}”</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">正在卸载“{0}”</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">卸载“{0}”已完成</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">卸载“{0}”</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">包卸载失败: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">加载项目时遇到了错误。已禁用了某些项目功能,例如用于失败项目和依赖于失败项目的其他项目的完整解决方案分析。</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">项目加载失败。</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">若要查看导致问题的原因,请尝试进行以下操作。 1. 关闭 Visual Studio 2. 打开 Visual Studio 开发人员命令提示 3. 将环境变量 "TraceDesignTime" 设置为 true (设置 TraceDesignTime=true) 4. 删除 .vs 目录/.suo 文件 5. 在设置环境变量(devenv)的命令提示中重启 VS 6. 打开解决方案 7. 检查“{0}”并查找失败任务(FAILED)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">其他信息:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">安装“{0}”失败。 其他信息: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">卸载“{0}”失败。 其他信息: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">将 {0} 移到 {1} 的下方</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">将 {0} 移到 {1} 的上方</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">删除 {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">还原 {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">重新启用</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">了解详细信息</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">首选框架类型</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">首选预定义类型</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">复制到剪贴板</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">关闭</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;未知参数&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- 内部异常堆栈跟踪的末尾 ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">针对局部变量、参数和成员</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">针对成员访问表达式</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">首选对象初始值设定项</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">表达式首选项:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">块结构指南</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">大纲</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">显示代码级别构造的指南</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">显示注释和预处理器区域的指南</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">显示声明级别构造的指南</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">显示代码级别构造的大纲</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">显示注释和预处理器区域的大纲</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">显示声明级别构造的大纲</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">变量首选项:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">首选内联的变量声明</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">使用方法的表达式主体</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">代码块首选项:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">使用访问器的表达式主体</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">使用构造函数的表达式主体</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">使用索引器的表达式主体</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">使用运算符的表达式主体</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">使用属性的表达式主体</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">一些命名规则不完整。请完善这些命名规则或将其删除。</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">管理规范</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">重新排序</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">严重性</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">规范</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">必填样式</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">无法删除该项,因为它由现有的命名规则使用。</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">首选集合初始值设定项</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">首选联合表达式</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">折叠到定义时可折叠 #regions</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">首选 null 传播</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">首选显式元组名称</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">说明</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">首选项</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">实现接口或抽象类</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">对于给定的符号,仅应用具有匹配“规范”的最顶端规则。对该规则的“必需样式”的违反将以所选的“严重性”级别进行报告。</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">在末尾</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">插入属性、事件和方法时,请将其置于以下位置:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">与同一类型的其他成员一起</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">首选大括号</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">超过:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">首选:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">或</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">内置类型</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">其他任何位置</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">赋值表达式中类型明显</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">下移</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">上移</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">删除</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">挑选成员</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">很遗憾,Visual Studio 使用的一个进程遇到了不可恢复的错误。建议保存工作,再关闭并重启 Visual Studio。</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">添加符号规范</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">删除符号规范</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">添加项</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">编辑项</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">删除项</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">添加命名规则</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">删除命名规则</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">VisualStudioWorkspace。TryApplyChanges 不能从后台线程调用。</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">首选引发属性</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">生成属性时:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">选项</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">永不再显示</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">偏爱简单的 "default" 表达式</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">首选推断元组元素名称</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">首选推断匿名类型成员名称</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">预览窗格</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">分析</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">淡出无法访问的代码</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">淡入淡出</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">首选本地函数而不是匿名函数</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">首选析构变量声明</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">找到外部引用</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">未找到对“{0}”的引用</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">找不到搜索结果</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">首选自动属性</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">首选自动属性</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">已卸载模块。</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">支持导航到反编译源(实验)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">.editorconfig 文件可能会替代在本页上配置的仅适用于你的计算机的本地设置。要配置这些设置,使其始终随解决方案一起提供,请使用 EditorConfig 文件。详细信息</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">同步类视图</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">分析“{0}”</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">管理命名样式</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">首选条件表达式而非赋值的“if”</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">首选条件表达式而非带有返回结果的“if”</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hans" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">将创建一个新的命名空间</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">必须提供类型和名称。</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">操作</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">添加(_A)</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">添加参数</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">添加到当前文件(_C)</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">添加了参数。</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">需要进行其他更改才可完成重构。请在下方查看所作更改。</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">所有方法</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">所有源</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">允许:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">允许使用多个空白行</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">允许块后紧跟语句</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">为始终保持清楚起见</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">分析器</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">正在分析项目引用…</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">应用</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">应用“{0}”项映射计划</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">程序集</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">避免会隐式忽略值的表达式语句</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">避免未使用的参数</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">避免未使用的值赋值</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">后退</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">后台分析范围:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 位</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 位</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">生成 + 实时分析(NuGet 包)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">C#/Visual Basic 语言服务器客户端</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">正在计算依赖项...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">调用站点值:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">调用站点</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">回车 + 换行(\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">回车(\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">类别</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">选择要对未使用的引用执行的操作。</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">代码样式</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">“{0}”的代码分析已完成。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">解决方案的代码分析已完成。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">“{0}”的代码分析在完成之前终止。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">解决方案的代码分析在完成之前终止。</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">颜色提示</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">为正规表达式着色</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">备注</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">包含成员</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">包含类型</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">当前文档</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">当前参数</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">已禁用</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">按 Alt+F1 时显示所有提示</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">显示内联参数名称提示(_L)</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">显示内联类型提示</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">编辑(_E)</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">编辑 {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">编辑器配色方案</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">只有在使用与 Visual Studio 绑定的颜色主题时,编辑器配色方案选项才可用。可在“环境”&gt;“常规”选项页中配置颜色主题。</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">元素无效。</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">启用 Razor“拉取”诊断(实验性,需要重启)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">从源生成器在打开的文件中启用所有功能(实验性)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">为诊断启用文件日志记录(记录在“%Temp%\Roslyn”文件夹中)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">启用“拉取”诊断(实验性,需要重启)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">已启用</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">输入调用站点值或选择其他值注入类型</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">整个存储库</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">整个解决方案</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">错误</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">更新抑制时出现错误: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">正在评估(队列中有 {0} 个任务)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">提取基类</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">完成</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">设置文档的格式</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">基于设置生成 .editorconfig 文件</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">突出显示光标下的相关组件</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">ID</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">实现的成员</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">正在实现成员</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">在其他运算符中</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">索引</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">从上下文推断</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">已在组织中编入索引</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">已在存储库中编入索引</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">继承边距(实验性)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">内联提示(实验性)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">正在插入调用站点值 "{0}"</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">安装 Microsoft 推荐的 Roslyn 分析器,它提供了针对常见 API 设计、安全性、性能和可靠性问题的额外诊断和修补程序</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">接口不可具有字段。</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">引入未定义的 TODO 变量</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">项来源</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">保留</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">保留所有括号:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">种类</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">实时分析(VSIX 扩展)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">加载的项</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">加载的解决方案</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">本地</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">本地元数据</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">将“{0}”设为抽象</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">设为抽象</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">成员</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">修饰符首选项:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">移动到命名空间</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">已继承多个成员</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">第 {0} 行继承了多个成员</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">名称与现有类型名称相冲突。</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">名称不是有效的 {0} 标识符。</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">命名空间</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">命名空间:“{0}”</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">字段</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">局部</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">本地函数</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">方法</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">参数</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">属性</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">类型形参</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">字段</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">本地</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">方法</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">参数</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">类型参数</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">命名规则</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">导航到“{0}”</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">从不(若无必要)</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">新类型名称:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">新行首选项(实验性):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">换行(\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">找不到未使用的引用。</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">非公共成员</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">无</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">省略(仅对于可选参数)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">打开的文档</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">可选参数必须提供默认值</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">默认值可选:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">其他</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">替代的成员</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">替代成员</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">包</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">参数详细信息</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">参数名称:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">参数信息</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">参数种类</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">参数名包含无效的字符。</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">参数首选项:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">参数类型包含无效的字符。</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">括号首选项:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">已暂停(队列中有 {0} 个任务)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">请输入一个类型名称</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">在 "GetHashCode" 中首选 "System.HashCode"</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">首选复合赋值</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">首选索引运算符</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">首选范围运算符</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">首选只读字段</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">首选简单的 "using" 语句</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">首选简化的布尔表达式</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">首选静态本地函数</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">项目</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">拉取成员</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">仅重构</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">引用</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">正规表达式</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">全部删除</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">删除未使用的引用</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">将 {0} 重命名为 {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">报告无效的正规表达式</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">存储库</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">需要:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">必需</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">要求项目中存在 "System.HashCode"</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">重置 Visual Studio 默认项映射</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">预览更改</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">对 {0} 运行 Code Analysis</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">正在为“{0}”运行代码分析…</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">正在为解决方案运行代码分析…</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">正在运行低优先级后台进程</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">保存 .editorconfig 文件</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">搜索设置</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">选择目标</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">选择依赖项(_D)</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">选择公共(_P)</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">选择要拉取的目标和成员。</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">选择目标:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">选择成员</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">选择成员:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">在解决方案资源管理器中显示“删除未使用的引用”命令(实验性)</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">显示完成列表</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">显示其他所有内容的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">显示创建隐式对象的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">显示 lambda 参数类型的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">显示文本提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">显示具有推断类型的变量的提示</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">显示继承边距</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">在“环境”&gt;“字体和颜色”选项页中所做的更改将替代某些配色方案颜色。在“字体和颜色”页中选择“使用默认值”,还原所有自定义项。</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">建议</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">当参数名称与方法的意图匹配时禁止显示提示</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">当参数名称只有后缀不同时禁止显示提示</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">不带引用的符号</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">按两次 Tab 以插入参数(实验性)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">目标命名空间:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">生成此文件的生成器“{0}”已从项目中删除;项目中不再包含此文件。</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">生成此文件的生成器“{0}”已停止生成此文件;项目中不再包含此文件。</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">此操作无法撤消。是否要继续?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">此文件由生成器“{0}”自动生成,无法编辑。</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">这是一个无效的命名空间</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">标题</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">类型名称:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">类型名称有语法错误</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">无法识别类型名称</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">已识别类型名称</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">未使用的值会显式分配给未使用的本地函数</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">未使用的值会显式分配以弃用</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">正在更新项目引用…</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">正在更新严重性</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">对代码分析使用 64 位进程(需要重启)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">使用 lambdas 的表达式主体</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">使用本地函数的表达式主体</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">使用命名参数</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">值</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">此处分配的值从未使用过</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">值:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">已隐式忽略调用所返回的值</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">要在调用站点插入的值</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">警告</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">警告: 参数名重复</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">警告: 类型未绑定</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">我们注意到你挂起了“{0}”。请重置项映射以继续导航和重构。</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">此工作区不支持更新 Visual Basic 编译选项。</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">必须更改签名</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">必须至少选择一个成员。</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">路径中存在非法字符。</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">文件名必须具有“{0}”扩展。</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">调试程序</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">正在确定断点位置...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">正在确定自动窗口...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">正在解析断点位置...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">正在验证断点位置...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">正在获取数据提示文本...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">预览不可用</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">重写</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">重写者</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">继承</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">继承者</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">实现</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">实现者</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">打开的文档达到最大数目。</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">未能在杂项文件项目中创建文档。</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">访问无效。</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">找不到以下引用。{0}请手动查找并添加这些引用。</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">结束位置必须 &gt;= 开始位置</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">值无效</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">已继承“{0}”</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">“{0}”将更改为“抽象”。</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">“{0}”将更改为“非静态”。</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">“{0}”将更改为“公共”。</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[由 {0} 生成]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[已生成]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">给定的工作区不支持撤消</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">添加对“{0}”的引用</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">事件类型无效</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">无法找到插入成员的位置</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">无法重命名 "other" 元素</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">重命名类型未知</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">此符号类型不支持 ID。</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">无法为此符号种类创建节点 ID:“{0}”</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">项目引用</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">基类型</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">杂项文件</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">无法找到项目“{0}”</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">无法在磁盘上找到文件夹的位置</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">程序集</target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">异常:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">{0} 的成员</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">参数:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">项目</target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">备注:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">返回结果:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">摘要:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">类型参数:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">文件已存在</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">文件路径无法使用保留的关键字</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath 非法</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">项目路径非法</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">路径中不能包含空文件名</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">给定的 DocumentId 并非来自 Visual Studio 工作区。</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">项目: {0} ({1}) 使用下拉列表可查看和切换到此文件所属的其他项目。</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} 使用下拉列表可查看并导航到此文件中的其他项。</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">项目: {0} 使用下拉列表可查看和切换到此文件所属的其他项目。</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">分析器程序集“{0}”已更改。如果不重启 Visual Studio,诊断则可能出错。</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">C#/VB 诊断表格数据源</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">C#/VB 待办事项表格数据源</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">取消</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">取消全选(_D)</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">提取接口</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">生成的名称:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">新文件名(_F):</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">新接口名称(_I):</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">确定</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">全选(_S)</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">选择构成接口的公共成员(_M)</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">访问(_A):</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">添加到现有文件(_E)</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">更改签名</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">创建新文件(_C)</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">默认值</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">文件名:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">生成类型</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">种类(_K):</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">位置:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">修饰符</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">名称:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">参数</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">参数:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">预览方法签名:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">预览引用更改</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">项目(_P):</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">类型</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">类型详细信息:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">删除(_M)</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">还原(_R)</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">有关 {0} 的详细信息</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">导航必须在前台线程上进行。</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">项目“{1}”中对“{0}”的引用</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;未知&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">项目“{1}”中对“{0}”的分析器引用</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">项目“{1}”中对“{0}”的项目引用</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">分析器程序集“{0}”和“{1}”都具有标识“{2}”,但是却具有不同的内容。只会加载其中一个程序集,并且使用这些程序集的分析器可能不会正确运行。</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} 个引用</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 个引用</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">“{0}”遇到了错误,且已被禁用。</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">启用</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">启用并忽略将来发生的错误</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">未更改</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">当前块</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">正在确定当前块。</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">C#/VB 内部版本表格数据源</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">分析器程序集“{0}”依赖于“{1}”,但是却找不到它。除非将缺少的程序集也添加为分析器引用,否则分析器可能不会正确运行。</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">禁止诊断</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">正在计算禁止显示修复...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">正在应用禁止显示修复...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">删除禁止显示</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">正在计算删除禁止显示修复...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">正在应用删除禁止显示修复...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">此工作区仅支持在 UI 线程上打开文档。</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">此工作区不支持更新 Visual Basic 分析选项。</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">同步 {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">正在与 {0} 同步...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio 已挂起一些高级功能来提高性能。</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">正在安装“{0}”</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">安装“{0}”已完成</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">包安装失败: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;未知&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">否</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">是</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">选择符号规范和命名样式。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">为此命名规则输入标题。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">为此命名样式输入标题。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">为此符号规范输入标题。</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">可访问性(可任意匹配)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">大写:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">全部小写(all lower)</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">全部大写(ALL UPPER)</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">驼峰式大小写命名</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">第一个单词大写(First word upper)</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">帕斯卡式大小写命名</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">严重性:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">修饰符(必须全部匹配)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">名称:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">命名规则</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">命名样式</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">命名样式:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">命名规则能够使用户定义特定符号集的命名方式以及错误命名符号的处理方式。</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">命名符号时,默认使用第一个匹配的顶级命名规则,而匹配的子规则会处理任何的特殊情况。</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">命名样式标题:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">父规则:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">必填前缀:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">必填后缀:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">示例标识符:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">符号种类(可任意匹配)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">符号规范</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">符号规范:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">符号规范标题:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">单词分隔符:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">示例</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">标识符</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">安装“{0}”</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">正在卸载“{0}”</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">卸载“{0}”已完成</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">卸载“{0}”</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">包卸载失败: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">加载项目时遇到了错误。已禁用了某些项目功能,例如用于失败项目和依赖于失败项目的其他项目的完整解决方案分析。</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">项目加载失败。</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">若要查看导致问题的原因,请尝试进行以下操作。 1. 关闭 Visual Studio 2. 打开 Visual Studio 开发人员命令提示 3. 将环境变量 "TraceDesignTime" 设置为 true (设置 TraceDesignTime=true) 4. 删除 .vs 目录/.suo 文件 5. 在设置环境变量(devenv)的命令提示中重启 VS 6. 打开解决方案 7. 检查“{0}”并查找失败任务(FAILED)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">其他信息:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">安装“{0}”失败。 其他信息: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">卸载“{0}”失败。 其他信息: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">将 {0} 移到 {1} 的下方</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">将 {0} 移到 {1} 的上方</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">删除 {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">还原 {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">重新启用</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">了解详细信息</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">首选框架类型</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">首选预定义类型</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">复制到剪贴板</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">关闭</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;未知参数&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- 内部异常堆栈跟踪的末尾 ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">针对局部变量、参数和成员</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">针对成员访问表达式</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">首选对象初始值设定项</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">表达式首选项:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">块结构指南</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">大纲</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">显示代码级别构造的指南</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">显示注释和预处理器区域的指南</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">显示声明级别构造的指南</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">显示代码级别构造的大纲</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">显示注释和预处理器区域的大纲</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">显示声明级别构造的大纲</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">变量首选项:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">首选内联的变量声明</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">使用方法的表达式主体</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">代码块首选项:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">使用访问器的表达式主体</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">使用构造函数的表达式主体</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">使用索引器的表达式主体</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">使用运算符的表达式主体</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">使用属性的表达式主体</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">一些命名规则不完整。请完善这些命名规则或将其删除。</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">管理规范</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">重新排序</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">严重性</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">规范</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">必填样式</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">无法删除该项,因为它由现有的命名规则使用。</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">首选集合初始值设定项</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">首选联合表达式</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">折叠到定义时可折叠 #regions</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">首选 null 传播</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">首选显式元组名称</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">说明</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">首选项</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">实现接口或抽象类</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">对于给定的符号,仅应用具有匹配“规范”的最顶端规则。对该规则的“必需样式”的违反将以所选的“严重性”级别进行报告。</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">在末尾</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">插入属性、事件和方法时,请将其置于以下位置:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">与同一类型的其他成员一起</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">首选大括号</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">超过:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">首选:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">或</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">内置类型</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">其他任何位置</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">赋值表达式中类型明显</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">下移</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">上移</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">删除</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">挑选成员</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">很遗憾,Visual Studio 使用的一个进程遇到了不可恢复的错误。建议保存工作,再关闭并重启 Visual Studio。</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">添加符号规范</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">删除符号规范</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">添加项</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">编辑项</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">删除项</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">添加命名规则</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">删除命名规则</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">VisualStudioWorkspace。TryApplyChanges 不能从后台线程调用。</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">首选引发属性</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">生成属性时:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">选项</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">永不再显示</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">偏爱简单的 "default" 表达式</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">首选推断元组元素名称</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">首选推断匿名类型成员名称</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">预览窗格</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">分析</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">淡出无法访问的代码</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">淡入淡出</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">首选本地函数而不是匿名函数</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">首选析构变量声明</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">找到外部引用</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">未找到对“{0}”的引用</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">找不到搜索结果</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">首选自动属性</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">首选自动属性</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">已卸载模块。</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">支持导航到反编译源(实验)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">.editorconfig 文件可能会替代在本页上配置的仅适用于你的计算机的本地设置。要配置这些设置,使其始终随解决方案一起提供,请使用 EditorConfig 文件。详细信息</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">同步类视图</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">分析“{0}”</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">管理命名样式</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">首选条件表达式而非赋值的“if”</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">首选条件表达式而非带有返回结果的“if”</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/Core/Def/xlf/ServicesVSResources.zh-Hant.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hant" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_editorconfig_file_was_detected_at_the_root_of_your_solution_Would_you_like_to_make_it_a_solution_item"> <source>A new .editorconfig file was detected at the root of your solution. Would you like to make it a solution item?</source> <target state="translated">在您的解決方案根目錄偵測到新的 .editorconfig 檔案。要將其設為解決方案項目嗎?</target> <note /> </trans-unit> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">將會建立新的命名空間</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">必須提供類型與名稱。</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">動作</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">新增(_A)</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">新增參數</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">新增至 _current 檔案</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">已新增參數。</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">必須進行其他變更,才能完成重構。請檢閱以下變更。</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">全部方法</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">所有來源</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">允許:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">允許多個空白行</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">允許在區塊後面立即加上陳述式</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">一律使用以明確表示</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">分析器</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">正在分析專案參考...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">套用</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">套用 '{0}' 按鍵對應結構描述</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">組件</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">避免會隱含地忽略值的運算陳述式</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">避免未使用的參數</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">避免未使用的值指派</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">返回</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">背景分析範圍:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 位元</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 位元</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">組建 + 即時分析 (NuGet 套件)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">C#/Visual Basic 診斷語言用戶端</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">正在計算相依項...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">呼叫網站值:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">呼叫網站</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">歸位字元 + 新行 (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">歸位字元 (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">分類</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">選擇您要對未使用之參考執行的動作。</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">程式碼樣式</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">'{0}' 的程式碼分析已完成。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">解決方案的程式碼分析已完成。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">程式碼分析在 '{0}' 完成前終止。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">程式碼分析在解決方案完成前終止。</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">色彩提示</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">為規則運算式添加色彩</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">註解</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">包含的成員</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">包含的類型</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">目前的文件</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">目前的參數</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">已停用</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">按 Alt+F1 時顯示所有提示</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">顯示內嵌參數名稱提示(_L)</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">顯示內嵌類型提示</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">編輯(_E)</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">編輯 {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">編輯器色彩配置</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">只有在使用與 Visual Studio 配套的色彩佈景主題時,才可使用編輯器色彩配置選項。您可從 [環境] &gt; [一般選項] 頁面設定色彩佈景主題。</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">元素無效。</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">啟用 Razor 'pull' 診斷 (實驗性,需要重新啟動)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">從來源產生器中,啟用已開啟檔案中的所有功能 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">啟用診斷的檔案記錄 (在 '%Temp%\Roslyn' 資料夾中記錄)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">啟用 'pull' 診斷 (實驗性,需要重新啟動)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">已啟用</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">請輸入呼叫位置值,或選擇其他值插入種類</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">整個存放庫</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">整個解決方案</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">錯誤</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">更新歸併時發生錯誤: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">正在評估 (佇列中的 {0} 工作)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">擷取基底類別</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">完成</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">格式化文件</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">從設定產生 .editorconfig 檔案</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">反白資料指標下的相關元件</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">識別碼</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">已實作的成員</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">實作成員</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">其他運算子中</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">索引</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">從內容推斷</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">已在組織中編制索引</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">已在存放庫中編制索引</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">繼承邊界 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">內嵌提示 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">正在插入呼叫網站值 '{0}'</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">安裝 Microsoft 建議的 Roslyn 分析器,其可為一般 API 設計、安全性、效能及可靠性問題提供額外的診斷與修正</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">介面不得具有欄位。</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">引入未定義的 TODO 變數</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">項目原點</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">保留</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">以下情況保留所有括號:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">種類</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">即時分析 (VSIX 延伸模組)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">已載入的項目</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">已載入的解決方案</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">本機</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">本機中繼資料</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">將 '{0}' 抽象化</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">抽象化</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">成員</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">修飾元喜好設定:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">移到命名空間</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">已繼承多名成員</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">已在行 {0} 上繼承多名成員</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">名稱與現有類型名稱衝突。</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">名稱不是有效的 {0} 識別碼。</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">命名空間</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">命名空間: '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">欄位</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">區域</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">區域函式</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">方法</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">參數</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">屬性</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">類型參數</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">欄位</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">本機</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">方法</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">參數</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">型別參數</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">命名規則</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">瀏覽至 '{0}'</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">不需要時一律不要</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">新的型別名稱:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">新行喜好設定 (實驗性):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">新行 (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">找不到任何未使用的參考。</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">非公用方法</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">無</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">省略 (僅適用於選擇性參數)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">開啟的文件</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">選擇性參數必須提供預設值</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">選擇性預設值:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">其他</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">已覆寫的成員</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">覆寫成員</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">套件</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">參數詳細資料</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">參數名稱:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">參數資訊</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">參數種類</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">參數名稱包含無效字元。</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">參數喜好設定:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">參數類型包含無效字元。</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">括號喜好設定:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">已暫停 (佇列中的 {0} 工作)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">請輸入類型名稱</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">建議在 'GetHashCode' 中使用 'System.HashCode'</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">優先使用複合指派</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">優先使用索引運算子</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">優先使用範圍運算子</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">優先使用唯讀欄位</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">優先使用簡單的 'using' 陳述式</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">建議使用簡易布林運算式</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">優先使用靜態區域函式</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">專案</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">提升成員</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">僅重構</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">參考</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">規則運算式</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">全部移除</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">移除未使用的參考</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">將 {0} 重新命名為 {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">回報無效的規則運算式</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">存放庫</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">需要:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">必要</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">專案中必須有 'System.HashCode'</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">重設 Visual Studio 預設按鍵對應</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">檢閱變更</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">對 {0} 執行 Code Analysis</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">正在執行 '{0}' 的程式碼分析...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">正在執行解決方案的程式碼分析...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">正在執行低優先順序背景流程</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">儲存 .editorconfig 檔案</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">搜尋設定</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">選取目的地</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">選取相依項(_D)</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">選取公用(_P)</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">選取要提升的目的地及成員。</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">選取目的地:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">選取成員</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">選取成員:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">在方案總管 (實驗性) 中顯示「移除未使用的參考」命令</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">顯示自動完成清單</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">顯示所有其他項目的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">顯示隱含物件建立的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">顯示 Lambda 參數類型的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">顯示常值的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">顯示有推斷類型之變數的提示</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">顯示繼承邊界</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">[環境] &gt; [字型和色彩選項] 頁面中所做的變更覆寫了某些色彩配置的色彩。請選擇 [字型和色彩] 頁面中的 [使用預設] 來還原所有自訂。</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">建議</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">當參數名稱符合方法的意圖時,不出現提示</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">當參數名稱只有尾碼不同時,不出現提示</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">沒有參考的符號</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">按 Tab 鍵兩次可插入引數 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">目標命名空間:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">已從專案中移除產生此檔案的產生器 '{0}'; 此檔案已不再包含在您的專案中。</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">產生此檔案的產生器 '{0}' 已停止產生此檔案; 此檔案已不再包含在您的專案中。</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">此動作無法復原。要繼續嗎?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">此檔案是由產生器 '{0}' 自動產生,無法加以編輯。</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">這是無效的命名空間</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">標題</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">類型名稱:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">類型名稱包含語法錯誤</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">無法辨識類型名稱</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">已辨識類型名稱</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">未使用的值已明確指派至未使用的區域</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">未使用的值已明確指派至捨棄</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">正在更新專案參考...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">正在更新嚴重性</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">使用 64 位元處理序進行程式碼分析 (需要重新啟動)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">使用 lambda 的運算式主體</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">使用區域函式的運算式主體</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">使用具名引數</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">值</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">這裡指派的值從未使用過</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">值:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">明確地忽略引動過程傳回的值</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">要在呼叫位置插入的值</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">警告</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">警告: 參數名稱重複</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">警告: 類型未繫結</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">我們發現您暫止了 '{0}'。重設按鍵對應以繼續巡覽和重構。</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">此工作區不支援更新 Visual Basic 編譯選項。</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">您必須變更簽章</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">您必須選取至少一個成員。</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">路徑中有不合法的字元。</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">檔案名稱必須有 "{0}" 延伸模組。</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">偵錯工具</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">正在判定中斷點位置...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">正在判定自動呈現的程式碼片段...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">正在解析中斷點位置...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">正在驗證中斷點位置...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">正在取得資料提示文字...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">無法使用預覽</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">覆寫</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">覆寫者</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">繼承</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">繼承者</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">實作</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">實作者</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">開啟的文件數已達上限。</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">無法建立其他檔案專案中的文件。</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">存取無效。</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">找不到下列參考。{0}請找出這些參考並手動新增。</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">結束位置必須為 &gt; = 開始位置</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">值無效</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">已繼承 '{0}'</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}' 會變更為抽象。</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}' 會變更為非靜態。</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}' 會變更為公用。</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[由 {0} 產生]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[已產生]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">指定的工作區不支援復原</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">將參考新增至 '{0}'</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">事件類型無效</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">找不到插入成員的位置</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">無法為 'other' 元素重新命名</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">未知的重新命名類型</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">此符號類型不支援識別碼。</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">無法建立此符號種類的節點識別碼: '{0}'</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">專案參考</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">基底類型</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">其他檔案</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">找不到專案 '{0}'</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">在磁碟上找不到資料夾的位置</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">組件 </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">例外狀況:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">{0} 的成員</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">參數:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">專案 </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">備註:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">傳回:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">摘要:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">類型參數:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">檔案已存在</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">檔案路徑無法使用保留的關鍵字</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath 不合法</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">專案路徑不合法</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">路徑檔名不得為空白</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">給定的 DocumentId 並非來自 Visual Studio 工作區。</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">專案: {0} ({1}) 使用下拉式清單,即可檢視並切換至此檔案可能所屬的其他專案。</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} 使用下拉式清單,即可檢視並巡覽至此檔案中的其他項目。</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">專案: {0} 使用下拉式清單可以檢視並切換至這個檔案所屬的其他專案。</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">分析器組件 '{0}' 已變更。可能造成診斷錯誤,直到 Visual Studio 重新啟動為止。</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">C#/VB 診斷資料表資料來源</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">C#/VB 待辦事項清單資料表資料來源</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">取消</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">全部取消選取(_D)</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">擷取介面</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">產生的名稱:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">新檔名(_F):</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">新介面名稱(_I):</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">確定</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">全選(_S)</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">選取公用成員以形成介面(_M)</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">存取(_A):</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">新增至現有檔案(_E)</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">變更簽章</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">建立新檔案(_C)</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">預設</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">檔案名稱:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">產生類型</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">類型(_K):</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">位置:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">修飾元</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">名稱:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">參數</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">參數:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">預覽方法簽章:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">預覽參考變更</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">專案(_P):</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">類型</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">類型詳細資料:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">移除(_M)</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">還原(_R)</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">關於 {0} 的詳細資訊</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">瀏覽必須在前景執行緒執行。</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">專案 '{1}' 中 '{0}' 的參考</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;未知&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">專案 '{1}' 中 '{0}' 的分析器參考</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">專案 '{1}' 中 '{0}' 的專案參考</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">分析器組件 '{0}' 及 '{1}' 均有身分識別 '{2}' 但內容不同。僅會載入其中一個,且使用這些組件的分析器可能無法正確執行。</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} 個參考</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 個參考</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' 發生錯誤並已停用。</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">啟用</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">啟用並忽略未來的錯誤</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">沒有變更</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">目前區塊</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">正在判定目前的區塊。</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">C#/VB 組建資料表資料來源</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">分析器組件 '{0}' 相依於 '{1}',但找不到該項目。除非同時將遺漏的組件新增為分析器參考,否則分析器可能無法正確執行。</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">隱藏診斷</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">正在計算隱藏項目修正...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">正在套用隱藏項目修正...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">移除隱藏項目</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">正在計算移除隱藏項目修正...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">正在套用移除隱藏項目修正...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">此工作區僅支援在 UI 執行緒上開啟文件。</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">此工作區不支援更新 Visual Basic 剖析選項。</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">同步 {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">正在與 {0} 同步...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio 已暫止部分進階功能以改善效能。</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">正在安裝 '{0}'</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">已完成安裝 '{0}'</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">套件安裝失敗: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;未知&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">否</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">是</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">選擇符號規格及命名樣式。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">輸入此命名規則的標題。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">輸入此命名樣式的標題。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">輸入此符號規格的標題。</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">存取範圍 (可符合任何項目)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">大小寫:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">全部小寫</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">全部大寫</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">駝峰式大小寫名稱</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">首字大寫</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Pascal 命名法名稱</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">嚴重性:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">修飾元 (必須符合所有項目)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">名稱:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">命名規則</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">命名樣式</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">命名樣式:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">命名規則可讓您定義特定符號集的命名方式,以及未正確命名符號的處理方式。</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">替符號命名時,依預設會使用第一個相符的頂層命名規則; 而任何特殊情況都將由相符的子系規則處理。</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">命名樣式標題:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">父系規則:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">必要前置詞:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">必要後置詞:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">範例識別碼:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">符號種類 (可符合任何項目)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">符號規格</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">符號規格:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">符號規格標題:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">字組分隔符號:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">範例</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">識別碼</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">安裝 '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">正在解除安裝 '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">已完成將 '{0}' 解除安裝</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">將 '{0}' 解除安裝</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">套件解除安裝失敗: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">載入專案時發生錯誤。已停用部分專案功能,例如對失敗專案及其相依專案的完整解決方案分析。</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">專案載入失敗。</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">若要了解此問題的發生原因,請嘗試下方步驟。 1. 關閉 Visual Studio 2. 開啟 Visual Studio 開發人員命令提示字元 3. 將環境變數 “TraceDesignTime” 設為 true (設定 TraceDesignTime=true) 4. 刪除 .vs 目錄/ .suo 檔案 5. 從您設定環境變數 (devenv) 的命令提示字元處重新啟動 VS 6. 開啟解決方案 7. 檢查 '{0}' 並尋找失敗的工作 (FAILED)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">其他資訊:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">安裝 '{0}' 失敗 其他資訊: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">將 '{0}' 解除安裝失敗。 其他資訊: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">將 {0} 移至 {1} 下方</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">將 {0} 移至 {1} 上方</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">移除 {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">還原 {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">重新啟用</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">深入了解</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">偏好架構類型</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">偏好預先定義的類型</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">複製到剪貼簿</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">關閉</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;未知參數&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- 內部例外狀況堆疊追蹤的結尾 ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">針對區域變數、參數及成員</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">針對成員存取運算式</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">偏好物件初始設定式</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">運算式喜好設定:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">區塊結構輔助線</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">大綱</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">顯示程式碼層級建構的指南</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">顯示註解及前置處理器區域的指南</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">顯示宣告層級建構的指南</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">顯示程式碼層級建構的大綱</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">顯示註解及前置處理器區域的大綱</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">顯示宣告層級建構的大綱</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">變數喜好設定:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">偏好內置變數宣告</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">使用方法的運算式主體</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">程式碼區塊喜好設定:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">使用存取子的運算式主體</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">使用建構函式的運算式主體</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">使用索引子的運算式主體</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">使用運算子的運算式主體</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">使用屬性的運算式主體</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">部分命名規則不完整。請予以完成或移除。</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">管理規格</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">重新排序</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">嚴重性</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">規格</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">必要樣式</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">由於現有命名規則正在使用此項目,因此無法加以刪除。</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">偏好集合初始設定式</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">偏好聯合運算式</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">摺疊至定義時摺疊 #regions</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">偏好 null 傳播</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">建議使用明確的元組名稱</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">描述</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">喜好設定</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">實作介面或抽象類別</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">若為給定的符號,則只會套用最上層的規則與相符的 [規格]。若違反該規則的 [必要樣式],將於所選 [嚴重性] 層級回報。</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">結尾處</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">插入屬性、事件與方法時,放置方式為:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">與其他相同種類的成員</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">建議使用括號</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">勝於:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">建議使用:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">或</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">內建類型</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">其他各處</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">類型為來自指派運算式的實際型態</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">下移</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">上移</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">移除</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">選取成員</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">很抱歉,Visual Studio 所使用的處理序遇到無法復原的錯誤。建議您儲存工作進度,然後關閉並重新啟動 Visual Studio。</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">新增符號規格</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">移除符號規格</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">新增項目</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">編輯項目</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">移除項目</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">新增命名規則</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">移除命名規則</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">無法從背景執行緒呼叫 VisualStudioWorkspace.TryApplyChanges。</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">建議使用擲回屬性</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">產生屬性時:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">選項</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">永不再顯示</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">選擇精簡的 'default' 運算式</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">優先使用推斷的元組元素名稱</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">優先使用推斷的匿名型別成員名稱</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">預覽窗格</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">分析</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">淡出執行不到的程式碼</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">淡出</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">使用區域函式優先於匿名函式</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">偏好解構的變數宣告</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">找到外部參考</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">找不到 '{0}' 的參考</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">搜尋找不到任何結果</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">建議使用自動屬性</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">建議使用自動屬性</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">模組已卸載。</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">啟用反編譯來源的瀏覽 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">您的 .editorconfig 檔案可能會覆寫於此頁面上設定的本機設定 (僅適用於您的電腦)。如果要進行設定以讓這些設定隨附於您的解決方案,請使用 EditorConfig 檔案。詳細資訊</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">同步類別檢視</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">正在分析 '{0}'</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">管理命名樣式</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">建議優先使用條件運算式 (優先於具指派的 'if')</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">建議優先使用條件運算式 (優先於具傳回的 'if')</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hant" original="../ServicesVSResources.resx"> <body> <trans-unit id="A_new_namespace_will_be_created"> <source>A new namespace will be created</source> <target state="translated">將會建立新的命名空間</target> <note /> </trans-unit> <trans-unit id="A_type_and_name_must_be_provided"> <source>A type and name must be provided.</source> <target state="translated">必須提供類型與名稱。</target> <note /> </trans-unit> <trans-unit id="Action"> <source>Action</source> <target state="translated">動作</target> <note>Action to perform on an unused reference, such as remove or keep</note> </trans-unit> <trans-unit id="Add"> <source>_Add</source> <target state="translated">新增(_A)</target> <note>Adding an element to a list</note> </trans-unit> <trans-unit id="Add_Parameter"> <source>Add Parameter</source> <target state="translated">新增參數</target> <note /> </trans-unit> <trans-unit id="Add_to_current_file"> <source>Add to _current file</source> <target state="translated">新增至 _current 檔案</target> <note /> </trans-unit> <trans-unit id="Added_Parameter"> <source>Added parameter.</source> <target state="translated">已新增參數。</target> <note /> </trans-unit> <trans-unit id="Additional_changes_are_needed_to_complete_the_refactoring_Review_changes_below"> <source>Additional changes are needed to complete the refactoring. Review changes below.</source> <target state="translated">必須進行其他變更,才能完成重構。請檢閱以下變更。</target> <note /> </trans-unit> <trans-unit id="All_methods"> <source>All methods</source> <target state="translated">全部方法</target> <note /> </trans-unit> <trans-unit id="All_sources"> <source>All sources</source> <target state="translated">所有來源</target> <note /> </trans-unit> <trans-unit id="Allow_colon"> <source>Allow:</source> <target state="translated">允許:</target> <note /> </trans-unit> <trans-unit id="Allow_multiple_blank_lines"> <source>Allow multiple blank lines</source> <target state="translated">允許多個空白行</target> <note /> </trans-unit> <trans-unit id="Allow_statement_immediately_after_block"> <source>Allow statement immediately after block</source> <target state="translated">允許在區塊後面立即加上陳述式</target> <note /> </trans-unit> <trans-unit id="Always_for_clarity"> <source>Always for clarity</source> <target state="translated">一律使用以明確表示</target> <note /> </trans-unit> <trans-unit id="Analyzer_Defaults"> <source>Analyzer Defaults</source> <target state="new">Analyzer Defaults</target> <note /> </trans-unit> <trans-unit id="Analyzers"> <source>Analyzers</source> <target state="translated">分析器</target> <note /> </trans-unit> <trans-unit id="Analyzing_project_references"> <source>Analyzing project references...</source> <target state="translated">正在分析專案參考...</target> <note /> </trans-unit> <trans-unit id="Apply"> <source>Apply</source> <target state="translated">套用</target> <note /> </trans-unit> <trans-unit id="Apply_0_keymapping_scheme"> <source>Apply '{0}' keymapping scheme</source> <target state="translated">套用 '{0}' 按鍵對應結構描述</target> <note /> </trans-unit> <trans-unit id="Assemblies"> <source>Assemblies</source> <target state="translated">組件</target> <note /> </trans-unit> <trans-unit id="Avoid_expression_statements_that_implicitly_ignore_value"> <source>Avoid expression statements that implicitly ignore value</source> <target state="translated">避免會隱含地忽略值的運算陳述式</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_parameters"> <source>Avoid unused parameters</source> <target state="translated">避免未使用的參數</target> <note /> </trans-unit> <trans-unit id="Avoid_unused_value_assignments"> <source>Avoid unused value assignments</source> <target state="translated">避免未使用的值指派</target> <note /> </trans-unit> <trans-unit id="Back"> <source>Back</source> <target state="translated">返回</target> <note /> </trans-unit> <trans-unit id="Background_analysis_scope_colon"> <source>Background analysis scope:</source> <target state="translated">背景分析範圍:</target> <note /> </trans-unit> <trans-unit id="Bitness32"> <source>32-bit</source> <target state="translated">32 位元</target> <note /> </trans-unit> <trans-unit id="Bitness64"> <source>64-bit</source> <target state="translated">64 位元</target> <note /> </trans-unit> <trans-unit id="Build_plus_live_analysis_NuGet_package"> <source>Build + live analysis (NuGet package)</source> <target state="translated">組建 + 即時分析 (NuGet 套件)</target> <note /> </trans-unit> <trans-unit id="CSharp_Visual_Basic_Diagnostics_Language_Client"> <source>C#/Visual Basic Diagnostics Language Client</source> <target state="translated">C#/Visual Basic 診斷語言用戶端</target> <note /> </trans-unit> <trans-unit id="Calculating"> <source>Calculating...</source> <target state="new">Calculating...</target> <note>Used in UI to represent progress in the context of loading items. </note> </trans-unit> <trans-unit id="Calculating_dependents"> <source>Calculating dependents...</source> <target state="translated">正在計算相依項...</target> <note /> </trans-unit> <trans-unit id="Call_site_value"> <source>Call site value:</source> <target state="translated">呼叫網站值:</target> <note /> </trans-unit> <trans-unit id="Callsite"> <source>Call site</source> <target state="translated">呼叫網站</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_Newline_rn"> <source>Carriage Return + Newline (\r\n)</source> <target state="translated">歸位字元 + 新行 (\r\n)</target> <note /> </trans-unit> <trans-unit id="Carriage_Return_r"> <source>Carriage Return (\r)</source> <target state="translated">歸位字元 (\r)</target> <note /> </trans-unit> <trans-unit id="Category"> <source>Category</source> <target state="translated">分類</target> <note /> </trans-unit> <trans-unit id="Choose_which_action_you_would_like_to_perform_on_the_unused_references"> <source>Choose which action you would like to perform on the unused references.</source> <target state="translated">選擇您要對未使用之參考執行的動作。</target> <note /> </trans-unit> <trans-unit id="Code_Style"> <source>Code Style</source> <target state="translated">程式碼樣式</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_0"> <source>Code analysis completed for '{0}'.</source> <target state="translated">'{0}' 的程式碼分析已完成。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_completed_for_Solution"> <source>Code analysis completed for Solution.</source> <target state="translated">解決方案的程式碼分析已完成。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_0"> <source>Code analysis terminated before completion for '{0}'.</source> <target state="translated">程式碼分析在 '{0}' 完成前終止。</target> <note /> </trans-unit> <trans-unit id="Code_analysis_terminated_before_completion_for_Solution"> <source>Code analysis terminated before completion for Solution.</source> <target state="translated">程式碼分析在解決方案完成前終止。</target> <note /> </trans-unit> <trans-unit id="Color_hints"> <source>Color hints</source> <target state="translated">色彩提示</target> <note /> </trans-unit> <trans-unit id="Colorize_regular_expressions"> <source>Colorize regular expressions</source> <target state="translated">為規則運算式添加色彩</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">註解</target> <note /> </trans-unit> <trans-unit id="Containing_member"> <source>Containing Member</source> <target state="translated">包含的成員</target> <note /> </trans-unit> <trans-unit id="Containing_type"> <source>Containing Type</source> <target state="translated">包含的類型</target> <note /> </trans-unit> <trans-unit id="Current_document"> <source>Current document</source> <target state="translated">目前的文件</target> <note /> </trans-unit> <trans-unit id="Current_parameter"> <source>Current parameter</source> <target state="translated">目前的參數</target> <note /> </trans-unit> <trans-unit id="Derived_types"> <source>Derived types</source> <target state="new">Derived types</target> <note /> </trans-unit> <trans-unit id="Disabled"> <source>Disabled</source> <target state="translated">已停用</target> <note /> </trans-unit> <trans-unit id="Display_all_hints_while_pressing_Alt_F1"> <source>Display all hints while pressing Alt+F1</source> <target state="translated">按 Alt+F1 時顯示所有提示</target> <note /> </trans-unit> <trans-unit id="Display_inline_parameter_name_hints"> <source>Disp_lay inline parameter name hints</source> <target state="translated">顯示內嵌參數名稱提示(_L)</target> <note /> </trans-unit> <trans-unit id="Display_inline_type_hints"> <source>Display inline type hints</source> <target state="translated">顯示內嵌類型提示</target> <note /> </trans-unit> <trans-unit id="Edit"> <source>_Edit</source> <target state="translated">編輯(_E)</target> <note /> </trans-unit> <trans-unit id="Edit_0"> <source>Edit {0}</source> <target state="translated">編輯 {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Editor_Color_Scheme"> <source>Editor Color Scheme</source> <target state="translated">編輯器色彩配置</target> <note /> </trans-unit> <trans-unit id="Editor_color_scheme_options_are_only_available_when_using_a_color_theme_bundled_with_Visual_Studio_The_color_theme_can_be_configured_from_the_Environment_General_options_page"> <source>Editor color scheme options are only available when using a color theme bundled with Visual Studio. The color theme can be configured from the Environment &gt; General options page.</source> <target state="translated">只有在使用與 Visual Studio 配套的色彩佈景主題時,才可使用編輯器色彩配置選項。您可從 [環境] &gt; [一般選項] 頁面設定色彩佈景主題。</target> <note /> </trans-unit> <trans-unit id="Element_is_not_valid"> <source>Element is not valid.</source> <target state="translated">元素無效。</target> <note /> </trans-unit> <trans-unit id="Enable_Razor_pull_diagnostics_experimental_requires_restart"> <source>Enable Razor 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">啟用 Razor 'pull' 診斷 (實驗性,需要重新啟動)</target> <note /> </trans-unit> <trans-unit id="Enable_all_features_in_opened_files_from_source_generators_experimental"> <source>Enable all features in opened files from source generators (experimental)</source> <target state="translated">從來源產生器中,啟用已開啟檔案中的所有功能 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Enable_file_logging_for_diagnostics"> <source>Enable file logging for diagnostics (logged in '%Temp%\Roslyn' folder)</source> <target state="translated">啟用診斷的檔案記錄 (在 '%Temp%\Roslyn' 資料夾中記錄)</target> <note /> </trans-unit> <trans-unit id="Enable_pull_diagnostics_experimental_requires_restart"> <source>Enable 'pull' diagnostics (experimental, requires restart)</source> <target state="translated">啟用 'pull' 診斷 (實驗性,需要重新啟動)</target> <note /> </trans-unit> <trans-unit id="Enabled"> <source>Enabled</source> <target state="translated">已啟用</target> <note /> </trans-unit> <trans-unit id="Enter_a_call_site_value_or_choose_a_different_value_injection_kind"> <source>Enter a call site value or choose a different value injection kind</source> <target state="translated">請輸入呼叫位置值,或選擇其他值插入種類</target> <note /> </trans-unit> <trans-unit id="Entire_repository"> <source>Entire repository</source> <target state="translated">整個存放庫</target> <note /> </trans-unit> <trans-unit id="Entire_solution"> <source>Entire solution</source> <target state="translated">整個解決方案</target> <note /> </trans-unit> <trans-unit id="Error"> <source>Error</source> <target state="translated">錯誤</target> <note /> </trans-unit> <trans-unit id="Error_updating_suppressions_0"> <source>Error updating suppressions: {0}</source> <target state="translated">更新歸併時發生錯誤: {0}</target> <note /> </trans-unit> <trans-unit id="Evaluating_0_tasks_in_queue"> <source>Evaluating ({0} tasks in queue)</source> <target state="translated">正在評估 (佇列中的 {0} 工作)</target> <note /> </trans-unit> <trans-unit id="Extract_Base_Class"> <source>Extract Base Class</source> <target state="translated">擷取基底類別</target> <note /> </trans-unit> <trans-unit id="Finish"> <source>Finish</source> <target state="translated">完成</target> <note /> </trans-unit> <trans-unit id="Format_document"> <source>Format document</source> <target state="translated">格式化文件</target> <note /> </trans-unit> <trans-unit id="Generate_dot_editorconfig_file_from_settings"> <source>Generate .editorconfig file from settings</source> <target state="translated">從設定產生 .editorconfig 檔案</target> <note /> </trans-unit> <trans-unit id="Highlight_related_components_under_cursor"> <source>Highlight related components under cursor</source> <target state="translated">反白資料指標下的相關元件</target> <note /> </trans-unit> <trans-unit id="Id"> <source>Id</source> <target state="translated">識別碼</target> <note /> </trans-unit> <trans-unit id="Implemented_interfaces"> <source>Implemented interfaces</source> <target state="new">Implemented interfaces</target> <note /> </trans-unit> <trans-unit id="Implemented_members"> <source>Implemented members</source> <target state="translated">已實作的成員</target> <note /> </trans-unit> <trans-unit id="Implementing_members"> <source>Implementing members</source> <target state="translated">實作成員</target> <note /> </trans-unit> <trans-unit id="Implementing_types"> <source>Implementing types</source> <target state="new">Implementing types</target> <note /> </trans-unit> <trans-unit id="In_other_operators"> <source>In other operators</source> <target state="translated">其他運算子中</target> <note /> </trans-unit> <trans-unit id="Index"> <source>Index</source> <target state="translated">索引</target> <note>Index of parameter in original signature</note> </trans-unit> <trans-unit id="Infer_from_context"> <source>Infer from context</source> <target state="translated">從內容推斷</target> <note /> </trans-unit> <trans-unit id="Indexed_in_organization"> <source>Indexed in organization</source> <target state="translated">已在組織中編制索引</target> <note /> </trans-unit> <trans-unit id="Indexed_in_repo"> <source>Indexed in repo</source> <target state="translated">已在存放庫中編制索引</target> <note /> </trans-unit> <trans-unit id="Inheritance_Margin_experimental"> <source>Inheritance Margin (experimental)</source> <target state="translated">繼承邊界 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Inherited_interfaces"> <source>Inherited interfaces</source> <target state="new">Inherited interfaces</target> <note /> </trans-unit> <trans-unit id="Inline_Hints_experimental"> <source>Inline Hints (experimental)</source> <target state="translated">內嵌提示 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Inserting_call_site_value_0"> <source>Inserting call site value '{0}'</source> <target state="translated">正在插入呼叫網站值 '{0}'</target> <note /> </trans-unit> <trans-unit id="Install_Microsoft_recommended_Roslyn_analyzers_which_provide_additional_diagnostics_and_fixes_for_common_API_design_security_performance_and_reliability_issues"> <source>Install Microsoft-recommended Roslyn analyzers, which provide additional diagnostics and fixes for common API design, security, performance, and reliability issues</source> <target state="translated">安裝 Microsoft 建議的 Roslyn 分析器,其可為一般 API 設計、安全性、效能及可靠性問題提供額外的診斷與修正</target> <note /> </trans-unit> <trans-unit id="Interface_cannot_have_field"> <source>Interface cannot have field.</source> <target state="translated">介面不得具有欄位。</target> <note /> </trans-unit> <trans-unit id="IntroduceUndefinedTodoVariables"> <source>Introduce undefined TODO variables</source> <target state="translated">引入未定義的 TODO 變數</target> <note>"TODO" is an indicator that more work should be done at the location where the TODO is inserted</note> </trans-unit> <trans-unit id="Item_origin"> <source>Item origin</source> <target state="translated">項目原點</target> <note /> </trans-unit> <trans-unit id="Keep"> <source>Keep</source> <target state="translated">保留</target> <note /> </trans-unit> <trans-unit id="Keep_all_parentheses_in_colon"> <source>Keep all parentheses in:</source> <target state="translated">以下情況保留所有括號:</target> <note /> </trans-unit> <trans-unit id="Kind"> <source>Kind</source> <target state="translated">種類</target> <note /> </trans-unit> <trans-unit id="Live_analysis_VSIX_extension"> <source>Live analysis (VSIX extension)</source> <target state="translated">即時分析 (VSIX 延伸模組)</target> <note /> </trans-unit> <trans-unit id="Loaded_items"> <source>Loaded items</source> <target state="translated">已載入的項目</target> <note /> </trans-unit> <trans-unit id="Loaded_solution"> <source>Loaded solution</source> <target state="translated">已載入的解決方案</target> <note /> </trans-unit> <trans-unit id="Local"> <source>Local</source> <target state="translated">本機</target> <note /> </trans-unit> <trans-unit id="Local_metadata"> <source>Local metadata</source> <target state="translated">本機中繼資料</target> <note /> </trans-unit> <trans-unit id="Location"> <source>Location</source> <target state="new">Location</target> <note /> </trans-unit> <trans-unit id="Make_0_abstract"> <source>Make '{0}' abstract</source> <target state="translated">將 '{0}' 抽象化</target> <note /> </trans-unit> <trans-unit id="Make_abstract"> <source>Make abstract</source> <target state="translated">抽象化</target> <note /> </trans-unit> <trans-unit id="Members"> <source>Members</source> <target state="translated">成員</target> <note /> </trans-unit> <trans-unit id="Modifier_preferences_colon"> <source>Modifier preferences:</source> <target state="translated">修飾元喜好設定:</target> <note /> </trans-unit> <trans-unit id="Move_to_namespace"> <source>Move to Namespace</source> <target state="translated">移到命名空間</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited"> <source>Multiple members are inherited</source> <target state="translated">已繼承多名成員</target> <note /> </trans-unit> <trans-unit id="Multiple_members_are_inherited_on_line_0"> <source>Multiple members are inherited on line {0}</source> <target state="translated">已在行 {0} 上繼承多名成員</target> <note>Line number info is needed for accessibility purpose.</note> </trans-unit> <trans-unit id="Name_conflicts_with_an_existing_type_name"> <source>Name conflicts with an existing type name.</source> <target state="translated">名稱與現有類型名稱衝突。</target> <note /> </trans-unit> <trans-unit id="Name_is_not_a_valid_0_identifier"> <source>Name is not a valid {0} identifier.</source> <target state="translated">名稱不是有效的 {0} 識別碼。</target> <note /> </trans-unit> <trans-unit id="Namespace"> <source>Namespace</source> <target state="translated">命名空間</target> <note /> </trans-unit> <trans-unit id="Namespace_0"> <source>Namespace: '{0}'</source> <target state="translated">命名空間: '{0}'</target> <note /> </trans-unit> <trans-unit id="Namespace_declarations"> <source>Namespace declarations</source> <target state="new">Namespace declarations</target> <note /> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Class"> <source>class</source> <target state="new">class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Delegate"> <source>delegate</source> <target state="new">delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Enum"> <source>enum</source> <target state="new">enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Event"> <source>event</source> <target state="new">event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Field"> <source>field</source> <target state="translated">欄位</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# programming language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Interface"> <source>interface</source> <target state="new">interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Local"> <source>local</source> <target state="translated">區域</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_LocalFunction"> <source>local function</source> <target state="translated">區域函式</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "local function" that exists locally within another function.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Method"> <source>method</source> <target state="translated">方法</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "method" that can be called by other code.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Namespace"> <source>namespace</source> <target state="new">namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Parameter"> <source>parameter</source> <target state="translated">參數</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "parameter" being passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Property"> <source>property</source> <target state="translated">屬性</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "property" (which allows for the retrieval of data).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_Struct"> <source>struct</source> <target state="new">struct</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_CSharp_TypeParameter"> <source>type parameter</source> <target state="translated">類型參數</target> <note>This string can be found under "Tools | Options | Text Editor | C# | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_CSharp_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the C# language concept of a "type parameter".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Class"> <source>Class</source> <target state="new">Class</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Delegate"> <source>Delegate</source> <target state="new">Delegate</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Enum"> <source>Enum</source> <target state="new">Enum</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Event"> <source>Event</source> <target state="new">Event</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Field"> <source>Field</source> <target state="translated">欄位</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "field" (which stores data).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Interface"> <source>Interface</source> <target state="new">Interface</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Local"> <source>Local</source> <target state="translated">本機</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "local variable".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Method"> <source>Method</source> <target state="translated">方法</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "method".</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Module"> <source>Module</source> <target state="new">Module</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Namespace"> <source>Namespace</source> <target state="new">Namespace</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Parameter"> <source>Parameter</source> <target state="translated">參數</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "parameter" which can be passed to a method.</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Property"> <source>Property</source> <target state="new">Property</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_Structure"> <source>Structure</source> <target state="new">Structure</target> <note>{Locked} This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (including this one).</note> </trans-unit> <trans-unit id="NamingSpecification_VisualBasic_TypeParameter"> <source>Type Parameter</source> <target state="translated">型別參數</target> <note>This string can be found under "Tools | Options | Text Editor | Basic | Code Style | Naming | Manage Specifications | + | Symbol kinds". All of the "NamingSpecification_VisualBasic_*" strings represent language constructs, and some of them are also actual keywords (NOT this one). Refers to the Visual Basic language concept of a "type parameter".</note> </trans-unit> <trans-unit id="Naming_rules"> <source>Naming rules</source> <target state="translated">命名規則</target> <note /> </trans-unit> <trans-unit id="Navigate_to_0"> <source>Navigate to '{0}'</source> <target state="translated">瀏覽至 '{0}'</target> <note /> </trans-unit> <trans-unit id="Never_if_unnecessary"> <source>Never if unnecessary</source> <target state="translated">不需要時一律不要</target> <note /> </trans-unit> <trans-unit id="New_Type_Name_colon"> <source>New Type Name:</source> <target state="translated">新的型別名稱:</target> <note /> </trans-unit> <trans-unit id="New_line_preferences_experimental_colon"> <source>New line preferences (experimental):</source> <target state="translated">新行喜好設定 (實驗性):</target> <note /> </trans-unit> <trans-unit id="Newline_n"> <source>Newline (\\n)</source> <target state="translated">新行 (\\n)</target> <note /> </trans-unit> <trans-unit id="No_unused_references_were_found"> <source>No unused references were found.</source> <target state="translated">找不到任何未使用的參考。</target> <note /> </trans-unit> <trans-unit id="Non_public_methods"> <source>Non-public methods</source> <target state="translated">非公用方法</target> <note /> </trans-unit> <trans-unit id="None"> <source>None</source> <target state="translated">無</target> <note /> </trans-unit> <trans-unit id="Omit_only_for_optional_parameters"> <source>Omit (only for optional parameters)</source> <target state="translated">省略 (僅適用於選擇性參數)</target> <note /> </trans-unit> <trans-unit id="Open_documents"> <source>Open documents</source> <target state="translated">開啟的文件</target> <note /> </trans-unit> <trans-unit id="Optional_parameters_must_provide_a_default_value"> <source>Optional parameters must provide a default value</source> <target state="translated">選擇性參數必須提供預設值</target> <note /> </trans-unit> <trans-unit id="Optional_with_default_value_colon"> <source>Optional with default value:</source> <target state="translated">選擇性預設值:</target> <note /> </trans-unit> <trans-unit id="Other"> <source>Others</source> <target state="translated">其他</target> <note /> </trans-unit> <trans-unit id="Overridden_members"> <source>Overridden members</source> <target state="translated">已覆寫的成員</target> <note /> </trans-unit> <trans-unit id="Overriding_members"> <source>Overriding members</source> <target state="translated">覆寫成員</target> <note /> </trans-unit> <trans-unit id="Packages"> <source>Packages</source> <target state="translated">套件</target> <note /> </trans-unit> <trans-unit id="Parameter_Details"> <source>Parameter Details</source> <target state="translated">參數詳細資料</target> <note /> </trans-unit> <trans-unit id="Parameter_Name"> <source>Parameter name:</source> <target state="translated">參數名稱:</target> <note /> </trans-unit> <trans-unit id="Parameter_information"> <source>Parameter information</source> <target state="translated">參數資訊</target> <note /> </trans-unit> <trans-unit id="Parameter_kind"> <source>Parameter kind</source> <target state="translated">參數種類</target> <note /> </trans-unit> <trans-unit id="Parameter_name_contains_invalid_characters"> <source>Parameter name contains invalid character(s).</source> <target state="translated">參數名稱包含無效字元。</target> <note /> </trans-unit> <trans-unit id="Parameter_preferences_colon"> <source>Parameter preferences:</source> <target state="translated">參數喜好設定:</target> <note /> </trans-unit> <trans-unit id="Parameter_type_contains_invalid_characters"> <source>Parameter type contains invalid character(s).</source> <target state="translated">參數類型包含無效字元。</target> <note /> </trans-unit> <trans-unit id="Parentheses_preferences_colon"> <source>Parentheses preferences:</source> <target state="translated">括號喜好設定:</target> <note /> </trans-unit> <trans-unit id="Paused_0_tasks_in_queue"> <source>Paused ({0} tasks in queue)</source> <target state="translated">已暫停 (佇列中的 {0} 工作)</target> <note /> </trans-unit> <trans-unit id="Please_enter_a_type_name"> <source>Please enter a type name</source> <target state="translated">請輸入類型名稱</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Prefer_System_HashCode_in_GetHashCode"> <source>Prefer 'System.HashCode' in 'GetHashCode'</source> <target state="translated">建議在 'GetHashCode' 中使用 'System.HashCode'</target> <note /> </trans-unit> <trans-unit id="Prefer_compound_assignments"> <source>Prefer compound assignments</source> <target state="translated">優先使用複合指派</target> <note /> </trans-unit> <trans-unit id="Prefer_index_operator"> <source>Prefer index operator</source> <target state="translated">優先使用索引運算子</target> <note /> </trans-unit> <trans-unit id="Prefer_range_operator"> <source>Prefer range operator</source> <target state="translated">優先使用範圍運算子</target> <note /> </trans-unit> <trans-unit id="Prefer_readonly_fields"> <source>Prefer readonly fields</source> <target state="translated">優先使用唯讀欄位</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_using_statement"> <source>Prefer simple 'using' statement</source> <target state="translated">優先使用簡單的 'using' 陳述式</target> <note /> </trans-unit> <trans-unit id="Prefer_simplified_boolean_expressions"> <source>Prefer simplified boolean expressions</source> <target state="translated">建議使用簡易布林運算式</target> <note /> </trans-unit> <trans-unit id="Prefer_static_local_functions"> <source>Prefer static local functions</source> <target state="translated">優先使用靜態區域函式</target> <note /> </trans-unit> <trans-unit id="Projects"> <source>Projects</source> <target state="translated">專案</target> <note /> </trans-unit> <trans-unit id="Pull_Members_Up"> <source>Pull Members Up</source> <target state="translated">提升成員</target> <note /> </trans-unit> <trans-unit id="Refactoring_Only"> <source>Refactoring Only</source> <target state="translated">僅重構</target> <note /> </trans-unit> <trans-unit id="Reference"> <source>Reference</source> <target state="translated">參考</target> <note /> </trans-unit> <trans-unit id="Regular_Expressions"> <source>Regular Expressions</source> <target state="translated">規則運算式</target> <note /> </trans-unit> <trans-unit id="Remove_All"> <source>Remove All</source> <target state="translated">全部移除</target> <note /> </trans-unit> <trans-unit id="Remove_Unused_References"> <source>Remove Unused References</source> <target state="translated">移除未使用的參考</target> <note /> </trans-unit> <trans-unit id="Rename_0_to_1"> <source>Rename {0} to {1}</source> <target state="translated">將 {0} 重新命名為 {1}</target> <note /> </trans-unit> <trans-unit id="Report_invalid_regular_expressions"> <source>Report invalid regular expressions</source> <target state="translated">回報無效的規則運算式</target> <note /> </trans-unit> <trans-unit id="Repository"> <source>Repository</source> <target state="translated">存放庫</target> <note /> </trans-unit> <trans-unit id="Require_colon"> <source>Require:</source> <target state="translated">需要:</target> <note /> </trans-unit> <trans-unit id="Required"> <source>Required</source> <target state="translated">必要</target> <note /> </trans-unit> <trans-unit id="Requires_System_HashCode_be_present_in_project"> <source>Requires 'System.HashCode' be present in project</source> <target state="translated">專案中必須有 'System.HashCode'</target> <note /> </trans-unit> <trans-unit id="Reset_Visual_Studio_default_keymapping"> <source>Reset Visual Studio default keymapping</source> <target state="translated">重設 Visual Studio 預設按鍵對應</target> <note /> </trans-unit> <trans-unit id="Review_Changes"> <source>Review Changes</source> <target state="translated">檢閱變更</target> <note /> </trans-unit> <trans-unit id="Run_Code_Analysis_on_0"> <source>Run Code Analysis on {0}</source> <target state="translated">對 {0} 執行 Code Analysis</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_0"> <source>Running code analysis for '{0}'...</source> <target state="translated">正在執行 '{0}' 的程式碼分析...</target> <note /> </trans-unit> <trans-unit id="Running_code_analysis_for_Solution"> <source>Running code analysis for Solution...</source> <target state="translated">正在執行解決方案的程式碼分析...</target> <note /> </trans-unit> <trans-unit id="Running_low_priority_background_processes"> <source>Running low priority background processes</source> <target state="translated">正在執行低優先順序背景流程</target> <note /> </trans-unit> <trans-unit id="Save_dot_editorconfig_file"> <source>Save .editorconfig file</source> <target state="translated">儲存 .editorconfig 檔案</target> <note /> </trans-unit> <trans-unit id="Search_Settings"> <source>Search Settings</source> <target state="translated">搜尋設定</target> <note /> </trans-unit> <trans-unit id="Select_an_appropriate_symbol_to_start_value_tracking"> <source>Select an appropriate symbol to start value tracking</source> <target state="new">Select an appropriate symbol to start value tracking</target> <note /> </trans-unit> <trans-unit id="Select_destination"> <source>Select destination</source> <target state="translated">選取目的地</target> <note /> </trans-unit> <trans-unit id="Select_Dependents"> <source>Select _Dependents</source> <target state="translated">選取相依項(_D)</target> <note /> </trans-unit> <trans-unit id="Select_Public"> <source>Select _Public</source> <target state="translated">選取公用(_P)</target> <note /> </trans-unit> <trans-unit id="Select_destination_and_members_to_pull_up"> <source>Select destination and members to pull up.</source> <target state="translated">選取要提升的目的地及成員。</target> <note /> </trans-unit> <trans-unit id="Select_destination_colon"> <source>Select destination:</source> <target state="translated">選取目的地:</target> <note /> </trans-unit> <trans-unit id="Select_member"> <source>Select member</source> <target state="translated">選取成員</target> <note /> </trans-unit> <trans-unit id="Select_members_colon"> <source>Select members:</source> <target state="translated">選取成員:</target> <note /> </trans-unit> <trans-unit id="Show_Remove_Unused_References_command_in_Solution_Explorer_experimental"> <source>Show "Remove Unused References" command in Solution Explorer (experimental)</source> <target state="translated">在方案總管 (實驗性) 中顯示「移除未使用的參考」命令</target> <note /> </trans-unit> <trans-unit id="Show_completion_list"> <source>Show completion list</source> <target state="translated">顯示自動完成清單</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_everything_else"> <source>Show hints for everything else</source> <target state="translated">顯示所有其他項目的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_implicit_object_creation"> <source>Show hints for implicit object creation</source> <target state="translated">顯示隱含物件建立的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_lambda_parameter_types"> <source>Show hints for lambda parameter types</source> <target state="translated">顯示 Lambda 參數類型的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_literals"> <source>Show hints for literals</source> <target state="translated">顯示常值的提示</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_variables_with_inferred_types"> <source>Show hints for variables with inferred types</source> <target state="translated">顯示有推斷類型之變數的提示</target> <note /> </trans-unit> <trans-unit id="Show_inheritance_margin"> <source>Show inheritance margin</source> <target state="translated">顯示繼承邊界</target> <note /> </trans-unit> <trans-unit id="Skip_analyzers_for_implicitly_triggered_builds"> <source>Skip analyzers for implicitly triggered builds</source> <target state="new">Skip analyzers for implicitly triggered builds</target> <note /> </trans-unit> <trans-unit id="Some_color_scheme_colors_are_being_overridden_by_changes_made_in_the_Environment_Fonts_and_Colors_options_page_Choose_Use_Defaults_in_the_Fonts_and_Colors_page_to_revert_all_customizations"> <source>Some color scheme colors are being overridden by changes made in the Environment &gt; Fonts and Colors options page. Choose `Use Defaults` in the Fonts and Colors page to revert all customizations.</source> <target state="translated">[環境] &gt; [字型和色彩選項] 頁面中所做的變更覆寫了某些色彩配置的色彩。請選擇 [字型和色彩] 頁面中的 [使用預設] 來還原所有自訂。</target> <note /> </trans-unit> <trans-unit id="Suggestion"> <source>Suggestion</source> <target state="translated">建議</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_name_matches_the_method_s_intent"> <source>Suppress hints when parameter name matches the method's intent</source> <target state="translated">當參數名稱符合方法的意圖時,不出現提示</target> <note /> </trans-unit> <trans-unit id="Suppress_hints_when_parameter_names_differ_only_by_suffix"> <source>Suppress hints when parameter names differ only by suffix</source> <target state="translated">當參數名稱只有尾碼不同時,不出現提示</target> <note /> </trans-unit> <trans-unit id="Symbols_without_references"> <source>Symbols without references</source> <target state="translated">沒有參考的符號</target> <note /> </trans-unit> <trans-unit id="Tab_twice_to_insert_arguments"> <source>Tab twice to insert arguments (experimental)</source> <target state="translated">按 Tab 鍵兩次可插入引數 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Target_Namespace_colon"> <source>Target Namespace:</source> <target state="translated">目標命名空間:</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_been_removed_from_the_project"> <source>The generator '{0}' that generated this file has been removed from the project; this file is no longer being included in your project.</source> <target state="translated">已從專案中移除產生此檔案的產生器 '{0}'; 此檔案已不再包含在您的專案中。</target> <note /> </trans-unit> <trans-unit id="The_generator_0_that_generated_this_file_has_stopped_generating_this_file"> <source>The generator '{0}' that generated this file has stopped generating this file; this file is no longer being included in your project.</source> <target state="translated">產生此檔案的產生器 '{0}' 已停止產生此檔案; 此檔案已不再包含在您的專案中。</target> <note /> </trans-unit> <trans-unit id="This_action_cannot_be_undone_Do_you_wish_to_continue"> <source>This action cannot be undone. Do you wish to continue?</source> <target state="translated">此動作無法復原。要繼續嗎?</target> <note /> </trans-unit> <trans-unit id="This_file_is_autogenerated_by_0_and_cannot_be_edited"> <source>This file is auto-generated by the generator '{0}' and cannot be edited.</source> <target state="translated">此檔案是由產生器 '{0}' 自動產生,無法加以編輯。</target> <note /> </trans-unit> <trans-unit id="This_is_an_invalid_namespace"> <source>This is an invalid namespace</source> <target state="translated">這是無效的命名空間</target> <note /> </trans-unit> <trans-unit id="Title"> <source>Title</source> <target state="translated">標題</target> <note /> </trans-unit> <trans-unit id="Type_Name"> <source>Type name:</source> <target state="translated">類型名稱:</target> <note /> </trans-unit> <trans-unit id="Type_name_has_a_syntax_error"> <source>Type name has a syntax error</source> <target state="translated">類型名稱包含語法錯誤</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_not_recognized"> <source>Type name is not recognized</source> <target state="translated">無法辨識類型名稱</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Type_name_is_recognized"> <source>Type name is recognized</source> <target state="translated">已辨識類型名稱</target> <note>"Type" is the programming language concept</note> </trans-unit> <trans-unit id="Underline_reassigned_variables"> <source>Underline reassigned variables</source> <target state="new">Underline reassigned variables</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_an_unused_local"> <source>Unused value is explicitly assigned to an unused local</source> <target state="translated">未使用的值已明確指派至未使用的區域</target> <note /> </trans-unit> <trans-unit id="Unused_value_is_explicitly_assigned_to_discard"> <source>Unused value is explicitly assigned to discard</source> <target state="translated">未使用的值已明確指派至捨棄</target> <note /> </trans-unit> <trans-unit id="Updating_project_references"> <source>Updating project references...</source> <target state="translated">正在更新專案參考...</target> <note /> </trans-unit> <trans-unit id="Updating_severity"> <source>Updating severity</source> <target state="translated">正在更新嚴重性</target> <note /> </trans-unit> <trans-unit id="Use_64_bit_process_for_code_analysis_requires_restart"> <source>Use 64-bit process for code analysis (requires restart)</source> <target state="translated">使用 64 位元處理序進行程式碼分析 (需要重新啟動)</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_lambdas"> <source>Use expression body for lambdas</source> <target state="translated">使用 lambda 的運算式主體</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_local_functions"> <source>Use expression body for local functions</source> <target state="translated">使用區域函式的運算式主體</target> <note /> </trans-unit> <trans-unit id="Use_named_argument"> <source>Use named argument</source> <target state="translated">使用具名引數</target> <note>"argument" is a programming term for a value passed to a function</note> </trans-unit> <trans-unit id="Value"> <source>Value</source> <target state="translated">值</target> <note /> </trans-unit> <trans-unit id="Value_Tracking"> <source>Value Tracking</source> <target state="new">Value Tracking</target> <note>Title of the "Value Tracking" tool window. "Value" is the variable/symbol and "Tracking" is the action the tool is doing to follow where the value can originate from.</note> </trans-unit> <trans-unit id="Value_assigned_here_is_never_used"> <source>Value assigned here is never used</source> <target state="translated">這裡指派的值從未使用過</target> <note /> </trans-unit> <trans-unit id="Value_colon"> <source>Value:</source> <target state="translated">值:</target> <note /> </trans-unit> <trans-unit id="Value_returned_by_invocation_is_implicitly_ignored"> <source>Value returned by invocation is implicitly ignored</source> <target state="translated">明確地忽略引動過程傳回的值</target> <note /> </trans-unit> <trans-unit id="Value_to_inject_at_call_sites"> <source>Value to inject at call sites</source> <target state="translated">要在呼叫位置插入的值</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2017"> <source>Visual Studio 2017</source> <target state="translated">Visual Studio 2017</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_2019"> <source>Visual Studio 2019</source> <target state="translated">Visual Studio 2019</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_Settings"> <source>Visual Studio Settings</source> <target state="new">Visual Studio Settings</target> <note /> </trans-unit> <trans-unit id="Warning"> <source>Warning</source> <target state="translated">警告</target> <note /> </trans-unit> <trans-unit id="Warning_colon_duplicate_parameter_name"> <source>Warning: duplicate parameter name</source> <target state="translated">警告: 參數名稱重複</target> <note /> </trans-unit> <trans-unit id="Warning_colon_type_does_not_bind"> <source>Warning: type does not bind</source> <target state="translated">警告: 類型未繫結</target> <note /> </trans-unit> <trans-unit id="We_notice_you_suspended_0_Reset_keymappings_to_continue_to_navigate_and_refactor"> <source>We notice you suspended '{0}'. Reset keymappings to continue to navigate and refactor.</source> <target state="translated">我們發現您暫止了 '{0}'。重設按鍵對應以繼續巡覽和重構。</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_compilation_options"> <source>This workspace does not support updating Visual Basic compilation options.</source> <target state="translated">此工作區不支援更新 Visual Basic 編譯選項。</target> <note /> </trans-unit> <trans-unit id="Whitespace"> <source>Whitespace</source> <target state="new">Whitespace</target> <note /> </trans-unit> <trans-unit id="You_must_change_the_signature"> <source>You must change the signature</source> <target state="translated">您必須變更簽章</target> <note>"signature" here means the definition of a method</note> </trans-unit> <trans-unit id="You_must_select_at_least_one_member"> <source>You must select at least one member.</source> <target state="translated">您必須選取至少一個成員。</target> <note /> </trans-unit> <trans-unit id="Illegal_characters_in_path"> <source>Illegal characters in path.</source> <target state="translated">路徑中有不合法的字元。</target> <note /> </trans-unit> <trans-unit id="File_name_must_have_the_0_extension"> <source>File name must have the "{0}" extension.</source> <target state="translated">檔案名稱必須有 "{0}" 延伸模組。</target> <note /> </trans-unit> <trans-unit id="Debugger"> <source>Debugger</source> <target state="translated">偵錯工具</target> <note /> </trans-unit> <trans-unit id="Determining_breakpoint_location"> <source>Determining breakpoint location...</source> <target state="translated">正在判定中斷點位置...</target> <note /> </trans-unit> <trans-unit id="Determining_autos"> <source>Determining autos...</source> <target state="translated">正在判定自動呈現的程式碼片段...</target> <note /> </trans-unit> <trans-unit id="Resolving_breakpoint_location"> <source>Resolving breakpoint location...</source> <target state="translated">正在解析中斷點位置...</target> <note /> </trans-unit> <trans-unit id="Validating_breakpoint_location"> <source>Validating breakpoint location...</source> <target state="translated">正在驗證中斷點位置...</target> <note /> </trans-unit> <trans-unit id="Getting_DataTip_text"> <source>Getting DataTip text...</source> <target state="translated">正在取得資料提示文字...</target> <note /> </trans-unit> <trans-unit id="Preview_unavailable"> <source>Preview unavailable</source> <target state="translated">無法使用預覽</target> <note /> </trans-unit> <trans-unit id="Overrides_"> <source>Overrides</source> <target state="translated">覆寫</target> <note /> </trans-unit> <trans-unit id="Overridden_By"> <source>Overridden By</source> <target state="translated">覆寫者</target> <note /> </trans-unit> <trans-unit id="Inherits_"> <source>Inherits</source> <target state="translated">繼承</target> <note /> </trans-unit> <trans-unit id="Inherited_By"> <source>Inherited By</source> <target state="translated">繼承者</target> <note /> </trans-unit> <trans-unit id="Implements_"> <source>Implements</source> <target state="translated">實作</target> <note /> </trans-unit> <trans-unit id="Implemented_By"> <source>Implemented By</source> <target state="translated">實作者</target> <note /> </trans-unit> <trans-unit id="Maximum_number_of_documents_are_open"> <source>Maximum number of documents are open.</source> <target state="translated">開啟的文件數已達上限。</target> <note /> </trans-unit> <trans-unit id="Failed_to_create_document_in_miscellaneous_files_project"> <source>Failed to create document in miscellaneous files project.</source> <target state="translated">無法建立其他檔案專案中的文件。</target> <note /> </trans-unit> <trans-unit id="Invalid_access"> <source>Invalid access.</source> <target state="translated">存取無效。</target> <note /> </trans-unit> <trans-unit id="The_following_references_were_not_found_0_Please_locate_and_add_them_manually"> <source>The following references were not found. {0}Please locate and add them manually.</source> <target state="translated">找不到下列參考。{0}請找出這些參考並手動新增。</target> <note /> </trans-unit> <trans-unit id="End_position_must_be_start_position"> <source>End position must be &gt;= start position</source> <target state="translated">結束位置必須為 &gt; = 開始位置</target> <note /> </trans-unit> <trans-unit id="Not_a_valid_value"> <source>Not a valid value</source> <target state="translated">值無效</target> <note /> </trans-unit> <trans-unit id="_0_is_inherited"> <source>'{0}' is inherited</source> <target state="translated">已繼承 '{0}'</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_abstract"> <source>'{0}' will be changed to abstract.</source> <target state="translated">'{0}' 會變更為抽象。</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_non_static"> <source>'{0}' will be changed to non-static.</source> <target state="translated">'{0}' 會變更為非靜態。</target> <note /> </trans-unit> <trans-unit id="_0_will_be_changed_to_public"> <source>'{0}' will be changed to public.</source> <target state="translated">'{0}' 會變更為公用。</target> <note /> </trans-unit> <trans-unit id="generated_by_0_suffix"> <source>[generated by {0}]</source> <target state="translated">[由 {0} 產生]</target> <note>{0} is the name of a generator.</note> </trans-unit> <trans-unit id="generated_suffix"> <source>[generated]</source> <target state="translated">[已產生]</target> <note /> </trans-unit> <trans-unit id="given_workspace_doesn_t_support_undo"> <source>given workspace doesn't support undo</source> <target state="translated">指定的工作區不支援復原</target> <note /> </trans-unit> <trans-unit id="Add_a_reference_to_0"> <source>Add a reference to '{0}'</source> <target state="translated">將參考新增至 '{0}'</target> <note /> </trans-unit> <trans-unit id="Event_type_is_invalid"> <source>Event type is invalid</source> <target state="translated">事件類型無效</target> <note /> </trans-unit> <trans-unit id="Can_t_find_where_to_insert_member"> <source>Can't find where to insert member</source> <target state="translated">找不到插入成員的位置</target> <note /> </trans-unit> <trans-unit id="Can_t_rename_other_elements"> <source>Can't rename 'other' elements</source> <target state="translated">無法為 'other' 元素重新命名</target> <note /> </trans-unit> <trans-unit id="Unknown_rename_type"> <source>Unknown rename type</source> <target state="translated">未知的重新命名類型</target> <note /> </trans-unit> <trans-unit id="IDs_are_not_supported_for_this_symbol_type"> <source>IDs are not supported for this symbol type.</source> <target state="translated">此符號類型不支援識別碼。</target> <note /> </trans-unit> <trans-unit id="Can_t_create_a_node_id_for_this_symbol_kind_colon_0"> <source>Can't create a node id for this symbol kind: '{0}'</source> <target state="translated">無法建立此符號種類的節點識別碼: '{0}'</target> <note /> </trans-unit> <trans-unit id="Project_References"> <source>Project References</source> <target state="translated">專案參考</target> <note /> </trans-unit> <trans-unit id="Base_Types"> <source>Base Types</source> <target state="translated">基底類型</target> <note /> </trans-unit> <trans-unit id="Miscellaneous_Files"> <source>Miscellaneous Files</source> <target state="translated">其他檔案</target> <note /> </trans-unit> <trans-unit id="Could_not_find_project_0"> <source>Could not find project '{0}'</source> <target state="translated">找不到專案 '{0}'</target> <note /> </trans-unit> <trans-unit id="Could_not_find_location_of_folder_on_disk"> <source>Could not find location of folder on disk</source> <target state="translated">在磁碟上找不到資料夾的位置</target> <note /> </trans-unit> <trans-unit id="Assembly"> <source>Assembly </source> <target state="translated">組件 </target> <note /> </trans-unit> <trans-unit id="Exceptions_colon"> <source>Exceptions:</source> <target state="translated">例外狀況:</target> <note /> </trans-unit> <trans-unit id="Member_of_0"> <source>Member of {0}</source> <target state="translated">{0} 的成員</target> <note /> </trans-unit> <trans-unit id="Parameters_colon1"> <source>Parameters:</source> <target state="translated">參數:</target> <note /> </trans-unit> <trans-unit id="Project"> <source>Project </source> <target state="translated">專案 </target> <note /> </trans-unit> <trans-unit id="Remarks_colon"> <source>Remarks:</source> <target state="translated">備註:</target> <note /> </trans-unit> <trans-unit id="Returns_colon"> <source>Returns:</source> <target state="translated">傳回:</target> <note /> </trans-unit> <trans-unit id="Summary_colon"> <source>Summary:</source> <target state="translated">摘要:</target> <note /> </trans-unit> <trans-unit id="Type_Parameters_colon"> <source>Type Parameters:</source> <target state="translated">類型參數:</target> <note /> </trans-unit> <trans-unit id="File_already_exists"> <source>File already exists</source> <target state="translated">檔案已存在</target> <note /> </trans-unit> <trans-unit id="File_path_cannot_use_reserved_keywords"> <source>File path cannot use reserved keywords</source> <target state="translated">檔案路徑無法使用保留的關鍵字</target> <note /> </trans-unit> <trans-unit id="DocumentPath_is_illegal"> <source>DocumentPath is illegal</source> <target state="translated">DocumentPath 不合法</target> <note /> </trans-unit> <trans-unit id="Project_Path_is_illegal"> <source>Project Path is illegal</source> <target state="translated">專案路徑不合法</target> <note /> </trans-unit> <trans-unit id="Path_cannot_have_empty_filename"> <source>Path cannot have empty filename</source> <target state="translated">路徑檔名不得為空白</target> <note /> </trans-unit> <trans-unit id="The_given_DocumentId_did_not_come_from_the_Visual_Studio_workspace"> <source>The given DocumentId did not come from the Visual Studio workspace.</source> <target state="translated">給定的 DocumentId 並非來自 Visual Studio 工作區。</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} ({1}) Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">專案: {0} ({1}) 使用下拉式清單,即可檢視並切換至此檔案可能所屬的其他專案。</target> <note /> </trans-unit> <trans-unit id="_0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file"> <source>{0} Use the dropdown to view and navigate to other items in this file.</source> <target state="translated">{0} 使用下拉式清單,即可檢視並巡覽至此檔案中的其他項目。</target> <note /> </trans-unit> <trans-unit id="Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to"> <source>Project: {0} Use the dropdown to view and switch to other projects this file may belong to.</source> <target state="translated">專案: {0} 使用下拉式清單可以檢視並切換至這個檔案所屬的其他專案。</target> <note /> </trans-unit> <trans-unit id="AnalyzerChangedOnDisk"> <source>AnalyzerChangedOnDisk</source> <target state="translated">AnalyzerChangedOnDisk</target> <note /> </trans-unit> <trans-unit id="The_analyzer_assembly_0_has_changed_Diagnostics_may_be_incorrect_until_Visual_Studio_is_restarted"> <source>The analyzer assembly '{0}' has changed. Diagnostics may be incorrect until Visual Studio is restarted.</source> <target state="translated">分析器組件 '{0}' 已變更。可能造成診斷錯誤,直到 Visual Studio 重新啟動為止。</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Diagnostics_Table_Data_Source"> <source>C#/VB Diagnostics Table Data Source</source> <target state="translated">C#/VB 診斷資料表資料來源</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Todo_List_Table_Data_Source"> <source>C#/VB Todo List Table Data Source</source> <target state="translated">C#/VB 待辦事項清單資料表資料來源</target> <note /> </trans-unit> <trans-unit id="Cancel"> <source>Cancel</source> <target state="translated">取消</target> <note /> </trans-unit> <trans-unit id="Deselect_All"> <source>_Deselect All</source> <target state="translated">全部取消選取(_D)</target> <note /> </trans-unit> <trans-unit id="Extract_Interface"> <source>Extract Interface</source> <target state="translated">擷取介面</target> <note /> </trans-unit> <trans-unit id="Generated_name_colon"> <source>Generated name:</source> <target state="translated">產生的名稱:</target> <note /> </trans-unit> <trans-unit id="New_file_name_colon"> <source>New _file name:</source> <target state="translated">新檔名(_F):</target> <note /> </trans-unit> <trans-unit id="New_interface_name_colon"> <source>New _interface name:</source> <target state="translated">新介面名稱(_I):</target> <note /> </trans-unit> <trans-unit id="OK"> <source>OK</source> <target state="translated">確定</target> <note /> </trans-unit> <trans-unit id="Select_All"> <source>_Select All</source> <target state="translated">全選(_S)</target> <note /> </trans-unit> <trans-unit id="Select_public_members_to_form_interface"> <source>Select public _members to form interface</source> <target state="translated">選取公用成員以形成介面(_M)</target> <note /> </trans-unit> <trans-unit id="Access_colon"> <source>_Access:</source> <target state="translated">存取(_A):</target> <note /> </trans-unit> <trans-unit id="Add_to_existing_file"> <source>Add to _existing file</source> <target state="translated">新增至現有檔案(_E)</target> <note /> </trans-unit> <trans-unit id="Change_Signature"> <source>Change Signature</source> <target state="translated">變更簽章</target> <note /> </trans-unit> <trans-unit id="Create_new_file"> <source>_Create new file</source> <target state="translated">建立新檔案(_C)</target> <note /> </trans-unit> <trans-unit id="Default_"> <source>Default</source> <target state="translated">預設</target> <note /> </trans-unit> <trans-unit id="File_Name_colon"> <source>File Name:</source> <target state="translated">檔案名稱:</target> <note /> </trans-unit> <trans-unit id="Generate_Type"> <source>Generate Type</source> <target state="translated">產生類型</target> <note /> </trans-unit> <trans-unit id="Kind_colon"> <source>_Kind:</source> <target state="translated">類型(_K):</target> <note /> </trans-unit> <trans-unit id="Location_colon"> <source>Location:</source> <target state="translated">位置:</target> <note /> </trans-unit> <trans-unit id="Modifier"> <source>Modifier</source> <target state="translated">修飾元</target> <note /> </trans-unit> <trans-unit id="Name_colon1"> <source>Name:</source> <target state="translated">名稱:</target> <note /> </trans-unit> <trans-unit id="Parameter"> <source>Parameter</source> <target state="translated">參數</target> <note /> </trans-unit> <trans-unit id="Parameters_colon2"> <source>Parameters:</source> <target state="translated">參數:</target> <note /> </trans-unit> <trans-unit id="Preview_method_signature_colon"> <source>Preview method signature:</source> <target state="translated">預覽方法簽章:</target> <note /> </trans-unit> <trans-unit id="Preview_reference_changes"> <source>Preview reference changes</source> <target state="translated">預覽參考變更</target> <note /> </trans-unit> <trans-unit id="Project_colon"> <source>_Project:</source> <target state="translated">專案(_P):</target> <note /> </trans-unit> <trans-unit id="Type"> <source>Type</source> <target state="translated">類型</target> <note /> </trans-unit> <trans-unit id="Type_Details_colon"> <source>Type Details:</source> <target state="translated">類型詳細資料:</target> <note /> </trans-unit> <trans-unit id="Re_move"> <source>Re_move</source> <target state="translated">移除(_M)</target> <note /> </trans-unit> <trans-unit id="Restore"> <source>_Restore</source> <target state="translated">還原(_R)</target> <note /> </trans-unit> <trans-unit id="More_about_0"> <source>More about {0}</source> <target state="translated">關於 {0} 的詳細資訊</target> <note /> </trans-unit> <trans-unit id="Navigation_must_be_performed_on_the_foreground_thread"> <source>Navigation must be performed on the foreground thread.</source> <target state="translated">瀏覽必須在前景執行緒執行。</target> <note /> </trans-unit> <trans-unit id="bracket_plus_bracket"> <source>[+] </source> <target state="translated">[+] </target> <note /> </trans-unit> <trans-unit id="bracket_bracket"> <source>[-] </source> <target state="translated">[-] </target> <note /> </trans-unit> <trans-unit id="Reference_to_0_in_project_1"> <source>Reference to '{0}' in project '{1}'</source> <target state="translated">專案 '{1}' 中 '{0}' 的參考</target> <note /> </trans-unit> <trans-unit id="Unknown1"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;未知&gt;</target> <note /> </trans-unit> <trans-unit id="Analyzer_reference_to_0_in_project_1"> <source>Analyzer reference to '{0}' in project '{1}'</source> <target state="translated">專案 '{1}' 中 '{0}' 的分析器參考</target> <note /> </trans-unit> <trans-unit id="Project_reference_to_0_in_project_1"> <source>Project reference to '{0}' in project '{1}'</source> <target state="translated">專案 '{1}' 中 '{0}' 的專案參考</target> <note /> </trans-unit> <trans-unit id="AnalyzerDependencyConflict"> <source>AnalyzerDependencyConflict</source> <target state="translated">AnalyzerDependencyConflict</target> <note /> </trans-unit> <trans-unit id="Analyzer_assemblies_0_and_1_both_have_identity_2_but_different_contents_Only_one_will_be_loaded_and_analyzers_using_these_assemblies_may_not_run_correctly"> <source>Analyzer assemblies '{0}' and '{1}' both have identity '{2}' but different contents. Only one will be loaded and analyzers using these assemblies may not run correctly.</source> <target state="translated">分析器組件 '{0}' 及 '{1}' 均有身分識別 '{2}' 但內容不同。僅會載入其中一個,且使用這些組件的分析器可能無法正確執行。</target> <note /> </trans-unit> <trans-unit id="_0_references"> <source>{0} references</source> <target state="translated">{0} 個參考</target> <note /> </trans-unit> <trans-unit id="_1_reference"> <source>1 reference</source> <target state="translated">1 個參考</target> <note /> </trans-unit> <trans-unit id="_0_encountered_an_error_and_has_been_disabled"> <source>'{0}' encountered an error and has been disabled.</source> <target state="translated">'{0}' 發生錯誤並已停用。</target> <note /> </trans-unit> <trans-unit id="Enable"> <source>Enable</source> <target state="translated">啟用</target> <note /> </trans-unit> <trans-unit id="Enable_and_ignore_future_errors"> <source>Enable and ignore future errors</source> <target state="translated">啟用並忽略未來的錯誤</target> <note /> </trans-unit> <trans-unit id="No_Changes"> <source>No Changes</source> <target state="translated">沒有變更</target> <note /> </trans-unit> <trans-unit id="Current_block"> <source>Current block</source> <target state="translated">目前區塊</target> <note /> </trans-unit> <trans-unit id="Determining_current_block"> <source>Determining current block.</source> <target state="translated">正在判定目前的區塊。</target> <note /> </trans-unit> <trans-unit id="IntelliSense"> <source>IntelliSense</source> <target state="translated">IntelliSense</target> <note /> </trans-unit> <trans-unit id="CSharp_VB_Build_Table_Data_Source"> <source>C#/VB Build Table Data Source</source> <target state="translated">C#/VB 組建資料表資料來源</target> <note /> </trans-unit> <trans-unit id="MissingAnalyzerReference"> <source>MissingAnalyzerReference</source> <target state="translated">MissingAnalyzerReference</target> <note /> </trans-unit> <trans-unit id="Analyzer_assembly_0_depends_on_1_but_it_was_not_found_Analyzers_may_not_run_correctly_unless_the_missing_assembly_is_added_as_an_analyzer_reference_as_well"> <source>Analyzer assembly '{0}' depends on '{1}' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.</source> <target state="translated">分析器組件 '{0}' 相依於 '{1}',但找不到該項目。除非同時將遺漏的組件新增為分析器參考,否則分析器可能無法正確執行。</target> <note /> </trans-unit> <trans-unit id="Suppress_diagnostics"> <source>Suppress diagnostics</source> <target state="translated">隱藏診斷</target> <note /> </trans-unit> <trans-unit id="Computing_suppressions_fix"> <source>Computing suppressions fix...</source> <target state="translated">正在計算隱藏項目修正...</target> <note /> </trans-unit> <trans-unit id="Applying_suppressions_fix"> <source>Applying suppressions fix...</source> <target state="translated">正在套用隱藏項目修正...</target> <note /> </trans-unit> <trans-unit id="Remove_suppressions"> <source>Remove suppressions</source> <target state="translated">移除隱藏項目</target> <note /> </trans-unit> <trans-unit id="Computing_remove_suppressions_fix"> <source>Computing remove suppressions fix...</source> <target state="translated">正在計算移除隱藏項目修正...</target> <note /> </trans-unit> <trans-unit id="Applying_remove_suppressions_fix"> <source>Applying remove suppressions fix...</source> <target state="translated">正在套用移除隱藏項目修正...</target> <note /> </trans-unit> <trans-unit id="This_workspace_only_supports_opening_documents_on_the_UI_thread"> <source>This workspace only supports opening documents on the UI thread.</source> <target state="translated">此工作區僅支援在 UI 執行緒上開啟文件。</target> <note /> </trans-unit> <trans-unit id="This_workspace_does_not_support_updating_Visual_Basic_parse_options"> <source>This workspace does not support updating Visual Basic parse options.</source> <target state="translated">此工作區不支援更新 Visual Basic 剖析選項。</target> <note /> </trans-unit> <trans-unit id="Synchronize_0"> <source>Synchronize {0}</source> <target state="translated">同步 {0}</target> <note /> </trans-unit> <trans-unit id="Synchronizing_with_0"> <source>Synchronizing with {0}...</source> <target state="translated">正在與 {0} 同步...</target> <note /> </trans-unit> <trans-unit id="Visual_Studio_has_suspended_some_advanced_features_to_improve_performance"> <source>Visual Studio has suspended some advanced features to improve performance.</source> <target state="translated">Visual Studio 已暫止部分進階功能以改善效能。</target> <note /> </trans-unit> <trans-unit id="Installing_0"> <source>Installing '{0}'</source> <target state="translated">正在安裝 '{0}'</target> <note /> </trans-unit> <trans-unit id="Installing_0_completed"> <source>Installing '{0}' completed</source> <target state="translated">已完成安裝 '{0}'</target> <note /> </trans-unit> <trans-unit id="Package_install_failed_colon_0"> <source>Package install failed: {0}</source> <target state="translated">套件安裝失敗: {0}</target> <note /> </trans-unit> <trans-unit id="Unknown2"> <source>&lt;Unknown&gt;</source> <target state="translated">&lt;未知&gt;</target> <note /> </trans-unit> <trans-unit id="No"> <source>No</source> <target state="translated">否</target> <note /> </trans-unit> <trans-unit id="Yes"> <source>Yes</source> <target state="translated">是</target> <note /> </trans-unit> <trans-unit id="Choose_a_Symbol_Specification_and_a_Naming_Style"> <source>Choose a Symbol Specification and a Naming Style.</source> <target state="translated">選擇符號規格及命名樣式。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Rule"> <source>Enter a title for this Naming Rule.</source> <target state="translated">輸入此命名規則的標題。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Naming_Style"> <source>Enter a title for this Naming Style.</source> <target state="translated">輸入此命名樣式的標題。</target> <note /> </trans-unit> <trans-unit id="Enter_a_title_for_this_Symbol_Specification"> <source>Enter a title for this Symbol Specification.</source> <target state="translated">輸入此符號規格的標題。</target> <note /> </trans-unit> <trans-unit id="Accessibilities_can_match_any"> <source>Accessibilities (can match any)</source> <target state="translated">存取範圍 (可符合任何項目)</target> <note /> </trans-unit> <trans-unit id="Capitalization_colon"> <source>Capitalization:</source> <target state="translated">大小寫:</target> <note /> </trans-unit> <trans-unit id="all_lower"> <source>all lower</source> <target state="translated">全部小寫</target> <note /> </trans-unit> <trans-unit id="ALL_UPPER"> <source>ALL UPPER</source> <target state="translated">全部大寫</target> <note /> </trans-unit> <trans-unit id="camel_Case_Name"> <source>camel Case Name</source> <target state="translated">駝峰式大小寫名稱</target> <note /> </trans-unit> <trans-unit id="First_word_upper"> <source>First word upper</source> <target state="translated">首字大寫</target> <note /> </trans-unit> <trans-unit id="Pascal_Case_Name"> <source>Pascal Case Name</source> <target state="translated">Pascal 命名法名稱</target> <note /> </trans-unit> <trans-unit id="Severity_colon"> <source>Severity:</source> <target state="translated">嚴重性:</target> <note /> </trans-unit> <trans-unit id="Modifiers_must_match_all"> <source>Modifiers (must match all)</source> <target state="translated">修飾元 (必須符合所有項目)</target> <note /> </trans-unit> <trans-unit id="Name_colon2"> <source>Name:</source> <target state="translated">名稱:</target> <note /> </trans-unit> <trans-unit id="Naming_Rule"> <source>Naming Rule</source> <target state="translated">命名規則</target> <note /> </trans-unit> <trans-unit id="Naming_Style"> <source>Naming Style</source> <target state="translated">命名樣式</target> <note /> </trans-unit> <trans-unit id="Naming_Style_colon"> <source>Naming Style:</source> <target state="translated">命名樣式:</target> <note /> </trans-unit> <trans-unit id="Naming_Rules_allow_you_to_define_how_particular_sets_of_symbols_should_be_named_and_how_incorrectly_named_symbols_should_be_handled"> <source>Naming Rules allow you to define how particular sets of symbols should be named and how incorrectly-named symbols should be handled.</source> <target state="translated">命名規則可讓您定義特定符號集的命名方式,以及未正確命名符號的處理方式。</target> <note /> </trans-unit> <trans-unit id="The_first_matching_top_level_Naming_Rule_is_used_by_default_when_naming_a_symbol_while_any_special_cases_are_handled_by_a_matching_child_rule"> <source>The first matching top-level Naming Rule is used by default when naming a symbol, while any special cases are handled by a matching child rule.</source> <target state="translated">替符號命名時,依預設會使用第一個相符的頂層命名規則; 而任何特殊情況都將由相符的子系規則處理。</target> <note /> </trans-unit> <trans-unit id="Naming_Style_Title_colon"> <source>Naming Style Title:</source> <target state="translated">命名樣式標題:</target> <note /> </trans-unit> <trans-unit id="Parent_Rule_colon"> <source>Parent Rule:</source> <target state="translated">父系規則:</target> <note /> </trans-unit> <trans-unit id="Required_Prefix_colon"> <source>Required Prefix:</source> <target state="translated">必要前置詞:</target> <note /> </trans-unit> <trans-unit id="Required_Suffix_colon"> <source>Required Suffix:</source> <target state="translated">必要後置詞:</target> <note /> </trans-unit> <trans-unit id="Sample_Identifier_colon"> <source>Sample Identifier:</source> <target state="translated">範例識別碼:</target> <note /> </trans-unit> <trans-unit id="Symbol_Kinds_can_match_any"> <source>Symbol Kinds (can match any)</source> <target state="translated">符號種類 (可符合任何項目)</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification"> <source>Symbol Specification</source> <target state="translated">符號規格</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_colon"> <source>Symbol Specification:</source> <target state="translated">符號規格:</target> <note /> </trans-unit> <trans-unit id="Symbol_Specification_Title_colon"> <source>Symbol Specification Title:</source> <target state="translated">符號規格標題:</target> <note /> </trans-unit> <trans-unit id="Word_Separator_colon"> <source>Word Separator:</source> <target state="translated">字組分隔符號:</target> <note /> </trans-unit> <trans-unit id="example"> <source>example</source> <target state="translated">範例</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="identifier"> <source>identifier</source> <target state="translated">識別碼</target> <note>IdentifierWord_Example and IdentifierWord_Identifier are combined (with prefixes, suffixes, and word separators) into an example identifier name in the NamingStyle UI.</note> </trans-unit> <trans-unit id="Install_0"> <source>Install '{0}'</source> <target state="translated">安裝 '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0"> <source>Uninstalling '{0}'</source> <target state="translated">正在解除安裝 '{0}'</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_completed"> <source>Uninstalling '{0}' completed</source> <target state="translated">已完成將 '{0}' 解除安裝</target> <note /> </trans-unit> <trans-unit id="Uninstall_0"> <source>Uninstall '{0}'</source> <target state="translated">將 '{0}' 解除安裝</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_failed_colon_0"> <source>Package uninstall failed: {0}</source> <target state="translated">套件解除安裝失敗: {0}</target> <note /> </trans-unit> <trans-unit id="Error_encountered_while_loading_the_project_Some_project_features_such_as_full_solution_analysis_for_the_failed_project_and_projects_that_depend_on_it_have_been_disabled"> <source>Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.</source> <target state="translated">載入專案時發生錯誤。已停用部分專案功能,例如對失敗專案及其相依專案的完整解決方案分析。</target> <note /> </trans-unit> <trans-unit id="Project_loading_failed"> <source>Project loading failed.</source> <target state="translated">專案載入失敗。</target> <note /> </trans-unit> <trans-unit id="To_see_what_caused_the_issue_please_try_below_1_Close_Visual_Studio_long_paragraph_follows"> <source>To see what caused the issue, please try below. 1. Close Visual Studio 2. Open a Visual Studio Developer Command Prompt 3. Set environment variable “TraceDesignTime” to true (set TraceDesignTime=true) 4. Delete .vs directory/.suo file 5. Restart VS from the command prompt you set the environment variable (devenv) 6. Open the solution 7. Check '{0}' and look for the failed tasks (FAILED)</source> <target state="translated">若要了解此問題的發生原因,請嘗試下方步驟。 1. 關閉 Visual Studio 2. 開啟 Visual Studio 開發人員命令提示字元 3. 將環境變數 “TraceDesignTime” 設為 true (設定 TraceDesignTime=true) 4. 刪除 .vs 目錄/ .suo 檔案 5. 從您設定環境變數 (devenv) 的命令提示字元處重新啟動 VS 6. 開啟解決方案 7. 檢查 '{0}' 並尋找失敗的工作 (FAILED)</target> <note /> </trans-unit> <trans-unit id="Additional_information_colon"> <source>Additional information:</source> <target state="translated">其他資訊:</target> <note /> </trans-unit> <trans-unit id="Installing_0_failed_Additional_information_colon_1"> <source>Installing '{0}' failed. Additional information: {1}</source> <target state="translated">安裝 '{0}' 失敗 其他資訊: {1}</target> <note /> </trans-unit> <trans-unit id="Uninstalling_0_failed_Additional_information_colon_1"> <source>Uninstalling '{0}' failed. Additional information: {1}</source> <target state="translated">將 '{0}' 解除安裝失敗。 其他資訊: {1}</target> <note /> </trans-unit> <trans-unit id="Move_0_below_1"> <source>Move {0} below {1}</source> <target state="translated">將 {0} 移至 {1} 下方</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Move_0_above_1"> <source>Move {0} above {1}</source> <target state="translated">將 {0} 移至 {1} 上方</target> <note>{0} and {1} are parameter descriptions</note> </trans-unit> <trans-unit id="Remove_0"> <source>Remove {0}</source> <target state="translated">移除 {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Restore_0"> <source>Restore {0}</source> <target state="translated">還原 {0}</target> <note>{0} is a parameter description</note> </trans-unit> <trans-unit id="Re_enable"> <source>Re-enable</source> <target state="translated">重新啟用</target> <note /> </trans-unit> <trans-unit id="Learn_more"> <source>Learn more</source> <target state="translated">深入了解</target> <note /> </trans-unit> <trans-unit id="Prefer_framework_type"> <source>Prefer framework type</source> <target state="translated">偏好架構類型</target> <note /> </trans-unit> <trans-unit id="Prefer_predefined_type"> <source>Prefer predefined type</source> <target state="translated">偏好預先定義的類型</target> <note /> </trans-unit> <trans-unit id="Copy_to_Clipboard"> <source>Copy to Clipboard</source> <target state="translated">複製到剪貼簿</target> <note /> </trans-unit> <trans-unit id="Close"> <source>Close</source> <target state="translated">關閉</target> <note /> </trans-unit> <trans-unit id="Unknown_parameters"> <source>&lt;Unknown Parameters&gt;</source> <target state="translated">&lt;未知參數&gt;</target> <note /> </trans-unit> <trans-unit id="End_of_inner_exception_stack"> <source>--- End of inner exception stack trace ---</source> <target state="translated">--- 內部例外狀況堆疊追蹤的結尾 ---</target> <note /> </trans-unit> <trans-unit id="For_locals_parameters_and_members"> <source>For locals, parameters and members</source> <target state="translated">針對區域變數、參數及成員</target> <note /> </trans-unit> <trans-unit id="For_member_access_expressions"> <source>For member access expressions</source> <target state="translated">針對成員存取運算式</target> <note /> </trans-unit> <trans-unit id="Prefer_object_initializer"> <source>Prefer object initializer</source> <target state="translated">偏好物件初始設定式</target> <note /> </trans-unit> <trans-unit id="Expression_preferences_colon"> <source>Expression preferences:</source> <target state="translated">運算式喜好設定:</target> <note /> </trans-unit> <trans-unit id="Block_Structure_Guides"> <source>Block Structure Guides</source> <target state="translated">區塊結構輔助線</target> <note /> </trans-unit> <trans-unit id="Outlining"> <source>Outlining</source> <target state="translated">大綱</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_code_level_constructs"> <source>Show guides for code level constructs</source> <target state="translated">顯示程式碼層級建構的指南</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_comments_and_preprocessor_regions"> <source>Show guides for comments and preprocessor regions</source> <target state="translated">顯示註解及前置處理器區域的指南</target> <note /> </trans-unit> <trans-unit id="Show_guides_for_declaration_level_constructs"> <source>Show guides for declaration level constructs</source> <target state="translated">顯示宣告層級建構的指南</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_code_level_constructs"> <source>Show outlining for code level constructs</source> <target state="translated">顯示程式碼層級建構的大綱</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_comments_and_preprocessor_regions"> <source>Show outlining for comments and preprocessor regions</source> <target state="translated">顯示註解及前置處理器區域的大綱</target> <note /> </trans-unit> <trans-unit id="Show_outlining_for_declaration_level_constructs"> <source>Show outlining for declaration level constructs</source> <target state="translated">顯示宣告層級建構的大綱</target> <note /> </trans-unit> <trans-unit id="Variable_preferences_colon"> <source>Variable preferences:</source> <target state="translated">變數喜好設定:</target> <note /> </trans-unit> <trans-unit id="Prefer_inlined_variable_declaration"> <source>Prefer inlined variable declaration</source> <target state="translated">偏好內置變數宣告</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_methods"> <source>Use expression body for methods</source> <target state="translated">使用方法的運算式主體</target> <note /> </trans-unit> <trans-unit id="Code_block_preferences_colon"> <source>Code block preferences:</source> <target state="translated">程式碼區塊喜好設定:</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_accessors"> <source>Use expression body for accessors</source> <target state="translated">使用存取子的運算式主體</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_constructors"> <source>Use expression body for constructors</source> <target state="translated">使用建構函式的運算式主體</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_indexers"> <source>Use expression body for indexers</source> <target state="translated">使用索引子的運算式主體</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_operators"> <source>Use expression body for operators</source> <target state="translated">使用運算子的運算式主體</target> <note /> </trans-unit> <trans-unit id="Use_expression_body_for_properties"> <source>Use expression body for properties</source> <target state="translated">使用屬性的運算式主體</target> <note /> </trans-unit> <trans-unit id="Some_naming_rules_are_incomplete_Please_complete_or_remove_them"> <source>Some naming rules are incomplete. Please complete or remove them.</source> <target state="translated">部分命名規則不完整。請予以完成或移除。</target> <note /> </trans-unit> <trans-unit id="Manage_specifications"> <source>Manage specifications</source> <target state="translated">管理規格</target> <note /> </trans-unit> <trans-unit id="Reorder"> <source>Reorder</source> <target state="translated">重新排序</target> <note /> </trans-unit> <trans-unit id="Severity"> <source>Severity</source> <target state="translated">嚴重性</target> <note /> </trans-unit> <trans-unit id="Specification"> <source>Specification</source> <target state="translated">規格</target> <note /> </trans-unit> <trans-unit id="Required_Style"> <source>Required Style</source> <target state="translated">必要樣式</target> <note /> </trans-unit> <trans-unit id="This_item_cannot_be_deleted_because_it_is_used_by_an_existing_Naming_Rule"> <source>This item cannot be deleted because it is used by an existing Naming Rule.</source> <target state="translated">由於現有命名規則正在使用此項目,因此無法加以刪除。</target> <note /> </trans-unit> <trans-unit id="Prefer_collection_initializer"> <source>Prefer collection initializer</source> <target state="translated">偏好集合初始設定式</target> <note /> </trans-unit> <trans-unit id="Prefer_coalesce_expression"> <source>Prefer coalesce expression</source> <target state="translated">偏好聯合運算式</target> <note /> </trans-unit> <trans-unit id="Collapse_regions_when_collapsing_to_definitions"> <source>Collapse #regions when collapsing to definitions</source> <target state="translated">摺疊至定義時摺疊 #regions</target> <note /> </trans-unit> <trans-unit id="Prefer_null_propagation"> <source>Prefer null propagation</source> <target state="translated">偏好 null 傳播</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_tuple_name"> <source>Prefer explicit tuple name</source> <target state="translated">建議使用明確的元組名稱</target> <note /> </trans-unit> <trans-unit id="Description"> <source>Description</source> <target state="translated">描述</target> <note /> </trans-unit> <trans-unit id="Preference"> <source>Preference</source> <target state="translated">喜好設定</target> <note /> </trans-unit> <trans-unit id="Implement_Interface_or_Abstract_Class"> <source>Implement Interface or Abstract Class</source> <target state="translated">實作介面或抽象類別</target> <note /> </trans-unit> <trans-unit id="For_a_given_symbol_only_the_topmost_rule_with_a_matching_Specification_will_be_applied_Violation_of_that_rules_Required_Style_will_be_reported_at_the_chosen_Severity_level"> <source>For a given symbol, only the topmost rule with a matching 'Specification' will be applied. Violation of that rule's 'Required Style' will be reported at the chosen 'Severity' level.</source> <target state="translated">若為給定的符號,則只會套用最上層的規則與相符的 [規格]。若違反該規則的 [必要樣式],將於所選 [嚴重性] 層級回報。</target> <note /> </trans-unit> <trans-unit id="at_the_end"> <source>at the end</source> <target state="translated">結尾處</target> <note /> </trans-unit> <trans-unit id="When_inserting_properties_events_and_methods_place_them"> <source>When inserting properties, events and methods, place them:</source> <target state="translated">插入屬性、事件與方法時,放置方式為:</target> <note /> </trans-unit> <trans-unit id="with_other_members_of_the_same_kind"> <source>with other members of the same kind</source> <target state="translated">與其他相同種類的成員</target> <note /> </trans-unit> <trans-unit id="Prefer_braces"> <source>Prefer braces</source> <target state="translated">建議使用括號</target> <note /> </trans-unit> <trans-unit id="Over_colon"> <source>Over:</source> <target state="translated">勝於:</target> <note /> </trans-unit> <trans-unit id="Prefer_colon"> <source>Prefer:</source> <target state="translated">建議使用:</target> <note /> </trans-unit> <trans-unit id="or"> <source>or</source> <target state="translated">或</target> <note /> </trans-unit> <trans-unit id="built_in_types"> <source>built-in types</source> <target state="translated">內建類型</target> <note /> </trans-unit> <trans-unit id="everywhere_else"> <source>everywhere else</source> <target state="translated">其他各處</target> <note /> </trans-unit> <trans-unit id="type_is_apparent_from_assignment_expression"> <source>type is apparent from assignment expression</source> <target state="translated">類型為來自指派運算式的實際型態</target> <note /> </trans-unit> <trans-unit id="Move_down"> <source>Move down</source> <target state="translated">下移</target> <note /> </trans-unit> <trans-unit id="Move_up"> <source>Move up</source> <target state="translated">上移</target> <note /> </trans-unit> <trans-unit id="Remove"> <source>Remove</source> <target state="translated">移除</target> <note /> </trans-unit> <trans-unit id="Pick_members"> <source>Pick members</source> <target state="translated">選取成員</target> <note /> </trans-unit> <trans-unit id="Unfortunately_a_process_used_by_Visual_Studio_has_encountered_an_unrecoverable_error_We_recommend_saving_your_work_and_then_closing_and_restarting_Visual_Studio"> <source>Unfortunately, a process used by Visual Studio has encountered an unrecoverable error. We recommend saving your work, and then closing and restarting Visual Studio.</source> <target state="translated">很抱歉,Visual Studio 所使用的處理序遇到無法復原的錯誤。建議您儲存工作進度,然後關閉並重新啟動 Visual Studio。</target> <note /> </trans-unit> <trans-unit id="Add_a_symbol_specification"> <source>Add a symbol specification</source> <target state="translated">新增符號規格</target> <note /> </trans-unit> <trans-unit id="Remove_symbol_specification"> <source>Remove symbol specification</source> <target state="translated">移除符號規格</target> <note /> </trans-unit> <trans-unit id="Add_item"> <source>Add item</source> <target state="translated">新增項目</target> <note /> </trans-unit> <trans-unit id="Edit_item"> <source>Edit item</source> <target state="translated">編輯項目</target> <note /> </trans-unit> <trans-unit id="Remove_item"> <source>Remove item</source> <target state="translated">移除項目</target> <note /> </trans-unit> <trans-unit id="Add_a_naming_rule"> <source>Add a naming rule</source> <target state="translated">新增命名規則</target> <note /> </trans-unit> <trans-unit id="Remove_naming_rule"> <source>Remove naming rule</source> <target state="translated">移除命名規則</target> <note /> </trans-unit> <trans-unit id="VisualStudioWorkspace_TryApplyChanges_cannot_be_called_from_a_background_thread"> <source>VisualStudioWorkspace.TryApplyChanges cannot be called from a background thread.</source> <target state="translated">無法從背景執行緒呼叫 VisualStudioWorkspace.TryApplyChanges。</target> <note /> </trans-unit> <trans-unit id="prefer_throwing_properties"> <source>prefer throwing properties</source> <target state="translated">建議使用擲回屬性</target> <note /> </trans-unit> <trans-unit id="When_generating_properties"> <source>When generating properties:</source> <target state="translated">產生屬性時:</target> <note /> </trans-unit> <trans-unit id="Options"> <source>Options</source> <target state="translated">選項</target> <note /> </trans-unit> <trans-unit id="Never_show_this_again"> <source>Never show this again</source> <target state="translated">永不再顯示</target> <note /> </trans-unit> <trans-unit id="Prefer_simple_default_expression"> <source>Prefer simple 'default' expression</source> <target state="translated">選擇精簡的 'default' 運算式</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_tuple_names"> <source>Prefer inferred tuple element names</source> <target state="translated">優先使用推斷的元組元素名稱</target> <note /> </trans-unit> <trans-unit id="Prefer_inferred_anonymous_type_member_names"> <source>Prefer inferred anonymous type member names</source> <target state="translated">優先使用推斷的匿名型別成員名稱</target> <note /> </trans-unit> <trans-unit id="Preview_pane"> <source>Preview pane</source> <target state="translated">預覽窗格</target> <note /> </trans-unit> <trans-unit id="Analysis"> <source>Analysis</source> <target state="translated">分析</target> <note /> </trans-unit> <trans-unit id="Fade_out_unreachable_code"> <source>Fade out unreachable code</source> <target state="translated">淡出執行不到的程式碼</target> <note /> </trans-unit> <trans-unit id="Fading"> <source>Fading</source> <target state="translated">淡出</target> <note /> </trans-unit> <trans-unit id="Prefer_local_function_over_anonymous_function"> <source>Prefer local function over anonymous function</source> <target state="translated">使用區域函式優先於匿名函式</target> <note /> </trans-unit> <trans-unit id="Prefer_deconstructed_variable_declaration"> <source>Prefer deconstructed variable declaration</source> <target state="translated">偏好解構的變數宣告</target> <note /> </trans-unit> <trans-unit id="External_reference_found"> <source>External reference found</source> <target state="translated">找到外部參考</target> <note /> </trans-unit> <trans-unit id="No_references_found_to_0"> <source>No references found to '{0}'</source> <target state="translated">找不到 '{0}' 的參考</target> <note /> </trans-unit> <trans-unit id="Search_found_no_results"> <source>Search found no results</source> <target state="translated">搜尋找不到任何結果</target> <note /> </trans-unit> <trans-unit id="analyzer_Prefer_auto_properties"> <source>Prefer auto properties</source> <target state="translated">建議使用自動屬性</target> <note /> </trans-unit> <trans-unit id="codegen_prefer_auto_properties"> <source>prefer auto properties</source> <target state="translated">建議使用自動屬性</target> <note /> </trans-unit> <trans-unit id="ModuleHasBeenUnloaded"> <source>Module has been unloaded.</source> <target state="translated">模組已卸載。</target> <note /> </trans-unit> <trans-unit id="Enable_navigation_to_decompiled_sources"> <source>Enable navigation to decompiled sources</source> <target state="needs-review-translation">啟用反編譯來源的瀏覽 (實驗性)</target> <note /> </trans-unit> <trans-unit id="Code_style_header_use_editor_config"> <source>Your .editorconfig file might override the local settings configured on this page which only apply to your machine. To configure these settings to travel with your solution use EditorConfig files. More info</source> <target state="translated">您的 .editorconfig 檔案可能會覆寫於此頁面上設定的本機設定 (僅適用於您的電腦)。如果要進行設定以讓這些設定隨附於您的解決方案,請使用 EditorConfig 檔案。詳細資訊</target> <note /> </trans-unit> <trans-unit id="Sync_Class_View"> <source>Sync Class View</source> <target state="translated">同步類別檢視</target> <note /> </trans-unit> <trans-unit id="Analyzing_0"> <source>Analyzing '{0}'</source> <target state="translated">正在分析 '{0}'</target> <note /> </trans-unit> <trans-unit id="Manage_naming_styles"> <source>Manage naming styles</source> <target state="translated">管理命名樣式</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_assignments"> <source>Prefer conditional expression over 'if' with assignments</source> <target state="translated">建議優先使用條件運算式 (優先於具指派的 'if')</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_expression_over_if_with_returns"> <source>Prefer conditional expression over 'if' with returns</source> <target state="translated">建議優先使用條件運算式 (優先於具傳回的 'if')</target> <note /> </trans-unit> </body> </file> </xliff>
1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/Compilers/CSharp/Portable/Compiler/MethodCompiler.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeGen; using Microsoft.CodeAnalysis.CSharp.Emit; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Debugging; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.PooledObjects; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp { internal sealed class MethodCompiler : CSharpSymbolVisitor<TypeCompilationState, object> { private readonly CSharpCompilation _compilation; private readonly bool _emittingPdb; private readonly bool _emitTestCoverageData; private readonly CancellationToken _cancellationToken; private readonly BindingDiagnosticBag _diagnostics; private readonly bool _hasDeclarationErrors; private readonly bool _emitMethodBodies; private readonly PEModuleBuilder _moduleBeingBuiltOpt; // Null if compiling for diagnostics private readonly Predicate<Symbol> _filterOpt; // If not null, limit analysis to specific symbols private readonly DebugDocumentProvider _debugDocumentProvider; private readonly SynthesizedEntryPointSymbol.AsyncForwardEntryPoint _entryPointOpt; // // MethodCompiler employs concurrency by following flattened fork/join pattern. // // For every item that we want to compile in parallel a new task is forked. // compileTaskQueue is used to track and observe all the tasks. // Once compileTaskQueue is empty, we know that there are no more tasks (and no more can be created) // and that means we are done compiling. WaitForWorkers ensures this condition. // // Note that while tasks may fork more tasks (nested types, lambdas, whatever else that may introduce more types), // we do not want any child/parent relationship between spawned tasks and their creators. // Creator has no real dependencies on the completion of its children and should finish and release any resources // as soon as it can regardless of the tasks it may have spawned. // // Stack is used so that the wait would observe the most recently added task and have // more chances to do inlined execution. private ConcurrentStack<Task> _compilerTasks; // This field tracks whether any bound method body had hasErrors set or whether any constant field had a bad value. // We track it so that we can abort emission in the event that an error occurs without a corresponding diagnostic // (e.g. if this module depends on a bad type or constant from another module). // CONSIDER: instead of storing a flag, we could track the first member symbol with an error (to improve the diagnostic). // NOTE: once the flag is set to true, it should never go back to false!!! // Do not use this as a short-circuiting for stages that might produce diagnostics. // That would make diagnostics to depend on the random order in which methods are compiled. private bool _globalHasErrors; private void SetGlobalErrorIfTrue(bool arg) { //NOTE: this is not a volatile write // for correctness we need only single threaded consistency. // Within a single task - if we have got an error it may not be safe to continue with some lowerings. // It is ok if other tasks will see the change after some delay or does not observe at all. // Such races are unavoidable and will just result in performing some work that is safe to do // but may no longer be needed. // The final Join of compiling tasks cannot happen without interlocked operations and that // will ensure that any write of the flag is globally visible. if (arg) { _globalHasErrors = true; } } // Internal for testing only. internal MethodCompiler(CSharpCompilation compilation, PEModuleBuilder moduleBeingBuiltOpt, bool emittingPdb, bool emitTestCoverageData, bool hasDeclarationErrors, bool emitMethodBodies, BindingDiagnosticBag diagnostics, Predicate<Symbol> filterOpt, SynthesizedEntryPointSymbol.AsyncForwardEntryPoint entryPointOpt, CancellationToken cancellationToken) { Debug.Assert(compilation != null); Debug.Assert(diagnostics != null); Debug.Assert(diagnostics.DiagnosticBag != null); Debug.Assert(diagnostics.DependenciesBag == null || diagnostics.DependenciesBag is ConcurrentSet<AssemblySymbol>); _compilation = compilation; _moduleBeingBuiltOpt = moduleBeingBuiltOpt; _emittingPdb = emittingPdb; _cancellationToken = cancellationToken; _diagnostics = diagnostics; _filterOpt = filterOpt; _entryPointOpt = entryPointOpt; _hasDeclarationErrors = hasDeclarationErrors; SetGlobalErrorIfTrue(hasDeclarationErrors); if (emittingPdb || emitTestCoverageData) { _debugDocumentProvider = (path, basePath) => moduleBeingBuiltOpt.DebugDocumentsBuilder.GetOrAddDebugDocument(path, basePath, CreateDebugDocumentForFile); } _emitTestCoverageData = emitTestCoverageData; _emitMethodBodies = emitMethodBodies; } public static void CompileMethodBodies( CSharpCompilation compilation, PEModuleBuilder moduleBeingBuiltOpt, bool emittingPdb, bool emitTestCoverageData, bool hasDeclarationErrors, bool emitMethodBodies, BindingDiagnosticBag diagnostics, Predicate<Symbol> filterOpt, CancellationToken cancellationToken) { Debug.Assert(compilation != null); Debug.Assert(diagnostics != null); Debug.Assert(diagnostics.DiagnosticBag != null); if (compilation.PreviousSubmission != null) { // In case there is a previous submission, we should ensure // it has already created anonymous type/delegates templates // NOTE: if there are any errors, we will pick up what was created anyway compilation.PreviousSubmission.EnsureAnonymousTypeTemplates(cancellationToken); // TODO: revise to use a loop instead of a recursion } MethodSymbol entryPoint = null; if (filterOpt is null) { entryPoint = GetEntryPoint(compilation, moduleBeingBuiltOpt, hasDeclarationErrors, emitMethodBodies, diagnostics, cancellationToken); } var methodCompiler = new MethodCompiler( compilation, moduleBeingBuiltOpt, emittingPdb, emitTestCoverageData, hasDeclarationErrors, emitMethodBodies, diagnostics, filterOpt, entryPoint as SynthesizedEntryPointSymbol.AsyncForwardEntryPoint, cancellationToken); if (compilation.Options.ConcurrentBuild) { methodCompiler._compilerTasks = new ConcurrentStack<Task>(); } // directly traverse global namespace (no point to defer this to async) methodCompiler.CompileNamespace(compilation.SourceModule.GlobalNamespace); methodCompiler.WaitForWorkers(); // compile additional and anonymous types if any if (moduleBeingBuiltOpt != null) { var additionalTypes = moduleBeingBuiltOpt.GetAdditionalTopLevelTypes(); methodCompiler.CompileSynthesizedMethods(additionalTypes, diagnostics); var embeddedTypes = moduleBeingBuiltOpt.GetEmbeddedTypes(diagnostics); methodCompiler.CompileSynthesizedMethods(embeddedTypes, diagnostics); if (emitMethodBodies) { // By this time we have processed all types reachable from module's global namespace compilation.AnonymousTypeManager.AssignTemplatesNamesAndCompile(methodCompiler, moduleBeingBuiltOpt, diagnostics); } methodCompiler.WaitForWorkers(); var privateImplClass = moduleBeingBuiltOpt.PrivateImplClass; if (privateImplClass != null) { // all threads that were adding methods must be finished now, we can freeze the class: privateImplClass.Freeze(); methodCompiler.CompileSynthesizedMethods(privateImplClass, diagnostics); } } // If we are trying to emit and there's an error without a corresponding diagnostic (e.g. because // we depend on an invalid type or constant from another module), then explicitly add a diagnostic. // This diagnostic is not very helpful to the user, but it will prevent us from emitting an invalid // module or crashing. if (moduleBeingBuiltOpt != null && (methodCompiler._globalHasErrors || moduleBeingBuiltOpt.SourceModule.HasBadAttributes) && !diagnostics.HasAnyErrors() && !hasDeclarationErrors) { var messageResourceName = methodCompiler._globalHasErrors ? nameof(CodeAnalysisResources.UnableToDetermineSpecificCauseOfFailure) : nameof(CodeAnalysisResources.ModuleHasInvalidAttributes); diagnostics.Add(ErrorCode.ERR_ModuleEmitFailure, NoLocation.Singleton, ((Cci.INamedEntity)moduleBeingBuiltOpt).Name, new LocalizableResourceString(messageResourceName, CodeAnalysisResources.ResourceManager, typeof(CodeAnalysisResources))); } diagnostics.AddRange(compilation.AdditionalCodegenWarnings); // we can get unused field warnings only if compiling whole compilation. if (filterOpt == null) { WarnUnusedFields(compilation, diagnostics, cancellationToken); if (moduleBeingBuiltOpt != null && entryPoint != null && compilation.Options.OutputKind.IsApplication()) { moduleBeingBuiltOpt.SetPEEntryPoint(entryPoint, diagnostics.DiagnosticBag); } } } // Returns the MethodSymbol for the assembly entrypoint. If the user has a Task returning main, // this function returns the synthesized Main MethodSymbol. private static MethodSymbol GetEntryPoint(CSharpCompilation compilation, PEModuleBuilder moduleBeingBuilt, bool hasDeclarationErrors, bool emitMethodBodies, BindingDiagnosticBag diagnostics, CancellationToken cancellationToken) { Debug.Assert(diagnostics.DiagnosticBag != null); var entryPointAndDiagnostics = compilation.GetEntryPointAndDiagnostics(cancellationToken); Debug.Assert(!entryPointAndDiagnostics.Diagnostics.Diagnostics.IsDefault); diagnostics.AddRange(entryPointAndDiagnostics.Diagnostics, allowMismatchInDependencyAccumulation: true); var entryPoint = entryPointAndDiagnostics.MethodSymbol; if ((object)entryPoint == null) { return null; } // entryPoint can be a SynthesizedEntryPointSymbol if a script is being compiled. SynthesizedEntryPointSymbol synthesizedEntryPoint = entryPoint as SynthesizedEntryPointSymbol; if ((object)synthesizedEntryPoint == null) { var returnType = entryPoint.ReturnType; if (returnType.IsGenericTaskType(compilation) || returnType.IsNonGenericTaskType(compilation)) { synthesizedEntryPoint = new SynthesizedEntryPointSymbol.AsyncForwardEntryPoint(compilation, entryPoint.ContainingType, entryPoint); entryPoint = synthesizedEntryPoint; if ((object)moduleBeingBuilt != null) { moduleBeingBuilt.AddSynthesizedDefinition(entryPoint.ContainingType, synthesizedEntryPoint.GetCciAdapter()); } } } if (((object)synthesizedEntryPoint != null) && (moduleBeingBuilt != null) && !hasDeclarationErrors && !diagnostics.HasAnyErrors()) { BoundStatement body = synthesizedEntryPoint.CreateBody(diagnostics); if (body.HasErrors || diagnostics.HasAnyErrors()) { return entryPoint; } var dynamicAnalysisSpans = ImmutableArray<SourceSpan>.Empty; VariableSlotAllocator lazyVariableSlotAllocator = null; var lambdaDebugInfoBuilder = ArrayBuilder<LambdaDebugInfo>.GetInstance(); var closureDebugInfoBuilder = ArrayBuilder<ClosureDebugInfo>.GetInstance(); StateMachineTypeSymbol stateMachineTypeOpt = null; const int methodOrdinal = -1; var loweredBody = LowerBodyOrInitializer( synthesizedEntryPoint, methodOrdinal, body, null, new TypeCompilationState(synthesizedEntryPoint.ContainingType, compilation, moduleBeingBuilt), false, null, ref dynamicAnalysisSpans, diagnostics, ref lazyVariableSlotAllocator, lambdaDebugInfoBuilder, closureDebugInfoBuilder, out stateMachineTypeOpt); Debug.Assert((object)lazyVariableSlotAllocator == null); Debug.Assert((object)stateMachineTypeOpt == null); Debug.Assert(dynamicAnalysisSpans.IsEmpty); Debug.Assert(lambdaDebugInfoBuilder.IsEmpty()); Debug.Assert(closureDebugInfoBuilder.IsEmpty()); lambdaDebugInfoBuilder.Free(); closureDebugInfoBuilder.Free(); if (emitMethodBodies) { var emittedBody = GenerateMethodBody( moduleBeingBuilt, synthesizedEntryPoint, methodOrdinal, loweredBody, ImmutableArray<LambdaDebugInfo>.Empty, ImmutableArray<ClosureDebugInfo>.Empty, stateMachineTypeOpt: null, variableSlotAllocatorOpt: null, diagnostics: diagnostics, debugDocumentProvider: null, importChainOpt: null, emittingPdb: false, emitTestCoverageData: false, dynamicAnalysisSpans: ImmutableArray<SourceSpan>.Empty, entryPointOpt: null); moduleBeingBuilt.SetMethodBody(synthesizedEntryPoint, emittedBody); } } return entryPoint; } private void WaitForWorkers() { var tasks = _compilerTasks; if (tasks == null) { return; } Task curTask; while (tasks.TryPop(out curTask)) { curTask.GetAwaiter().GetResult(); } } private static void WarnUnusedFields(CSharpCompilation compilation, BindingDiagnosticBag diagnostics, CancellationToken cancellationToken) { SourceAssemblySymbol assembly = (SourceAssemblySymbol)compilation.Assembly; diagnostics.AddRange(assembly.GetUnusedFieldWarnings(cancellationToken)); } public override object VisitNamespace(NamespaceSymbol symbol, TypeCompilationState arg) { if (!PassesFilter(_filterOpt, symbol)) { return null; } arg = null; // do not use compilation state of outer type. _cancellationToken.ThrowIfCancellationRequested(); if (_compilation.Options.ConcurrentBuild) { Task worker = CompileNamespaceAsAsync(symbol); _compilerTasks.Push(worker); } else { CompileNamespace(symbol); } return null; } private Task CompileNamespaceAsAsync(NamespaceSymbol symbol) { return Task.Run(UICultureUtilities.WithCurrentUICulture(() => { try { CompileNamespace(symbol); } catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e)) { throw ExceptionUtilities.Unreachable; } }), _cancellationToken); } private void CompileNamespace(NamespaceSymbol symbol) { foreach (var s in symbol.GetMembersUnordered()) { s.Accept(this, null); } } public override object VisitNamedType(NamedTypeSymbol symbol, TypeCompilationState arg) { if (!PassesFilter(_filterOpt, symbol)) { return null; } arg = null; // do not use compilation state of outer type. _cancellationToken.ThrowIfCancellationRequested(); if (_compilation.Options.ConcurrentBuild) { Task worker = CompileNamedTypeAsync(symbol); _compilerTasks.Push(worker); } else { CompileNamedType(symbol); } return null; } private Task CompileNamedTypeAsync(NamedTypeSymbol symbol) { return Task.Run(UICultureUtilities.WithCurrentUICulture(() => { try { CompileNamedType(symbol); } catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e)) { throw ExceptionUtilities.Unreachable; } }), _cancellationToken); } private void CompileNamedType(NamedTypeSymbol containingType) { var compilationState = new TypeCompilationState(containingType, _compilation, _moduleBeingBuiltOpt); _cancellationToken.ThrowIfCancellationRequested(); // Find the constructor of a script class. SynthesizedInstanceConstructor scriptCtor = null; SynthesizedInteractiveInitializerMethod scriptInitializer = null; SynthesizedEntryPointSymbol scriptEntryPoint = null; int scriptCtorOrdinal = -1; if (containingType.IsScriptClass) { // The field initializers of a script class could be arbitrary statements, // including blocks. Field initializers containing blocks need to // use a MethodBodySemanticModel to build up the appropriate tree of binders, and // MethodBodySemanticModel requires an "owning" method. That's why we're digging out // the constructor - it will own the field initializers. scriptCtor = containingType.GetScriptConstructor(); scriptInitializer = containingType.GetScriptInitializer(); scriptEntryPoint = containingType.GetScriptEntryPoint(); Debug.Assert((object)scriptCtor != null); Debug.Assert((object)scriptInitializer != null); } var synthesizedSubmissionFields = containingType.IsSubmissionClass ? new SynthesizedSubmissionFields(_compilation, containingType) : null; var processedStaticInitializers = new Binder.ProcessedFieldInitializers(); var processedInstanceInitializers = new Binder.ProcessedFieldInitializers(); var sourceTypeSymbol = containingType as SourceMemberContainerTypeSymbol; if ((object)sourceTypeSymbol != null) { _cancellationToken.ThrowIfCancellationRequested(); Binder.BindFieldInitializers(_compilation, scriptInitializer, sourceTypeSymbol.StaticInitializers, _diagnostics, ref processedStaticInitializers); _cancellationToken.ThrowIfCancellationRequested(); Binder.BindFieldInitializers(_compilation, scriptInitializer, sourceTypeSymbol.InstanceInitializers, _diagnostics, ref processedInstanceInitializers); if (compilationState.Emitting) { CompileSynthesizedExplicitImplementations(sourceTypeSymbol, compilationState); } } // Indicates if a static constructor is in the member, // so we can decide to synthesize a static constructor. bool hasStaticConstructor = false; var members = containingType.GetMembers(); for (int memberOrdinal = 0; memberOrdinal < members.Length; memberOrdinal++) { var member = members[memberOrdinal]; //When a filter is supplied, limit the compilation of members passing the filter. if (!PassesFilter(_filterOpt, member)) { continue; } switch (member.Kind) { case SymbolKind.NamedType: member.Accept(this, compilationState); break; case SymbolKind.Method: { MethodSymbol method = (MethodSymbol)member; if (method.IsScriptConstructor) { Debug.Assert(scriptCtorOrdinal == -1); Debug.Assert((object)scriptCtor == method); scriptCtorOrdinal = memberOrdinal; continue; } if ((object)method == scriptEntryPoint) { continue; } if (IsFieldLikeEventAccessor(method)) { continue; } if (method.IsPartialDefinition()) { method = method.PartialImplementationPart; if ((object)method == null) { continue; } } Binder.ProcessedFieldInitializers processedInitializers = (method.MethodKind == MethodKind.Constructor || method.IsScriptInitializer) ? processedInstanceInitializers : method.MethodKind == MethodKind.StaticConstructor ? processedStaticInitializers : default(Binder.ProcessedFieldInitializers); CompileMethod(method, memberOrdinal, ref processedInitializers, synthesizedSubmissionFields, compilationState); // Set a flag to indicate that a static constructor is created. if (method.MethodKind == MethodKind.StaticConstructor) { hasStaticConstructor = true; } break; } case SymbolKind.Property: { var sourceProperty = member as SourcePropertySymbolBase; if ((object)sourceProperty != null && sourceProperty.IsSealed && compilationState.Emitting) { CompileSynthesizedSealedAccessors(sourceProperty, compilationState); } break; } case SymbolKind.Event: { SourceEventSymbol eventSymbol = member as SourceEventSymbol; if ((object)eventSymbol != null && eventSymbol.HasAssociatedField && !eventSymbol.IsAbstract && compilationState.Emitting) { CompileFieldLikeEventAccessor(eventSymbol, isAddMethod: true); CompileFieldLikeEventAccessor(eventSymbol, isAddMethod: false); } break; } case SymbolKind.Field: { var fieldSymbol = (FieldSymbol)member; if (member is TupleErrorFieldSymbol) { break; } if (fieldSymbol.IsConst) { // We check specifically for constant fields with bad values because they never result // in bound nodes being inserted into method bodies (in which case, they would be covered // by the method-level check). ConstantValue constantValue = fieldSymbol.GetConstantValue(ConstantFieldsInProgress.Empty, earlyDecodingWellKnownAttributes: false); SetGlobalErrorIfTrue(constantValue == null || constantValue.IsBad); } if (fieldSymbol.IsFixedSizeBuffer && compilationState.Emitting) { // force the generation of implementation types for fixed-size buffers TypeSymbol discarded = fieldSymbol.FixedImplementationType(compilationState.ModuleBuilderOpt); } break; } } } Debug.Assert(containingType.IsScriptClass == (scriptCtorOrdinal >= 0)); // process additional anonymous type members if (AnonymousTypeManager.IsAnonymousTypeTemplate(containingType)) { var processedInitializers = default(Binder.ProcessedFieldInitializers); foreach (var method in AnonymousTypeManager.GetAnonymousTypeHiddenMethods(containingType)) { CompileMethod(method, -1, ref processedInitializers, synthesizedSubmissionFields, compilationState); } } // In the case there are field initializers but we haven't created an implicit static constructor (.cctor) for it, // (since we may not add .cctor implicitly created for decimals into the symbol table) // it is necessary for the compiler to generate the static constructor here if we are emitting. if (_moduleBeingBuiltOpt != null && !hasStaticConstructor && !processedStaticInitializers.BoundInitializers.IsDefaultOrEmpty) { Debug.Assert(processedStaticInitializers.BoundInitializers.All((init) => (init.Kind == BoundKind.FieldEqualsValue) && !((BoundFieldEqualsValue)init).Field.IsMetadataConstant)); MethodSymbol method = new SynthesizedStaticConstructor(sourceTypeSymbol); if (PassesFilter(_filterOpt, method)) { CompileMethod(method, -1, ref processedStaticInitializers, synthesizedSubmissionFields, compilationState); // If this method has been successfully built, we emit it. if (_moduleBeingBuiltOpt.GetMethodBody(method) != null) { _moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceTypeSymbol, method.GetCciAdapter()); } } } // If there is no explicit or implicit .cctor and no static initializers, then report // warnings for any static non-nullable fields. (If there is no .cctor, there // shouldn't be any initializers but for robustness, we check both.) if (!hasStaticConstructor && processedStaticInitializers.BoundInitializers.IsDefaultOrEmpty && _compilation.LanguageVersion >= MessageID.IDS_FeatureNullableReferenceTypes.RequiredVersion() && containingType is { IsImplicitlyDeclared: false, TypeKind: TypeKind.Class or TypeKind.Struct or TypeKind.Interface }) { NullableWalker.AnalyzeIfNeeded( this._compilation, new SynthesizedStaticConstructor(containingType), GetSynthesizedEmptyBody(containingType), _diagnostics.DiagnosticBag, useConstructorExitWarnings: true, initialNullableState: null, getFinalNullableState: false, finalNullableState: out _); } // compile submission constructor last so that synthesized submission fields are collected from all script methods: if (scriptCtor != null && compilationState.Emitting) { Debug.Assert(scriptCtorOrdinal >= 0); var processedInitializers = new Binder.ProcessedFieldInitializers() { BoundInitializers = ImmutableArray<BoundInitializer>.Empty }; CompileMethod(scriptCtor, scriptCtorOrdinal, ref processedInitializers, synthesizedSubmissionFields, compilationState); if (synthesizedSubmissionFields != null) { synthesizedSubmissionFields.AddToType(containingType, compilationState.ModuleBuilderOpt); } } // Emit synthesized methods produced during lowering if any if (_moduleBeingBuiltOpt != null) { CompileSynthesizedMethods(compilationState); } compilationState.Free(); } private void CompileSynthesizedMethods(PrivateImplementationDetails privateImplClass, BindingDiagnosticBag diagnostics) { Debug.Assert(_moduleBeingBuiltOpt != null); var compilationState = new TypeCompilationState(null, _compilation, _moduleBeingBuiltOpt); foreach (Cci.IMethodDefinition definition in privateImplClass.GetMethods(new EmitContext(_moduleBeingBuiltOpt, null, diagnostics.DiagnosticBag, metadataOnly: false, includePrivateMembers: true))) { var method = (MethodSymbol)definition.GetInternalSymbol(); Debug.Assert(method.SynthesizesLoweredBoundBody); method.GenerateMethodBody(compilationState, diagnostics); } CompileSynthesizedMethods(compilationState); compilationState.Free(); } private void CompileSynthesizedMethods(ImmutableArray<NamedTypeSymbol> additionalTypes, BindingDiagnosticBag diagnostics) { Debug.Assert(diagnostics.DiagnosticBag != null); foreach (var additionalType in additionalTypes) { var compilationState = new TypeCompilationState(additionalType, _compilation, _moduleBeingBuiltOpt); foreach (var method in additionalType.GetMethodsToEmit()) { method.GenerateMethodBody(compilationState, diagnostics); } if (!diagnostics.HasAnyErrors()) { CompileSynthesizedMethods(compilationState); } compilationState.Free(); } } private void CompileSynthesizedMethods(TypeCompilationState compilationState) { Debug.Assert(_moduleBeingBuiltOpt != null); Debug.Assert(compilationState.ModuleBuilderOpt == _moduleBeingBuiltOpt); var synthesizedMethods = compilationState.SynthesizedMethods; if (synthesizedMethods == null) { return; } var oldImportChain = compilationState.CurrentImportChain; try { foreach (var methodWithBody in synthesizedMethods) { var importChain = methodWithBody.ImportChain; compilationState.CurrentImportChain = importChain; // We make sure that an asynchronous mutation to the diagnostic bag does not // confuse the method body generator by making a fresh bag and then loading // any diagnostics emitted into it back into the main diagnostic bag. var diagnosticsThisMethod = BindingDiagnosticBag.GetInstance(_diagnostics); var method = methodWithBody.Method; var lambda = method as SynthesizedClosureMethod; var variableSlotAllocatorOpt = ((object)lambda != null) ? _moduleBeingBuiltOpt.TryCreateVariableSlotAllocator(lambda, lambda.TopLevelMethod, diagnosticsThisMethod.DiagnosticBag) : _moduleBeingBuiltOpt.TryCreateVariableSlotAllocator(method, method, diagnosticsThisMethod.DiagnosticBag); // Synthesized methods have no ordinal stored in custom debug information (only user-defined methods have ordinals). // In case of async lambdas, which synthesize a state machine type during the following rewrite, the containing method has already been uniquely named, // so there is no need to produce a unique method ordinal for the corresponding state machine type, whose name includes the (unique) containing method name. const int methodOrdinal = -1; MethodBody emittedBody = null; try { // Local functions can be iterators as well as be async (lambdas can only be async), so we need to lower both iterators and async IteratorStateMachine iteratorStateMachine; BoundStatement loweredBody = IteratorRewriter.Rewrite(methodWithBody.Body, method, methodOrdinal, variableSlotAllocatorOpt, compilationState, diagnosticsThisMethod, out iteratorStateMachine); StateMachineTypeSymbol stateMachine = iteratorStateMachine; if (!loweredBody.HasErrors) { AsyncStateMachine asyncStateMachine; loweredBody = AsyncRewriter.Rewrite(loweredBody, method, methodOrdinal, variableSlotAllocatorOpt, compilationState, diagnosticsThisMethod, out asyncStateMachine); Debug.Assert((object)iteratorStateMachine == null || (object)asyncStateMachine == null); stateMachine = stateMachine ?? asyncStateMachine; } if (_emitMethodBodies && !diagnosticsThisMethod.HasAnyErrors() && !_globalHasErrors) { emittedBody = GenerateMethodBody( _moduleBeingBuiltOpt, method, methodOrdinal, loweredBody, ImmutableArray<LambdaDebugInfo>.Empty, ImmutableArray<ClosureDebugInfo>.Empty, stateMachine, variableSlotAllocatorOpt, diagnosticsThisMethod, _debugDocumentProvider, method.GenerateDebugInfo ? importChain : null, emittingPdb: _emittingPdb, emitTestCoverageData: _emitTestCoverageData, dynamicAnalysisSpans: ImmutableArray<SourceSpan>.Empty, _entryPointOpt); } } catch (BoundTreeVisitor.CancelledByStackGuardException ex) { ex.AddAnError(_diagnostics); } _diagnostics.AddRange(diagnosticsThisMethod); diagnosticsThisMethod.Free(); if (_emitMethodBodies) { // error while generating IL if (emittedBody == null) { break; } _moduleBeingBuiltOpt.SetMethodBody(method, emittedBody); } else { Debug.Assert(emittedBody is null); } } } finally { compilationState.CurrentImportChain = oldImportChain; } } private static bool IsFieldLikeEventAccessor(MethodSymbol method) { Symbol associatedPropertyOrEvent = method.AssociatedSymbol; return (object)associatedPropertyOrEvent != null && associatedPropertyOrEvent.Kind == SymbolKind.Event && ((EventSymbol)associatedPropertyOrEvent).HasAssociatedField; } /// <summary> /// In some circumstances (e.g. implicit implementation of an interface method by a non-virtual method in a /// base type from another assembly) it is necessary for the compiler to generate explicit implementations for /// some interface methods. They don't go in the symbol table, but if we are emitting, then we should /// generate code for them. /// </summary> private void CompileSynthesizedExplicitImplementations(SourceMemberContainerTypeSymbol sourceTypeSymbol, TypeCompilationState compilationState) { // we are not generating any observable diagnostics here so it is ok to short-circuit on global errors. if (!_globalHasErrors) { var discardedDiagnostics = BindingDiagnosticBag.GetInstance(_diagnostics); foreach (var synthesizedExplicitImpl in sourceTypeSymbol.GetSynthesizedExplicitImplementations(_cancellationToken).ForwardingMethods) { Debug.Assert(synthesizedExplicitImpl.SynthesizesLoweredBoundBody); synthesizedExplicitImpl.GenerateMethodBody(compilationState, discardedDiagnostics); Debug.Assert(!discardedDiagnostics.HasAnyErrors()); discardedDiagnostics.DiagnosticBag.Clear(); _moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceTypeSymbol, synthesizedExplicitImpl.GetCciAdapter()); } _diagnostics.AddRangeAndFree(discardedDiagnostics); } } private void CompileSynthesizedSealedAccessors(SourcePropertySymbolBase sourceProperty, TypeCompilationState compilationState) { SynthesizedSealedPropertyAccessor synthesizedAccessor = sourceProperty.SynthesizedSealedAccessorOpt; // we are not generating any observable diagnostics here so it is ok to short-circuit on global errors. if ((object)synthesizedAccessor != null && !_globalHasErrors) { Debug.Assert(synthesizedAccessor.SynthesizesLoweredBoundBody); var discardedDiagnostics = BindingDiagnosticBag.GetInstance(_diagnostics); synthesizedAccessor.GenerateMethodBody(compilationState, discardedDiagnostics); Debug.Assert(!discardedDiagnostics.HasAnyErrors()); _diagnostics.AddDependencies(discardedDiagnostics); discardedDiagnostics.Free(); _moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter()); } } private void CompileFieldLikeEventAccessor(SourceEventSymbol eventSymbol, bool isAddMethod) { MethodSymbol accessor = isAddMethod ? eventSymbol.AddMethod : eventSymbol.RemoveMethod; var diagnosticsThisMethod = BindingDiagnosticBag.GetInstance(_diagnostics); try { BoundBlock boundBody = MethodBodySynthesizer.ConstructFieldLikeEventAccessorBody(eventSymbol, isAddMethod, _compilation, diagnosticsThisMethod); var hasErrors = diagnosticsThisMethod.HasAnyErrors(); SetGlobalErrorIfTrue(hasErrors); // we cannot rely on GlobalHasErrors since that can be changed concurrently by other methods compiling // we however do not want to continue with generating method body if we have errors in this particular method - generating may crash // or if had declaration errors - we will fail anyways, but if some types are bad enough, generating may produce duplicate errors about that. if (!hasErrors && !_hasDeclarationErrors && _emitMethodBodies) { const int accessorOrdinal = -1; MethodBody emittedBody = GenerateMethodBody( _moduleBeingBuiltOpt, accessor, accessorOrdinal, boundBody, ImmutableArray<LambdaDebugInfo>.Empty, ImmutableArray<ClosureDebugInfo>.Empty, stateMachineTypeOpt: null, variableSlotAllocatorOpt: null, diagnostics: diagnosticsThisMethod, debugDocumentProvider: _debugDocumentProvider, importChainOpt: null, emittingPdb: false, emitTestCoverageData: _emitTestCoverageData, dynamicAnalysisSpans: ImmutableArray<SourceSpan>.Empty, entryPointOpt: null); _moduleBeingBuiltOpt.SetMethodBody(accessor, emittedBody); // Definition is already in the symbol table, so don't call moduleBeingBuilt.AddCompilerGeneratedDefinition } } finally { _diagnostics.AddRange(diagnosticsThisMethod); diagnosticsThisMethod.Free(); } } public override object VisitMethod(MethodSymbol symbol, TypeCompilationState arg) { throw ExceptionUtilities.Unreachable; } public override object VisitProperty(PropertySymbol symbol, TypeCompilationState argument) { throw ExceptionUtilities.Unreachable; } public override object VisitEvent(EventSymbol symbol, TypeCompilationState argument) { throw ExceptionUtilities.Unreachable; } public override object VisitField(FieldSymbol symbol, TypeCompilationState argument) { throw ExceptionUtilities.Unreachable; } private void CompileMethod( MethodSymbol methodSymbol, int methodOrdinal, ref Binder.ProcessedFieldInitializers processedInitializers, SynthesizedSubmissionFields previousSubmissionFields, TypeCompilationState compilationState) { _cancellationToken.ThrowIfCancellationRequested(); SourceMemberMethodSymbol sourceMethod = methodSymbol as SourceMemberMethodSymbol; if (methodSymbol.IsAbstract || methodSymbol.ContainingType?.IsDelegateType() == true) { if ((object)sourceMethod != null) { bool diagsWritten; sourceMethod.SetDiagnostics(ImmutableArray<Diagnostic>.Empty, out diagsWritten); if (diagsWritten && !methodSymbol.IsImplicitlyDeclared && _compilation.EventQueue != null) { _compilation.SymbolDeclaredEvent(methodSymbol); } } return; } // get cached diagnostics if not building and we have 'em if (_moduleBeingBuiltOpt == null && (object)sourceMethod != null) { var cachedDiagnostics = sourceMethod.Diagnostics; if (!cachedDiagnostics.IsDefault) { _diagnostics.AddRange(cachedDiagnostics); return; } } ImportChain oldImportChain = compilationState.CurrentImportChain; // In order to avoid generating code for methods with errors, we create a diagnostic bag just for this method. var diagsForCurrentMethod = BindingDiagnosticBag.GetInstance(_diagnostics); try { // if synthesized method returns its body in lowered form if (methodSymbol.SynthesizesLoweredBoundBody) { if (_moduleBeingBuiltOpt != null) { methodSymbol.GenerateMethodBody(compilationState, diagsForCurrentMethod); _diagnostics.AddRange(diagsForCurrentMethod); } return; } // no need to emit the default ctor, we are not emitting those if (methodSymbol.IsDefaultValueTypeConstructor(requireZeroInit: true)) { return; } bool includeNonEmptyInitializersInBody = false; BoundBlock body; bool originalBodyNested = false; // initializers that have been analyzed but not yet lowered. BoundStatementList analyzedInitializers = null; MethodBodySemanticModel.InitialState forSemanticModel = default; ImportChain importChain = null; var hasTrailingExpression = false; if (methodSymbol.IsScriptConstructor) { Debug.Assert(methodSymbol.IsImplicitlyDeclared); body = new BoundBlock(methodSymbol.GetNonNullSyntaxNode(), ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty) { WasCompilerGenerated = true }; } else if (methodSymbol.IsScriptInitializer) { Debug.Assert(methodSymbol.IsImplicitlyDeclared); // rewrite top-level statements and script variable declarations to a list of statements and assignments, respectively: var initializerStatements = InitializerRewriter.RewriteScriptInitializer(processedInitializers.BoundInitializers, (SynthesizedInteractiveInitializerMethod)methodSymbol, out hasTrailingExpression); // the lowered script initializers should not be treated as initializers anymore but as a method body: body = BoundBlock.SynthesizedNoLocals(initializerStatements.Syntax, initializerStatements.Statements); NullableWalker.AnalyzeIfNeeded( _compilation, methodSymbol, initializerStatements, diagsForCurrentMethod.DiagnosticBag, useConstructorExitWarnings: false, initialNullableState: null, getFinalNullableState: true, out processedInitializers.AfterInitializersState); var unusedDiagnostics = DiagnosticBag.GetInstance(); DefiniteAssignmentPass.Analyze(_compilation, methodSymbol, initializerStatements, unusedDiagnostics, requireOutParamsAssigned: false); DiagnosticsPass.IssueDiagnostics(_compilation, initializerStatements, BindingDiagnosticBag.Discarded, methodSymbol); unusedDiagnostics.Free(); } else { var includeInitializersInBody = methodSymbol.IncludeFieldInitializersInBody(); // Do not emit initializers if we are invoking another constructor of this class. includeNonEmptyInitializersInBody = includeInitializersInBody && !processedInitializers.BoundInitializers.IsDefaultOrEmpty; if (includeNonEmptyInitializersInBody && processedInitializers.LoweredInitializers == null) { analyzedInitializers = InitializerRewriter.RewriteConstructor(processedInitializers.BoundInitializers, methodSymbol); processedInitializers.HasErrors = processedInitializers.HasErrors || analyzedInitializers.HasAnyErrors; } if (includeInitializersInBody && processedInitializers.AfterInitializersState is null) { NullableWalker.AnalyzeIfNeeded( _compilation, methodSymbol, // we analyze to produce an AfterInitializersState even if there are no initializers // because it conveniently allows us to capture all the 'default' states for applicable members analyzedInitializers ?? GetSynthesizedEmptyBody(methodSymbol), diagsForCurrentMethod.DiagnosticBag, useConstructorExitWarnings: false, initialNullableState: null, getFinalNullableState: true, out processedInitializers.AfterInitializersState); } body = BindMethodBody(methodSymbol, compilationState, diagsForCurrentMethod, processedInitializers.AfterInitializersState, includeInitializersInBody && !processedInitializers.BoundInitializers.IsEmpty, out importChain, out originalBodyNested, out forSemanticModel); if (diagsForCurrentMethod.HasAnyErrors() && body != null) { body = (BoundBlock)body.WithHasErrors(); } // lower initializers just once. the lowered tree will be reused when emitting all constructors // with field initializers. Once lowered, these initializers will be stashed in processedInitializers.LoweredInitializers // (see later in this method). Don't bother lowering _now_ if this particular ctor won't have the initializers // appended to its body. if (includeNonEmptyInitializersInBody && processedInitializers.LoweredInitializers == null) { if (body != null && ((methodSymbol.ContainingType.IsStructType() && !methodSymbol.IsImplicitConstructor) || methodSymbol is SynthesizedRecordConstructor || _emitTestCoverageData)) { if (_emitTestCoverageData && methodSymbol.IsImplicitConstructor) { // Flow analysis over the initializers is necessary in order to find assignments to fields. // Bodies of implicit constructors do not get flow analysis later, so the initializers // are analyzed here. DefiniteAssignmentPass.Analyze(_compilation, methodSymbol, analyzedInitializers, diagsForCurrentMethod.DiagnosticBag, requireOutParamsAssigned: false); } // In order to get correct diagnostics, we need to analyze initializers and the body together. body = body.Update(body.Locals, body.LocalFunctions, body.Statements.Insert(0, analyzedInitializers)); includeNonEmptyInitializersInBody = false; analyzedInitializers = null; } else { // These analyses check for diagnostics in lambdas. // Control flow analysis and implicit return insertion are unnecessary. DefiniteAssignmentPass.Analyze(_compilation, methodSymbol, analyzedInitializers, diagsForCurrentMethod.DiagnosticBag, requireOutParamsAssigned: false); DiagnosticsPass.IssueDiagnostics(_compilation, analyzedInitializers, diagsForCurrentMethod, methodSymbol); } } } #if DEBUG // If the method is a synthesized static or instance constructor, then debugImports will be null and we will use the value // from the first field initializer. if ((methodSymbol.MethodKind == MethodKind.Constructor || methodSymbol.MethodKind == MethodKind.StaticConstructor) && methodSymbol.IsImplicitlyDeclared && body == null) { // There was no body to bind, so we didn't get anything from BindMethodBody. Debug.Assert(importChain == null); } // Either there were no field initializers or we grabbed debug imports from the first one. Debug.Assert(processedInitializers.BoundInitializers.IsDefaultOrEmpty || processedInitializers.FirstImportChain != null); #endif importChain = importChain ?? processedInitializers.FirstImportChain; // Associate these debug imports with all methods generated from this one. compilationState.CurrentImportChain = importChain; if (body != null) { DiagnosticsPass.IssueDiagnostics(_compilation, body, diagsForCurrentMethod, methodSymbol); } BoundBlock flowAnalyzedBody = null; if (body != null) { flowAnalyzedBody = FlowAnalysisPass.Rewrite(methodSymbol, body, diagsForCurrentMethod.DiagnosticBag, hasTrailingExpression: hasTrailingExpression, originalBodyNested: originalBodyNested); } bool hasErrors = _hasDeclarationErrors || diagsForCurrentMethod.HasAnyErrors() || processedInitializers.HasErrors; // Record whether or not the bound tree for the lowered method body (including any initializers) contained any // errors (note: errors, not diagnostics). SetGlobalErrorIfTrue(hasErrors); bool diagsWritten = false; var actualDiagnostics = diagsForCurrentMethod.ToReadOnly(); if (sourceMethod != null) { actualDiagnostics = new ImmutableBindingDiagnostic<AssemblySymbol>(sourceMethod.SetDiagnostics(actualDiagnostics.Diagnostics, out diagsWritten), actualDiagnostics.Dependencies); } if (diagsWritten && !methodSymbol.IsImplicitlyDeclared && _compilation.EventQueue != null) { // If compilation has a caching semantic model provider, then cache the already-computed bound tree // onto the semantic model and store it on the event. SyntaxTreeSemanticModel semanticModelWithCachedBoundNodes = null; if (body != null && forSemanticModel.Syntax is { } semanticModelSyntax && _compilation.SemanticModelProvider is CachingSemanticModelProvider cachingSemanticModelProvider) { var syntax = body.Syntax; semanticModelWithCachedBoundNodes = (SyntaxTreeSemanticModel)cachingSemanticModelProvider.GetSemanticModel(syntax.SyntaxTree, _compilation); semanticModelWithCachedBoundNodes.GetOrAddModel(semanticModelSyntax, (rootSyntax) => { Debug.Assert(rootSyntax == forSemanticModel.Syntax); return MethodBodySemanticModel.Create(semanticModelWithCachedBoundNodes, methodSymbol, forSemanticModel); }); } _compilation.EventQueue.TryEnqueue(new SymbolDeclaredCompilationEvent(_compilation, methodSymbol.GetPublicSymbol(), semanticModelWithCachedBoundNodes)); } // Don't lower if we're not emitting or if there were errors. // Methods that had binding errors are considered too broken to be lowered reliably. if (_moduleBeingBuiltOpt == null || hasErrors) { _diagnostics.AddRange(actualDiagnostics); return; } // ############################ // LOWERING AND EMIT // Any errors generated below here are considered Emit diagnostics // and will not be reported to callers Compilation.GetDiagnostics() ImmutableArray<SourceSpan> dynamicAnalysisSpans = ImmutableArray<SourceSpan>.Empty; bool hasBody = flowAnalyzedBody != null; VariableSlotAllocator lazyVariableSlotAllocator = null; StateMachineTypeSymbol stateMachineTypeOpt = null; var lambdaDebugInfoBuilder = ArrayBuilder<LambdaDebugInfo>.GetInstance(); var closureDebugInfoBuilder = ArrayBuilder<ClosureDebugInfo>.GetInstance(); BoundStatement loweredBodyOpt = null; try { if (hasBody) { loweredBodyOpt = LowerBodyOrInitializer( methodSymbol, methodOrdinal, flowAnalyzedBody, previousSubmissionFields, compilationState, _emitTestCoverageData, _debugDocumentProvider, ref dynamicAnalysisSpans, diagsForCurrentMethod, ref lazyVariableSlotAllocator, lambdaDebugInfoBuilder, closureDebugInfoBuilder, out stateMachineTypeOpt); Debug.Assert(loweredBodyOpt != null); } else { loweredBodyOpt = null; } hasErrors = hasErrors || (hasBody && loweredBodyOpt.HasErrors) || diagsForCurrentMethod.HasAnyErrors(); SetGlobalErrorIfTrue(hasErrors); // don't emit if the resulting method would contain initializers with errors if (!hasErrors && (hasBody || includeNonEmptyInitializersInBody)) { Debug.Assert(!(methodSymbol.IsImplicitInstanceConstructor && methodSymbol.ParameterCount == 0) || !methodSymbol.IsDefaultValueTypeConstructor(requireZeroInit: true)); // Fields must be initialized before constructor initializer (which is the first statement of the analyzed body, if specified), // so that the initialization occurs before any method overridden by the declaring class can be invoked from the base constructor // and access the fields. ImmutableArray<BoundStatement> boundStatements; if (methodSymbol.IsScriptConstructor) { boundStatements = MethodBodySynthesizer.ConstructScriptConstructorBody(loweredBodyOpt, methodSymbol, previousSubmissionFields, _compilation); } else { boundStatements = ImmutableArray<BoundStatement>.Empty; if (analyzedInitializers != null) { // For dynamic analysis, field initializers are instrumented as part of constructors, // and so are never instrumented here. Debug.Assert(!_emitTestCoverageData); StateMachineTypeSymbol initializerStateMachineTypeOpt; BoundStatement lowered = LowerBodyOrInitializer( methodSymbol, methodOrdinal, analyzedInitializers, previousSubmissionFields, compilationState, _emitTestCoverageData, _debugDocumentProvider, ref dynamicAnalysisSpans, diagsForCurrentMethod, ref lazyVariableSlotAllocator, lambdaDebugInfoBuilder, closureDebugInfoBuilder, out initializerStateMachineTypeOpt); processedInitializers.LoweredInitializers = lowered; // initializers can't produce state machines Debug.Assert((object)initializerStateMachineTypeOpt == null); Debug.Assert(!hasErrors); hasErrors = lowered.HasAnyErrors || diagsForCurrentMethod.HasAnyErrors(); SetGlobalErrorIfTrue(hasErrors); if (hasErrors) { _diagnostics.AddRange(diagsForCurrentMethod); return; } // Only do the cast if we haven't returned with some error diagnostics. // Otherwise, `lowered` might have been a BoundBadStatement. processedInitializers.LoweredInitializers = (BoundStatementList)lowered; } // initializers for global code have already been included in the body if (includeNonEmptyInitializersInBody) { if (processedInitializers.LoweredInitializers.Kind == BoundKind.StatementList) { BoundStatementList lowered = (BoundStatementList)processedInitializers.LoweredInitializers; boundStatements = boundStatements.Concat(lowered.Statements); } else { boundStatements = boundStatements.Add(processedInitializers.LoweredInitializers); } } if (hasBody) { boundStatements = boundStatements.Concat(ImmutableArray.Create(loweredBodyOpt)); } } if (_emitMethodBodies && (!(methodSymbol is SynthesizedStaticConstructor cctor) || cctor.ShouldEmit(processedInitializers.BoundInitializers))) { CSharpSyntaxNode syntax = methodSymbol.GetNonNullSyntaxNode(); var boundBody = BoundStatementList.Synthesized(syntax, boundStatements); var emittedBody = GenerateMethodBody( _moduleBeingBuiltOpt, methodSymbol, methodOrdinal, boundBody, lambdaDebugInfoBuilder.ToImmutable(), closureDebugInfoBuilder.ToImmutable(), stateMachineTypeOpt, lazyVariableSlotAllocator, diagsForCurrentMethod, _debugDocumentProvider, importChain, _emittingPdb, _emitTestCoverageData, dynamicAnalysisSpans, entryPointOpt: null); _moduleBeingBuiltOpt.SetMethodBody(methodSymbol.PartialDefinitionPart ?? methodSymbol, emittedBody); } } _diagnostics.AddRange(diagsForCurrentMethod); } finally { lambdaDebugInfoBuilder.Free(); closureDebugInfoBuilder.Free(); } } finally { diagsForCurrentMethod.Free(); compilationState.CurrentImportChain = oldImportChain; } } // internal for testing internal static BoundStatement LowerBodyOrInitializer( MethodSymbol method, int methodOrdinal, BoundStatement body, SynthesizedSubmissionFields previousSubmissionFields, TypeCompilationState compilationState, bool instrumentForDynamicAnalysis, DebugDocumentProvider debugDocumentProvider, ref ImmutableArray<SourceSpan> dynamicAnalysisSpans, BindingDiagnosticBag diagnostics, ref VariableSlotAllocator lazyVariableSlotAllocator, ArrayBuilder<LambdaDebugInfo> lambdaDebugInfoBuilder, ArrayBuilder<ClosureDebugInfo> closureDebugInfoBuilder, out StateMachineTypeSymbol stateMachineTypeOpt) { Debug.Assert(compilationState.ModuleBuilderOpt != null); stateMachineTypeOpt = null; if (body.HasErrors) { return body; } try { var loweredBody = LocalRewriter.Rewrite( method.DeclaringCompilation, method, methodOrdinal, method.ContainingType, body, compilationState, previousSubmissionFields: previousSubmissionFields, allowOmissionOfConditionalCalls: true, instrumentForDynamicAnalysis: instrumentForDynamicAnalysis, debugDocumentProvider: debugDocumentProvider, dynamicAnalysisSpans: ref dynamicAnalysisSpans, diagnostics: diagnostics, sawLambdas: out bool sawLambdas, sawLocalFunctions: out bool sawLocalFunctions, sawAwaitInExceptionHandler: out bool sawAwaitInExceptionHandler); if (loweredBody.HasErrors) { return loweredBody; } if (sawAwaitInExceptionHandler) { // If we have awaits in handlers, we need to // replace handlers with synthetic ones which can be consumed by async rewriter. // The reason why this rewrite happens before the lambda rewrite // is that we may need access to exception locals and it would be fairly hard to do // if these locals are captured into closures (possibly nested ones). loweredBody = AsyncExceptionHandlerRewriter.Rewrite( method, method.ContainingType, loweredBody, compilationState, diagnostics); } if (loweredBody.HasErrors) { return loweredBody; } if (lazyVariableSlotAllocator == null) { lazyVariableSlotAllocator = compilationState.ModuleBuilderOpt.TryCreateVariableSlotAllocator(method, method, diagnostics.DiagnosticBag); } BoundStatement bodyWithoutLambdas = loweredBody; if (sawLambdas || sawLocalFunctions) { bodyWithoutLambdas = ClosureConversion.Rewrite( loweredBody, method.ContainingType, method.ThisParameter, method, methodOrdinal, null, lambdaDebugInfoBuilder, closureDebugInfoBuilder, lazyVariableSlotAllocator, compilationState, diagnostics, assignLocals: null); } if (bodyWithoutLambdas.HasErrors) { return bodyWithoutLambdas; } BoundStatement bodyWithoutIterators = IteratorRewriter.Rewrite(bodyWithoutLambdas, method, methodOrdinal, lazyVariableSlotAllocator, compilationState, diagnostics, out IteratorStateMachine iteratorStateMachine); if (bodyWithoutIterators.HasErrors) { return bodyWithoutIterators; } BoundStatement bodyWithoutAsync = AsyncRewriter.Rewrite(bodyWithoutIterators, method, methodOrdinal, lazyVariableSlotAllocator, compilationState, diagnostics, out AsyncStateMachine asyncStateMachine); Debug.Assert((object)iteratorStateMachine == null || (object)asyncStateMachine == null); stateMachineTypeOpt = (StateMachineTypeSymbol)iteratorStateMachine ?? asyncStateMachine; return bodyWithoutAsync; } catch (BoundTreeVisitor.CancelledByStackGuardException ex) { ex.AddAnError(diagnostics); return new BoundBadStatement(body.Syntax, ImmutableArray.Create<BoundNode>(body), hasErrors: true); } } /// <summary> /// entryPointOpt is only considered for synthesized methods (to recognize the synthesized MoveNext method for async Main) /// </summary> private static MethodBody GenerateMethodBody( PEModuleBuilder moduleBuilder, MethodSymbol method, int methodOrdinal, BoundStatement block, ImmutableArray<LambdaDebugInfo> lambdaDebugInfo, ImmutableArray<ClosureDebugInfo> closureDebugInfo, StateMachineTypeSymbol stateMachineTypeOpt, VariableSlotAllocator variableSlotAllocatorOpt, BindingDiagnosticBag diagnostics, DebugDocumentProvider debugDocumentProvider, ImportChain importChainOpt, bool emittingPdb, bool emitTestCoverageData, ImmutableArray<SourceSpan> dynamicAnalysisSpans, SynthesizedEntryPointSymbol.AsyncForwardEntryPoint entryPointOpt) { // Note: don't call diagnostics.HasAnyErrors() in release; could be expensive if compilation has many warnings. Debug.Assert(!diagnostics.HasAnyErrors(), "Running code generator when errors exist might be dangerous; code generator not expecting errors"); var compilation = moduleBuilder.Compilation; var localSlotManager = new LocalSlotManager(variableSlotAllocatorOpt); var optimizations = compilation.Options.OptimizationLevel; ILBuilder builder = new ILBuilder(moduleBuilder, localSlotManager, optimizations, method.AreLocalsZeroed); bool hasStackalloc; var diagnosticsForThisMethod = BindingDiagnosticBag.GetInstance(withDiagnostics: true, diagnostics.AccumulatesDependencies); try { StateMachineMoveNextBodyDebugInfo moveNextBodyDebugInfoOpt = null; var codeGen = new CodeGen.CodeGenerator(method, block, builder, moduleBuilder, diagnosticsForThisMethod.DiagnosticBag, optimizations, emittingPdb); if (diagnosticsForThisMethod.HasAnyErrors()) { // we are done here. Since there were errors we should not emit anything. return null; } bool isAsyncStateMachine; MethodSymbol kickoffMethod; if (method is SynthesizedStateMachineMethod stateMachineMethod && method.Name == WellKnownMemberNames.MoveNextMethodName) { kickoffMethod = stateMachineMethod.StateMachineType.KickoffMethod; Debug.Assert(kickoffMethod != null); isAsyncStateMachine = kickoffMethod.IsAsync; // Async void method may be partial. Debug info needs to be associated with the emitted definition, // but the kickoff method is the method implementation (the part with body). kickoffMethod = kickoffMethod.PartialDefinitionPart ?? kickoffMethod; } else { kickoffMethod = null; isAsyncStateMachine = false; } if (isAsyncStateMachine) { codeGen.Generate(out int asyncCatchHandlerOffset, out var asyncYieldPoints, out var asyncResumePoints, out hasStackalloc); // The exception handler IL offset is used by the debugger to treat exceptions caught by the marked catch block as "user unhandled". // This is important for async void because async void exceptions generally result in the process being terminated, // but without anything useful on the call stack. Async Task methods on the other hand return exceptions as the result of the Task. // So it is undesirable to consider these exceptions "user unhandled" since there may well be user code that is awaiting the task. // This is a heuristic since it's possible that there is no user code awaiting the task. // We do the same for async Main methods, since it is unlikely that user code will be awaiting the Task: // AsyncForwardEntryPoint <Main> -> kick-off method Main -> MoveNext. bool isAsyncMainMoveNext = entryPointOpt?.UserMain.Equals(kickoffMethod) == true; moveNextBodyDebugInfoOpt = new AsyncMoveNextBodyDebugInfo( kickoffMethod.GetCciAdapter(), catchHandlerOffset: (kickoffMethod.ReturnsVoid || isAsyncMainMoveNext) ? asyncCatchHandlerOffset : -1, asyncYieldPoints, asyncResumePoints); } else { codeGen.Generate(out hasStackalloc); if ((object)kickoffMethod != null) { moveNextBodyDebugInfoOpt = new IteratorMoveNextBodyDebugInfo(kickoffMethod.GetCciAdapter()); } } // Compiler-generated MoveNext methods have hoisted local scopes. // These are built by call to CodeGen.Generate. var stateMachineHoistedLocalScopes = ((object)kickoffMethod != null) ? builder.GetHoistedLocalScopes() : default(ImmutableArray<StateMachineHoistedLocalScope>); // Translate the imports even if we are not writing PDBs. The translation has an impact on generated metadata // and we don't want to emit different metadata depending on whether or we emit with PDB stream. // TODO (https://github.com/dotnet/roslyn/issues/2846): This will need to change for member initializers in partial class. var importScopeOpt = importChainOpt?.Translate(moduleBuilder, diagnosticsForThisMethod.DiagnosticBag); var localVariables = builder.LocalSlotManager.LocalsInOrder(); if (localVariables.Length > 0xFFFE) { diagnosticsForThisMethod.Add(ErrorCode.ERR_TooManyLocals, method.Locations.First()); } if (diagnosticsForThisMethod.HasAnyErrors()) { // we are done here. Since there were errors we should not emit anything. return null; } // We will only save the IL builders when running tests. if (moduleBuilder.SaveTestData) { moduleBuilder.SetMethodTestData(method, builder.GetSnapshot()); } var stateMachineHoistedLocalSlots = default(ImmutableArray<EncHoistedLocalInfo>); var stateMachineAwaiterSlots = default(ImmutableArray<Cci.ITypeReference>); if (optimizations == OptimizationLevel.Debug && (object)stateMachineTypeOpt != null) { Debug.Assert(method.IsAsync || method.IsIterator); GetStateMachineSlotDebugInfo(moduleBuilder, moduleBuilder.GetSynthesizedFields(stateMachineTypeOpt), variableSlotAllocatorOpt, diagnosticsForThisMethod, out stateMachineHoistedLocalSlots, out stateMachineAwaiterSlots); Debug.Assert(!diagnostics.HasAnyErrors()); } DynamicAnalysisMethodBodyData dynamicAnalysisDataOpt = null; if (emitTestCoverageData) { Debug.Assert(debugDocumentProvider != null); dynamicAnalysisDataOpt = new DynamicAnalysisMethodBodyData(dynamicAnalysisSpans); } return new MethodBody( builder.RealizedIL, builder.MaxStack, (method.PartialDefinitionPart ?? method).GetCciAdapter(), variableSlotAllocatorOpt?.MethodId ?? new DebugId(methodOrdinal, moduleBuilder.CurrentGenerationOrdinal), localVariables, builder.RealizedSequencePoints, debugDocumentProvider, builder.RealizedExceptionHandlers, builder.AreLocalsZeroed, hasStackalloc, builder.GetAllScopes(), builder.HasDynamicLocal, importScopeOpt, lambdaDebugInfo, closureDebugInfo, stateMachineTypeOpt?.Name, stateMachineHoistedLocalScopes, stateMachineHoistedLocalSlots, stateMachineAwaiterSlots, moveNextBodyDebugInfoOpt, dynamicAnalysisDataOpt); } finally { // Basic blocks contain poolable builders for IL and sequence points. Free those back // to their pools. builder.FreeBasicBlocks(); // Remember diagnostics. diagnostics.AddRange(diagnosticsForThisMethod); diagnosticsForThisMethod.Free(); } } private static void GetStateMachineSlotDebugInfo( PEModuleBuilder moduleBuilder, IEnumerable<Cci.IFieldDefinition> fieldDefs, VariableSlotAllocator variableSlotAllocatorOpt, BindingDiagnosticBag diagnostics, out ImmutableArray<EncHoistedLocalInfo> hoistedVariableSlots, out ImmutableArray<Cci.ITypeReference> awaiterSlots) { var hoistedVariables = ArrayBuilder<EncHoistedLocalInfo>.GetInstance(); var awaiters = ArrayBuilder<Cci.ITypeReference>.GetInstance(); foreach (StateMachineFieldSymbol field in fieldDefs #if DEBUG .Select(f => ((FieldSymbolAdapter)f).AdaptedFieldSymbol) #endif ) { int index = field.SlotIndex; if (field.SlotDebugInfo.SynthesizedKind == SynthesizedLocalKind.AwaiterField) { Debug.Assert(index >= 0); while (index >= awaiters.Count) { awaiters.Add(null); } awaiters[index] = moduleBuilder.EncTranslateLocalVariableType(field.Type, diagnostics.DiagnosticBag); } else if (!field.SlotDebugInfo.Id.IsNone) { Debug.Assert(index >= 0 && field.SlotDebugInfo.SynthesizedKind.IsLongLived()); while (index >= hoistedVariables.Count) { // Empty slots may be present if variables were deleted during EnC. hoistedVariables.Add(new EncHoistedLocalInfo(true)); } hoistedVariables[index] = new EncHoistedLocalInfo(field.SlotDebugInfo, moduleBuilder.EncTranslateLocalVariableType(field.Type, diagnostics.DiagnosticBag)); } } // Fill in empty slots for variables deleted during EnC that are not followed by an existing variable: if (variableSlotAllocatorOpt != null) { int previousAwaiterCount = variableSlotAllocatorOpt.PreviousAwaiterSlotCount; while (awaiters.Count < previousAwaiterCount) { awaiters.Add(null); } int previousAwaiterSlotCount = variableSlotAllocatorOpt.PreviousHoistedLocalSlotCount; while (hoistedVariables.Count < previousAwaiterSlotCount) { hoistedVariables.Add(new EncHoistedLocalInfo(true)); } } hoistedVariableSlots = hoistedVariables.ToImmutableAndFree(); awaiterSlots = awaiters.ToImmutableAndFree(); } // NOTE: can return null if the method has no body. internal static BoundBlock BindMethodBody(MethodSymbol method, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) { return BindMethodBody(method, compilationState, diagnostics, nullableInitialState: null, includesFieldInitializers: false, out _, out _, out _); } // NOTE: can return null if the method has no body. private static BoundBlock BindMethodBody(MethodSymbol method, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics, NullableWalker.VariableState nullableInitialState, bool includesFieldInitializers, out ImportChain importChain, out bool originalBodyNested, out MethodBodySemanticModel.InitialState forSemanticModel) { originalBodyNested = false; importChain = null; forSemanticModel = default; BoundBlock body; if (method is SynthesizedRecordConstructor recordStructPrimaryCtor && method.ContainingType.IsRecordStruct) { body = BoundBlock.SynthesizedNoLocals(recordStructPrimaryCtor.GetSyntax()); } else if (method is SourceMemberMethodSymbol sourceMethod) { CSharpSyntaxNode syntaxNode = sourceMethod.SyntaxNode; // Static constructor can't have any this/base call if (method.MethodKind == MethodKind.StaticConstructor && syntaxNode is ConstructorDeclarationSyntax constructorSyntax && constructorSyntax.Initializer != null) { diagnostics.Add( ErrorCode.ERR_StaticConstructorWithExplicitConstructorCall, constructorSyntax.Initializer.ThisOrBaseKeyword.GetLocation(), constructorSyntax.Identifier.ValueText); } Debug.Assert(!sourceMethod.IsDefaultValueTypeConstructor(requireZeroInit: false)); if (sourceMethod.IsExtern) { return null; } Binder bodyBinder = sourceMethod.TryGetBodyBinder(); if (bodyBinder != null) { importChain = bodyBinder.ImportChain; BoundNode methodBody = bodyBinder.BindMethodBody(syntaxNode, diagnostics, includesFieldInitializers); BoundNode methodBodyForSemanticModel = methodBody; NullableWalker.SnapshotManager snapshotManager = null; ImmutableDictionary<Symbol, Symbol> remappedSymbols = null; var compilation = bodyBinder.Compilation; var isSufficientLangVersion = compilation.LanguageVersion >= MessageID.IDS_FeatureNullableReferenceTypes.RequiredVersion(); if (compilation.IsNullableAnalysisEnabledIn(method)) { methodBodyForSemanticModel = NullableWalker.AnalyzeAndRewrite( compilation, method, methodBody, bodyBinder, nullableInitialState, // if language version is insufficient, we do not want to surface nullability diagnostics, // but we should still provide nullability information through the semantic model. isSufficientLangVersion ? diagnostics.DiagnosticBag : new DiagnosticBag(), createSnapshots: true, out snapshotManager, ref remappedSymbols); } else { NullableWalker.AnalyzeIfNeeded( compilation, method, methodBody, diagnostics.DiagnosticBag, useConstructorExitWarnings: true, nullableInitialState, getFinalNullableState: false, finalNullableState: out _); } forSemanticModel = new MethodBodySemanticModel.InitialState(syntaxNode, methodBodyForSemanticModel, bodyBinder, snapshotManager, remappedSymbols); switch (methodBody.Kind) { case BoundKind.ConstructorMethodBody: var constructor = (BoundConstructorMethodBody)methodBody; body = constructor.BlockBody ?? constructor.ExpressionBody; if (constructor.Initializer is BoundNoOpStatement) { // We have field initializers and `: this()` is a default value type constructor. Debug.Assert(body is not null); return body; } else if (constructor.Initializer is BoundExpressionStatement expressionStatement) { ReportCtorInitializerCycles(method, expressionStatement.Expression, compilationState, diagnostics); if (body == null) { body = new BoundBlock(constructor.Syntax, constructor.Locals, ImmutableArray.Create<BoundStatement>(constructor.Initializer)); } else { body = new BoundBlock(constructor.Syntax, constructor.Locals, ImmutableArray.Create<BoundStatement>(constructor.Initializer, body)); originalBodyNested = true; } return body; } else { Debug.Assert(constructor.Initializer is null); Debug.Assert(constructor.Locals.IsEmpty); } break; case BoundKind.NonConstructorMethodBody: var nonConstructor = (BoundNonConstructorMethodBody)methodBody; body = nonConstructor.BlockBody ?? nonConstructor.ExpressionBody; break; case BoundKind.Block: body = (BoundBlock)methodBody; break; default: throw ExceptionUtilities.UnexpectedValue(methodBody.Kind); } } else { var property = sourceMethod.AssociatedSymbol as SourcePropertySymbolBase; if ((object)property != null && property.IsAutoPropertyWithGetAccessor) { return MethodBodySynthesizer.ConstructAutoPropertyAccessorBody(sourceMethod); } return null; } } else if (method is SynthesizedInstanceConstructor ctor) { // Synthesized instance constructors may partially synthesize // their body var node = ctor.GetNonNullSyntaxNode(); var factory = new SyntheticBoundNodeFactory(ctor, node, compilationState, diagnostics); var stmts = ArrayBuilder<BoundStatement>.GetInstance(); ctor.GenerateMethodBodyStatements(factory, stmts, diagnostics); body = BoundBlock.SynthesizedNoLocals(node, stmts.ToImmutableAndFree()); } else { // synthesized methods should return their bound bodies body = null; } if (method.IsConstructor() && method.IsImplicitlyDeclared && nullableInitialState is object) { NullableWalker.AnalyzeIfNeeded( compilationState.Compilation, method, body ?? GetSynthesizedEmptyBody(method), diagnostics.DiagnosticBag, useConstructorExitWarnings: true, nullableInitialState, getFinalNullableState: false, finalNullableState: out _); } if (method.MethodKind == MethodKind.Destructor && body != null) { return MethodBodySynthesizer.ConstructDestructorBody(method, body); } var constructorInitializer = BindImplicitConstructorInitializerIfAny(method, compilationState, diagnostics); ImmutableArray<BoundStatement> statements; if (constructorInitializer == null) { if (body != null) { return body; } statements = ImmutableArray<BoundStatement>.Empty; } else if (body == null) { statements = ImmutableArray.Create(constructorInitializer); } else { statements = ImmutableArray.Create(constructorInitializer, body); originalBodyNested = true; } return BoundBlock.SynthesizedNoLocals(method.GetNonNullSyntaxNode(), statements); } private static BoundBlock GetSynthesizedEmptyBody(Symbol symbol) { return BoundBlock.SynthesizedNoLocals(symbol.GetNonNullSyntaxNode()); } private static BoundStatement BindImplicitConstructorInitializerIfAny(MethodSymbol method, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) { Debug.Assert(!method.ContainingType.IsDelegateType()); // delegates have constructors but not constructor initializers if (method.MethodKind == MethodKind.Constructor && !method.IsExtern) { var compilation = method.DeclaringCompilation; var initializerInvocation = BindImplicitConstructorInitializer(method, diagnostics, compilation); if (initializerInvocation != null) { ReportCtorInitializerCycles(method, initializerInvocation, compilationState, diagnostics); // Base WasCompilerGenerated state off of whether constructor is implicitly declared, this will ensure proper instrumentation. var constructorInitializer = new BoundExpressionStatement(initializerInvocation.Syntax, initializerInvocation) { WasCompilerGenerated = method.IsImplicitlyDeclared }; Debug.Assert(initializerInvocation.HasAnyErrors || constructorInitializer.IsConstructorInitializer(), "Please keep this bound node in sync with BoundNodeExtensions.IsConstructorInitializer."); return constructorInitializer; } } return null; } private static void ReportCtorInitializerCycles(MethodSymbol method, BoundExpression initializerInvocation, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) { var ctorCall = initializerInvocation as BoundCall; if (ctorCall != null && !ctorCall.HasAnyErrors && ctorCall.Method != method && TypeSymbol.Equals(ctorCall.Method.ContainingType, method.ContainingType, TypeCompareKind.ConsiderEverything2)) { // Detect and report indirect cycles in the ctor-initializer call graph. compilationState.ReportCtorInitializerCycles(method, ctorCall.Method, ctorCall.Syntax, diagnostics); } } /// <summary> /// Bind the implicit constructor initializer of a constructor symbol. /// </summary> /// <param name="constructor">Constructor method.</param> /// <param name="diagnostics">Accumulates errors (e.g. access "this" in constructor initializer).</param> /// <param name="compilation">Used to retrieve binder.</param> /// <returns>A bound expression for the constructor initializer call.</returns> internal static BoundExpression BindImplicitConstructorInitializer( MethodSymbol constructor, BindingDiagnosticBag diagnostics, CSharpCompilation compilation) { // Note that the base type can be null if we're compiling System.Object in source. NamedTypeSymbol containingType = constructor.ContainingType; NamedTypeSymbol baseType = containingType.BaseTypeNoUseSiteDiagnostics; SourceMemberMethodSymbol sourceConstructor = constructor as SourceMemberMethodSymbol; Debug.Assert(sourceConstructor?.SyntaxNode is RecordDeclarationSyntax || ((ConstructorDeclarationSyntax)sourceConstructor?.SyntaxNode)?.Initializer == null); // The common case is that the type inherits directly from object. // Also, we might be trying to generate a constructor for an entirely compiler-generated class such // as a closure class; in that case it is vexing to try to find a suitable binder for the non-existing // constructor syntax so that we can do unnecessary overload resolution on the non-existing initializer! // Simply take the early out: bind directly to the parameterless object ctor rather than attempting // overload resolution. if ((object)baseType != null) { if (baseType.SpecialType == SpecialType.System_Object) { return GenerateBaseParameterlessConstructorInitializer(constructor, diagnostics); } else if (baseType.IsErrorType() || baseType.IsStatic) { // If the base type is bad and there is no initializer then we can just bail. // We have no expressions we need to analyze to report errors on. return null; } } if (containingType.IsStructType() || containingType.IsEnumType()) { return null; } else if (constructor is SynthesizedRecordCopyCtor copyCtor) { return GenerateBaseCopyConstructorInitializer(copyCtor, diagnostics); } // Now, in order to do overload resolution, we're going to need a binder. There are // two possible situations: // // class D1 : B { } // class D2 : B { D2(int x) { } } // // In the first case the binder needs to be the binder associated with // the *body* of D1 because if the base class ctor is protected, we need // to be inside the body of a derived class in order for it to be in the // accessibility domain of the protected base class ctor. // // In the second case the binder could be the binder associated with // the body of D2; since the implicit call to base() will have no arguments // there is no need to look up "x". Binder outerBinder; if ((object)sourceConstructor == null) { // The constructor is implicit. We need to get the binder for the body // of the enclosing class. CSharpSyntaxNode containerNode = constructor.GetNonNullSyntaxNode(); BinderFactory binderFactory = compilation.GetBinderFactory(containerNode.SyntaxTree); if (containerNode is RecordDeclarationSyntax recordDecl) { outerBinder = binderFactory.GetInRecordBodyBinder(recordDecl); } else { SyntaxToken bodyToken = GetImplicitConstructorBodyToken(containerNode); outerBinder = binderFactory.GetBinder(containerNode, bodyToken.Position); } } else { BinderFactory binderFactory = compilation.GetBinderFactory(sourceConstructor.SyntaxTree); switch (sourceConstructor.SyntaxNode) { case ConstructorDeclarationSyntax ctorDecl: // We have a ctor in source but no explicit constructor initializer. We can't just use the binder for the // type containing the ctor because the ctor might be marked unsafe. Use the binder for the parameter list // as an approximation - the extra symbols won't matter because there are no identifiers to bind. outerBinder = binderFactory.GetBinder(ctorDecl.ParameterList); break; case RecordDeclarationSyntax recordDecl: outerBinder = binderFactory.GetInRecordBodyBinder(recordDecl); break; default: throw ExceptionUtilities.Unreachable; } } // wrap in ConstructorInitializerBinder for appropriate errors // Handle scoping for possible pattern variables declared in the initializer Binder initializerBinder = outerBinder.WithAdditionalFlagsAndContainingMemberOrLambda(BinderFlags.ConstructorInitializer, constructor); return initializerBinder.BindConstructorInitializer(null, constructor, diagnostics); } private static SyntaxToken GetImplicitConstructorBodyToken(CSharpSyntaxNode containerNode) { return ((BaseTypeDeclarationSyntax)containerNode).OpenBraceToken; } internal static BoundCall GenerateBaseParameterlessConstructorInitializer(MethodSymbol constructor, BindingDiagnosticBag diagnostics) { NamedTypeSymbol baseType = constructor.ContainingType.BaseTypeNoUseSiteDiagnostics; MethodSymbol baseConstructor = null; LookupResultKind resultKind = LookupResultKind.Viable; Location diagnosticsLocation = constructor.Locations.IsEmpty ? NoLocation.Singleton : constructor.Locations[0]; foreach (MethodSymbol ctor in baseType.InstanceConstructors) { if (ctor.ParameterCount == 0) { baseConstructor = ctor; break; } } // UNDONE: If this happens then something is deeply wrong. Should we give a better error? if ((object)baseConstructor == null) { diagnostics.Add(ErrorCode.ERR_BadCtorArgCount, diagnosticsLocation, baseType, /*desired param count*/ 0); return null; } if (Binder.ReportUseSite(baseConstructor, diagnostics, diagnosticsLocation)) { return null; } // UNDONE: If this happens then something is deeply wrong. Should we give a better error? bool hasErrors = false; var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, constructor.ContainingAssembly); if (!AccessCheck.IsSymbolAccessible(baseConstructor, constructor.ContainingType, ref useSiteInfo)) { diagnostics.Add(ErrorCode.ERR_BadAccess, diagnosticsLocation, baseConstructor); resultKind = LookupResultKind.Inaccessible; hasErrors = true; } diagnostics.Add(diagnosticsLocation, useSiteInfo); CSharpSyntaxNode syntax = constructor.GetNonNullSyntaxNode(); BoundExpression receiver = new BoundThisReference(syntax, constructor.ContainingType) { WasCompilerGenerated = true }; return new BoundCall( syntax: syntax, receiverOpt: receiver, method: baseConstructor, arguments: ImmutableArray<BoundExpression>.Empty, argumentNamesOpt: ImmutableArray<string>.Empty, argumentRefKindsOpt: ImmutableArray<RefKind>.Empty, isDelegateCall: false, expanded: false, invokedAsExtensionMethod: false, argsToParamsOpt: ImmutableArray<int>.Empty, defaultArguments: BitVector.Empty, resultKind: resultKind, type: baseConstructor.ReturnType, hasErrors: hasErrors) { WasCompilerGenerated = true }; } private static BoundCall GenerateBaseCopyConstructorInitializer(SynthesizedRecordCopyCtor constructor, BindingDiagnosticBag diagnostics) { NamedTypeSymbol containingType = constructor.ContainingType; NamedTypeSymbol baseType = containingType.BaseTypeNoUseSiteDiagnostics; Location diagnosticsLocation = constructor.Locations.FirstOrNone(); var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, containingType.ContainingAssembly); MethodSymbol baseConstructor = SynthesizedRecordCopyCtor.FindCopyConstructor(baseType, containingType, ref useSiteInfo); if (baseConstructor is null) { diagnostics.Add(ErrorCode.ERR_NoCopyConstructorInBaseType, diagnosticsLocation, baseType); return null; } if (Binder.ReportUseSite(baseConstructor, diagnostics, diagnosticsLocation)) { return null; } diagnostics.Add(diagnosticsLocation, useSiteInfo); CSharpSyntaxNode syntax = constructor.GetNonNullSyntaxNode(); BoundExpression receiver = new BoundThisReference(syntax, constructor.ContainingType) { WasCompilerGenerated = true }; BoundExpression argument = new BoundParameter(syntax, constructor.Parameters[0]); return new BoundCall( syntax: syntax, receiverOpt: receiver, method: baseConstructor, arguments: ImmutableArray.Create(argument), argumentNamesOpt: default, argumentRefKindsOpt: default, isDelegateCall: false, expanded: false, invokedAsExtensionMethod: false, argsToParamsOpt: default, defaultArguments: default, resultKind: LookupResultKind.Viable, type: baseConstructor.ReturnType, hasErrors: false) { WasCompilerGenerated = true }; } private static Cci.DebugSourceDocument CreateDebugDocumentForFile(string normalizedPath) { return new Cci.DebugSourceDocument(normalizedPath, Cci.DebugSourceDocument.CorSymLanguageTypeCSharp); } private static bool PassesFilter(Predicate<Symbol> filterOpt, Symbol symbol) { return (filterOpt == null) || filterOpt(symbol); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeGen; using Microsoft.CodeAnalysis.CSharp.Emit; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Debugging; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.PooledObjects; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp { internal sealed class MethodCompiler : CSharpSymbolVisitor<TypeCompilationState, object> { private readonly CSharpCompilation _compilation; private readonly bool _emittingPdb; private readonly bool _emitTestCoverageData; private readonly CancellationToken _cancellationToken; private readonly BindingDiagnosticBag _diagnostics; private readonly bool _hasDeclarationErrors; private readonly bool _emitMethodBodies; private readonly PEModuleBuilder _moduleBeingBuiltOpt; // Null if compiling for diagnostics private readonly Predicate<Symbol> _filterOpt; // If not null, limit analysis to specific symbols private readonly DebugDocumentProvider _debugDocumentProvider; private readonly SynthesizedEntryPointSymbol.AsyncForwardEntryPoint _entryPointOpt; // // MethodCompiler employs concurrency by following flattened fork/join pattern. // // For every item that we want to compile in parallel a new task is forked. // compileTaskQueue is used to track and observe all the tasks. // Once compileTaskQueue is empty, we know that there are no more tasks (and no more can be created) // and that means we are done compiling. WaitForWorkers ensures this condition. // // Note that while tasks may fork more tasks (nested types, lambdas, whatever else that may introduce more types), // we do not want any child/parent relationship between spawned tasks and their creators. // Creator has no real dependencies on the completion of its children and should finish and release any resources // as soon as it can regardless of the tasks it may have spawned. // // Stack is used so that the wait would observe the most recently added task and have // more chances to do inlined execution. private ConcurrentStack<Task> _compilerTasks; // This field tracks whether any bound method body had hasErrors set or whether any constant field had a bad value. // We track it so that we can abort emission in the event that an error occurs without a corresponding diagnostic // (e.g. if this module depends on a bad type or constant from another module). // CONSIDER: instead of storing a flag, we could track the first member symbol with an error (to improve the diagnostic). // NOTE: once the flag is set to true, it should never go back to false!!! // Do not use this as a short-circuiting for stages that might produce diagnostics. // That would make diagnostics to depend on the random order in which methods are compiled. private bool _globalHasErrors; private void SetGlobalErrorIfTrue(bool arg) { //NOTE: this is not a volatile write // for correctness we need only single threaded consistency. // Within a single task - if we have got an error it may not be safe to continue with some lowerings. // It is ok if other tasks will see the change after some delay or does not observe at all. // Such races are unavoidable and will just result in performing some work that is safe to do // but may no longer be needed. // The final Join of compiling tasks cannot happen without interlocked operations and that // will ensure that any write of the flag is globally visible. if (arg) { _globalHasErrors = true; } } // Internal for testing only. internal MethodCompiler(CSharpCompilation compilation, PEModuleBuilder moduleBeingBuiltOpt, bool emittingPdb, bool emitTestCoverageData, bool hasDeclarationErrors, bool emitMethodBodies, BindingDiagnosticBag diagnostics, Predicate<Symbol> filterOpt, SynthesizedEntryPointSymbol.AsyncForwardEntryPoint entryPointOpt, CancellationToken cancellationToken) { Debug.Assert(compilation != null); Debug.Assert(diagnostics != null); Debug.Assert(diagnostics.DiagnosticBag != null); Debug.Assert(diagnostics.DependenciesBag == null || diagnostics.DependenciesBag is ConcurrentSet<AssemblySymbol>); _compilation = compilation; _moduleBeingBuiltOpt = moduleBeingBuiltOpt; _emittingPdb = emittingPdb; _cancellationToken = cancellationToken; _diagnostics = diagnostics; _filterOpt = filterOpt; _entryPointOpt = entryPointOpt; _hasDeclarationErrors = hasDeclarationErrors; SetGlobalErrorIfTrue(hasDeclarationErrors); if (emittingPdb || emitTestCoverageData) { _debugDocumentProvider = (path, basePath) => moduleBeingBuiltOpt.DebugDocumentsBuilder.GetOrAddDebugDocument(path, basePath, CreateDebugDocumentForFile); } _emitTestCoverageData = emitTestCoverageData; _emitMethodBodies = emitMethodBodies; } public static void CompileMethodBodies( CSharpCompilation compilation, PEModuleBuilder moduleBeingBuiltOpt, bool emittingPdb, bool emitTestCoverageData, bool hasDeclarationErrors, bool emitMethodBodies, BindingDiagnosticBag diagnostics, Predicate<Symbol> filterOpt, CancellationToken cancellationToken) { Debug.Assert(compilation != null); Debug.Assert(diagnostics != null); Debug.Assert(diagnostics.DiagnosticBag != null); if (compilation.PreviousSubmission != null) { // In case there is a previous submission, we should ensure // it has already created anonymous type/delegates templates // NOTE: if there are any errors, we will pick up what was created anyway compilation.PreviousSubmission.EnsureAnonymousTypeTemplates(cancellationToken); // TODO: revise to use a loop instead of a recursion } MethodSymbol entryPoint = null; if (filterOpt is null) { entryPoint = GetEntryPoint(compilation, moduleBeingBuiltOpt, hasDeclarationErrors, emitMethodBodies, diagnostics, cancellationToken); } var methodCompiler = new MethodCompiler( compilation, moduleBeingBuiltOpt, emittingPdb, emitTestCoverageData, hasDeclarationErrors, emitMethodBodies, diagnostics, filterOpt, entryPoint as SynthesizedEntryPointSymbol.AsyncForwardEntryPoint, cancellationToken); if (compilation.Options.ConcurrentBuild) { methodCompiler._compilerTasks = new ConcurrentStack<Task>(); } // directly traverse global namespace (no point to defer this to async) methodCompiler.CompileNamespace(compilation.SourceModule.GlobalNamespace); methodCompiler.WaitForWorkers(); // compile additional and anonymous types if any if (moduleBeingBuiltOpt != null) { var additionalTypes = moduleBeingBuiltOpt.GetAdditionalTopLevelTypes(); methodCompiler.CompileSynthesizedMethods(additionalTypes, diagnostics); var embeddedTypes = moduleBeingBuiltOpt.GetEmbeddedTypes(diagnostics); methodCompiler.CompileSynthesizedMethods(embeddedTypes, diagnostics); if (emitMethodBodies) { // By this time we have processed all types reachable from module's global namespace compilation.AnonymousTypeManager.AssignTemplatesNamesAndCompile(methodCompiler, moduleBeingBuiltOpt, diagnostics); } methodCompiler.WaitForWorkers(); var privateImplClass = moduleBeingBuiltOpt.PrivateImplClass; if (privateImplClass != null) { // all threads that were adding methods must be finished now, we can freeze the class: privateImplClass.Freeze(); methodCompiler.CompileSynthesizedMethods(privateImplClass, diagnostics); } } // If we are trying to emit and there's an error without a corresponding diagnostic (e.g. because // we depend on an invalid type or constant from another module), then explicitly add a diagnostic. // This diagnostic is not very helpful to the user, but it will prevent us from emitting an invalid // module or crashing. if (moduleBeingBuiltOpt != null && (methodCompiler._globalHasErrors || moduleBeingBuiltOpt.SourceModule.HasBadAttributes) && !diagnostics.HasAnyErrors() && !hasDeclarationErrors) { var messageResourceName = methodCompiler._globalHasErrors ? nameof(CodeAnalysisResources.UnableToDetermineSpecificCauseOfFailure) : nameof(CodeAnalysisResources.ModuleHasInvalidAttributes); diagnostics.Add(ErrorCode.ERR_ModuleEmitFailure, NoLocation.Singleton, ((Cci.INamedEntity)moduleBeingBuiltOpt).Name, new LocalizableResourceString(messageResourceName, CodeAnalysisResources.ResourceManager, typeof(CodeAnalysisResources))); } diagnostics.AddRange(compilation.AdditionalCodegenWarnings); // we can get unused field warnings only if compiling whole compilation. if (filterOpt == null) { WarnUnusedFields(compilation, diagnostics, cancellationToken); if (moduleBeingBuiltOpt != null && entryPoint != null && compilation.Options.OutputKind.IsApplication()) { moduleBeingBuiltOpt.SetPEEntryPoint(entryPoint, diagnostics.DiagnosticBag); } } } // Returns the MethodSymbol for the assembly entrypoint. If the user has a Task returning main, // this function returns the synthesized Main MethodSymbol. private static MethodSymbol GetEntryPoint(CSharpCompilation compilation, PEModuleBuilder moduleBeingBuilt, bool hasDeclarationErrors, bool emitMethodBodies, BindingDiagnosticBag diagnostics, CancellationToken cancellationToken) { Debug.Assert(diagnostics.DiagnosticBag != null); var entryPointAndDiagnostics = compilation.GetEntryPointAndDiagnostics(cancellationToken); Debug.Assert(!entryPointAndDiagnostics.Diagnostics.Diagnostics.IsDefault); diagnostics.AddRange(entryPointAndDiagnostics.Diagnostics, allowMismatchInDependencyAccumulation: true); var entryPoint = entryPointAndDiagnostics.MethodSymbol; if ((object)entryPoint == null) { return null; } // entryPoint can be a SynthesizedEntryPointSymbol if a script is being compiled. SynthesizedEntryPointSymbol synthesizedEntryPoint = entryPoint as SynthesizedEntryPointSymbol; if ((object)synthesizedEntryPoint == null) { var returnType = entryPoint.ReturnType; if (returnType.IsGenericTaskType(compilation) || returnType.IsNonGenericTaskType(compilation)) { synthesizedEntryPoint = new SynthesizedEntryPointSymbol.AsyncForwardEntryPoint(compilation, entryPoint.ContainingType, entryPoint); entryPoint = synthesizedEntryPoint; if ((object)moduleBeingBuilt != null) { moduleBeingBuilt.AddSynthesizedDefinition(entryPoint.ContainingType, synthesizedEntryPoint.GetCciAdapter()); } } } if (((object)synthesizedEntryPoint != null) && (moduleBeingBuilt != null) && !hasDeclarationErrors && !diagnostics.HasAnyErrors()) { BoundStatement body = synthesizedEntryPoint.CreateBody(diagnostics); if (body.HasErrors || diagnostics.HasAnyErrors()) { return entryPoint; } var dynamicAnalysisSpans = ImmutableArray<SourceSpan>.Empty; VariableSlotAllocator lazyVariableSlotAllocator = null; var lambdaDebugInfoBuilder = ArrayBuilder<LambdaDebugInfo>.GetInstance(); var closureDebugInfoBuilder = ArrayBuilder<ClosureDebugInfo>.GetInstance(); StateMachineTypeSymbol stateMachineTypeOpt = null; const int methodOrdinal = -1; var loweredBody = LowerBodyOrInitializer( synthesizedEntryPoint, methodOrdinal, body, null, new TypeCompilationState(synthesizedEntryPoint.ContainingType, compilation, moduleBeingBuilt), false, null, ref dynamicAnalysisSpans, diagnostics, ref lazyVariableSlotAllocator, lambdaDebugInfoBuilder, closureDebugInfoBuilder, out stateMachineTypeOpt); Debug.Assert((object)lazyVariableSlotAllocator == null); Debug.Assert((object)stateMachineTypeOpt == null); Debug.Assert(dynamicAnalysisSpans.IsEmpty); Debug.Assert(lambdaDebugInfoBuilder.IsEmpty()); Debug.Assert(closureDebugInfoBuilder.IsEmpty()); lambdaDebugInfoBuilder.Free(); closureDebugInfoBuilder.Free(); if (emitMethodBodies) { var emittedBody = GenerateMethodBody( moduleBeingBuilt, synthesizedEntryPoint, methodOrdinal, loweredBody, ImmutableArray<LambdaDebugInfo>.Empty, ImmutableArray<ClosureDebugInfo>.Empty, stateMachineTypeOpt: null, variableSlotAllocatorOpt: null, diagnostics: diagnostics, debugDocumentProvider: null, importChainOpt: null, emittingPdb: false, emitTestCoverageData: false, dynamicAnalysisSpans: ImmutableArray<SourceSpan>.Empty, entryPointOpt: null); moduleBeingBuilt.SetMethodBody(synthesizedEntryPoint, emittedBody); } } return entryPoint; } private void WaitForWorkers() { var tasks = _compilerTasks; if (tasks == null) { return; } Task curTask; while (tasks.TryPop(out curTask)) { curTask.GetAwaiter().GetResult(); } } private static void WarnUnusedFields(CSharpCompilation compilation, BindingDiagnosticBag diagnostics, CancellationToken cancellationToken) { SourceAssemblySymbol assembly = (SourceAssemblySymbol)compilation.Assembly; diagnostics.AddRange(assembly.GetUnusedFieldWarnings(cancellationToken)); } public override object VisitNamespace(NamespaceSymbol symbol, TypeCompilationState arg) { if (!PassesFilter(_filterOpt, symbol)) { return null; } arg = null; // do not use compilation state of outer type. _cancellationToken.ThrowIfCancellationRequested(); if (_compilation.Options.ConcurrentBuild) { Task worker = CompileNamespaceAsAsync(symbol); _compilerTasks.Push(worker); } else { CompileNamespace(symbol); } return null; } private Task CompileNamespaceAsAsync(NamespaceSymbol symbol) { return Task.Run(UICultureUtilities.WithCurrentUICulture(() => { try { CompileNamespace(symbol); } catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e)) { throw ExceptionUtilities.Unreachable; } }), _cancellationToken); } private void CompileNamespace(NamespaceSymbol symbol) { foreach (var s in symbol.GetMembersUnordered()) { s.Accept(this, null); } } public override object VisitNamedType(NamedTypeSymbol symbol, TypeCompilationState arg) { if (!PassesFilter(_filterOpt, symbol)) { return null; } arg = null; // do not use compilation state of outer type. _cancellationToken.ThrowIfCancellationRequested(); if (_compilation.Options.ConcurrentBuild) { Task worker = CompileNamedTypeAsync(symbol); _compilerTasks.Push(worker); } else { CompileNamedType(symbol); } return null; } private Task CompileNamedTypeAsync(NamedTypeSymbol symbol) { return Task.Run(UICultureUtilities.WithCurrentUICulture(() => { try { CompileNamedType(symbol); } catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e)) { throw ExceptionUtilities.Unreachable; } }), _cancellationToken); } private void CompileNamedType(NamedTypeSymbol containingType) { var compilationState = new TypeCompilationState(containingType, _compilation, _moduleBeingBuiltOpt); _cancellationToken.ThrowIfCancellationRequested(); // Find the constructor of a script class. SynthesizedInstanceConstructor scriptCtor = null; SynthesizedInteractiveInitializerMethod scriptInitializer = null; SynthesizedEntryPointSymbol scriptEntryPoint = null; int scriptCtorOrdinal = -1; if (containingType.IsScriptClass) { // The field initializers of a script class could be arbitrary statements, // including blocks. Field initializers containing blocks need to // use a MethodBodySemanticModel to build up the appropriate tree of binders, and // MethodBodySemanticModel requires an "owning" method. That's why we're digging out // the constructor - it will own the field initializers. scriptCtor = containingType.GetScriptConstructor(); scriptInitializer = containingType.GetScriptInitializer(); scriptEntryPoint = containingType.GetScriptEntryPoint(); Debug.Assert((object)scriptCtor != null); Debug.Assert((object)scriptInitializer != null); } var synthesizedSubmissionFields = containingType.IsSubmissionClass ? new SynthesizedSubmissionFields(_compilation, containingType) : null; var processedStaticInitializers = new Binder.ProcessedFieldInitializers(); var processedInstanceInitializers = new Binder.ProcessedFieldInitializers(); var sourceTypeSymbol = containingType as SourceMemberContainerTypeSymbol; if ((object)sourceTypeSymbol != null) { _cancellationToken.ThrowIfCancellationRequested(); Binder.BindFieldInitializers(_compilation, scriptInitializer, sourceTypeSymbol.StaticInitializers, _diagnostics, ref processedStaticInitializers); _cancellationToken.ThrowIfCancellationRequested(); Binder.BindFieldInitializers(_compilation, scriptInitializer, sourceTypeSymbol.InstanceInitializers, _diagnostics, ref processedInstanceInitializers); if (compilationState.Emitting) { CompileSynthesizedExplicitImplementations(sourceTypeSymbol, compilationState); } } // Indicates if a static constructor is in the member, // so we can decide to synthesize a static constructor. bool hasStaticConstructor = false; var members = containingType.GetMembers(); for (int memberOrdinal = 0; memberOrdinal < members.Length; memberOrdinal++) { var member = members[memberOrdinal]; //When a filter is supplied, limit the compilation of members passing the filter. if (!PassesFilter(_filterOpt, member)) { continue; } switch (member.Kind) { case SymbolKind.NamedType: member.Accept(this, compilationState); break; case SymbolKind.Method: { MethodSymbol method = (MethodSymbol)member; if (method.IsScriptConstructor) { Debug.Assert(scriptCtorOrdinal == -1); Debug.Assert((object)scriptCtor == method); scriptCtorOrdinal = memberOrdinal; continue; } if ((object)method == scriptEntryPoint) { continue; } if (IsFieldLikeEventAccessor(method)) { continue; } if (method.IsPartialDefinition()) { method = method.PartialImplementationPart; if ((object)method == null) { continue; } } Binder.ProcessedFieldInitializers processedInitializers = (method.MethodKind == MethodKind.Constructor || method.IsScriptInitializer) ? processedInstanceInitializers : method.MethodKind == MethodKind.StaticConstructor ? processedStaticInitializers : default(Binder.ProcessedFieldInitializers); CompileMethod(method, memberOrdinal, ref processedInitializers, synthesizedSubmissionFields, compilationState); // Set a flag to indicate that a static constructor is created. if (method.MethodKind == MethodKind.StaticConstructor) { hasStaticConstructor = true; } break; } case SymbolKind.Property: { var sourceProperty = member as SourcePropertySymbolBase; if ((object)sourceProperty != null && sourceProperty.IsSealed && compilationState.Emitting) { CompileSynthesizedSealedAccessors(sourceProperty, compilationState); } break; } case SymbolKind.Event: { SourceEventSymbol eventSymbol = member as SourceEventSymbol; if ((object)eventSymbol != null && eventSymbol.HasAssociatedField && !eventSymbol.IsAbstract && compilationState.Emitting) { CompileFieldLikeEventAccessor(eventSymbol, isAddMethod: true); CompileFieldLikeEventAccessor(eventSymbol, isAddMethod: false); } break; } case SymbolKind.Field: { var fieldSymbol = (FieldSymbol)member; if (member is TupleErrorFieldSymbol) { break; } if (fieldSymbol.IsConst) { // We check specifically for constant fields with bad values because they never result // in bound nodes being inserted into method bodies (in which case, they would be covered // by the method-level check). ConstantValue constantValue = fieldSymbol.GetConstantValue(ConstantFieldsInProgress.Empty, earlyDecodingWellKnownAttributes: false); SetGlobalErrorIfTrue(constantValue == null || constantValue.IsBad); } if (fieldSymbol.IsFixedSizeBuffer && compilationState.Emitting) { // force the generation of implementation types for fixed-size buffers TypeSymbol discarded = fieldSymbol.FixedImplementationType(compilationState.ModuleBuilderOpt); } break; } } } Debug.Assert(containingType.IsScriptClass == (scriptCtorOrdinal >= 0)); // process additional anonymous type members if (AnonymousTypeManager.IsAnonymousTypeTemplate(containingType)) { var processedInitializers = default(Binder.ProcessedFieldInitializers); foreach (var method in AnonymousTypeManager.GetAnonymousTypeHiddenMethods(containingType)) { CompileMethod(method, -1, ref processedInitializers, synthesizedSubmissionFields, compilationState); } } // In the case there are field initializers but we haven't created an implicit static constructor (.cctor) for it, // (since we may not add .cctor implicitly created for decimals into the symbol table) // it is necessary for the compiler to generate the static constructor here if we are emitting. if (_moduleBeingBuiltOpt != null && !hasStaticConstructor && !processedStaticInitializers.BoundInitializers.IsDefaultOrEmpty) { Debug.Assert(processedStaticInitializers.BoundInitializers.All((init) => (init.Kind == BoundKind.FieldEqualsValue) && !((BoundFieldEqualsValue)init).Field.IsMetadataConstant)); MethodSymbol method = new SynthesizedStaticConstructor(sourceTypeSymbol); if (PassesFilter(_filterOpt, method)) { CompileMethod(method, -1, ref processedStaticInitializers, synthesizedSubmissionFields, compilationState); // If this method has been successfully built, we emit it. if (_moduleBeingBuiltOpt.GetMethodBody(method) != null) { _moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceTypeSymbol, method.GetCciAdapter()); } } } // If there is no explicit or implicit .cctor and no static initializers, then report // warnings for any static non-nullable fields. (If there is no .cctor, there // shouldn't be any initializers but for robustness, we check both.) if (!hasStaticConstructor && processedStaticInitializers.BoundInitializers.IsDefaultOrEmpty && _compilation.LanguageVersion >= MessageID.IDS_FeatureNullableReferenceTypes.RequiredVersion() && containingType is { IsImplicitlyDeclared: false, TypeKind: TypeKind.Class or TypeKind.Struct or TypeKind.Interface }) { NullableWalker.AnalyzeIfNeeded( this._compilation, new SynthesizedStaticConstructor(containingType), GetSynthesizedEmptyBody(containingType), _diagnostics.DiagnosticBag, useConstructorExitWarnings: true, initialNullableState: null, getFinalNullableState: false, finalNullableState: out _); } // compile submission constructor last so that synthesized submission fields are collected from all script methods: if (scriptCtor != null && compilationState.Emitting) { Debug.Assert(scriptCtorOrdinal >= 0); var processedInitializers = new Binder.ProcessedFieldInitializers() { BoundInitializers = ImmutableArray<BoundInitializer>.Empty }; CompileMethod(scriptCtor, scriptCtorOrdinal, ref processedInitializers, synthesizedSubmissionFields, compilationState); if (synthesizedSubmissionFields != null) { synthesizedSubmissionFields.AddToType(containingType, compilationState.ModuleBuilderOpt); } } // Emit synthesized methods produced during lowering if any if (_moduleBeingBuiltOpt != null) { CompileSynthesizedMethods(compilationState); } compilationState.Free(); } private void CompileSynthesizedMethods(PrivateImplementationDetails privateImplClass, BindingDiagnosticBag diagnostics) { Debug.Assert(_moduleBeingBuiltOpt != null); var compilationState = new TypeCompilationState(null, _compilation, _moduleBeingBuiltOpt); foreach (Cci.IMethodDefinition definition in privateImplClass.GetMethods(new EmitContext(_moduleBeingBuiltOpt, null, diagnostics.DiagnosticBag, metadataOnly: false, includePrivateMembers: true))) { var method = (MethodSymbol)definition.GetInternalSymbol(); Debug.Assert(method.SynthesizesLoweredBoundBody); method.GenerateMethodBody(compilationState, diagnostics); } CompileSynthesizedMethods(compilationState); compilationState.Free(); } private void CompileSynthesizedMethods(ImmutableArray<NamedTypeSymbol> additionalTypes, BindingDiagnosticBag diagnostics) { Debug.Assert(diagnostics.DiagnosticBag != null); foreach (var additionalType in additionalTypes) { var compilationState = new TypeCompilationState(additionalType, _compilation, _moduleBeingBuiltOpt); foreach (var method in additionalType.GetMethodsToEmit()) { method.GenerateMethodBody(compilationState, diagnostics); } if (!diagnostics.HasAnyErrors()) { CompileSynthesizedMethods(compilationState); } compilationState.Free(); } } private void CompileSynthesizedMethods(TypeCompilationState compilationState) { Debug.Assert(_moduleBeingBuiltOpt != null); Debug.Assert(compilationState.ModuleBuilderOpt == _moduleBeingBuiltOpt); var synthesizedMethods = compilationState.SynthesizedMethods; if (synthesizedMethods == null) { return; } var oldImportChain = compilationState.CurrentImportChain; try { foreach (var methodWithBody in synthesizedMethods) { var importChain = methodWithBody.ImportChain; compilationState.CurrentImportChain = importChain; // We make sure that an asynchronous mutation to the diagnostic bag does not // confuse the method body generator by making a fresh bag and then loading // any diagnostics emitted into it back into the main diagnostic bag. var diagnosticsThisMethod = BindingDiagnosticBag.GetInstance(_diagnostics); var method = methodWithBody.Method; var lambda = method as SynthesizedClosureMethod; var variableSlotAllocatorOpt = ((object)lambda != null) ? _moduleBeingBuiltOpt.TryCreateVariableSlotAllocator(lambda, lambda.TopLevelMethod, diagnosticsThisMethod.DiagnosticBag) : _moduleBeingBuiltOpt.TryCreateVariableSlotAllocator(method, method, diagnosticsThisMethod.DiagnosticBag); // Synthesized methods have no ordinal stored in custom debug information (only user-defined methods have ordinals). // In case of async lambdas, which synthesize a state machine type during the following rewrite, the containing method has already been uniquely named, // so there is no need to produce a unique method ordinal for the corresponding state machine type, whose name includes the (unique) containing method name. const int methodOrdinal = -1; MethodBody emittedBody = null; try { // Local functions can be iterators as well as be async (lambdas can only be async), so we need to lower both iterators and async IteratorStateMachine iteratorStateMachine; BoundStatement loweredBody = IteratorRewriter.Rewrite(methodWithBody.Body, method, methodOrdinal, variableSlotAllocatorOpt, compilationState, diagnosticsThisMethod, out iteratorStateMachine); StateMachineTypeSymbol stateMachine = iteratorStateMachine; if (!loweredBody.HasErrors) { AsyncStateMachine asyncStateMachine; loweredBody = AsyncRewriter.Rewrite(loweredBody, method, methodOrdinal, variableSlotAllocatorOpt, compilationState, diagnosticsThisMethod, out asyncStateMachine); Debug.Assert((object)iteratorStateMachine == null || (object)asyncStateMachine == null); stateMachine = stateMachine ?? asyncStateMachine; } if (_emitMethodBodies && !diagnosticsThisMethod.HasAnyErrors() && !_globalHasErrors) { emittedBody = GenerateMethodBody( _moduleBeingBuiltOpt, method, methodOrdinal, loweredBody, ImmutableArray<LambdaDebugInfo>.Empty, ImmutableArray<ClosureDebugInfo>.Empty, stateMachine, variableSlotAllocatorOpt, diagnosticsThisMethod, _debugDocumentProvider, method.GenerateDebugInfo ? importChain : null, emittingPdb: _emittingPdb, emitTestCoverageData: _emitTestCoverageData, dynamicAnalysisSpans: ImmutableArray<SourceSpan>.Empty, _entryPointOpt); } } catch (BoundTreeVisitor.CancelledByStackGuardException ex) { ex.AddAnError(_diagnostics); } _diagnostics.AddRange(diagnosticsThisMethod); diagnosticsThisMethod.Free(); if (_emitMethodBodies) { // error while generating IL if (emittedBody == null) { break; } _moduleBeingBuiltOpt.SetMethodBody(method, emittedBody); } else { Debug.Assert(emittedBody is null); } } } finally { compilationState.CurrentImportChain = oldImportChain; } } private static bool IsFieldLikeEventAccessor(MethodSymbol method) { Symbol associatedPropertyOrEvent = method.AssociatedSymbol; return (object)associatedPropertyOrEvent != null && associatedPropertyOrEvent.Kind == SymbolKind.Event && ((EventSymbol)associatedPropertyOrEvent).HasAssociatedField; } /// <summary> /// In some circumstances (e.g. implicit implementation of an interface method by a non-virtual method in a /// base type from another assembly) it is necessary for the compiler to generate explicit implementations for /// some interface methods. They don't go in the symbol table, but if we are emitting, then we should /// generate code for them. /// </summary> private void CompileSynthesizedExplicitImplementations(SourceMemberContainerTypeSymbol sourceTypeSymbol, TypeCompilationState compilationState) { // we are not generating any observable diagnostics here so it is ok to short-circuit on global errors. if (!_globalHasErrors) { var discardedDiagnostics = BindingDiagnosticBag.GetInstance(_diagnostics); foreach (var synthesizedExplicitImpl in sourceTypeSymbol.GetSynthesizedExplicitImplementations(_cancellationToken).ForwardingMethods) { Debug.Assert(synthesizedExplicitImpl.SynthesizesLoweredBoundBody); synthesizedExplicitImpl.GenerateMethodBody(compilationState, discardedDiagnostics); Debug.Assert(!discardedDiagnostics.HasAnyErrors()); discardedDiagnostics.DiagnosticBag.Clear(); _moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceTypeSymbol, synthesizedExplicitImpl.GetCciAdapter()); } _diagnostics.AddRangeAndFree(discardedDiagnostics); } } private void CompileSynthesizedSealedAccessors(SourcePropertySymbolBase sourceProperty, TypeCompilationState compilationState) { SynthesizedSealedPropertyAccessor synthesizedAccessor = sourceProperty.SynthesizedSealedAccessorOpt; // we are not generating any observable diagnostics here so it is ok to short-circuit on global errors. if ((object)synthesizedAccessor != null && !_globalHasErrors) { Debug.Assert(synthesizedAccessor.SynthesizesLoweredBoundBody); var discardedDiagnostics = BindingDiagnosticBag.GetInstance(_diagnostics); synthesizedAccessor.GenerateMethodBody(compilationState, discardedDiagnostics); Debug.Assert(!discardedDiagnostics.HasAnyErrors()); _diagnostics.AddDependencies(discardedDiagnostics); discardedDiagnostics.Free(); _moduleBeingBuiltOpt.AddSynthesizedDefinition(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter()); } } private void CompileFieldLikeEventAccessor(SourceEventSymbol eventSymbol, bool isAddMethod) { MethodSymbol accessor = isAddMethod ? eventSymbol.AddMethod : eventSymbol.RemoveMethod; var diagnosticsThisMethod = BindingDiagnosticBag.GetInstance(_diagnostics); try { BoundBlock boundBody = MethodBodySynthesizer.ConstructFieldLikeEventAccessorBody(eventSymbol, isAddMethod, _compilation, diagnosticsThisMethod); var hasErrors = diagnosticsThisMethod.HasAnyErrors(); SetGlobalErrorIfTrue(hasErrors); // we cannot rely on GlobalHasErrors since that can be changed concurrently by other methods compiling // we however do not want to continue with generating method body if we have errors in this particular method - generating may crash // or if had declaration errors - we will fail anyways, but if some types are bad enough, generating may produce duplicate errors about that. if (!hasErrors && !_hasDeclarationErrors && _emitMethodBodies) { const int accessorOrdinal = -1; MethodBody emittedBody = GenerateMethodBody( _moduleBeingBuiltOpt, accessor, accessorOrdinal, boundBody, ImmutableArray<LambdaDebugInfo>.Empty, ImmutableArray<ClosureDebugInfo>.Empty, stateMachineTypeOpt: null, variableSlotAllocatorOpt: null, diagnostics: diagnosticsThisMethod, debugDocumentProvider: _debugDocumentProvider, importChainOpt: null, emittingPdb: false, emitTestCoverageData: _emitTestCoverageData, dynamicAnalysisSpans: ImmutableArray<SourceSpan>.Empty, entryPointOpt: null); _moduleBeingBuiltOpt.SetMethodBody(accessor, emittedBody); // Definition is already in the symbol table, so don't call moduleBeingBuilt.AddCompilerGeneratedDefinition } } finally { _diagnostics.AddRange(diagnosticsThisMethod); diagnosticsThisMethod.Free(); } } public override object VisitMethod(MethodSymbol symbol, TypeCompilationState arg) { throw ExceptionUtilities.Unreachable; } public override object VisitProperty(PropertySymbol symbol, TypeCompilationState argument) { throw ExceptionUtilities.Unreachable; } public override object VisitEvent(EventSymbol symbol, TypeCompilationState argument) { throw ExceptionUtilities.Unreachable; } public override object VisitField(FieldSymbol symbol, TypeCompilationState argument) { throw ExceptionUtilities.Unreachable; } private void CompileMethod( MethodSymbol methodSymbol, int methodOrdinal, ref Binder.ProcessedFieldInitializers processedInitializers, SynthesizedSubmissionFields previousSubmissionFields, TypeCompilationState compilationState) { _cancellationToken.ThrowIfCancellationRequested(); SourceMemberMethodSymbol sourceMethod = methodSymbol as SourceMemberMethodSymbol; if (methodSymbol.IsAbstract || methodSymbol.ContainingType?.IsDelegateType() == true) { if ((object)sourceMethod != null) { bool diagsWritten; sourceMethod.SetDiagnostics(ImmutableArray<Diagnostic>.Empty, out diagsWritten); if (diagsWritten && !methodSymbol.IsImplicitlyDeclared && _compilation.EventQueue != null) { _compilation.SymbolDeclaredEvent(methodSymbol); } } return; } // get cached diagnostics if not building and we have 'em if (_moduleBeingBuiltOpt == null && (object)sourceMethod != null) { var cachedDiagnostics = sourceMethod.Diagnostics; if (!cachedDiagnostics.IsDefault) { _diagnostics.AddRange(cachedDiagnostics); return; } } ImportChain oldImportChain = compilationState.CurrentImportChain; // In order to avoid generating code for methods with errors, we create a diagnostic bag just for this method. var diagsForCurrentMethod = BindingDiagnosticBag.GetInstance(_diagnostics); try { // if synthesized method returns its body in lowered form if (methodSymbol.SynthesizesLoweredBoundBody) { if (_moduleBeingBuiltOpt != null) { methodSymbol.GenerateMethodBody(compilationState, diagsForCurrentMethod); _diagnostics.AddRange(diagsForCurrentMethod); } return; } // no need to emit the default ctor, we are not emitting those if (methodSymbol.IsDefaultValueTypeConstructor(requireZeroInit: true)) { return; } bool includeNonEmptyInitializersInBody = false; BoundBlock body; bool originalBodyNested = false; // initializers that have been analyzed but not yet lowered. BoundStatementList analyzedInitializers = null; MethodBodySemanticModel.InitialState forSemanticModel = default; ImportChain importChain = null; var hasTrailingExpression = false; if (methodSymbol.IsScriptConstructor) { Debug.Assert(methodSymbol.IsImplicitlyDeclared); body = new BoundBlock(methodSymbol.GetNonNullSyntaxNode(), ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty) { WasCompilerGenerated = true }; } else if (methodSymbol.IsScriptInitializer) { Debug.Assert(methodSymbol.IsImplicitlyDeclared); // rewrite top-level statements and script variable declarations to a list of statements and assignments, respectively: var initializerStatements = InitializerRewriter.RewriteScriptInitializer(processedInitializers.BoundInitializers, (SynthesizedInteractiveInitializerMethod)methodSymbol, out hasTrailingExpression); // the lowered script initializers should not be treated as initializers anymore but as a method body: body = BoundBlock.SynthesizedNoLocals(initializerStatements.Syntax, initializerStatements.Statements); NullableWalker.AnalyzeIfNeeded( _compilation, methodSymbol, initializerStatements, diagsForCurrentMethod.DiagnosticBag, useConstructorExitWarnings: false, initialNullableState: null, getFinalNullableState: true, out processedInitializers.AfterInitializersState); var unusedDiagnostics = DiagnosticBag.GetInstance(); DefiniteAssignmentPass.Analyze(_compilation, methodSymbol, initializerStatements, unusedDiagnostics, requireOutParamsAssigned: false); DiagnosticsPass.IssueDiagnostics(_compilation, initializerStatements, BindingDiagnosticBag.Discarded, methodSymbol); unusedDiagnostics.Free(); } else { var includeInitializersInBody = methodSymbol.IncludeFieldInitializersInBody(); // Do not emit initializers if we are invoking another constructor of this class. includeNonEmptyInitializersInBody = includeInitializersInBody && !processedInitializers.BoundInitializers.IsDefaultOrEmpty; if (includeNonEmptyInitializersInBody && processedInitializers.LoweredInitializers == null) { analyzedInitializers = InitializerRewriter.RewriteConstructor(processedInitializers.BoundInitializers, methodSymbol); processedInitializers.HasErrors = processedInitializers.HasErrors || analyzedInitializers.HasAnyErrors; } if (includeInitializersInBody && processedInitializers.AfterInitializersState is null) { NullableWalker.AnalyzeIfNeeded( _compilation, methodSymbol, // we analyze to produce an AfterInitializersState even if there are no initializers // because it conveniently allows us to capture all the 'default' states for applicable members analyzedInitializers ?? GetSynthesizedEmptyBody(methodSymbol), diagsForCurrentMethod.DiagnosticBag, useConstructorExitWarnings: false, initialNullableState: null, getFinalNullableState: true, out processedInitializers.AfterInitializersState); } body = BindMethodBody(methodSymbol, compilationState, diagsForCurrentMethod, processedInitializers.AfterInitializersState, includeInitializersInBody && !processedInitializers.BoundInitializers.IsEmpty, out importChain, out originalBodyNested, out forSemanticModel); if (diagsForCurrentMethod.HasAnyErrors() && body != null) { body = (BoundBlock)body.WithHasErrors(); } // lower initializers just once. the lowered tree will be reused when emitting all constructors // with field initializers. Once lowered, these initializers will be stashed in processedInitializers.LoweredInitializers // (see later in this method). Don't bother lowering _now_ if this particular ctor won't have the initializers // appended to its body. if (includeNonEmptyInitializersInBody && processedInitializers.LoweredInitializers == null) { if (body != null && ((methodSymbol.ContainingType.IsStructType() && !methodSymbol.IsImplicitConstructor) || methodSymbol is SynthesizedRecordConstructor || _emitTestCoverageData)) { if (_emitTestCoverageData && methodSymbol.IsImplicitConstructor) { // Flow analysis over the initializers is necessary in order to find assignments to fields. // Bodies of implicit constructors do not get flow analysis later, so the initializers // are analyzed here. DefiniteAssignmentPass.Analyze(_compilation, methodSymbol, analyzedInitializers, diagsForCurrentMethod.DiagnosticBag, requireOutParamsAssigned: false); } // In order to get correct diagnostics, we need to analyze initializers and the body together. body = body.Update(body.Locals, body.LocalFunctions, body.Statements.Insert(0, analyzedInitializers)); includeNonEmptyInitializersInBody = false; analyzedInitializers = null; } else { // These analyses check for diagnostics in lambdas. // Control flow analysis and implicit return insertion are unnecessary. DefiniteAssignmentPass.Analyze(_compilation, methodSymbol, analyzedInitializers, diagsForCurrentMethod.DiagnosticBag, requireOutParamsAssigned: false); DiagnosticsPass.IssueDiagnostics(_compilation, analyzedInitializers, diagsForCurrentMethod, methodSymbol); } } } #if DEBUG // If the method is a synthesized static or instance constructor, then debugImports will be null and we will use the value // from the first field initializer. if ((methodSymbol.MethodKind == MethodKind.Constructor || methodSymbol.MethodKind == MethodKind.StaticConstructor) && methodSymbol.IsImplicitlyDeclared && body == null) { // There was no body to bind, so we didn't get anything from BindMethodBody. Debug.Assert(importChain == null); } // Either there were no field initializers or we grabbed debug imports from the first one. Debug.Assert(processedInitializers.BoundInitializers.IsDefaultOrEmpty || processedInitializers.FirstImportChain != null); #endif importChain = importChain ?? processedInitializers.FirstImportChain; // Associate these debug imports with all methods generated from this one. compilationState.CurrentImportChain = importChain; if (body != null) { DiagnosticsPass.IssueDiagnostics(_compilation, body, diagsForCurrentMethod, methodSymbol); } BoundBlock flowAnalyzedBody = null; if (body != null) { flowAnalyzedBody = FlowAnalysisPass.Rewrite(methodSymbol, body, diagsForCurrentMethod.DiagnosticBag, hasTrailingExpression: hasTrailingExpression, originalBodyNested: originalBodyNested); } bool hasErrors = _hasDeclarationErrors || diagsForCurrentMethod.HasAnyErrors() || processedInitializers.HasErrors; // Record whether or not the bound tree for the lowered method body (including any initializers) contained any // errors (note: errors, not diagnostics). SetGlobalErrorIfTrue(hasErrors); bool diagsWritten = false; var actualDiagnostics = diagsForCurrentMethod.ToReadOnly(); if (sourceMethod != null) { actualDiagnostics = new ImmutableBindingDiagnostic<AssemblySymbol>(sourceMethod.SetDiagnostics(actualDiagnostics.Diagnostics, out diagsWritten), actualDiagnostics.Dependencies); } if (diagsWritten && !methodSymbol.IsImplicitlyDeclared && _compilation.EventQueue != null) { // If compilation has a caching semantic model provider, then cache the already-computed bound tree // onto the semantic model and store it on the event. SyntaxTreeSemanticModel semanticModelWithCachedBoundNodes = null; if (body != null && forSemanticModel.Syntax is { } semanticModelSyntax && _compilation.SemanticModelProvider is CachingSemanticModelProvider cachingSemanticModelProvider) { var syntax = body.Syntax; semanticModelWithCachedBoundNodes = (SyntaxTreeSemanticModel)cachingSemanticModelProvider.GetSemanticModel(syntax.SyntaxTree, _compilation); semanticModelWithCachedBoundNodes.GetOrAddModel(semanticModelSyntax, (rootSyntax) => { Debug.Assert(rootSyntax == forSemanticModel.Syntax); return MethodBodySemanticModel.Create(semanticModelWithCachedBoundNodes, methodSymbol, forSemanticModel); }); } _compilation.EventQueue.TryEnqueue(new SymbolDeclaredCompilationEvent(_compilation, methodSymbol.GetPublicSymbol(), semanticModelWithCachedBoundNodes)); } // Don't lower if we're not emitting or if there were errors. // Methods that had binding errors are considered too broken to be lowered reliably. if (_moduleBeingBuiltOpt == null || hasErrors) { _diagnostics.AddRange(actualDiagnostics); return; } // ############################ // LOWERING AND EMIT // Any errors generated below here are considered Emit diagnostics // and will not be reported to callers Compilation.GetDiagnostics() ImmutableArray<SourceSpan> dynamicAnalysisSpans = ImmutableArray<SourceSpan>.Empty; bool hasBody = flowAnalyzedBody != null; VariableSlotAllocator lazyVariableSlotAllocator = null; StateMachineTypeSymbol stateMachineTypeOpt = null; var lambdaDebugInfoBuilder = ArrayBuilder<LambdaDebugInfo>.GetInstance(); var closureDebugInfoBuilder = ArrayBuilder<ClosureDebugInfo>.GetInstance(); BoundStatement loweredBodyOpt = null; try { if (hasBody) { loweredBodyOpt = LowerBodyOrInitializer( methodSymbol, methodOrdinal, flowAnalyzedBody, previousSubmissionFields, compilationState, _emitTestCoverageData, _debugDocumentProvider, ref dynamicAnalysisSpans, diagsForCurrentMethod, ref lazyVariableSlotAllocator, lambdaDebugInfoBuilder, closureDebugInfoBuilder, out stateMachineTypeOpt); Debug.Assert(loweredBodyOpt != null); } else { loweredBodyOpt = null; } hasErrors = hasErrors || (hasBody && loweredBodyOpt.HasErrors) || diagsForCurrentMethod.HasAnyErrors(); SetGlobalErrorIfTrue(hasErrors); // don't emit if the resulting method would contain initializers with errors if (!hasErrors && (hasBody || includeNonEmptyInitializersInBody)) { Debug.Assert(!(methodSymbol.IsImplicitInstanceConstructor && methodSymbol.ParameterCount == 0) || !methodSymbol.IsDefaultValueTypeConstructor(requireZeroInit: true)); // Fields must be initialized before constructor initializer (which is the first statement of the analyzed body, if specified), // so that the initialization occurs before any method overridden by the declaring class can be invoked from the base constructor // and access the fields. ImmutableArray<BoundStatement> boundStatements; if (methodSymbol.IsScriptConstructor) { boundStatements = MethodBodySynthesizer.ConstructScriptConstructorBody(loweredBodyOpt, methodSymbol, previousSubmissionFields, _compilation); } else { boundStatements = ImmutableArray<BoundStatement>.Empty; if (analyzedInitializers != null) { // For dynamic analysis, field initializers are instrumented as part of constructors, // and so are never instrumented here. Debug.Assert(!_emitTestCoverageData); StateMachineTypeSymbol initializerStateMachineTypeOpt; BoundStatement lowered = LowerBodyOrInitializer( methodSymbol, methodOrdinal, analyzedInitializers, previousSubmissionFields, compilationState, _emitTestCoverageData, _debugDocumentProvider, ref dynamicAnalysisSpans, diagsForCurrentMethod, ref lazyVariableSlotAllocator, lambdaDebugInfoBuilder, closureDebugInfoBuilder, out initializerStateMachineTypeOpt); processedInitializers.LoweredInitializers = lowered; // initializers can't produce state machines Debug.Assert((object)initializerStateMachineTypeOpt == null); Debug.Assert(!hasErrors); hasErrors = lowered.HasAnyErrors || diagsForCurrentMethod.HasAnyErrors(); SetGlobalErrorIfTrue(hasErrors); if (hasErrors) { _diagnostics.AddRange(diagsForCurrentMethod); return; } // Only do the cast if we haven't returned with some error diagnostics. // Otherwise, `lowered` might have been a BoundBadStatement. processedInitializers.LoweredInitializers = (BoundStatementList)lowered; } // initializers for global code have already been included in the body if (includeNonEmptyInitializersInBody) { if (processedInitializers.LoweredInitializers.Kind == BoundKind.StatementList) { BoundStatementList lowered = (BoundStatementList)processedInitializers.LoweredInitializers; boundStatements = boundStatements.Concat(lowered.Statements); } else { boundStatements = boundStatements.Add(processedInitializers.LoweredInitializers); } } if (hasBody) { boundStatements = boundStatements.Concat(ImmutableArray.Create(loweredBodyOpt)); } } if (_emitMethodBodies && (!(methodSymbol is SynthesizedStaticConstructor cctor) || cctor.ShouldEmit(processedInitializers.BoundInitializers))) { CSharpSyntaxNode syntax = methodSymbol.GetNonNullSyntaxNode(); var boundBody = BoundStatementList.Synthesized(syntax, boundStatements); var emittedBody = GenerateMethodBody( _moduleBeingBuiltOpt, methodSymbol, methodOrdinal, boundBody, lambdaDebugInfoBuilder.ToImmutable(), closureDebugInfoBuilder.ToImmutable(), stateMachineTypeOpt, lazyVariableSlotAllocator, diagsForCurrentMethod, _debugDocumentProvider, importChain, _emittingPdb, _emitTestCoverageData, dynamicAnalysisSpans, entryPointOpt: null); _moduleBeingBuiltOpt.SetMethodBody(methodSymbol.PartialDefinitionPart ?? methodSymbol, emittedBody); } } _diagnostics.AddRange(diagsForCurrentMethod); } finally { lambdaDebugInfoBuilder.Free(); closureDebugInfoBuilder.Free(); } } finally { diagsForCurrentMethod.Free(); compilationState.CurrentImportChain = oldImportChain; } } // internal for testing internal static BoundStatement LowerBodyOrInitializer( MethodSymbol method, int methodOrdinal, BoundStatement body, SynthesizedSubmissionFields previousSubmissionFields, TypeCompilationState compilationState, bool instrumentForDynamicAnalysis, DebugDocumentProvider debugDocumentProvider, ref ImmutableArray<SourceSpan> dynamicAnalysisSpans, BindingDiagnosticBag diagnostics, ref VariableSlotAllocator lazyVariableSlotAllocator, ArrayBuilder<LambdaDebugInfo> lambdaDebugInfoBuilder, ArrayBuilder<ClosureDebugInfo> closureDebugInfoBuilder, out StateMachineTypeSymbol stateMachineTypeOpt) { Debug.Assert(compilationState.ModuleBuilderOpt != null); stateMachineTypeOpt = null; if (body.HasErrors) { return body; } try { var loweredBody = LocalRewriter.Rewrite( method.DeclaringCompilation, method, methodOrdinal, method.ContainingType, body, compilationState, previousSubmissionFields: previousSubmissionFields, allowOmissionOfConditionalCalls: true, instrumentForDynamicAnalysis: instrumentForDynamicAnalysis, debugDocumentProvider: debugDocumentProvider, dynamicAnalysisSpans: ref dynamicAnalysisSpans, diagnostics: diagnostics, sawLambdas: out bool sawLambdas, sawLocalFunctions: out bool sawLocalFunctions, sawAwaitInExceptionHandler: out bool sawAwaitInExceptionHandler); if (loweredBody.HasErrors) { return loweredBody; } if (sawAwaitInExceptionHandler) { // If we have awaits in handlers, we need to // replace handlers with synthetic ones which can be consumed by async rewriter. // The reason why this rewrite happens before the lambda rewrite // is that we may need access to exception locals and it would be fairly hard to do // if these locals are captured into closures (possibly nested ones). loweredBody = AsyncExceptionHandlerRewriter.Rewrite( method, method.ContainingType, loweredBody, compilationState, diagnostics); } if (loweredBody.HasErrors) { return loweredBody; } if (lazyVariableSlotAllocator == null) { lazyVariableSlotAllocator = compilationState.ModuleBuilderOpt.TryCreateVariableSlotAllocator(method, method, diagnostics.DiagnosticBag); } BoundStatement bodyWithoutLambdas = loweredBody; if (sawLambdas || sawLocalFunctions) { bodyWithoutLambdas = ClosureConversion.Rewrite( loweredBody, method.ContainingType, method.ThisParameter, method, methodOrdinal, null, lambdaDebugInfoBuilder, closureDebugInfoBuilder, lazyVariableSlotAllocator, compilationState, diagnostics, assignLocals: null); } if (bodyWithoutLambdas.HasErrors) { return bodyWithoutLambdas; } BoundStatement bodyWithoutIterators = IteratorRewriter.Rewrite(bodyWithoutLambdas, method, methodOrdinal, lazyVariableSlotAllocator, compilationState, diagnostics, out IteratorStateMachine iteratorStateMachine); if (bodyWithoutIterators.HasErrors) { return bodyWithoutIterators; } BoundStatement bodyWithoutAsync = AsyncRewriter.Rewrite(bodyWithoutIterators, method, methodOrdinal, lazyVariableSlotAllocator, compilationState, diagnostics, out AsyncStateMachine asyncStateMachine); Debug.Assert((object)iteratorStateMachine == null || (object)asyncStateMachine == null); stateMachineTypeOpt = (StateMachineTypeSymbol)iteratorStateMachine ?? asyncStateMachine; return bodyWithoutAsync; } catch (BoundTreeVisitor.CancelledByStackGuardException ex) { ex.AddAnError(diagnostics); return new BoundBadStatement(body.Syntax, ImmutableArray.Create<BoundNode>(body), hasErrors: true); } } /// <summary> /// entryPointOpt is only considered for synthesized methods (to recognize the synthesized MoveNext method for async Main) /// </summary> private static MethodBody GenerateMethodBody( PEModuleBuilder moduleBuilder, MethodSymbol method, int methodOrdinal, BoundStatement block, ImmutableArray<LambdaDebugInfo> lambdaDebugInfo, ImmutableArray<ClosureDebugInfo> closureDebugInfo, StateMachineTypeSymbol stateMachineTypeOpt, VariableSlotAllocator variableSlotAllocatorOpt, BindingDiagnosticBag diagnostics, DebugDocumentProvider debugDocumentProvider, ImportChain importChainOpt, bool emittingPdb, bool emitTestCoverageData, ImmutableArray<SourceSpan> dynamicAnalysisSpans, SynthesizedEntryPointSymbol.AsyncForwardEntryPoint entryPointOpt) { // Note: don't call diagnostics.HasAnyErrors() in release; could be expensive if compilation has many warnings. Debug.Assert(!diagnostics.HasAnyErrors(), "Running code generator when errors exist might be dangerous; code generator not expecting errors"); var compilation = moduleBuilder.Compilation; var localSlotManager = new LocalSlotManager(variableSlotAllocatorOpt); var optimizations = compilation.Options.OptimizationLevel; ILBuilder builder = new ILBuilder(moduleBuilder, localSlotManager, optimizations, method.AreLocalsZeroed); bool hasStackalloc; var diagnosticsForThisMethod = BindingDiagnosticBag.GetInstance(withDiagnostics: true, diagnostics.AccumulatesDependencies); try { StateMachineMoveNextBodyDebugInfo moveNextBodyDebugInfoOpt = null; var codeGen = new CodeGen.CodeGenerator(method, block, builder, moduleBuilder, diagnosticsForThisMethod.DiagnosticBag, optimizations, emittingPdb); if (diagnosticsForThisMethod.HasAnyErrors()) { // we are done here. Since there were errors we should not emit anything. return null; } bool isAsyncStateMachine; MethodSymbol kickoffMethod; if (method is SynthesizedStateMachineMethod stateMachineMethod && method.Name == WellKnownMemberNames.MoveNextMethodName) { kickoffMethod = stateMachineMethod.StateMachineType.KickoffMethod; Debug.Assert(kickoffMethod != null); isAsyncStateMachine = kickoffMethod.IsAsync; // Async void method may be partial. Debug info needs to be associated with the emitted definition, // but the kickoff method is the method implementation (the part with body). kickoffMethod = kickoffMethod.PartialDefinitionPart ?? kickoffMethod; } else { kickoffMethod = null; isAsyncStateMachine = false; } if (isAsyncStateMachine) { codeGen.Generate(out int asyncCatchHandlerOffset, out var asyncYieldPoints, out var asyncResumePoints, out hasStackalloc); // The exception handler IL offset is used by the debugger to treat exceptions caught by the marked catch block as "user unhandled". // This is important for async void because async void exceptions generally result in the process being terminated, // but without anything useful on the call stack. Async Task methods on the other hand return exceptions as the result of the Task. // So it is undesirable to consider these exceptions "user unhandled" since there may well be user code that is awaiting the task. // This is a heuristic since it's possible that there is no user code awaiting the task. // We do the same for async Main methods, since it is unlikely that user code will be awaiting the Task: // AsyncForwardEntryPoint <Main> -> kick-off method Main -> MoveNext. bool isAsyncMainMoveNext = entryPointOpt?.UserMain.Equals(kickoffMethod) == true; moveNextBodyDebugInfoOpt = new AsyncMoveNextBodyDebugInfo( kickoffMethod.GetCciAdapter(), catchHandlerOffset: (kickoffMethod.ReturnsVoid || isAsyncMainMoveNext) ? asyncCatchHandlerOffset : -1, asyncYieldPoints, asyncResumePoints); } else { codeGen.Generate(out hasStackalloc); if ((object)kickoffMethod != null) { moveNextBodyDebugInfoOpt = new IteratorMoveNextBodyDebugInfo(kickoffMethod.GetCciAdapter()); } } // Compiler-generated MoveNext methods have hoisted local scopes. // These are built by call to CodeGen.Generate. var stateMachineHoistedLocalScopes = ((object)kickoffMethod != null) ? builder.GetHoistedLocalScopes() : default(ImmutableArray<StateMachineHoistedLocalScope>); // Translate the imports even if we are not writing PDBs. The translation has an impact on generated metadata // and we don't want to emit different metadata depending on whether or we emit with PDB stream. // TODO (https://github.com/dotnet/roslyn/issues/2846): This will need to change for member initializers in partial class. var importScopeOpt = importChainOpt?.Translate(moduleBuilder, diagnosticsForThisMethod.DiagnosticBag); var localVariables = builder.LocalSlotManager.LocalsInOrder(); if (localVariables.Length > 0xFFFE) { diagnosticsForThisMethod.Add(ErrorCode.ERR_TooManyLocals, method.Locations.First()); } if (diagnosticsForThisMethod.HasAnyErrors()) { // we are done here. Since there were errors we should not emit anything. return null; } // We will only save the IL builders when running tests. if (moduleBuilder.SaveTestData) { moduleBuilder.SetMethodTestData(method, builder.GetSnapshot()); } var stateMachineHoistedLocalSlots = default(ImmutableArray<EncHoistedLocalInfo>); var stateMachineAwaiterSlots = default(ImmutableArray<Cci.ITypeReference>); if (optimizations == OptimizationLevel.Debug && (object)stateMachineTypeOpt != null) { Debug.Assert(method.IsAsync || method.IsIterator); GetStateMachineSlotDebugInfo(moduleBuilder, moduleBuilder.GetSynthesizedFields(stateMachineTypeOpt), variableSlotAllocatorOpt, diagnosticsForThisMethod, out stateMachineHoistedLocalSlots, out stateMachineAwaiterSlots); Debug.Assert(!diagnostics.HasAnyErrors()); } DynamicAnalysisMethodBodyData dynamicAnalysisDataOpt = null; if (emitTestCoverageData) { Debug.Assert(debugDocumentProvider != null); dynamicAnalysisDataOpt = new DynamicAnalysisMethodBodyData(dynamicAnalysisSpans); } return new MethodBody( builder.RealizedIL, builder.MaxStack, (method.PartialDefinitionPart ?? method).GetCciAdapter(), variableSlotAllocatorOpt?.MethodId ?? new DebugId(methodOrdinal, moduleBuilder.CurrentGenerationOrdinal), localVariables, builder.RealizedSequencePoints, debugDocumentProvider, builder.RealizedExceptionHandlers, builder.AreLocalsZeroed, hasStackalloc, builder.GetAllScopes(), builder.HasDynamicLocal, importScopeOpt, lambdaDebugInfo, closureDebugInfo, stateMachineTypeOpt?.Name, stateMachineHoistedLocalScopes, stateMachineHoistedLocalSlots, stateMachineAwaiterSlots, moveNextBodyDebugInfoOpt, dynamicAnalysisDataOpt); } finally { // Basic blocks contain poolable builders for IL and sequence points. Free those back // to their pools. builder.FreeBasicBlocks(); // Remember diagnostics. diagnostics.AddRange(diagnosticsForThisMethod); diagnosticsForThisMethod.Free(); } } private static void GetStateMachineSlotDebugInfo( PEModuleBuilder moduleBuilder, IEnumerable<Cci.IFieldDefinition> fieldDefs, VariableSlotAllocator variableSlotAllocatorOpt, BindingDiagnosticBag diagnostics, out ImmutableArray<EncHoistedLocalInfo> hoistedVariableSlots, out ImmutableArray<Cci.ITypeReference> awaiterSlots) { var hoistedVariables = ArrayBuilder<EncHoistedLocalInfo>.GetInstance(); var awaiters = ArrayBuilder<Cci.ITypeReference>.GetInstance(); foreach (StateMachineFieldSymbol field in fieldDefs #if DEBUG .Select(f => ((FieldSymbolAdapter)f).AdaptedFieldSymbol) #endif ) { int index = field.SlotIndex; if (field.SlotDebugInfo.SynthesizedKind == SynthesizedLocalKind.AwaiterField) { Debug.Assert(index >= 0); while (index >= awaiters.Count) { awaiters.Add(null); } awaiters[index] = moduleBuilder.EncTranslateLocalVariableType(field.Type, diagnostics.DiagnosticBag); } else if (!field.SlotDebugInfo.Id.IsNone) { Debug.Assert(index >= 0 && field.SlotDebugInfo.SynthesizedKind.IsLongLived()); while (index >= hoistedVariables.Count) { // Empty slots may be present if variables were deleted during EnC. hoistedVariables.Add(new EncHoistedLocalInfo(true)); } hoistedVariables[index] = new EncHoistedLocalInfo(field.SlotDebugInfo, moduleBuilder.EncTranslateLocalVariableType(field.Type, diagnostics.DiagnosticBag)); } } // Fill in empty slots for variables deleted during EnC that are not followed by an existing variable: if (variableSlotAllocatorOpt != null) { int previousAwaiterCount = variableSlotAllocatorOpt.PreviousAwaiterSlotCount; while (awaiters.Count < previousAwaiterCount) { awaiters.Add(null); } int previousAwaiterSlotCount = variableSlotAllocatorOpt.PreviousHoistedLocalSlotCount; while (hoistedVariables.Count < previousAwaiterSlotCount) { hoistedVariables.Add(new EncHoistedLocalInfo(true)); } } hoistedVariableSlots = hoistedVariables.ToImmutableAndFree(); awaiterSlots = awaiters.ToImmutableAndFree(); } // NOTE: can return null if the method has no body. internal static BoundBlock BindMethodBody(MethodSymbol method, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) { return BindMethodBody(method, compilationState, diagnostics, nullableInitialState: null, includesFieldInitializers: false, out _, out _, out _); } // NOTE: can return null if the method has no body. private static BoundBlock BindMethodBody(MethodSymbol method, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics, NullableWalker.VariableState nullableInitialState, bool includesFieldInitializers, out ImportChain importChain, out bool originalBodyNested, out MethodBodySemanticModel.InitialState forSemanticModel) { originalBodyNested = false; importChain = null; forSemanticModel = default; BoundBlock body; if (method is SynthesizedRecordConstructor recordStructPrimaryCtor && method.ContainingType.IsRecordStruct) { body = BoundBlock.SynthesizedNoLocals(recordStructPrimaryCtor.GetSyntax()); } else if (method is SourceMemberMethodSymbol sourceMethod) { CSharpSyntaxNode syntaxNode = sourceMethod.SyntaxNode; // Static constructor can't have any this/base call if (method.MethodKind == MethodKind.StaticConstructor && syntaxNode is ConstructorDeclarationSyntax constructorSyntax && constructorSyntax.Initializer != null) { diagnostics.Add( ErrorCode.ERR_StaticConstructorWithExplicitConstructorCall, constructorSyntax.Initializer.ThisOrBaseKeyword.GetLocation(), constructorSyntax.Identifier.ValueText); } Debug.Assert(!sourceMethod.IsDefaultValueTypeConstructor(requireZeroInit: false)); if (sourceMethod.IsExtern) { return null; } Binder bodyBinder = sourceMethod.TryGetBodyBinder(); if (bodyBinder != null) { importChain = bodyBinder.ImportChain; BoundNode methodBody = bodyBinder.BindMethodBody(syntaxNode, diagnostics, includesFieldInitializers); BoundNode methodBodyForSemanticModel = methodBody; NullableWalker.SnapshotManager snapshotManager = null; ImmutableDictionary<Symbol, Symbol> remappedSymbols = null; var compilation = bodyBinder.Compilation; var isSufficientLangVersion = compilation.LanguageVersion >= MessageID.IDS_FeatureNullableReferenceTypes.RequiredVersion(); if (compilation.IsNullableAnalysisEnabledIn(method)) { methodBodyForSemanticModel = NullableWalker.AnalyzeAndRewrite( compilation, method, methodBody, bodyBinder, nullableInitialState, // if language version is insufficient, we do not want to surface nullability diagnostics, // but we should still provide nullability information through the semantic model. isSufficientLangVersion ? diagnostics.DiagnosticBag : new DiagnosticBag(), createSnapshots: true, out snapshotManager, ref remappedSymbols); } else { NullableWalker.AnalyzeIfNeeded( compilation, method, methodBody, diagnostics.DiagnosticBag, useConstructorExitWarnings: true, nullableInitialState, getFinalNullableState: false, finalNullableState: out _); } forSemanticModel = new MethodBodySemanticModel.InitialState(syntaxNode, methodBodyForSemanticModel, bodyBinder, snapshotManager, remappedSymbols); switch (methodBody.Kind) { case BoundKind.ConstructorMethodBody: var constructor = (BoundConstructorMethodBody)methodBody; body = constructor.BlockBody ?? constructor.ExpressionBody; if (constructor.Initializer is BoundNoOpStatement) { // We have field initializers and `: this()` is a default value type constructor. Debug.Assert(body is not null); return body; } else if (constructor.Initializer is BoundExpressionStatement expressionStatement) { ReportCtorInitializerCycles(method, expressionStatement.Expression, compilationState, diagnostics); if (body == null) { body = new BoundBlock(constructor.Syntax, constructor.Locals, ImmutableArray.Create<BoundStatement>(constructor.Initializer)); } else { body = new BoundBlock(constructor.Syntax, constructor.Locals, ImmutableArray.Create<BoundStatement>(constructor.Initializer, body)); originalBodyNested = true; } return body; } else { Debug.Assert(constructor.Initializer is null); Debug.Assert(constructor.Locals.IsEmpty); } break; case BoundKind.NonConstructorMethodBody: var nonConstructor = (BoundNonConstructorMethodBody)methodBody; body = nonConstructor.BlockBody ?? nonConstructor.ExpressionBody; break; case BoundKind.Block: body = (BoundBlock)methodBody; break; default: throw ExceptionUtilities.UnexpectedValue(methodBody.Kind); } } else { var property = sourceMethod.AssociatedSymbol as SourcePropertySymbolBase; if ((object)property != null && property.IsAutoPropertyWithGetAccessor) { return MethodBodySynthesizer.ConstructAutoPropertyAccessorBody(sourceMethod); } return null; } } else if (method is SynthesizedInstanceConstructor ctor) { // Synthesized instance constructors may partially synthesize // their body var node = ctor.GetNonNullSyntaxNode(); var factory = new SyntheticBoundNodeFactory(ctor, node, compilationState, diagnostics); var stmts = ArrayBuilder<BoundStatement>.GetInstance(); ctor.GenerateMethodBodyStatements(factory, stmts, diagnostics); body = BoundBlock.SynthesizedNoLocals(node, stmts.ToImmutableAndFree()); } else { // synthesized methods should return their bound bodies body = null; } if (method.IsConstructor() && method.IsImplicitlyDeclared && nullableInitialState is object) { NullableWalker.AnalyzeIfNeeded( compilationState.Compilation, method, body ?? GetSynthesizedEmptyBody(method), diagnostics.DiagnosticBag, useConstructorExitWarnings: true, nullableInitialState, getFinalNullableState: false, finalNullableState: out _); } if (method.MethodKind == MethodKind.Destructor && body != null) { return MethodBodySynthesizer.ConstructDestructorBody(method, body); } var constructorInitializer = BindImplicitConstructorInitializerIfAny(method, compilationState, diagnostics); ImmutableArray<BoundStatement> statements; if (constructorInitializer == null) { if (body != null) { return body; } statements = ImmutableArray<BoundStatement>.Empty; } else if (body == null) { statements = ImmutableArray.Create(constructorInitializer); } else { statements = ImmutableArray.Create(constructorInitializer, body); originalBodyNested = true; } return BoundBlock.SynthesizedNoLocals(method.GetNonNullSyntaxNode(), statements); } private static BoundBlock GetSynthesizedEmptyBody(Symbol symbol) { return BoundBlock.SynthesizedNoLocals(symbol.GetNonNullSyntaxNode()); } private static BoundStatement BindImplicitConstructorInitializerIfAny(MethodSymbol method, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) { Debug.Assert(!method.ContainingType.IsDelegateType()); // delegates have constructors but not constructor initializers if (method.MethodKind == MethodKind.Constructor && !method.IsExtern) { var compilation = method.DeclaringCompilation; var initializerInvocation = BindImplicitConstructorInitializer(method, diagnostics, compilation); if (initializerInvocation != null) { ReportCtorInitializerCycles(method, initializerInvocation, compilationState, diagnostics); // Base WasCompilerGenerated state off of whether constructor is implicitly declared, this will ensure proper instrumentation. var constructorInitializer = new BoundExpressionStatement(initializerInvocation.Syntax, initializerInvocation) { WasCompilerGenerated = method.IsImplicitlyDeclared }; Debug.Assert(initializerInvocation.HasAnyErrors || constructorInitializer.IsConstructorInitializer(), "Please keep this bound node in sync with BoundNodeExtensions.IsConstructorInitializer."); return constructorInitializer; } } return null; } private static void ReportCtorInitializerCycles(MethodSymbol method, BoundExpression initializerInvocation, TypeCompilationState compilationState, BindingDiagnosticBag diagnostics) { var ctorCall = initializerInvocation as BoundCall; if (ctorCall != null && !ctorCall.HasAnyErrors && ctorCall.Method != method && TypeSymbol.Equals(ctorCall.Method.ContainingType, method.ContainingType, TypeCompareKind.ConsiderEverything2)) { // Detect and report indirect cycles in the ctor-initializer call graph. compilationState.ReportCtorInitializerCycles(method, ctorCall.Method, ctorCall.Syntax, diagnostics); } } /// <summary> /// Bind the implicit constructor initializer of a constructor symbol. /// </summary> /// <param name="constructor">Constructor method.</param> /// <param name="diagnostics">Accumulates errors (e.g. access "this" in constructor initializer).</param> /// <param name="compilation">Used to retrieve binder.</param> /// <returns>A bound expression for the constructor initializer call.</returns> internal static BoundExpression BindImplicitConstructorInitializer( MethodSymbol constructor, BindingDiagnosticBag diagnostics, CSharpCompilation compilation) { // Note that the base type can be null if we're compiling System.Object in source. NamedTypeSymbol containingType = constructor.ContainingType; NamedTypeSymbol baseType = containingType.BaseTypeNoUseSiteDiagnostics; SourceMemberMethodSymbol sourceConstructor = constructor as SourceMemberMethodSymbol; Debug.Assert(sourceConstructor?.SyntaxNode is RecordDeclarationSyntax || ((ConstructorDeclarationSyntax)sourceConstructor?.SyntaxNode)?.Initializer == null); // The common case is that the type inherits directly from object. // Also, we might be trying to generate a constructor for an entirely compiler-generated class such // as a closure class; in that case it is vexing to try to find a suitable binder for the non-existing // constructor syntax so that we can do unnecessary overload resolution on the non-existing initializer! // Simply take the early out: bind directly to the parameterless object ctor rather than attempting // overload resolution. if ((object)baseType != null) { if (baseType.SpecialType == SpecialType.System_Object) { return GenerateBaseParameterlessConstructorInitializer(constructor, diagnostics); } else if (baseType.IsErrorType() || baseType.IsStatic) { // If the base type is bad and there is no initializer then we can just bail. // We have no expressions we need to analyze to report errors on. return null; } } if (containingType.IsStructType() || containingType.IsEnumType()) { return null; } else if (constructor is SynthesizedRecordCopyCtor copyCtor) { return GenerateBaseCopyConstructorInitializer(copyCtor, diagnostics); } // Now, in order to do overload resolution, we're going to need a binder. There are // two possible situations: // // class D1 : B { } // class D2 : B { D2(int x) { } } // // In the first case the binder needs to be the binder associated with // the *body* of D1 because if the base class ctor is protected, we need // to be inside the body of a derived class in order for it to be in the // accessibility domain of the protected base class ctor. // // In the second case the binder could be the binder associated with // the body of D2; since the implicit call to base() will have no arguments // there is no need to look up "x". Binder outerBinder; if ((object)sourceConstructor == null) { // The constructor is implicit. We need to get the binder for the body // of the enclosing class. CSharpSyntaxNode containerNode = constructor.GetNonNullSyntaxNode(); BinderFactory binderFactory = compilation.GetBinderFactory(containerNode.SyntaxTree); if (containerNode is RecordDeclarationSyntax recordDecl) { outerBinder = binderFactory.GetInRecordBodyBinder(recordDecl); } else { SyntaxToken bodyToken = GetImplicitConstructorBodyToken(containerNode); outerBinder = binderFactory.GetBinder(containerNode, bodyToken.Position); } } else { BinderFactory binderFactory = compilation.GetBinderFactory(sourceConstructor.SyntaxTree); switch (sourceConstructor.SyntaxNode) { case ConstructorDeclarationSyntax ctorDecl: // We have a ctor in source but no explicit constructor initializer. We can't just use the binder for the // type containing the ctor because the ctor might be marked unsafe. Use the binder for the parameter list // as an approximation - the extra symbols won't matter because there are no identifiers to bind. outerBinder = binderFactory.GetBinder(ctorDecl.ParameterList); break; case RecordDeclarationSyntax recordDecl: outerBinder = binderFactory.GetInRecordBodyBinder(recordDecl); break; default: throw ExceptionUtilities.Unreachable; } } // wrap in ConstructorInitializerBinder for appropriate errors // Handle scoping for possible pattern variables declared in the initializer Binder initializerBinder = outerBinder.WithAdditionalFlagsAndContainingMemberOrLambda(BinderFlags.ConstructorInitializer, constructor); return initializerBinder.BindConstructorInitializer(null, constructor, diagnostics); } private static SyntaxToken GetImplicitConstructorBodyToken(CSharpSyntaxNode containerNode) { return ((BaseTypeDeclarationSyntax)containerNode).OpenBraceToken; } internal static BoundCall GenerateBaseParameterlessConstructorInitializer(MethodSymbol constructor, BindingDiagnosticBag diagnostics) { NamedTypeSymbol baseType = constructor.ContainingType.BaseTypeNoUseSiteDiagnostics; MethodSymbol baseConstructor = null; LookupResultKind resultKind = LookupResultKind.Viable; Location diagnosticsLocation = constructor.Locations.IsEmpty ? NoLocation.Singleton : constructor.Locations[0]; foreach (MethodSymbol ctor in baseType.InstanceConstructors) { if (ctor.ParameterCount == 0) { baseConstructor = ctor; break; } } // UNDONE: If this happens then something is deeply wrong. Should we give a better error? if ((object)baseConstructor == null) { diagnostics.Add(ErrorCode.ERR_BadCtorArgCount, diagnosticsLocation, baseType, /*desired param count*/ 0); return null; } if (Binder.ReportUseSite(baseConstructor, diagnostics, diagnosticsLocation)) { return null; } // UNDONE: If this happens then something is deeply wrong. Should we give a better error? bool hasErrors = false; var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, constructor.ContainingAssembly); if (!AccessCheck.IsSymbolAccessible(baseConstructor, constructor.ContainingType, ref useSiteInfo)) { diagnostics.Add(ErrorCode.ERR_BadAccess, diagnosticsLocation, baseConstructor); resultKind = LookupResultKind.Inaccessible; hasErrors = true; } diagnostics.Add(diagnosticsLocation, useSiteInfo); CSharpSyntaxNode syntax = constructor.GetNonNullSyntaxNode(); BoundExpression receiver = new BoundThisReference(syntax, constructor.ContainingType) { WasCompilerGenerated = true }; return new BoundCall( syntax: syntax, receiverOpt: receiver, method: baseConstructor, arguments: ImmutableArray<BoundExpression>.Empty, argumentNamesOpt: ImmutableArray<string>.Empty, argumentRefKindsOpt: ImmutableArray<RefKind>.Empty, isDelegateCall: false, expanded: false, invokedAsExtensionMethod: false, argsToParamsOpt: ImmutableArray<int>.Empty, defaultArguments: BitVector.Empty, resultKind: resultKind, type: baseConstructor.ReturnType, hasErrors: hasErrors) { WasCompilerGenerated = true }; } private static BoundCall GenerateBaseCopyConstructorInitializer(SynthesizedRecordCopyCtor constructor, BindingDiagnosticBag diagnostics) { NamedTypeSymbol containingType = constructor.ContainingType; NamedTypeSymbol baseType = containingType.BaseTypeNoUseSiteDiagnostics; Location diagnosticsLocation = constructor.Locations.FirstOrNone(); var useSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, containingType.ContainingAssembly); MethodSymbol baseConstructor = SynthesizedRecordCopyCtor.FindCopyConstructor(baseType, containingType, ref useSiteInfo); if (baseConstructor is null) { diagnostics.Add(ErrorCode.ERR_NoCopyConstructorInBaseType, diagnosticsLocation, baseType); return null; } if (Binder.ReportUseSite(baseConstructor, diagnostics, diagnosticsLocation)) { return null; } diagnostics.Add(diagnosticsLocation, useSiteInfo); CSharpSyntaxNode syntax = constructor.GetNonNullSyntaxNode(); BoundExpression receiver = new BoundThisReference(syntax, constructor.ContainingType) { WasCompilerGenerated = true }; BoundExpression argument = new BoundParameter(syntax, constructor.Parameters[0]); return new BoundCall( syntax: syntax, receiverOpt: receiver, method: baseConstructor, arguments: ImmutableArray.Create(argument), argumentNamesOpt: default, argumentRefKindsOpt: default, isDelegateCall: false, expanded: false, invokedAsExtensionMethod: false, argsToParamsOpt: default, defaultArguments: default, resultKind: LookupResultKind.Viable, type: baseConstructor.ReturnType, hasErrors: false) { WasCompilerGenerated = true }; } private static Cci.DebugSourceDocument CreateDebugDocumentForFile(string normalizedPath) { return new Cci.DebugSourceDocument(normalizedPath, Cci.DebugSourceDocument.CorSymLanguageTypeCSharp); } private static bool PassesFilter(Predicate<Symbol> filterOpt, Symbol symbol) { return (filterOpt == null) || filterOpt(symbol); } } }
-1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/Features/Core/Portable/CodeLens/ReferenceLocationDescriptor.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Runtime.Serialization; namespace Microsoft.CodeAnalysis.CodeLens { /// <summary> /// Holds information required to display and navigate to individual references /// </summary> [DataContract] internal sealed class ReferenceLocationDescriptor { /// <summary> /// Fully qualified name of the symbol containing the reference location /// </summary> [DataMember(Order = 0)] public string LongDescription { get; } /// <summary> /// Language of the reference location /// </summary> [DataMember(Order = 1)] public string Language { get; } /// <summary> /// The kind of symbol containing the reference location (such as type, method, property, etc.) /// </summary> [DataMember(Order = 2)] public Glyph? Glyph { get; } /// <summary> /// Reference's span start based on the document content /// </summary> [DataMember(Order = 3)] public int SpanStart { get; } /// <summary> /// Reference's span length based on the document content /// </summary> [DataMember(Order = 4)] public int SpanLength { get; } /// <summary> /// Reference's line based on the document content /// </summary> [DataMember(Order = 5)] public int LineNumber { get; } /// <summary> /// Reference's character based on the document content /// </summary> [DataMember(Order = 6)] public int ColumnNumber { get; } [DataMember(Order = 7)] public Guid ProjectGuid { get; } [DataMember(Order = 8)] public Guid DocumentGuid { get; } /// <summary> /// Document's file path /// </summary> [DataMember(Order = 9)] public string FilePath { get; } /// <summary> /// the full line of source that contained the reference /// </summary> [DataMember(Order = 10)] public string ReferenceLineText { get; } /// <summary> /// the beginning of the span within reference text that was the use of the reference /// </summary> [DataMember(Order = 11)] public int ReferenceStart { get; } /// <summary> /// the length of the span of the reference /// </summary> [DataMember(Order = 12)] public int ReferenceLength { get; } /// <summary> /// Text above the line with the reference /// </summary> [DataMember(Order = 13)] public string BeforeReferenceText1 { get; } /// <summary> /// Text above the line with the reference /// </summary> [DataMember(Order = 14)] public string BeforeReferenceText2 { get; } /// <summary> /// Text below the line with the reference /// </summary> [DataMember(Order = 15)] public string AfterReferenceText1 { get; } /// <summary> /// Text below the line with the reference /// </summary> [DataMember(Order = 16)] public string AfterReferenceText2 { get; } public ReferenceLocationDescriptor( string longDescription, string language, Glyph? glyph, int spanStart, int spanLength, int lineNumber, int columnNumber, Guid projectGuid, Guid documentGuid, string filePath, string referenceLineText, int referenceStart, int referenceLength, string beforeReferenceText1, string beforeReferenceText2, string afterReferenceText1, string afterReferenceText2) { LongDescription = longDescription; Language = language; Glyph = glyph; SpanStart = spanStart; SpanLength = spanLength; LineNumber = lineNumber; ColumnNumber = columnNumber; // We want to keep track of the location's document if it comes from a file in your solution. ProjectGuid = projectGuid; DocumentGuid = documentGuid; FilePath = filePath; ReferenceLineText = referenceLineText; ReferenceStart = referenceStart; ReferenceLength = referenceLength; BeforeReferenceText1 = beforeReferenceText1; BeforeReferenceText2 = beforeReferenceText2; AfterReferenceText1 = afterReferenceText1; AfterReferenceText2 = afterReferenceText2; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Runtime.Serialization; namespace Microsoft.CodeAnalysis.CodeLens { /// <summary> /// Holds information required to display and navigate to individual references /// </summary> [DataContract] internal sealed class ReferenceLocationDescriptor { /// <summary> /// Fully qualified name of the symbol containing the reference location /// </summary> [DataMember(Order = 0)] public string LongDescription { get; } /// <summary> /// Language of the reference location /// </summary> [DataMember(Order = 1)] public string Language { get; } /// <summary> /// The kind of symbol containing the reference location (such as type, method, property, etc.) /// </summary> [DataMember(Order = 2)] public Glyph? Glyph { get; } /// <summary> /// Reference's span start based on the document content /// </summary> [DataMember(Order = 3)] public int SpanStart { get; } /// <summary> /// Reference's span length based on the document content /// </summary> [DataMember(Order = 4)] public int SpanLength { get; } /// <summary> /// Reference's line based on the document content /// </summary> [DataMember(Order = 5)] public int LineNumber { get; } /// <summary> /// Reference's character based on the document content /// </summary> [DataMember(Order = 6)] public int ColumnNumber { get; } [DataMember(Order = 7)] public Guid ProjectGuid { get; } [DataMember(Order = 8)] public Guid DocumentGuid { get; } /// <summary> /// Document's file path /// </summary> [DataMember(Order = 9)] public string FilePath { get; } /// <summary> /// the full line of source that contained the reference /// </summary> [DataMember(Order = 10)] public string ReferenceLineText { get; } /// <summary> /// the beginning of the span within reference text that was the use of the reference /// </summary> [DataMember(Order = 11)] public int ReferenceStart { get; } /// <summary> /// the length of the span of the reference /// </summary> [DataMember(Order = 12)] public int ReferenceLength { get; } /// <summary> /// Text above the line with the reference /// </summary> [DataMember(Order = 13)] public string BeforeReferenceText1 { get; } /// <summary> /// Text above the line with the reference /// </summary> [DataMember(Order = 14)] public string BeforeReferenceText2 { get; } /// <summary> /// Text below the line with the reference /// </summary> [DataMember(Order = 15)] public string AfterReferenceText1 { get; } /// <summary> /// Text below the line with the reference /// </summary> [DataMember(Order = 16)] public string AfterReferenceText2 { get; } public ReferenceLocationDescriptor( string longDescription, string language, Glyph? glyph, int spanStart, int spanLength, int lineNumber, int columnNumber, Guid projectGuid, Guid documentGuid, string filePath, string referenceLineText, int referenceStart, int referenceLength, string beforeReferenceText1, string beforeReferenceText2, string afterReferenceText1, string afterReferenceText2) { LongDescription = longDescription; Language = language; Glyph = glyph; SpanStart = spanStart; SpanLength = spanLength; LineNumber = lineNumber; ColumnNumber = columnNumber; // We want to keep track of the location's document if it comes from a file in your solution. ProjectGuid = projectGuid; DocumentGuid = documentGuid; FilePath = filePath; ReferenceLineText = referenceLineText; ReferenceStart = referenceStart; ReferenceLength = referenceLength; BeforeReferenceText1 = beforeReferenceText1; BeforeReferenceText2 = beforeReferenceText2; AfterReferenceText1 = afterReferenceText1; AfterReferenceText2 = afterReferenceText2; } } }
-1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/EditorFeatures/TestUtilities/Diagnostics/GenerateType/TestProjectManagementService.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Composition; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.ProjectManagement; namespace Microsoft.CodeAnalysis.Editor.UnitTests.Diagnostics.GenerateType { [ExportWorkspaceService(typeof(IProjectManagementService), ServiceLayer.Default), Shared] internal class TestProjectManagementService : IProjectManagementService { private string _defaultNamespace; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public TestProjectManagementService() { } public IList<string> GetFolders(ProjectId projectId, Workspace workspace) => null; public string GetDefaultNamespace(Project project, Workspace workspace) => _defaultNamespace; public void SetDefaultNamespace(string defaultNamespace) => _defaultNamespace = defaultNamespace; } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Generic; using System.Composition; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.ProjectManagement; namespace Microsoft.CodeAnalysis.Editor.UnitTests.Diagnostics.GenerateType { [ExportWorkspaceService(typeof(IProjectManagementService), ServiceLayer.Default), Shared] internal class TestProjectManagementService : IProjectManagementService { private string _defaultNamespace; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public TestProjectManagementService() { } public IList<string> GetFolders(ProjectId projectId, Workspace workspace) => null; public string GetDefaultNamespace(Project project, Workspace workspace) => _defaultNamespace; public void SetDefaultNamespace(string defaultNamespace) => _defaultNamespace = defaultNamespace; } }
-1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/EditorFeatures/Core/Tagging/AbstractAsynchronousTaggerProvider.TagSource_IEqualityComparer.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using Microsoft.VisualStudio.Text.Tagging; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.Tagging { internal abstract partial class AbstractAsynchronousTaggerProvider<TTag> { private partial class TagSource : IEqualityComparer<ITagSpan<TTag>> { public bool Equals(ITagSpan<TTag> x, ITagSpan<TTag> y) => x.Span == y.Span && EqualityComparer<TTag>.Default.Equals(x.Tag, y.Tag); public int GetHashCode(ITagSpan<TTag> obj) => Hash.Combine(obj.Span.GetHashCode(), EqualityComparer<TTag>.Default.GetHashCode(obj.Tag)); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Collections.Generic; using Microsoft.VisualStudio.Text.Tagging; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.Tagging { internal abstract partial class AbstractAsynchronousTaggerProvider<TTag> { private partial class TagSource : IEqualityComparer<ITagSpan<TTag>> { public bool Equals(ITagSpan<TTag> x, ITagSpan<TTag> y) => x.Span == y.Span && EqualityComparer<TTag>.Default.Equals(x.Tag, y.Tag); public int GetHashCode(ITagSpan<TTag> obj) => Hash.Combine(obj.Span.GetHashCode(), EqualityComparer<TTag>.Default.GetHashCode(obj.Tag)); } } }
-1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/VisualStudio/IntegrationTest/TestUtilities/Common/Comparison.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; namespace Microsoft.VisualStudio.IntegrationTest.Utilities.Common { internal static class Comparison { public static bool AreStringValuesEqual(string? str1, string? str2) => (str1 ?? "") == (str2 ?? ""); public static bool AreArraysEqual<T>(T[]? array1, T[]? array2) where T : IEquatable<T> { if (array1 is null || array2 is null) { // both must be null return array1 == array2; } if (array1.Length != array2.Length) { return false; } for (var i = 0; i < array1.Length; i++) { if (!EqualityComparer<T>.Default.Equals(array1[i], array2[i])) { return false; } } return true; } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; namespace Microsoft.VisualStudio.IntegrationTest.Utilities.Common { internal static class Comparison { public static bool AreStringValuesEqual(string? str1, string? str2) => (str1 ?? "") == (str2 ?? ""); public static bool AreArraysEqual<T>(T[]? array1, T[]? array2) where T : IEquatable<T> { if (array1 is null || array2 is null) { // both must be null return array1 == array2; } if (array1.Length != array2.Length) { return false; } for (var i = 0; i < array1.Length; i++) { if (!EqualityComparer<T>.Default.Equals(array1[i], array2[i])) { return false; } } return true; } } }
-1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/Features/Core/Portable/Workspace/ProjectCacheService.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Host { /// <summary> /// This service will implicitly cache previous Compilations used by each supported Workspace implementation. /// The number of Compilations cached is determined by <see cref="ImplicitCacheSize"/>. For now, we'll only /// support implicit caching for VS Workspaces (<see cref="WorkspaceKind.Host"/>), as caching is known to /// reduce latency in designer scenarios using the VS workspace. For other Workspace kinds, the cost of the /// cache is likely to outweigh the benefit (for example, in Misc File Workspace cases, we can end up holding /// onto a lot of memory even after a file is closed). We can opt in other kinds of Workspaces as needed. /// </summary> internal partial class ProjectCacheService : IProjectCacheHostService { internal const int ImplicitCacheSize = 3; private readonly object _gate = new(); private readonly Workspace _workspace; private readonly Dictionary<ProjectId, Cache> _activeCaches = new(); private readonly SimpleMRUCache? _implicitCache; private readonly ImplicitCacheMonitor? _implicitCacheMonitor; public ProjectCacheService(Workspace workspace) => _workspace = workspace; public ProjectCacheService(Workspace workspace, TimeSpan implicitCacheTimeout) { _workspace = workspace; _implicitCache = new SimpleMRUCache(); _implicitCacheMonitor = new ImplicitCacheMonitor(this, implicitCacheTimeout); } public bool IsImplicitCacheEmpty { get { lock (_gate) { return _implicitCache?.IsEmpty ?? false; } } } public void ClearImplicitCache() { lock (_gate) { _implicitCache?.Clear(); } } public void ClearExpiredImplicitCache(DateTime expirationTime) { lock (_gate) { _implicitCache?.ClearExpiredItems(expirationTime); } } public IDisposable EnableCaching(ProjectId key) { lock (_gate) { if (!_activeCaches.TryGetValue(key, out var cache)) { cache = new Cache(this, key); _activeCaches.Add(key, cache); } cache.Count++; return cache; } } [return: NotNullIfNotNull("instance")] public T? CacheObjectIfCachingEnabledForKey<T>(ProjectId key, object owner, T? instance) where T : class { lock (_gate) { if (_activeCaches.TryGetValue(key, out var cache)) { cache.CreateStrongReference(owner, instance); } else if (_implicitCache != null && !PartOfP2PReferences(key)) { RoslynDebug.Assert(_implicitCacheMonitor != null); _implicitCache.Touch(instance); _implicitCacheMonitor.Touch(); } return instance; } } private bool PartOfP2PReferences(ProjectId key) { if (_activeCaches.Count == 0 || _workspace == null) { return false; } var solution = _workspace.CurrentSolution; var graph = solution.GetProjectDependencyGraph(); foreach (var projectId in _activeCaches.Keys) { // this should be cheap. graph is cached every time project reference is updated. var p2pReferences = (ImmutableHashSet<ProjectId>)graph.GetProjectsThatThisProjectTransitivelyDependsOn(projectId); if (p2pReferences.Contains(key)) { return true; } } return false; } [return: NotNullIfNotNull("instance")] public T? CacheObjectIfCachingEnabledForKey<T>(ProjectId key, ICachedObjectOwner owner, T? instance) where T : class { lock (_gate) { if (owner.CachedObject == null && _activeCaches.TryGetValue(key, out var cache)) { owner.CachedObject = instance; cache.CreateOwnerEntry(owner); } return instance; } } private void DisableCaching(ProjectId key, Cache cache) { lock (_gate) { cache.Count--; if (cache.Count == 0) { _activeCaches.Remove(key); cache.FreeOwnerEntries(); } } } private sealed class Cache : IDisposable { internal int Count; private readonly ProjectCacheService _cacheService; private readonly ProjectId _key; private ConditionalWeakTable<object, object?>? _cache = new(); private readonly List<WeakReference<ICachedObjectOwner>> _ownerObjects = new(); public Cache(ProjectCacheService cacheService, ProjectId key) { _cacheService = cacheService; _key = key; } public void Dispose() => _cacheService.DisableCaching(_key, this); internal void CreateStrongReference(object key, object? instance) { if (_cache == null) { throw new ObjectDisposedException(nameof(Cache)); } if (!_cache.TryGetValue(key, out _)) { _cache.Add(key, instance); } } internal void CreateOwnerEntry(ICachedObjectOwner owner) => _ownerObjects.Add(new WeakReference<ICachedObjectOwner>(owner)); internal void FreeOwnerEntries() { foreach (var entry in _ownerObjects) { if (entry.TryGetTarget(out var owner)) { owner.CachedObject = null; } } // Explicitly free our ConditionalWeakTable to make sure it's released. We have a number of places in the codebase // (in both tests and product code) that do using (service.EnableCaching), which implicitly returns a disposable instance // this type. The runtime in many cases disposes, but does not unroot, the underlying object after the the using block is exited. // This means the cache could still be rooting objects we don't expect it to be rooting by that point. By explicitly clearing // these out, we get the expected behavior. _cache = null; _ownerObjects.Clear(); } } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Host { /// <summary> /// This service will implicitly cache previous Compilations used by each supported Workspace implementation. /// The number of Compilations cached is determined by <see cref="ImplicitCacheSize"/>. For now, we'll only /// support implicit caching for VS Workspaces (<see cref="WorkspaceKind.Host"/>), as caching is known to /// reduce latency in designer scenarios using the VS workspace. For other Workspace kinds, the cost of the /// cache is likely to outweigh the benefit (for example, in Misc File Workspace cases, we can end up holding /// onto a lot of memory even after a file is closed). We can opt in other kinds of Workspaces as needed. /// </summary> internal partial class ProjectCacheService : IProjectCacheHostService { internal const int ImplicitCacheSize = 3; private readonly object _gate = new(); private readonly Workspace _workspace; private readonly Dictionary<ProjectId, Cache> _activeCaches = new(); private readonly SimpleMRUCache? _implicitCache; private readonly ImplicitCacheMonitor? _implicitCacheMonitor; public ProjectCacheService(Workspace workspace) => _workspace = workspace; public ProjectCacheService(Workspace workspace, TimeSpan implicitCacheTimeout) { _workspace = workspace; _implicitCache = new SimpleMRUCache(); _implicitCacheMonitor = new ImplicitCacheMonitor(this, implicitCacheTimeout); } public bool IsImplicitCacheEmpty { get { lock (_gate) { return _implicitCache?.IsEmpty ?? false; } } } public void ClearImplicitCache() { lock (_gate) { _implicitCache?.Clear(); } } public void ClearExpiredImplicitCache(DateTime expirationTime) { lock (_gate) { _implicitCache?.ClearExpiredItems(expirationTime); } } public IDisposable EnableCaching(ProjectId key) { lock (_gate) { if (!_activeCaches.TryGetValue(key, out var cache)) { cache = new Cache(this, key); _activeCaches.Add(key, cache); } cache.Count++; return cache; } } [return: NotNullIfNotNull("instance")] public T? CacheObjectIfCachingEnabledForKey<T>(ProjectId key, object owner, T? instance) where T : class { lock (_gate) { if (_activeCaches.TryGetValue(key, out var cache)) { cache.CreateStrongReference(owner, instance); } else if (_implicitCache != null && !PartOfP2PReferences(key)) { RoslynDebug.Assert(_implicitCacheMonitor != null); _implicitCache.Touch(instance); _implicitCacheMonitor.Touch(); } return instance; } } private bool PartOfP2PReferences(ProjectId key) { if (_activeCaches.Count == 0 || _workspace == null) { return false; } var solution = _workspace.CurrentSolution; var graph = solution.GetProjectDependencyGraph(); foreach (var projectId in _activeCaches.Keys) { // this should be cheap. graph is cached every time project reference is updated. var p2pReferences = (ImmutableHashSet<ProjectId>)graph.GetProjectsThatThisProjectTransitivelyDependsOn(projectId); if (p2pReferences.Contains(key)) { return true; } } return false; } [return: NotNullIfNotNull("instance")] public T? CacheObjectIfCachingEnabledForKey<T>(ProjectId key, ICachedObjectOwner owner, T? instance) where T : class { lock (_gate) { if (owner.CachedObject == null && _activeCaches.TryGetValue(key, out var cache)) { owner.CachedObject = instance; cache.CreateOwnerEntry(owner); } return instance; } } private void DisableCaching(ProjectId key, Cache cache) { lock (_gate) { cache.Count--; if (cache.Count == 0) { _activeCaches.Remove(key); cache.FreeOwnerEntries(); } } } private sealed class Cache : IDisposable { internal int Count; private readonly ProjectCacheService _cacheService; private readonly ProjectId _key; private ConditionalWeakTable<object, object?>? _cache = new(); private readonly List<WeakReference<ICachedObjectOwner>> _ownerObjects = new(); public Cache(ProjectCacheService cacheService, ProjectId key) { _cacheService = cacheService; _key = key; } public void Dispose() => _cacheService.DisableCaching(_key, this); internal void CreateStrongReference(object key, object? instance) { if (_cache == null) { throw new ObjectDisposedException(nameof(Cache)); } if (!_cache.TryGetValue(key, out _)) { _cache.Add(key, instance); } } internal void CreateOwnerEntry(ICachedObjectOwner owner) => _ownerObjects.Add(new WeakReference<ICachedObjectOwner>(owner)); internal void FreeOwnerEntries() { foreach (var entry in _ownerObjects) { if (entry.TryGetTarget(out var owner)) { owner.CachedObject = null; } } // Explicitly free our ConditionalWeakTable to make sure it's released. We have a number of places in the codebase // (in both tests and product code) that do using (service.EnableCaching), which implicitly returns a disposable instance // this type. The runtime in many cases disposes, but does not unroot, the underlying object after the the using block is exited. // This means the cache could still be rooting objects we don't expect it to be rooting by that point. By explicitly clearing // these out, we get the expected behavior. _cache = null; _ownerObjects.Clear(); } } } }
-1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/Compilers/CSharp/Test/Semantic/Semantics/SuppressAccessibilityChecksTests.cs
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.IO; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.Semantics { public class SuppressAccessibilityChecksTests : CSharpTestBase { private static SemanticModel GetSemanticModelWithIgnoreAccessibility() { var compilationA = CreateCompilation(@" namespace N { class A { A M() { return new A(); } int _num; } }" ); var referenceA = MetadataReference.CreateFromStream(compilationA.EmitToStream()); var compilationB = CreateCompilation(@" using A = N.A; class B { void Main() { new A().M(); } } ", new MetadataReference[] { referenceA }, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); var syntaxTree = compilationB.SyntaxTrees[0]; return compilationB.GetSemanticModel(syntaxTree, ignoreAccessibility: true); } [Fact] public void TestAccessPrivateMemberOfInternalType() { var semanticModel = GetSemanticModelWithIgnoreAccessibility(); var invocation = semanticModel.SyntaxTree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Single(); var position = invocation.FullSpan.Start; Assert.Equal("A", semanticModel.GetTypeInfo(invocation).Type.Name); Assert.Equal("M", semanticModel.GetSymbolInfo(invocation).Symbol.Name); Assert.NotEmpty(semanticModel.LookupSymbols(position, name: "A")); semanticModel = semanticModel.Compilation.GetSemanticModel(semanticModel.SyntaxTree); Assert.Equal("A", semanticModel.GetTypeInfo(invocation).Type.Name); Assert.Null(semanticModel.GetSymbolInfo(invocation).Symbol); Assert.Equal("M", semanticModel.GetSymbolInfo(invocation).CandidateSymbols.Single().Name); Assert.Equal(CandidateReason.Inaccessible, semanticModel.GetSymbolInfo(invocation).CandidateReason); } [Fact] public void TestAccessChecksInSpeculativeExpression() { var semanticModel = GetSemanticModelWithIgnoreAccessibility(); var invocation = semanticModel.SyntaxTree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Single(); var position = invocation.FullSpan.Start; var exp = SyntaxFactory.ParseExpression("new A().M()._num"); Assert.Equal("Int32", semanticModel.GetSpeculativeTypeInfo(position, exp, SpeculativeBindingOption.BindAsExpression).Type.Name); Assert.Equal("_num", semanticModel.GetSpeculativeSymbolInfo(position, exp, SpeculativeBindingOption.BindAsExpression).Symbol.Name); } [Fact] public void TestAccessChecksInSpeculativeSemanticModel() { var semanticModel = GetSemanticModelWithIgnoreAccessibility(); var invocation = semanticModel.SyntaxTree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Single(); var position = invocation.FullSpan.Start; SemanticModel speculativeSemanticModel; var statement = SyntaxFactory.ParseStatement("var goo = new A().M();"); semanticModel.TryGetSpeculativeSemanticModel(position, statement, out speculativeSemanticModel); var creationExpression = speculativeSemanticModel.GetTypeInfo( statement.DescendantNodes().OfType<ObjectCreationExpressionSyntax>().Single()); Assert.Equal("A", creationExpression.Type.Name); } [Fact] public void TestAccessChecksInsideLambdaExpression() { var source = @" using System.Collections.Generic; class P { bool _p; } class C { static void M() { var tmp = new List<P>(); tmp.Find(a => true); } } "; var tree = SyntaxFactory.ParseSyntaxTree(source); var comp = CreateCompilation(tree); var model = comp.GetSemanticModel(tree, ignoreAccessibility: true); var expr = (ExpressionSyntax)tree.GetCompilationUnitRoot().DescendantNodes().OfType<SimpleLambdaExpressionSyntax>().Single().Body; var symbolInfo = model.GetSpeculativeSymbolInfo(expr.FullSpan.Start, SyntaxFactory.ParseExpression("a._p"), SpeculativeBindingOption.BindAsExpression); Assert.Equal("_p", symbolInfo.Symbol.Name); } [Fact] public void TestExtensionMethodInInternalClass() { var compilationA = CreateCompilationWithMscorlib40AndSystemCore(@" public class A { A M() { return new A(); } internal int _num; } internal static class E { internal static int InternalExtension(this A theClass, int newNum) { theClass._num = newNum; return newNum; } } "); var referenceA = MetadataReference.CreateFromStream(compilationA.EmitToStream()); var compilationB = CreateCompilation(@" class B { void Main() { new A().M(); } } ", new MetadataReference[] { referenceA }, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); var syntaxTree = compilationB.SyntaxTrees[0]; var semanticModel = compilationB.GetSemanticModel(syntaxTree, ignoreAccessibility: true); var invocation = syntaxTree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Single(); Assert.Equal("A", semanticModel.GetTypeInfo(invocation).Type.Name); Assert.Equal("M", semanticModel.GetSymbolInfo(invocation).Symbol.Name); var speculativeInvocation = SyntaxFactory.ParseExpression("new A().InternalExtension(67)"); var position = invocation.FullSpan.Start; Assert.Equal("Int32", semanticModel.GetSpeculativeTypeInfo(position, speculativeInvocation, SpeculativeBindingOption.BindAsExpression).Type.Name); Assert.Equal("InternalExtension", semanticModel.GetSpeculativeSymbolInfo(position, speculativeInvocation, SpeculativeBindingOption.BindAsExpression).Symbol.Name); } [Fact] public void TestGetSpeculativeSemanticModelForPropertyAccessorBody() { var compilation = CreateCompilation(@" class R { private int _p; } class C : R { private int M { set { int y = 1000; } } } "); var blockStatement = (BlockSyntax)SyntaxFactory.ParseStatement(@" { int z = 0; _p = 123L; } "); var tree = compilation.SyntaxTrees[0]; var root = tree.GetCompilationUnitRoot(); var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); AccessorDeclarationSyntax accessorDecl = root.DescendantNodes().OfType<AccessorDeclarationSyntax>().Single(); var speculatedMethod = accessorDecl.ReplaceNode(accessorDecl.Body, blockStatement); SemanticModel speculativeModel; var success = model.TryGetSpeculativeSemanticModelForMethodBody( accessorDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel); Assert.True(success); Assert.NotNull(speculativeModel); var p = speculativeModel.SyntaxTree.GetRoot() .DescendantNodes() .OfType<IdentifierNameSyntax>() .Single(s => s.Identifier.ValueText == "_p"); var symbolSpeculation = speculativeModel.GetSpeculativeSymbolInfo(p.FullSpan.Start, p, SpeculativeBindingOption.BindAsExpression); Assert.Equal("_p", symbolSpeculation.Symbol.Name); var typeSpeculation = speculativeModel.GetSpeculativeTypeInfo(p.FullSpan.Start, p, SpeculativeBindingOption.BindAsExpression); Assert.Equal("Int32", typeSpeculation.Type.Name); } } }
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.IO; using System.Linq; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.Semantics { public class SuppressAccessibilityChecksTests : CSharpTestBase { private static SemanticModel GetSemanticModelWithIgnoreAccessibility() { var compilationA = CreateCompilation(@" namespace N { class A { A M() { return new A(); } int _num; } }" ); var referenceA = MetadataReference.CreateFromStream(compilationA.EmitToStream()); var compilationB = CreateCompilation(@" using A = N.A; class B { void Main() { new A().M(); } } ", new MetadataReference[] { referenceA }, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); var syntaxTree = compilationB.SyntaxTrees[0]; return compilationB.GetSemanticModel(syntaxTree, ignoreAccessibility: true); } [Fact] public void TestAccessPrivateMemberOfInternalType() { var semanticModel = GetSemanticModelWithIgnoreAccessibility(); var invocation = semanticModel.SyntaxTree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Single(); var position = invocation.FullSpan.Start; Assert.Equal("A", semanticModel.GetTypeInfo(invocation).Type.Name); Assert.Equal("M", semanticModel.GetSymbolInfo(invocation).Symbol.Name); Assert.NotEmpty(semanticModel.LookupSymbols(position, name: "A")); semanticModel = semanticModel.Compilation.GetSemanticModel(semanticModel.SyntaxTree); Assert.Equal("A", semanticModel.GetTypeInfo(invocation).Type.Name); Assert.Null(semanticModel.GetSymbolInfo(invocation).Symbol); Assert.Equal("M", semanticModel.GetSymbolInfo(invocation).CandidateSymbols.Single().Name); Assert.Equal(CandidateReason.Inaccessible, semanticModel.GetSymbolInfo(invocation).CandidateReason); } [Fact] public void TestAccessChecksInSpeculativeExpression() { var semanticModel = GetSemanticModelWithIgnoreAccessibility(); var invocation = semanticModel.SyntaxTree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Single(); var position = invocation.FullSpan.Start; var exp = SyntaxFactory.ParseExpression("new A().M()._num"); Assert.Equal("Int32", semanticModel.GetSpeculativeTypeInfo(position, exp, SpeculativeBindingOption.BindAsExpression).Type.Name); Assert.Equal("_num", semanticModel.GetSpeculativeSymbolInfo(position, exp, SpeculativeBindingOption.BindAsExpression).Symbol.Name); } [Fact] public void TestAccessChecksInSpeculativeSemanticModel() { var semanticModel = GetSemanticModelWithIgnoreAccessibility(); var invocation = semanticModel.SyntaxTree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Single(); var position = invocation.FullSpan.Start; SemanticModel speculativeSemanticModel; var statement = SyntaxFactory.ParseStatement("var goo = new A().M();"); semanticModel.TryGetSpeculativeSemanticModel(position, statement, out speculativeSemanticModel); var creationExpression = speculativeSemanticModel.GetTypeInfo( statement.DescendantNodes().OfType<ObjectCreationExpressionSyntax>().Single()); Assert.Equal("A", creationExpression.Type.Name); } [Fact] public void TestAccessChecksInsideLambdaExpression() { var source = @" using System.Collections.Generic; class P { bool _p; } class C { static void M() { var tmp = new List<P>(); tmp.Find(a => true); } } "; var tree = SyntaxFactory.ParseSyntaxTree(source); var comp = CreateCompilation(tree); var model = comp.GetSemanticModel(tree, ignoreAccessibility: true); var expr = (ExpressionSyntax)tree.GetCompilationUnitRoot().DescendantNodes().OfType<SimpleLambdaExpressionSyntax>().Single().Body; var symbolInfo = model.GetSpeculativeSymbolInfo(expr.FullSpan.Start, SyntaxFactory.ParseExpression("a._p"), SpeculativeBindingOption.BindAsExpression); Assert.Equal("_p", symbolInfo.Symbol.Name); } [Fact] public void TestExtensionMethodInInternalClass() { var compilationA = CreateCompilationWithMscorlib40AndSystemCore(@" public class A { A M() { return new A(); } internal int _num; } internal static class E { internal static int InternalExtension(this A theClass, int newNum) { theClass._num = newNum; return newNum; } } "); var referenceA = MetadataReference.CreateFromStream(compilationA.EmitToStream()); var compilationB = CreateCompilation(@" class B { void Main() { new A().M(); } } ", new MetadataReference[] { referenceA }, TestOptions.ReleaseDll.WithMetadataImportOptions(MetadataImportOptions.All)); var syntaxTree = compilationB.SyntaxTrees[0]; var semanticModel = compilationB.GetSemanticModel(syntaxTree, ignoreAccessibility: true); var invocation = syntaxTree.GetRoot().DescendantNodes().OfType<InvocationExpressionSyntax>().Single(); Assert.Equal("A", semanticModel.GetTypeInfo(invocation).Type.Name); Assert.Equal("M", semanticModel.GetSymbolInfo(invocation).Symbol.Name); var speculativeInvocation = SyntaxFactory.ParseExpression("new A().InternalExtension(67)"); var position = invocation.FullSpan.Start; Assert.Equal("Int32", semanticModel.GetSpeculativeTypeInfo(position, speculativeInvocation, SpeculativeBindingOption.BindAsExpression).Type.Name); Assert.Equal("InternalExtension", semanticModel.GetSpeculativeSymbolInfo(position, speculativeInvocation, SpeculativeBindingOption.BindAsExpression).Symbol.Name); } [Fact] public void TestGetSpeculativeSemanticModelForPropertyAccessorBody() { var compilation = CreateCompilation(@" class R { private int _p; } class C : R { private int M { set { int y = 1000; } } } "); var blockStatement = (BlockSyntax)SyntaxFactory.ParseStatement(@" { int z = 0; _p = 123L; } "); var tree = compilation.SyntaxTrees[0]; var root = tree.GetCompilationUnitRoot(); var model = compilation.GetSemanticModel(tree, ignoreAccessibility: true); AccessorDeclarationSyntax accessorDecl = root.DescendantNodes().OfType<AccessorDeclarationSyntax>().Single(); var speculatedMethod = accessorDecl.ReplaceNode(accessorDecl.Body, blockStatement); SemanticModel speculativeModel; var success = model.TryGetSpeculativeSemanticModelForMethodBody( accessorDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel); Assert.True(success); Assert.NotNull(speculativeModel); var p = speculativeModel.SyntaxTree.GetRoot() .DescendantNodes() .OfType<IdentifierNameSyntax>() .Single(s => s.Identifier.ValueText == "_p"); var symbolSpeculation = speculativeModel.GetSpeculativeSymbolInfo(p.FullSpan.Start, p, SpeculativeBindingOption.BindAsExpression); Assert.Equal("_p", symbolSpeculation.Symbol.Name); var typeSpeculation = speculativeModel.GetSpeculativeTypeInfo(p.FullSpan.Start, p, SpeculativeBindingOption.BindAsExpression); Assert.Equal("Int32", typeSpeculation.Type.Name); } } }
-1
dotnet/roslyn
55,382
remove ".editorconfig added to solution" yellow bar
fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
jmarolf
2021-08-03T18:16:54Z
2021-08-09T19:20:08Z
58c4cceb4aa4fe5212b59307603898fa3c6b8bee
b9b962d3280a6e2e4f28cbdb3e5219683a3566d9
remove ".editorconfig added to solution" yellow bar. fixes #54534 fixes [AZ#1275561](https://devdiv.visualstudio.com/DevDiv/_queries/edit/1275561)
./src/Workspaces/VisualBasic/Portable/xlf/VBWorkspaceResources.zh-Hant.xlf
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hant" original="../VBWorkspaceResources.resx"> <body> <trans-unit id="Namespace_can_not_be_added_in_this_destination"> <source>Namespace can not be added in this destination.</source> <target state="translated">無法將命名空間加入此目的地。</target> <note /> </trans-unit> <trans-unit id="Only_attributes_expressions_or_statements_can_be_made_explicit"> <source>Only attributes, expressions or statements can be made explicit</source> <target state="translated">只有屬性、運算式或陳述式可以設為明確</target> <note /> </trans-unit> <trans-unit id="Remove_and_Sort_Imports"> <source>R&amp;emove and Sort Imports</source> <target state="translated">移除及排序匯入(&amp;E)</target> <note /> </trans-unit> <trans-unit id="Sort_Imports"> <source>&amp;Sort Imports</source> <target state="translated">排序 Import(&amp;S)</target> <note /> </trans-unit> <trans-unit id="event_"> <source>&lt;event&gt;</source> <target state="translated">&lt;event&gt;</target> <note /> </trans-unit> <trans-unit id="handler"> <source>&lt;handler&gt;</source> <target state="translated">&lt;處理常式&gt;</target> <note /> </trans-unit> <trans-unit id="The_expression_to_be_evaluated_and_converted"> <source>The expression to be evaluated and converted.</source> <target state="translated">要評估與轉換的運算式。</target> <note /> </trans-unit> <trans-unit id="The_name_of_the_data_type_to_which_the_value_of_expression_will_be_converted"> <source>The name of the data type to which the value of expression will be converted.</source> <target state="translated">運算式的值要轉換的目標資料類型名稱。</target> <note /> </trans-unit> <trans-unit id="expression"> <source>&lt;expression&gt;</source> <target state="translated">&lt;運算式&gt;</target> <note /> </trans-unit> <trans-unit id="typeName"> <source>&lt;typeName&gt;</source> <target state="translated">&lt;typeName&gt;</target> <note /> </trans-unit> <trans-unit id="Associates_an_event_with_an_event_handler_delegate_or_lambda_expression_at_run_time"> <source>Associates an event with an event handler, delegate or lambda expression at run time.</source> <target state="translated">在執行階段將事件與事件處理常式、委派或 Lambda 運算式產生關聯。</target> <note /> </trans-unit> <trans-unit id="The_event_to_associate_an_event_handler_delegate_or_lambda_expression_with"> <source>The event to associate an event handler, delegate or lambda expression with.</source> <target state="translated">與事件處理常式、委派或 Lambda 運算式相關聯的事件。</target> <note /> </trans-unit> <trans-unit id="The_event_handler_to_associate_with_the_event_This_may_take_the_form_of_AddressOf_eventHandler_delegate_lambdaExpression"> <source>The event handler to associate with the event. This may take the form of { AddressOf &lt;eventHandler&gt; | &lt;delegate&gt; | &lt;lambdaExpression&gt; }.</source> <target state="translated">會與事件產生關聯的事件處理常式。可能採用 { AddressOf &lt;eventHandler&gt; | &lt;delegate&gt; | &lt;lambdaExpression&gt; } 的格式。</target> <note /> </trans-unit> <trans-unit id="If_expression_evaluates_to_a_reference_or_Nullable_value_that_is_not_Nothing_the_function_returns_that_value_Otherwise_it_calculates_and_returns_expressionIfNothing"> <source>If &lt;expression&gt; evaluates to a reference or Nullable value that is not Nothing, the function returns that value. Otherwise, it calculates and returns &lt;expressionIfNothing&gt;.</source> <target state="translated">如果 &lt;expression&gt; 評估為參考或不是 Nothing 的可為 Null 的值,該函式會傳回該值; 否則會計算及傳回 &lt;expressionIfNothing&gt;。</target> <note /> </trans-unit> <trans-unit id="Returned_if_it_evaluates_to_a_reference_or_nullable_type_that_is_not_Nothing"> <source>Returned if it evaluates to a reference or nullable type that is not Nothing.</source> <target state="translated">如果評估為參考或不是 Nothing 的可為 Null 之類型,即會傳回。</target> <note /> </trans-unit> <trans-unit id="Evaluated_and_returned_if_expression_evaluates_to_Nothing"> <source>Evaluated and returned if &lt;expression&gt; evaluates to Nothing.</source> <target state="translated">評估並傳回 &lt;expression&gt; 是否評估為 Nothing。</target> <note /> </trans-unit> <trans-unit id="expressionIfNothing"> <source>&lt;expressionIfNothing&gt;</source> <target state="translated">&lt;expressionIfNothing&gt;</target> <note /> </trans-unit> <trans-unit id="Returns_the_result_of_explicitly_converting_an_expression_to_a_specified_data_type"> <source>Returns the result of explicitly converting an expression to a specified data type.</source> <target state="translated">傳回明確轉換運算式為指定之資料類型的結果。</target> <note /> </trans-unit> <trans-unit id="Introduces_a_type_conversion_operation_similar_to_CType_The_difference_is_that_CType_succeeds_as_long_as_there_is_a_valid_conversion_whereas_DirectCast_requires_that_one_type_inherit_from_or_implement_the_other_type"> <source>Introduces a type conversion operation similar to CType. The difference is that CType succeeds as long as there is a valid conversion, whereas DirectCast requires that one type inherit from or implement the other type.</source> <target state="translated">採用類似 CType 的類型轉換作業。其差別在於,只要出現有效的轉換,CType 就會成功; 而 DirectCast 則需要一個類型必須繼承自另一個類型或實作該類型。</target> <note /> </trans-unit> <trans-unit id="The_type_name_to_return_a_System_Type_object_for"> <source>The type name to return a System.Type object for.</source> <target state="translated">要傳回 System.Type 物件的類型名稱。</target> <note /> </trans-unit> <trans-unit id="Returns_a_System_Type_object_for_the_specified_type_name"> <source>Returns a System.Type object for the specified type name.</source> <target state="translated">傳回指定類型名稱的 System.Type 物件。</target> <note /> </trans-unit> <trans-unit id="The_XML_namespace_prefix_to_return_a_System_Xml_Linq_XNamespace_object_for_If_this_is_omitted_the_object_for_the_default_XML_namespace_is_returned"> <source>The XML namespace prefix to return a System.Xml.Linq.XNamespace object for. If this is omitted, the object for the default XML namespace is returned.</source> <target state="translated">要傳回 System.Xml.Linq.XNamespace 物件的 XML 命名空間前置詞。如果省略,則會傳回預設 XML 命名空間的物件。</target> <note /> </trans-unit> <trans-unit id="xmlNamespacePrefix"> <source>&lt;xmlNamespacePrefix&gt;</source> <target state="translated">&lt;xmlNamespacePrefix&gt;</target> <note /> </trans-unit> <trans-unit id="Returns_the_System_Xml_Linq_XNamespace_object_corresponding_to_the_specified_XML_namespace_prefix"> <source>Returns the System.Xml.Linq.XNamespace object corresponding to the specified XML namespace prefix.</source> <target state="translated">傳回與指定之 XML 命名空間前置詞相對應的 System.Xml.Linq.XNamespace 物件。</target> <note /> </trans-unit> <trans-unit id="Replaces_a_specified_number_of_characters_in_a_String_variable_with_characters_from_another_string"> <source>Replaces a specified number of characters in a String variable with characters from another string.</source> <target state="translated">將字串變數中指定個數的字元,取代為另一個字串中的字元。</target> <note /> </trans-unit> <trans-unit id="The_name_of_the_string_variable_to_modify"> <source>The name of the string variable to modify.</source> <target state="translated">要修改的字串變數名稱。</target> <note /> </trans-unit> <trans-unit id="The_one_based_character_position_in_the_string_where_the_replacement_of_text_begins"> <source>The one-based character position in the string where the replacement of text begins.</source> <target state="translated">字串中開始取代文字之以一為基底的字元位置。</target> <note /> </trans-unit> <trans-unit id="The_number_of_characters_to_replace_If_omitted_the_length_of_stringExpression_is_used"> <source>The number of characters to replace. If omitted, the length of &lt;stringExpression&gt; is used.</source> <target state="translated">要取代的字元數。如果省略,則會使用 &lt;stringExpression&gt; 的長度。</target> <note /> </trans-unit> <trans-unit id="stringName"> <source>&lt;stringName&gt;</source> <target state="translated">&lt;stringName&gt;</target> <note /> </trans-unit> <trans-unit id="startIndex"> <source>&lt;startIndex&gt;</source> <target state="translated">&lt;startIndex&gt;</target> <note /> </trans-unit> <trans-unit id="length"> <source>&lt;length&gt;</source> <target state="translated">&lt;length&gt;</target> <note /> </trans-unit> <trans-unit id="stringExpression"> <source>&lt;stringExpression&gt;</source> <target state="translated">&lt;stringExpression&gt;</target> <note /> </trans-unit> <trans-unit id="Converts_an_expression_to_the_0_data_type"> <source>Converts an expression to the {0} data type.</source> <target state="translated">將運算式轉換為 {0} 資料類型。</target> <note /> </trans-unit> <trans-unit id="Removes_the_association_between_an_event_and_an_event_handler_or_delegate_at_run_time"> <source>Removes the association between an event and an event handler or delegate at run time.</source> <target state="translated">移除執行階段有關事件與事件處理常式或委派之間的關聯。</target> <note /> </trans-unit> <trans-unit id="The_event_to_disassociate_an_event_handler_or_delegate_from"> <source>The event to disassociate an event handler or delegate from.</source> <target state="translated">與事件處理常式取消關聯或委派來源的事件。</target> <note /> </trans-unit> <trans-unit id="The_event_handler_to_disassociate_from_the_event_This_may_take_the_form_of_AddressOf_eventHandler_delegate"> <source>The event handler to disassociate from the event. This may take the form of { AddressOf &lt;eventHandler&gt; | &lt;delegate&gt; }.</source> <target state="translated">要與事件取消關聯的事件處理常式。可能採用 { AddressOf &lt;eventHandler&gt; | &lt;delegate&gt; } 的格式。</target> <note /> </trans-unit> <trans-unit id="If_condition_returns_True_the_function_calculates_and_returns_expressionIfTrue_Otherwise_it_returns_expressionIfFalse"> <source>If &lt;condition&gt; returns True, the function calculates and returns &lt;expressionIfTrue&gt;. Otherwise, it returns &lt;expressionIfFalse&gt;.</source> <target state="translated">如果 &lt;condition&gt; 傳回 True,該函式會計算並傳回 &lt;expressionIfTrue&gt;; 否則會傳回 &lt;expressionIfFalse&gt;。</target> <note /> </trans-unit> <trans-unit id="The_expression_to_evaluate"> <source>The expression to evaluate.</source> <target state="translated">要評估的運算式。</target> <note /> </trans-unit> <trans-unit id="Evaluated_and_returned_if_condition_evaluates_to_True"> <source>Evaluated and returned if &lt;condition&gt; evaluates to True.</source> <target state="translated">評估並傳回 &lt;condition&gt; 是否評估為 True。</target> <note /> </trans-unit> <trans-unit id="Evaluated_and_returned_if_condition_evaluates_to_False"> <source>Evaluated and returned if &lt;condition&gt; evaluates to False.</source> <target state="translated">評估並傳回 &lt;condition&gt; 是否評估為 False。</target> <note /> </trans-unit> <trans-unit id="condition"> <source>&lt;condition&gt;</source> <target state="translated">&lt;condition&gt;</target> <note /> </trans-unit> <trans-unit id="expressionIfTrue"> <source>&lt;expressionIfTrue&gt;</source> <target state="translated">&lt;expressionIfTrue&gt;</target> <note /> </trans-unit> <trans-unit id="expressionIfFalse"> <source>&lt;expressionIfFalse&gt;</source> <target state="translated">&lt;expressionIfFalse&gt;</target> <note /> </trans-unit> <trans-unit id="Introduces_a_type_conversion_operation_that_does_not_throw_an_exception_If_an_attempted_conversion_fails_TryCast_returns_Nothing_which_your_program_can_test_for"> <source>Introduces a type conversion operation that does not throw an exception. If an attempted conversion fails, TryCast returns Nothing, which your program can test for.</source> <target state="translated">採用不會擲出例外狀況的類型轉換作業。如果嘗試的轉換失敗,TryCast 會傳回 Nothing,讓您的程式能夠測試。</target> <note /> </trans-unit> <trans-unit id="Node_does_not_descend_from_root"> <source>Node does not descend from root.</source> <target state="translated">節點不是根的子系。</target> <note /> </trans-unit> <trans-unit id="Node_not_in_parent_s_child_list"> <source>Node not in parent's child list</source> <target state="translated">節點不在父代的子清單中</target> <note /> </trans-unit> <trans-unit id="Trivia_is_not_associated_with_token"> <source>Trivia is not associated with token</source> <target state="translated">Trivia 與語彙基元無關聯</target> <note /> </trans-unit> <trans-unit id="typeOrMember"> <source>&lt;typeOrMember&gt;</source> <target state="translated">&lt;typeOrMember&gt;</target> <note /> </trans-unit> <trans-unit id="The_type_of_member_to_return_the_name_of"> <source>The type of member to return the name of.</source> <target state="translated">要傳回名稱的成員類型。</target> <note /> </trans-unit> <trans-unit id="Produces_a_string_for_the_name_of_the_specified_type_or_member"> <source>Produces a string for the name of the specified type or member.</source> <target state="translated">產生指定類型或成員的名稱字串。</target> <note /> </trans-unit> <trans-unit id="result"> <source>&lt;result&gt;</source> <target state="translated">&lt;結果&gt;</target> <note /> </trans-unit> </body> </file> </xliff>
<?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="zh-Hant" original="../VBWorkspaceResources.resx"> <body> <trans-unit id="Namespace_can_not_be_added_in_this_destination"> <source>Namespace can not be added in this destination.</source> <target state="translated">無法將命名空間加入此目的地。</target> <note /> </trans-unit> <trans-unit id="Only_attributes_expressions_or_statements_can_be_made_explicit"> <source>Only attributes, expressions or statements can be made explicit</source> <target state="translated">只有屬性、運算式或陳述式可以設為明確</target> <note /> </trans-unit> <trans-unit id="Remove_and_Sort_Imports"> <source>R&amp;emove and Sort Imports</source> <target state="translated">移除及排序匯入(&amp;E)</target> <note /> </trans-unit> <trans-unit id="Sort_Imports"> <source>&amp;Sort Imports</source> <target state="translated">排序 Import(&amp;S)</target> <note /> </trans-unit> <trans-unit id="event_"> <source>&lt;event&gt;</source> <target state="translated">&lt;event&gt;</target> <note /> </trans-unit> <trans-unit id="handler"> <source>&lt;handler&gt;</source> <target state="translated">&lt;處理常式&gt;</target> <note /> </trans-unit> <trans-unit id="The_expression_to_be_evaluated_and_converted"> <source>The expression to be evaluated and converted.</source> <target state="translated">要評估與轉換的運算式。</target> <note /> </trans-unit> <trans-unit id="The_name_of_the_data_type_to_which_the_value_of_expression_will_be_converted"> <source>The name of the data type to which the value of expression will be converted.</source> <target state="translated">運算式的值要轉換的目標資料類型名稱。</target> <note /> </trans-unit> <trans-unit id="expression"> <source>&lt;expression&gt;</source> <target state="translated">&lt;運算式&gt;</target> <note /> </trans-unit> <trans-unit id="typeName"> <source>&lt;typeName&gt;</source> <target state="translated">&lt;typeName&gt;</target> <note /> </trans-unit> <trans-unit id="Associates_an_event_with_an_event_handler_delegate_or_lambda_expression_at_run_time"> <source>Associates an event with an event handler, delegate or lambda expression at run time.</source> <target state="translated">在執行階段將事件與事件處理常式、委派或 Lambda 運算式產生關聯。</target> <note /> </trans-unit> <trans-unit id="The_event_to_associate_an_event_handler_delegate_or_lambda_expression_with"> <source>The event to associate an event handler, delegate or lambda expression with.</source> <target state="translated">與事件處理常式、委派或 Lambda 運算式相關聯的事件。</target> <note /> </trans-unit> <trans-unit id="The_event_handler_to_associate_with_the_event_This_may_take_the_form_of_AddressOf_eventHandler_delegate_lambdaExpression"> <source>The event handler to associate with the event. This may take the form of { AddressOf &lt;eventHandler&gt; | &lt;delegate&gt; | &lt;lambdaExpression&gt; }.</source> <target state="translated">會與事件產生關聯的事件處理常式。可能採用 { AddressOf &lt;eventHandler&gt; | &lt;delegate&gt; | &lt;lambdaExpression&gt; } 的格式。</target> <note /> </trans-unit> <trans-unit id="If_expression_evaluates_to_a_reference_or_Nullable_value_that_is_not_Nothing_the_function_returns_that_value_Otherwise_it_calculates_and_returns_expressionIfNothing"> <source>If &lt;expression&gt; evaluates to a reference or Nullable value that is not Nothing, the function returns that value. Otherwise, it calculates and returns &lt;expressionIfNothing&gt;.</source> <target state="translated">如果 &lt;expression&gt; 評估為參考或不是 Nothing 的可為 Null 的值,該函式會傳回該值; 否則會計算及傳回 &lt;expressionIfNothing&gt;。</target> <note /> </trans-unit> <trans-unit id="Returned_if_it_evaluates_to_a_reference_or_nullable_type_that_is_not_Nothing"> <source>Returned if it evaluates to a reference or nullable type that is not Nothing.</source> <target state="translated">如果評估為參考或不是 Nothing 的可為 Null 之類型,即會傳回。</target> <note /> </trans-unit> <trans-unit id="Evaluated_and_returned_if_expression_evaluates_to_Nothing"> <source>Evaluated and returned if &lt;expression&gt; evaluates to Nothing.</source> <target state="translated">評估並傳回 &lt;expression&gt; 是否評估為 Nothing。</target> <note /> </trans-unit> <trans-unit id="expressionIfNothing"> <source>&lt;expressionIfNothing&gt;</source> <target state="translated">&lt;expressionIfNothing&gt;</target> <note /> </trans-unit> <trans-unit id="Returns_the_result_of_explicitly_converting_an_expression_to_a_specified_data_type"> <source>Returns the result of explicitly converting an expression to a specified data type.</source> <target state="translated">傳回明確轉換運算式為指定之資料類型的結果。</target> <note /> </trans-unit> <trans-unit id="Introduces_a_type_conversion_operation_similar_to_CType_The_difference_is_that_CType_succeeds_as_long_as_there_is_a_valid_conversion_whereas_DirectCast_requires_that_one_type_inherit_from_or_implement_the_other_type"> <source>Introduces a type conversion operation similar to CType. The difference is that CType succeeds as long as there is a valid conversion, whereas DirectCast requires that one type inherit from or implement the other type.</source> <target state="translated">採用類似 CType 的類型轉換作業。其差別在於,只要出現有效的轉換,CType 就會成功; 而 DirectCast 則需要一個類型必須繼承自另一個類型或實作該類型。</target> <note /> </trans-unit> <trans-unit id="The_type_name_to_return_a_System_Type_object_for"> <source>The type name to return a System.Type object for.</source> <target state="translated">要傳回 System.Type 物件的類型名稱。</target> <note /> </trans-unit> <trans-unit id="Returns_a_System_Type_object_for_the_specified_type_name"> <source>Returns a System.Type object for the specified type name.</source> <target state="translated">傳回指定類型名稱的 System.Type 物件。</target> <note /> </trans-unit> <trans-unit id="The_XML_namespace_prefix_to_return_a_System_Xml_Linq_XNamespace_object_for_If_this_is_omitted_the_object_for_the_default_XML_namespace_is_returned"> <source>The XML namespace prefix to return a System.Xml.Linq.XNamespace object for. If this is omitted, the object for the default XML namespace is returned.</source> <target state="translated">要傳回 System.Xml.Linq.XNamespace 物件的 XML 命名空間前置詞。如果省略,則會傳回預設 XML 命名空間的物件。</target> <note /> </trans-unit> <trans-unit id="xmlNamespacePrefix"> <source>&lt;xmlNamespacePrefix&gt;</source> <target state="translated">&lt;xmlNamespacePrefix&gt;</target> <note /> </trans-unit> <trans-unit id="Returns_the_System_Xml_Linq_XNamespace_object_corresponding_to_the_specified_XML_namespace_prefix"> <source>Returns the System.Xml.Linq.XNamespace object corresponding to the specified XML namespace prefix.</source> <target state="translated">傳回與指定之 XML 命名空間前置詞相對應的 System.Xml.Linq.XNamespace 物件。</target> <note /> </trans-unit> <trans-unit id="Replaces_a_specified_number_of_characters_in_a_String_variable_with_characters_from_another_string"> <source>Replaces a specified number of characters in a String variable with characters from another string.</source> <target state="translated">將字串變數中指定個數的字元,取代為另一個字串中的字元。</target> <note /> </trans-unit> <trans-unit id="The_name_of_the_string_variable_to_modify"> <source>The name of the string variable to modify.</source> <target state="translated">要修改的字串變數名稱。</target> <note /> </trans-unit> <trans-unit id="The_one_based_character_position_in_the_string_where_the_replacement_of_text_begins"> <source>The one-based character position in the string where the replacement of text begins.</source> <target state="translated">字串中開始取代文字之以一為基底的字元位置。</target> <note /> </trans-unit> <trans-unit id="The_number_of_characters_to_replace_If_omitted_the_length_of_stringExpression_is_used"> <source>The number of characters to replace. If omitted, the length of &lt;stringExpression&gt; is used.</source> <target state="translated">要取代的字元數。如果省略,則會使用 &lt;stringExpression&gt; 的長度。</target> <note /> </trans-unit> <trans-unit id="stringName"> <source>&lt;stringName&gt;</source> <target state="translated">&lt;stringName&gt;</target> <note /> </trans-unit> <trans-unit id="startIndex"> <source>&lt;startIndex&gt;</source> <target state="translated">&lt;startIndex&gt;</target> <note /> </trans-unit> <trans-unit id="length"> <source>&lt;length&gt;</source> <target state="translated">&lt;length&gt;</target> <note /> </trans-unit> <trans-unit id="stringExpression"> <source>&lt;stringExpression&gt;</source> <target state="translated">&lt;stringExpression&gt;</target> <note /> </trans-unit> <trans-unit id="Converts_an_expression_to_the_0_data_type"> <source>Converts an expression to the {0} data type.</source> <target state="translated">將運算式轉換為 {0} 資料類型。</target> <note /> </trans-unit> <trans-unit id="Removes_the_association_between_an_event_and_an_event_handler_or_delegate_at_run_time"> <source>Removes the association between an event and an event handler or delegate at run time.</source> <target state="translated">移除執行階段有關事件與事件處理常式或委派之間的關聯。</target> <note /> </trans-unit> <trans-unit id="The_event_to_disassociate_an_event_handler_or_delegate_from"> <source>The event to disassociate an event handler or delegate from.</source> <target state="translated">與事件處理常式取消關聯或委派來源的事件。</target> <note /> </trans-unit> <trans-unit id="The_event_handler_to_disassociate_from_the_event_This_may_take_the_form_of_AddressOf_eventHandler_delegate"> <source>The event handler to disassociate from the event. This may take the form of { AddressOf &lt;eventHandler&gt; | &lt;delegate&gt; }.</source> <target state="translated">要與事件取消關聯的事件處理常式。可能採用 { AddressOf &lt;eventHandler&gt; | &lt;delegate&gt; } 的格式。</target> <note /> </trans-unit> <trans-unit id="If_condition_returns_True_the_function_calculates_and_returns_expressionIfTrue_Otherwise_it_returns_expressionIfFalse"> <source>If &lt;condition&gt; returns True, the function calculates and returns &lt;expressionIfTrue&gt;. Otherwise, it returns &lt;expressionIfFalse&gt;.</source> <target state="translated">如果 &lt;condition&gt; 傳回 True,該函式會計算並傳回 &lt;expressionIfTrue&gt;; 否則會傳回 &lt;expressionIfFalse&gt;。</target> <note /> </trans-unit> <trans-unit id="The_expression_to_evaluate"> <source>The expression to evaluate.</source> <target state="translated">要評估的運算式。</target> <note /> </trans-unit> <trans-unit id="Evaluated_and_returned_if_condition_evaluates_to_True"> <source>Evaluated and returned if &lt;condition&gt; evaluates to True.</source> <target state="translated">評估並傳回 &lt;condition&gt; 是否評估為 True。</target> <note /> </trans-unit> <trans-unit id="Evaluated_and_returned_if_condition_evaluates_to_False"> <source>Evaluated and returned if &lt;condition&gt; evaluates to False.</source> <target state="translated">評估並傳回 &lt;condition&gt; 是否評估為 False。</target> <note /> </trans-unit> <trans-unit id="condition"> <source>&lt;condition&gt;</source> <target state="translated">&lt;condition&gt;</target> <note /> </trans-unit> <trans-unit id="expressionIfTrue"> <source>&lt;expressionIfTrue&gt;</source> <target state="translated">&lt;expressionIfTrue&gt;</target> <note /> </trans-unit> <trans-unit id="expressionIfFalse"> <source>&lt;expressionIfFalse&gt;</source> <target state="translated">&lt;expressionIfFalse&gt;</target> <note /> </trans-unit> <trans-unit id="Introduces_a_type_conversion_operation_that_does_not_throw_an_exception_If_an_attempted_conversion_fails_TryCast_returns_Nothing_which_your_program_can_test_for"> <source>Introduces a type conversion operation that does not throw an exception. If an attempted conversion fails, TryCast returns Nothing, which your program can test for.</source> <target state="translated">採用不會擲出例外狀況的類型轉換作業。如果嘗試的轉換失敗,TryCast 會傳回 Nothing,讓您的程式能夠測試。</target> <note /> </trans-unit> <trans-unit id="Node_does_not_descend_from_root"> <source>Node does not descend from root.</source> <target state="translated">節點不是根的子系。</target> <note /> </trans-unit> <trans-unit id="Node_not_in_parent_s_child_list"> <source>Node not in parent's child list</source> <target state="translated">節點不在父代的子清單中</target> <note /> </trans-unit> <trans-unit id="Trivia_is_not_associated_with_token"> <source>Trivia is not associated with token</source> <target state="translated">Trivia 與語彙基元無關聯</target> <note /> </trans-unit> <trans-unit id="typeOrMember"> <source>&lt;typeOrMember&gt;</source> <target state="translated">&lt;typeOrMember&gt;</target> <note /> </trans-unit> <trans-unit id="The_type_of_member_to_return_the_name_of"> <source>The type of member to return the name of.</source> <target state="translated">要傳回名稱的成員類型。</target> <note /> </trans-unit> <trans-unit id="Produces_a_string_for_the_name_of_the_specified_type_or_member"> <source>Produces a string for the name of the specified type or member.</source> <target state="translated">產生指定類型或成員的名稱字串。</target> <note /> </trans-unit> <trans-unit id="result"> <source>&lt;result&gt;</source> <target state="translated">&lt;結果&gt;</target> <note /> </trans-unit> </body> </file> </xliff>
-1