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
unknown
date_merged
unknown
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
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/Core/Portable/IntroduceVariable/AbstractIntroduceVariableService.State_ConstructorInitializer.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 System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Shared.Extensions; namespace Microsoft.CodeAnalysis.IntroduceVariable { internal partial class AbstractIntroduceVariableService<TService, TExpressionSyntax, TTypeSyntax, TTypeDeclarationSyntax, TQueryExpressionSyntax, TNameSyntax> { private partial class State { private bool IsInConstructorInitializerContext( CancellationToken cancellationToken) { // Note: if we're in a lambda that has a block body, then we don't ever get here // because of the early check for IsInBlockContext. if (!_service.IsInConstructorInitializer(Expression)) { return false; } var bindingMap = GetSemanticMap(cancellationToken); // Can't extract out if a parameter is referenced. if (bindingMap.AllReferencedSymbols.OfType<IParameterSymbol>().Any()) { return false; } // Can't extract out an anonymous type used in a constructor initializer. var info = Document.SemanticModel.GetTypeInfo(Expression, cancellationToken); if (info.Type.ContainsAnonymousType()) { 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. #nullable disable using System.Linq; using System.Threading; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Shared.Extensions; namespace Microsoft.CodeAnalysis.IntroduceVariable { internal partial class AbstractIntroduceVariableService<TService, TExpressionSyntax, TTypeSyntax, TTypeDeclarationSyntax, TQueryExpressionSyntax, TNameSyntax> { private partial class State { private bool IsInConstructorInitializerContext( CancellationToken cancellationToken) { // Note: if we're in a lambda that has a block body, then we don't ever get here // because of the early check for IsInBlockContext. if (!_service.IsInConstructorInitializer(Expression)) { return false; } var bindingMap = GetSemanticMap(cancellationToken); // Can't extract out if a parameter is referenced. if (bindingMap.AllReferencedSymbols.OfType<IParameterSymbol>().Any()) { return false; } // Can't extract out an anonymous type used in a constructor initializer. var info = Document.SemanticModel.GetTypeInfo(Expression, cancellationToken); if (info.Type.ContainsAnonymousType()) { return false; } return true; } } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/Core/Portable/UnusedReferences/IUnusedReferenceAnalysisService.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.Host; using Microsoft.CodeAnalysis.Remote; namespace Microsoft.CodeAnalysis.UnusedReferences { internal interface IUnusedReferenceAnalysisService : IWorkspaceService { Task<ImmutableArray<ReferenceInfo>> GetUnusedReferencesAsync( Solution solution, string projectFilePath, string projectAssetsFilePath, ImmutableArray<ReferenceInfo> projectReferences, CancellationToken cancellationToken); } internal interface IRemoteUnusedReferenceAnalysisService { ValueTask<ImmutableArray<ReferenceInfo>> GetUnusedReferencesAsync( PinnedSolutionInfo solutionInfo, string projectFilePath, string projectAssetsFilePath, ImmutableArray<ReferenceInfo> projectReferences, 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. using System.Collections.Immutable; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Remote; namespace Microsoft.CodeAnalysis.UnusedReferences { internal interface IUnusedReferenceAnalysisService : IWorkspaceService { Task<ImmutableArray<ReferenceInfo>> GetUnusedReferencesAsync( Solution solution, string projectFilePath, string projectAssetsFilePath, ImmutableArray<ReferenceInfo> projectReferences, CancellationToken cancellationToken); } internal interface IRemoteUnusedReferenceAnalysisService { ValueTask<ImmutableArray<ReferenceInfo>> GetUnusedReferencesAsync( PinnedSolutionInfo solutionInfo, string projectFilePath, string projectAssetsFilePath, ImmutableArray<ReferenceInfo> projectReferences, CancellationToken cancellationToken); } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/CSharp/Portable/Syntax/SimpleSyntaxReference.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; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.CSharp { /// <summary> /// this is a basic do-nothing implementation of a syntax reference /// </summary> internal class SimpleSyntaxReference : SyntaxReference { private readonly SyntaxNode _node; internal SimpleSyntaxReference(SyntaxNode node) { _node = node; } public override SyntaxTree SyntaxTree { get { return _node.SyntaxTree; } } public override TextSpan Span { get { return _node.Span; } } public override SyntaxNode GetSyntax(CancellationToken cancellationToken) { return _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. using System.Threading; using Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.CSharp { /// <summary> /// this is a basic do-nothing implementation of a syntax reference /// </summary> internal class SimpleSyntaxReference : SyntaxReference { private readonly SyntaxNode _node; internal SimpleSyntaxReference(SyntaxNode node) { _node = node; } public override SyntaxTree SyntaxTree { get { return _node.SyntaxTree; } } public override TextSpan Span { get { return _node.Span; } } public override SyntaxNode GetSyntax(CancellationToken cancellationToken) { return _node; } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/LanguageServer/ProtocolUnitTests/SemanticTokens/SemanticTokensEditsTests.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 enable using System.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens; using Roslyn.Test.Utilities; using Xunit; using LSP = Microsoft.VisualStudio.LanguageServer.Protocol; namespace Microsoft.CodeAnalysis.LanguageServer.UnitTests.SemanticTokens { public class SemanticTokensEditsTests : AbstractSemanticTokensTests { /* * Markup for basic test case: * // Comment * static class C { } */ private static readonly string s_standardCase = @"{|caret:|}// Comment static class C { }"; /* * Markup for single line test case: * // Comment */ private static readonly string s_singleLineCase = @"{|caret:|}// Comment"; [Fact] public async Task TestInsertingNewLineInMiddleOfFile() { var updatedText = @"// Comment static class C { }"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); var results = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var expectedEdit = new LSP.SemanticTokensEdit { Start = 5, DeleteCount = 1, Data = new int[] { 2 } }; Assert.Equal(expectedEdit, ((LSP.SemanticTokensDelta)results).Edits.First()); Assert.Equal("2", ((LSP.SemanticTokensDelta)results).ResultId); } /// <summary> /// Tests making a deletion from the end of the file. /// </summary> [Fact] public async Task TestGetSemanticTokensEdits_EndDeletionAsync() { var updatedText = @"// Comment"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); var results = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var expectedEdit = new LSP.SemanticTokensEdit { Start = 5, DeleteCount = 25, Data = System.Array.Empty<int>() }; Assert.Equal(expectedEdit, ((LSP.SemanticTokensDelta)results).Edits.First()); Assert.Equal("2", ((LSP.SemanticTokensDelta)results).ResultId); } /// <summary> /// Tests making an insertion at the end of the file. /// </summary> [Fact] public async Task TestGetSemanticTokensEdits_EndInsertionAsync() { var updatedText = @"// Comment static class C { } // Comment"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); var results = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var expectedEdit = new LSP.SemanticTokensEdit { Start = 30, DeleteCount = 0, Data = new int[] { 1, 0, 10, SemanticTokensCache.TokenTypeToIndex[LSP.SemanticTokenTypes.Comment], 0 } }; Assert.Equal(expectedEdit, ((LSP.SemanticTokensDelta)results).Edits.First()); Assert.Equal("2", ((LSP.SemanticTokensDelta)results).ResultId); } /// <summary> /// Tests to make sure we return a minimal number of edits. /// </summary> [Fact] public async Task TestGetSemanticTokensEdits_ReturnMinimalEdits() { var updatedText = @"class // Comment"; using var testLspServer = CreateTestLspServer(s_singleLineCase, out var locations); var caretLocation = locations["caret"].First(); await RunGetSemanticTokensAsync(testLspServer, caretLocation); // Edit text UpdateDocumentText(updatedText, testLspServer.TestWorkspace); var results = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); // 1. Updates length of token (10 to 5) and updates token type (comment to keyword) // 2. Creates new token for '// Comment' var expectedEdit = new LSP.SemanticTokensEdit { Start = 2, DeleteCount = 0, Data = new int[] { // 'class' /* 0, 0, */ 5, SemanticTokensCache.TokenTypeToIndex[LSP.SemanticTokenTypes.Keyword], 0, // '// Comment' 1, 0, /* 10, SemanticTokensCache.TokenTypeToIndex[LSP.SemanticTokenTypes.Comment], 0 */ } }; Assert.Equal(expectedEdit, ((LSP.SemanticTokensDelta)results).Edits?[0]); Assert.Equal("2", ((LSP.SemanticTokensDelta)results).ResultId); } /// <summary> /// Tests to make sure that if we don't have a matching semantic token set for the document in the cache, /// we return the full set of semantic tokens. /// </summary> [Fact] public async Task TestGetSemanticTokensEditsNoCacheAsync() { var updatedText = @"// Comment static class C { }"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); var results = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "10"); // Make sure we're returned SemanticTokens instead of SemanticTokensEdits. Assert.True(results.Value is LSP.SemanticTokens); // The returned result should now be in the cache and should be of the LSP.SemanticTokensDelta type. var cachedResults = await RunGetSemanticTokensEditsAsync( testLspServer, caretLocation, previousResultId: ((LSP.SemanticTokens)results).ResultId!); Assert.True(cachedResults.Value is LSP.SemanticTokensDelta); } [Fact] public async Task TestConvertSemanticTokenEditsIntoSemanticTokens_InsertNewlineInMiddleOfFile() { var updatedText = @"// Comment static class C { }"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); var originalTokens = await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); // Edits to tokens conversion var edits = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var editsToTokens = ApplySemanticTokensEdits(originalTokens.Data, (LSP.SemanticTokensDelta)edits); // Raw tokens var rawTokens = await RunGetSemanticTokensAsync(testLspServer, locations["caret"].First()); Assert.True(Enumerable.SequenceEqual(rawTokens.Data, editsToTokens)); } [Fact] public async Task TestConvertSemanticTokenEditsIntoSemanticTokens_ReplacementEdit() { var updatedText = @"// Comment internal struct S { }"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); var originalTokens = await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); // Edits to tokens conversion var edits = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var editsToTokens = ApplySemanticTokensEdits(originalTokens.Data, (LSP.SemanticTokensDelta)edits); // Raw tokens var rawTokens = await RunGetSemanticTokensAsync(testLspServer, locations["caret"].First()); Assert.True(Enumerable.SequenceEqual(rawTokens.Data, editsToTokens)); } [Fact] public async Task TestConvertSemanticTokenEditsIntoSemanticTokens_ManyEdits() { var updatedText = @" // Comment class C { static void M(int x) { var v = 1; } }"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); var originalTokens = await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); // Edits to tokens conversion var edits = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var editsToTokens = ApplySemanticTokensEdits(originalTokens.Data, (LSP.SemanticTokensDelta)edits); // Raw tokens var rawTokens = await RunGetSemanticTokensAsync(testLspServer, locations["caret"].First()); Assert.True(Enumerable.SequenceEqual(rawTokens.Data, editsToTokens)); } [Fact, WorkItem(54671, "https://github.com/dotnet/roslyn/issues/54671")] public async Task TestConvertSemanticTokenEditsIntoSemanticTokens_FragmentedTokens() { var originalText = @"fo {|caret:|}r (int i = 0;/*c*/; i++) { }"; var updatedText = @"for (int i = 0;/*c*/; i++) { }"; using var testLspServer = CreateTestLspServer(originalText, out var locations); var caretLocation = locations["caret"].First(); var originalTokens = await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); // Edits to tokens conversion var edits = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var editsToTokens = ApplySemanticTokensEdits(originalTokens.Data, (LSP.SemanticTokensDelta)edits); // Raw tokens var rawTokens = await RunGetSemanticTokensAsync(testLspServer, locations["caret"].First()); Assert.True(Enumerable.SequenceEqual(rawTokens.Data, editsToTokens)); } private static int[] ApplySemanticTokensEdits(int[]? originalTokens, LSP.SemanticTokensDelta edits) { var data = originalTokens.ToList(); if (edits.Edits != null) { foreach (var edit in edits.Edits.Reverse()) { data.RemoveRange(edit.Start, edit.DeleteCount); if (edit.Data is not null) { data.InsertRange(edit.Start, edit.Data); } } } return data.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 enable using System.Linq; using System.Threading.Tasks; using Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens; using Roslyn.Test.Utilities; using Xunit; using LSP = Microsoft.VisualStudio.LanguageServer.Protocol; namespace Microsoft.CodeAnalysis.LanguageServer.UnitTests.SemanticTokens { public class SemanticTokensEditsTests : AbstractSemanticTokensTests { /* * Markup for basic test case: * // Comment * static class C { } */ private static readonly string s_standardCase = @"{|caret:|}// Comment static class C { }"; /* * Markup for single line test case: * // Comment */ private static readonly string s_singleLineCase = @"{|caret:|}// Comment"; [Fact] public async Task TestInsertingNewLineInMiddleOfFile() { var updatedText = @"// Comment static class C { }"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); var results = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var expectedEdit = new LSP.SemanticTokensEdit { Start = 5, DeleteCount = 1, Data = new int[] { 2 } }; Assert.Equal(expectedEdit, ((LSP.SemanticTokensDelta)results).Edits.First()); Assert.Equal("2", ((LSP.SemanticTokensDelta)results).ResultId); } /// <summary> /// Tests making a deletion from the end of the file. /// </summary> [Fact] public async Task TestGetSemanticTokensEdits_EndDeletionAsync() { var updatedText = @"// Comment"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); var results = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var expectedEdit = new LSP.SemanticTokensEdit { Start = 5, DeleteCount = 25, Data = System.Array.Empty<int>() }; Assert.Equal(expectedEdit, ((LSP.SemanticTokensDelta)results).Edits.First()); Assert.Equal("2", ((LSP.SemanticTokensDelta)results).ResultId); } /// <summary> /// Tests making an insertion at the end of the file. /// </summary> [Fact] public async Task TestGetSemanticTokensEdits_EndInsertionAsync() { var updatedText = @"// Comment static class C { } // Comment"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); var results = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var expectedEdit = new LSP.SemanticTokensEdit { Start = 30, DeleteCount = 0, Data = new int[] { 1, 0, 10, SemanticTokensCache.TokenTypeToIndex[LSP.SemanticTokenTypes.Comment], 0 } }; Assert.Equal(expectedEdit, ((LSP.SemanticTokensDelta)results).Edits.First()); Assert.Equal("2", ((LSP.SemanticTokensDelta)results).ResultId); } /// <summary> /// Tests to make sure we return a minimal number of edits. /// </summary> [Fact] public async Task TestGetSemanticTokensEdits_ReturnMinimalEdits() { var updatedText = @"class // Comment"; using var testLspServer = CreateTestLspServer(s_singleLineCase, out var locations); var caretLocation = locations["caret"].First(); await RunGetSemanticTokensAsync(testLspServer, caretLocation); // Edit text UpdateDocumentText(updatedText, testLspServer.TestWorkspace); var results = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); // 1. Updates length of token (10 to 5) and updates token type (comment to keyword) // 2. Creates new token for '// Comment' var expectedEdit = new LSP.SemanticTokensEdit { Start = 2, DeleteCount = 0, Data = new int[] { // 'class' /* 0, 0, */ 5, SemanticTokensCache.TokenTypeToIndex[LSP.SemanticTokenTypes.Keyword], 0, // '// Comment' 1, 0, /* 10, SemanticTokensCache.TokenTypeToIndex[LSP.SemanticTokenTypes.Comment], 0 */ } }; Assert.Equal(expectedEdit, ((LSP.SemanticTokensDelta)results).Edits?[0]); Assert.Equal("2", ((LSP.SemanticTokensDelta)results).ResultId); } /// <summary> /// Tests to make sure that if we don't have a matching semantic token set for the document in the cache, /// we return the full set of semantic tokens. /// </summary> [Fact] public async Task TestGetSemanticTokensEditsNoCacheAsync() { var updatedText = @"// Comment static class C { }"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); var results = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "10"); // Make sure we're returned SemanticTokens instead of SemanticTokensEdits. Assert.True(results.Value is LSP.SemanticTokens); // The returned result should now be in the cache and should be of the LSP.SemanticTokensDelta type. var cachedResults = await RunGetSemanticTokensEditsAsync( testLspServer, caretLocation, previousResultId: ((LSP.SemanticTokens)results).ResultId!); Assert.True(cachedResults.Value is LSP.SemanticTokensDelta); } [Fact] public async Task TestConvertSemanticTokenEditsIntoSemanticTokens_InsertNewlineInMiddleOfFile() { var updatedText = @"// Comment static class C { }"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); var originalTokens = await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); // Edits to tokens conversion var edits = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var editsToTokens = ApplySemanticTokensEdits(originalTokens.Data, (LSP.SemanticTokensDelta)edits); // Raw tokens var rawTokens = await RunGetSemanticTokensAsync(testLspServer, locations["caret"].First()); Assert.True(Enumerable.SequenceEqual(rawTokens.Data, editsToTokens)); } [Fact] public async Task TestConvertSemanticTokenEditsIntoSemanticTokens_ReplacementEdit() { var updatedText = @"// Comment internal struct S { }"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); var originalTokens = await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); // Edits to tokens conversion var edits = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var editsToTokens = ApplySemanticTokensEdits(originalTokens.Data, (LSP.SemanticTokensDelta)edits); // Raw tokens var rawTokens = await RunGetSemanticTokensAsync(testLspServer, locations["caret"].First()); Assert.True(Enumerable.SequenceEqual(rawTokens.Data, editsToTokens)); } [Fact] public async Task TestConvertSemanticTokenEditsIntoSemanticTokens_ManyEdits() { var updatedText = @" // Comment class C { static void M(int x) { var v = 1; } }"; using var testLspServer = CreateTestLspServer(s_standardCase, out var locations); var caretLocation = locations["caret"].First(); var originalTokens = await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); // Edits to tokens conversion var edits = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var editsToTokens = ApplySemanticTokensEdits(originalTokens.Data, (LSP.SemanticTokensDelta)edits); // Raw tokens var rawTokens = await RunGetSemanticTokensAsync(testLspServer, locations["caret"].First()); Assert.True(Enumerable.SequenceEqual(rawTokens.Data, editsToTokens)); } [Fact, WorkItem(54671, "https://github.com/dotnet/roslyn/issues/54671")] public async Task TestConvertSemanticTokenEditsIntoSemanticTokens_FragmentedTokens() { var originalText = @"fo {|caret:|}r (int i = 0;/*c*/; i++) { }"; var updatedText = @"for (int i = 0;/*c*/; i++) { }"; using var testLspServer = CreateTestLspServer(originalText, out var locations); var caretLocation = locations["caret"].First(); var originalTokens = await RunGetSemanticTokensAsync(testLspServer, caretLocation); UpdateDocumentText(updatedText, testLspServer.TestWorkspace); // Edits to tokens conversion var edits = await RunGetSemanticTokensEditsAsync(testLspServer, caretLocation, previousResultId: "1"); var editsToTokens = ApplySemanticTokensEdits(originalTokens.Data, (LSP.SemanticTokensDelta)edits); // Raw tokens var rawTokens = await RunGetSemanticTokensAsync(testLspServer, locations["caret"].First()); Assert.True(Enumerable.SequenceEqual(rawTokens.Data, editsToTokens)); } private static int[] ApplySemanticTokensEdits(int[]? originalTokens, LSP.SemanticTokensDelta edits) { var data = originalTokens.ToList(); if (edits.Edits != null) { foreach (var edit in edits.Edits.Reverse()) { data.RemoveRange(edit.Start, edit.DeleteCount); if (edit.Data is not null) { data.InsertRange(edit.Start, edit.Data); } } } return data.ToArray(); } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/VisualBasic/Portable/Binding/Binder_Delegates.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.Runtime.InteropServices Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports TypeKind = Microsoft.CodeAnalysis.TypeKind Namespace Microsoft.CodeAnalysis.VisualBasic Partial Friend Class Binder ''' <summary> ''' Structure is used to store all information which is needed to construct and classify a Delegate creation ''' expression later on. ''' </summary> Friend Structure DelegateResolutionResult ' we store the DelegateConversions although it could be derived from MethodConversions to improve performance Public ReadOnly DelegateConversions As ConversionKind Public ReadOnly Target As MethodSymbol Public ReadOnly MethodConversions As MethodConversionKind Public ReadOnly Diagnostics As ImmutableBindingDiagnostic(Of AssemblySymbol) Public Sub New( DelegateConversions As ConversionKind, Target As MethodSymbol, MethodConversions As MethodConversionKind, Diagnostics As ImmutableBindingDiagnostic(Of AssemblySymbol) ) Me.DelegateConversions = DelegateConversions Me.Target = Target Me.Diagnostics = Diagnostics Me.MethodConversions = MethodConversions End Sub End Structure ''' <summary> ''' Binds the AddressOf expression. ''' </summary> ''' <param name="node">The AddressOf expression node.</param> ''' <param name="diagnostics">The diagnostics.</param><returns></returns> Private Function BindAddressOfExpression(node As VisualBasicSyntaxNode, diagnostics As BindingDiagnosticBag) As BoundExpression Dim addressOfSyntax = DirectCast(node, UnaryExpressionSyntax) Dim boundOperand = BindExpression(addressOfSyntax.Operand, isInvocationOrAddressOf:=True, diagnostics:=diagnostics, isOperandOfConditionalBranch:=False, eventContext:=False) If boundOperand.Kind = BoundKind.LateMemberAccess Then Return New BoundLateAddressOfOperator(node, Me, DirectCast(boundOperand, BoundLateMemberAccess), boundOperand.Type) End If ' only accept MethodGroups as operands. More detailed checks (e.g. for Constructors follow later) If boundOperand.Kind <> BoundKind.MethodGroup Then If Not boundOperand.HasErrors Then ReportDiagnostic(diagnostics, addressOfSyntax.Operand, ERRID.ERR_AddressOfOperandNotMethod) End If Return BadExpression(addressOfSyntax, boundOperand, LookupResultKind.NotAValue, ErrorTypeSymbol.UnknownResultType) End If Dim hasErrors As Boolean = False Dim group = DirectCast(boundOperand, BoundMethodGroup) If IsGroupOfConstructors(group) Then ReportDiagnostic(diagnostics, addressOfSyntax.Operand, ERRID.ERR_InvalidConstructorCall) hasErrors = True End If Return New BoundAddressOfOperator(node, Me, diagnostics.AccumulatesDependencies, group, hasErrors) End Function ''' <summary> ''' Binds the delegate creation expression. ''' This comes in form of e.g. ''' Dim del as new DelegateType(AddressOf methodName) ''' </summary> ''' <param name="delegateType">Type of the delegate.</param> ''' <param name="argumentListOpt">The argument list.</param> ''' <param name="node">Syntax node to attach diagnostics to in case the argument list is nothing.</param> ''' <param name="diagnostics">The diagnostics.</param><returns></returns> Private Function BindDelegateCreationExpression( delegateType As TypeSymbol, argumentListOpt As ArgumentListSyntax, node As VisualBasicSyntaxNode, diagnostics As BindingDiagnosticBag ) As BoundExpression Dim boundFirstArgument As BoundExpression = Nothing Dim argumentCount = 0 If argumentListOpt IsNot Nothing Then argumentCount = argumentListOpt.Arguments.Count End If Dim hadErrorsInFirstArgument = False ' a delegate creation expression should have exactly one argument. If argumentCount > 0 Then Dim argumentSyntax = argumentListOpt.Arguments(0) Dim expressionSyntax As ExpressionSyntax = Nothing ' a delegate creation expression does not care if what the name of a named argument ' was. Just take whatever was passed. If argumentSyntax.Kind = SyntaxKind.SimpleArgument Then expressionSyntax = argumentSyntax.GetExpression() End If ' omitted argument will leave expressionSyntax as nothing which means no binding, which is fine. If expressionSyntax IsNot Nothing Then If expressionSyntax.Kind = SyntaxKind.AddressOfExpression Then boundFirstArgument = BindAddressOfExpression(expressionSyntax, diagnostics) ElseIf expressionSyntax.IsLambdaExpressionSyntax() Then ' this covers the legal cases for SyntaxKind.MultiLineFunctionLambdaExpression, ' SyntaxKind.SingleLineFunctionLambdaExpression, SyntaxKind.MultiLineSubLambdaExpression and ' SyntaxKind.SingleLineSubLambdaExpression, as well as all the other invalid ones. boundFirstArgument = BindExpression(expressionSyntax, diagnostics) End If If boundFirstArgument IsNot Nothing Then hadErrorsInFirstArgument = boundFirstArgument.HasErrors Debug.Assert(boundFirstArgument.Kind = BoundKind.BadExpression OrElse boundFirstArgument.Kind = BoundKind.LateAddressOfOperator OrElse boundFirstArgument.Kind = BoundKind.AddressOfOperator OrElse boundFirstArgument.Kind = BoundKind.UnboundLambda) If argumentCount = 1 Then boundFirstArgument = ApplyImplicitConversion(node, delegateType, boundFirstArgument, diagnostics:=diagnostics) If boundFirstArgument.Syntax IsNot node Then ' We must have a bound node that corresponds to that syntax node for GetSemanticInfo. ' Insert an identity conversion if necessary. Debug.Assert(boundFirstArgument.Kind <> BoundKind.Conversion, "Associated wrong node with conversion?") boundFirstArgument = New BoundConversion(node, boundFirstArgument, ConversionKind.Identity, CheckOverflow, True, delegateType) ElseIf boundFirstArgument.Kind = BoundKind.Conversion Then Debug.Assert(Not boundFirstArgument.WasCompilerGenerated) Dim boundConversion = DirectCast(boundFirstArgument, BoundConversion) boundFirstArgument = boundConversion.Update(boundConversion.Operand, boundConversion.ConversionKind, boundConversion.Checked, True, ' ExplicitCastInCode boundConversion.ConstantValueOpt, boundConversion.ExtendedInfoOpt, boundConversion.Type) End If Return boundFirstArgument End If End If Else boundFirstArgument = New BoundBadExpression(argumentSyntax, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType, hasErrors:=True) End If End If Dim boundArguments(argumentCount - 1) As BoundExpression If boundFirstArgument IsNot Nothing Then boundFirstArgument = MakeRValueAndIgnoreDiagnostics(boundFirstArgument) boundArguments(0) = boundFirstArgument End If ' bind all arguments and ignore all diagnostics. These bound nodes will be passed to ' a BoundBadNode For argumentIndex = If(boundFirstArgument Is Nothing, 0, 1) To argumentCount - 1 Dim expressionSyntax As ExpressionSyntax = Nothing Dim argumentSyntax = argumentListOpt.Arguments(argumentIndex) If argumentSyntax.Kind = SyntaxKind.SimpleArgument Then expressionSyntax = argumentSyntax.GetExpression() End If If expressionSyntax IsNot Nothing Then boundArguments(argumentIndex) = BindValue(expressionSyntax, BindingDiagnosticBag.Discarded) Else boundArguments(argumentIndex) = New BoundBadExpression(argumentSyntax, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType, hasErrors:=True) End If Next ' the default error message in delegate creations if the passed arguments are empty or not a addressOf ' should be ERRID.ERR_NoDirectDelegateConstruction1 ' if binding an AddressOf expression caused diagnostics these should be shown instead If Not hadErrorsInFirstArgument OrElse argumentCount <> 1 Then ReportDiagnostic(diagnostics, If(argumentListOpt, node), ERRID.ERR_NoDirectDelegateConstruction1, delegateType) End If Return BadExpression(node, ImmutableArray.Create(boundArguments), delegateType) End Function ''' <summary> ''' Resolves the target method for the delegate and classifies the conversion ''' </summary> ''' <param name="addressOfExpression">The bound AddressOf expression itself.</param> ''' <param name="targetType">The delegate type to assign the result of the AddressOf operator to.</param> ''' <returns></returns> Friend Shared Function InterpretDelegateBinding( addressOfExpression As BoundAddressOfOperator, targetType As TypeSymbol, isForHandles As Boolean ) As DelegateResolutionResult Debug.Assert(targetType IsNot Nothing) Dim diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, addressOfExpression.WithDependencies) Dim result As OverloadResolution.OverloadResolutionResult = Nothing Dim fromMethod As MethodSymbol = Nothing Dim syntaxTree = addressOfExpression.Syntax Dim methodConversions As MethodConversionKind = MethodConversionKind.Identity ' must be a delegate, and also a concrete delegate If targetType.SpecialType = SpecialType.System_Delegate OrElse targetType.SpecialType = SpecialType.System_MulticastDelegate Then ' 'AddressOf' expression cannot be converted to '{0}' because type '{0}' is declared 'MustInherit' and cannot be created. ReportDiagnostic(diagnostics, syntaxTree, ERRID.ERR_AddressOfNotCreatableDelegate1, targetType) methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified ElseIf targetType.TypeKind <> TypeKind.Delegate Then ' 'AddressOf' expression cannot be converted to '{0}' because '{0}' is not a delegate type. If targetType.TypeKind <> TypeKind.Error Then ReportDiagnostic(diagnostics, syntaxTree, ERRID.ERR_AddressOfNotDelegate1, targetType) End If methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified Else Dim delegateInvoke = DirectCast(targetType, NamedTypeSymbol).DelegateInvokeMethod If delegateInvoke IsNot Nothing Then If ReportDelegateInvokeUseSite(diagnostics, syntaxTree, targetType, delegateInvoke) Then methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified Else ' todo(rbeckers) if (IsLateReference(addressOfExpression)) Dim matchingMethod As KeyValuePair(Of MethodSymbol, MethodConversionKind) = ResolveMethodForDelegateInvokeFullAndRelaxed( addressOfExpression, delegateInvoke, False, diagnostics) fromMethod = matchingMethod.Key methodConversions = matchingMethod.Value End If Else ReportDiagnostic(diagnostics, syntaxTree, ERRID.ERR_UnsupportedMethod1, targetType) methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified End If End If ' show diagnostics if the an instance method is used in a shared context. If fromMethod IsNot Nothing Then ' Generate an error, but continue processing If addressOfExpression.Binder.CheckSharedSymbolAccess(addressOfExpression.Syntax, fromMethod.IsShared, addressOfExpression.MethodGroup.ReceiverOpt, addressOfExpression.MethodGroup.QualificationKind, diagnostics) Then methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified End If End If ' TODO: Check boxing of restricted types, report ERRID_RestrictedConversion1 and continue. Dim receiver As BoundExpression = addressOfExpression.MethodGroup.ReceiverOpt If fromMethod IsNot Nothing Then If fromMethod.IsMustOverride AndAlso receiver IsNot Nothing AndAlso (receiver.IsMyBaseReference OrElse receiver.IsMyClassReference) Then ' Generate an error, but continue processing ReportDiagnostic(diagnostics, addressOfExpression.MethodGroup.Syntax, If(receiver.IsMyBaseReference, ERRID.ERR_MyBaseAbstractCall1, ERRID.ERR_MyClassAbstractCall1), fromMethod) methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified End If If Not fromMethod.IsShared AndAlso fromMethod.ContainingType.IsNullableType AndAlso Not fromMethod.IsOverrides Then Dim addressOfSyntax As SyntaxNode = addressOfExpression.Syntax Dim addressOfExpressionSyntax = DirectCast(addressOfExpression.Syntax, UnaryExpressionSyntax) If (addressOfExpressionSyntax IsNot Nothing) Then addressOfSyntax = addressOfExpressionSyntax.Operand End If ' Generate an error, but continue processing ReportDiagnostic(diagnostics, addressOfSyntax, ERRID.ERR_AddressOfNullableMethod, fromMethod.ContainingType, SyntaxFacts.GetText(SyntaxKind.AddressOfKeyword)) ' There's no real need to set MethodConversionKind.Error because there are no overloads of the same method where one ' may be legal to call because it's shared and the other's not. ' However to be future proof, we set it regardless. methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified End If addressOfExpression.Binder.ReportDiagnosticsIfObsoleteOrNotSupportedByRuntime(diagnostics, fromMethod, addressOfExpression.MethodGroup.Syntax) End If Dim delegateConversions As ConversionKind = Conversions.DetermineDelegateRelaxationLevel(methodConversions) If (delegateConversions And ConversionKind.DelegateRelaxationLevelInvalid) <> ConversionKind.DelegateRelaxationLevelInvalid Then If Conversions.IsNarrowingMethodConversion(methodConversions, isForAddressOf:=Not isForHandles) Then delegateConversions = delegateConversions Or ConversionKind.Narrowing Else delegateConversions = delegateConversions Or ConversionKind.Widening End If End If Return New DelegateResolutionResult(delegateConversions, fromMethod, methodConversions, diagnostics.ToReadOnlyAndFree()) End Function Friend Shared Function ReportDelegateInvokeUseSite( diagBag As BindingDiagnosticBag, syntax As SyntaxNode, delegateType As TypeSymbol, invoke As MethodSymbol ) As Boolean Debug.Assert(delegateType IsNot Nothing) Debug.Assert(invoke IsNot Nothing) Dim useSiteInfo As UseSiteInfo(Of AssemblySymbol) = invoke.GetUseSiteInfo() If useSiteInfo.DiagnosticInfo?.Code = ERRID.ERR_UnsupportedMethod1 Then useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, delegateType)) End If Return diagBag.Add(useSiteInfo, syntax) End Function ''' <summary> ''' Resolves the method for delegate invoke with all or relaxed arguments / return types. It also determines ''' the method conversion kind. ''' </summary> ''' <param name="addressOfExpression">The AddressOf expression.</param> ''' <param name="toMethod">The delegate invoke method.</param> ''' <param name="ignoreMethodReturnType">Ignore method's return type for the purpose of calculating 'methodConversions'.</param> ''' <param name="diagnostics">The diagnostics.</param> ''' <returns>The resolved method if any.</returns> Friend Shared Function ResolveMethodForDelegateInvokeFullAndRelaxed( addressOfExpression As BoundAddressOfOperator, toMethod As MethodSymbol, ignoreMethodReturnType As Boolean, diagnostics As BindingDiagnosticBag ) As KeyValuePair(Of MethodSymbol, MethodConversionKind) Dim argumentDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) Dim couldTryZeroArgumentRelaxation As Boolean = True Dim matchingMethod As KeyValuePair(Of MethodSymbol, MethodConversionKind) = ResolveMethodForDelegateInvokeFullOrRelaxed( addressOfExpression, toMethod, ignoreMethodReturnType, argumentDiagnostics, useZeroArgumentRelaxation:=False, couldTryZeroArgumentRelaxation:=couldTryZeroArgumentRelaxation) ' If there have been parameters and if there was no ambiguous match before, try zero argument relaxation. If matchingMethod.Key Is Nothing AndAlso couldTryZeroArgumentRelaxation Then Dim zeroArgumentDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) Dim argumentMatchingMethod = matchingMethod matchingMethod = ResolveMethodForDelegateInvokeFullOrRelaxed( addressOfExpression, toMethod, ignoreMethodReturnType, zeroArgumentDiagnostics, useZeroArgumentRelaxation:=True, couldTryZeroArgumentRelaxation:=couldTryZeroArgumentRelaxation) ' if zero relaxation did not find something, we'll report the diagnostics of the ' non zero relaxation try, else the diagnostics of the zero argument relaxation. If matchingMethod.Key Is Nothing Then diagnostics.AddRange(argumentDiagnostics) matchingMethod = argumentMatchingMethod Else diagnostics.AddRange(zeroArgumentDiagnostics) End If zeroArgumentDiagnostics.Free() Else diagnostics.AddRange(argumentDiagnostics) End If argumentDiagnostics.Free() ' check that there's not method returned if there is no conversion. Debug.Assert(matchingMethod.Key Is Nothing OrElse (matchingMethod.Value And MethodConversionKind.AllErrorReasons) = 0) Return matchingMethod End Function ''' <summary> ''' Resolves the method for delegate invoke with all or relaxed arguments / return types. It also determines ''' the method conversion kind. ''' </summary> ''' <param name="addressOfExpression">The AddressOf expression.</param> ''' <param name="toMethod">The delegate invoke method.</param> ''' <param name="ignoreMethodReturnType">Ignore method's return type for the purpose of calculating 'methodConversions'.</param> ''' <param name="diagnostics">The diagnostics.</param> ''' <param name="useZeroArgumentRelaxation">if set to <c>true</c> use zero argument relaxation.</param> ''' <returns>The resolved method if any.</returns> Private Shared Function ResolveMethodForDelegateInvokeFullOrRelaxed( addressOfExpression As BoundAddressOfOperator, toMethod As MethodSymbol, ignoreMethodReturnType As Boolean, diagnostics As BindingDiagnosticBag, useZeroArgumentRelaxation As Boolean, ByRef couldTryZeroArgumentRelaxation As Boolean ) As KeyValuePair(Of MethodSymbol, MethodConversionKind) Dim boundArguments = ImmutableArray(Of BoundExpression).Empty If Not useZeroArgumentRelaxation Then ' build array of bound expressions for overload resolution (BoundLocal is easy to create) Dim toMethodParameters = toMethod.Parameters Dim parameterCount = toMethodParameters.Length If parameterCount > 0 Then Dim boundParameterArguments(parameterCount - 1) As BoundExpression Dim argumentIndex As Integer = 0 Dim syntaxTree As SyntaxTree Dim addressOfSyntax = addressOfExpression.Syntax syntaxTree = addressOfExpression.Binder.SyntaxTree For Each parameter In toMethodParameters Dim parameterType = parameter.Type Dim tempParamSymbol = New SynthesizedLocal(toMethod, parameterType, SynthesizedLocalKind.LoweringTemp) ' TODO: Switch to using BoundValuePlaceholder, but we need it to be able to appear ' as an LValue in case of a ByRef parameter. Dim tempBoundParameter As BoundExpression = New BoundLocal(addressOfSyntax, tempParamSymbol, parameterType) ' don't treat ByVal parameters as lvalues in the following OverloadResolution If Not parameter.IsByRef Then tempBoundParameter = tempBoundParameter.MakeRValue() End If boundParameterArguments(argumentIndex) = tempBoundParameter argumentIndex += 1 Next boundArguments = boundParameterArguments.AsImmutableOrNull() Else couldTryZeroArgumentRelaxation = False End If End If Dim delegateReturnType As TypeSymbol Dim delegateReturnTypeReferenceBoundNode As BoundNode If ignoreMethodReturnType Then ' Keep them Nothing such that the delegate's return type won't be taken part of in overload resolution ' when we are inferring the return type. delegateReturnType = Nothing delegateReturnTypeReferenceBoundNode = Nothing Else delegateReturnType = toMethod.ReturnType delegateReturnTypeReferenceBoundNode = addressOfExpression End If ' Let's go through overload resolution, pretending that Option Strict is Off and see if it succeeds. Dim resolutionBinder As Binder If addressOfExpression.Binder.OptionStrict <> VisualBasic.OptionStrict.Off Then resolutionBinder = New OptionStrictOffBinder(addressOfExpression.Binder) Else resolutionBinder = addressOfExpression.Binder End If Debug.Assert(resolutionBinder.OptionStrict = VisualBasic.OptionStrict.Off) Dim useSiteInfo = addressOfExpression.Binder.GetNewCompoundUseSiteInfo(diagnostics) Dim resolutionResult = OverloadResolution.MethodInvocationOverloadResolution( addressOfExpression.MethodGroup, boundArguments, Nothing, resolutionBinder, includeEliminatedCandidates:=False, delegateReturnType:=delegateReturnType, delegateReturnTypeReferenceBoundNode:=delegateReturnTypeReferenceBoundNode, lateBindingIsAllowed:=False, callerInfoOpt:=Nothing, useSiteInfo:=useSiteInfo) If diagnostics.Add(addressOfExpression.MethodGroup, useSiteInfo) Then couldTryZeroArgumentRelaxation = False If addressOfExpression.MethodGroup.ResultKind <> LookupResultKind.Inaccessible Then ' Suppress additional diagnostics diagnostics = BindingDiagnosticBag.Discarded End If End If Dim addressOfMethodGroup = addressOfExpression.MethodGroup If resolutionResult.BestResult.HasValue Then Return ValidateMethodForDelegateInvoke( addressOfExpression, resolutionResult.BestResult.Value, toMethod, ignoreMethodReturnType, useZeroArgumentRelaxation, diagnostics) End If ' Overload Resolution didn't find a match If resolutionResult.Candidates.Length = 0 Then resolutionResult = OverloadResolution.MethodInvocationOverloadResolution( addressOfMethodGroup, boundArguments, Nothing, resolutionBinder, includeEliminatedCandidates:=True, delegateReturnType:=delegateReturnType, delegateReturnTypeReferenceBoundNode:=delegateReturnTypeReferenceBoundNode, lateBindingIsAllowed:=False, callerInfoOpt:=Nothing, useSiteInfo:=useSiteInfo) End If Dim bestCandidates = ArrayBuilder(Of OverloadResolution.CandidateAnalysisResult).GetInstance() Dim bestSymbols = ImmutableArray(Of Symbol).Empty Dim commonReturnType As TypeSymbol = GetSetOfTheBestCandidates(resolutionResult, bestCandidates, bestSymbols) Debug.Assert(bestCandidates.Count > 0 AndAlso bestCandidates.Count > 0) Dim bestCandidatesState As OverloadResolution.CandidateAnalysisResultState = bestCandidates(0).State If bestCandidatesState = VisualBasic.OverloadResolution.CandidateAnalysisResultState.Applicable Then ' if there is an applicable candidate in the list, we know it must be an ambiguous match ' (or there are more applicable candidates in this list), otherwise this would have been ' the best match. Debug.Assert(bestCandidates.Count > 1 AndAlso bestSymbols.Length > 1) ' there are multiple candidates, so it ambiguous and zero argument relaxation will not be tried, ' unless the candidates require narrowing. If Not bestCandidates(0).RequiresNarrowingConversion Then couldTryZeroArgumentRelaxation = False End If End If If bestSymbols.Length = 1 AndAlso (bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.ArgumentCountMismatch OrElse bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.ArgumentMismatch) Then ' Dev10 has squiggles under the operand of the AddressOf. The syntax of addressOfExpression ' is the complete AddressOf expression, so we need to get the operand first. Dim addressOfOperandSyntax = addressOfExpression.Syntax If addressOfOperandSyntax.Kind = SyntaxKind.AddressOfExpression Then addressOfOperandSyntax = DirectCast(addressOfOperandSyntax, UnaryExpressionSyntax).Operand End If If addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Inaccessible Then ReportDiagnostic(diagnostics, addressOfOperandSyntax, addressOfExpression.Binder.GetInaccessibleErrorInfo( bestSymbols(0))) Else Debug.Assert(addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Good) End If ReportDelegateBindingIncompatible( addressOfOperandSyntax, toMethod.ContainingType, DirectCast(bestSymbols(0), MethodSymbol), diagnostics) Else If bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.HasUseSiteError OrElse bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.HasUnsupportedMetadata OrElse bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.Ambiguous Then couldTryZeroArgumentRelaxation = False End If Dim unused = resolutionBinder.ReportOverloadResolutionFailureAndProduceBoundNode( addressOfExpression.MethodGroup.Syntax, addressOfMethodGroup, bestCandidates, bestSymbols, commonReturnType, boundArguments, Nothing, diagnostics, delegateSymbol:=toMethod.ContainingType, callerInfoOpt:=Nothing) End If bestCandidates.Free() Return New KeyValuePair(Of MethodSymbol, MethodConversionKind)(Nothing, MethodConversionKind.Error_OverloadResolution) End Function Private Shared Function ValidateMethodForDelegateInvoke( addressOfExpression As BoundAddressOfOperator, analysisResult As OverloadResolution.CandidateAnalysisResult, toMethod As MethodSymbol, ignoreMethodReturnType As Boolean, useZeroArgumentRelaxation As Boolean, diagnostics As BindingDiagnosticBag ) As KeyValuePair(Of MethodSymbol, MethodConversionKind) Dim methodConversions As MethodConversionKind = MethodConversionKind.Identity ' Dev10 has squiggles under the operand of the AddressOf. The syntax of addressOfExpression ' is the complete AddressOf expression, so we need to get the operand first. Dim addressOfOperandSyntax = addressOfExpression.Syntax If addressOfOperandSyntax.Kind = SyntaxKind.AddressOfExpression Then addressOfOperandSyntax = DirectCast(addressOfOperandSyntax, UnaryExpressionSyntax).Operand End If ' determine conversions based on return type Dim useSiteInfo = addressOfExpression.Binder.GetNewCompoundUseSiteInfo(diagnostics) Dim targetMethodSymbol = DirectCast(analysisResult.Candidate.UnderlyingSymbol, MethodSymbol) If Not ignoreMethodReturnType Then methodConversions = methodConversions Or Conversions.ClassifyMethodConversionBasedOnReturn(targetMethodSymbol.ReturnType, targetMethodSymbol.ReturnsByRef, toMethod.ReturnType, toMethod.ReturnsByRef, useSiteInfo) If diagnostics.Add(addressOfOperandSyntax, useSiteInfo) Then ' Suppress additional diagnostics diagnostics = BindingDiagnosticBag.Discarded End If End If If useZeroArgumentRelaxation Then Debug.Assert(toMethod.ParameterCount > 0) ' special flag for ignoring all arguments (zero argument relaxation) If targetMethodSymbol.ParameterCount = 0 Then methodConversions = methodConversions Or MethodConversionKind.AllArgumentsIgnored Else ' We can get here if all method's parameters are Optional/ParamArray, however, ' according to the language spec, zero arguments relaxation is allowed only ' if target method has no parameters. Here is the quote: ' "method referenced by the method pointer, but it is not applicable due to ' the fact that it has no parameters and the delegate type does, then the method ' is considered applicable and the parameters are simply ignored." ' ' There is a bug in Dev10, sometimes it erroneously allows zero-argument relaxation against ' a method with optional parameters, if parameters of the delegate invoke can be passed to ' the method (i.e. without dropping them). See unit-test Bug12211 for an example. methodConversions = methodConversions Or MethodConversionKind.Error_IllegalToIgnoreAllArguments End If Else ' determine conversions based on arguments methodConversions = methodConversions Or GetDelegateMethodConversionBasedOnArguments(analysisResult, toMethod, useSiteInfo) If diagnostics.Add(addressOfOperandSyntax, useSiteInfo) Then ' Suppress additional diagnostics diagnostics = BindingDiagnosticBag.Discarded End If End If ' Stubs for ByRef returning methods are not supported. ' We could easily support a stub for the case when return value is dropped, ' but enabling other kinds of stubs later can lead to breaking changes ' because those relaxations could be "better". If Not ignoreMethodReturnType AndAlso targetMethodSymbol.ReturnsByRef AndAlso Conversions.IsDelegateRelaxationSupportedFor(methodConversions) AndAlso Conversions.IsStubRequiredForMethodConversion(methodConversions) Then methodConversions = methodConversions Or MethodConversionKind.Error_StubNotSupported End If If Conversions.IsDelegateRelaxationSupportedFor(methodConversions) Then Dim typeArgumentInferenceDiagnosticsOpt = analysisResult.TypeArgumentInferenceDiagnosticsOpt If typeArgumentInferenceDiagnosticsOpt IsNot Nothing Then diagnostics.AddRange(typeArgumentInferenceDiagnosticsOpt) End If If addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Good Then addressOfExpression.Binder.CheckMemberTypeAccessibility(diagnostics, addressOfOperandSyntax, targetMethodSymbol) Return New KeyValuePair(Of MethodSymbol, MethodConversionKind)(targetMethodSymbol, methodConversions) End If methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified Else ReportDelegateBindingIncompatible( addressOfOperandSyntax, toMethod.ContainingType, targetMethodSymbol, diagnostics) End If Debug.Assert((methodConversions And MethodConversionKind.AllErrorReasons) <> 0) If addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Inaccessible Then ReportDiagnostic(diagnostics, addressOfOperandSyntax, addressOfExpression.Binder.GetInaccessibleErrorInfo( analysisResult.Candidate.UnderlyingSymbol)) Else Debug.Assert(addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Good) End If Return New KeyValuePair(Of MethodSymbol, MethodConversionKind)(Nothing, methodConversions) End Function Private Shared Sub ReportDelegateBindingMismatchStrictOff( syntax As SyntaxNode, delegateType As NamedTypeSymbol, targetMethodSymbol As MethodSymbol, diagnostics As BindingDiagnosticBag ) ' Option Strict On does not allow narrowing in implicit type conversion between method '{0}' and delegate "{1}". If targetMethodSymbol.ReducedFrom Is Nothing Then ReportDiagnostic(diagnostics, syntax, ERRID.ERR_DelegateBindingMismatchStrictOff2, targetMethodSymbol, CustomSymbolDisplayFormatter.DelegateSignature(delegateType)) Else ' This is an extension method. ReportDiagnostic(diagnostics, syntax, ERRID.ERR_DelegateBindingMismatchStrictOff3, targetMethodSymbol, CustomSymbolDisplayFormatter.DelegateSignature(delegateType), targetMethodSymbol.ContainingType) End If End Sub Private Shared Sub ReportDelegateBindingIncompatible( syntax As SyntaxNode, delegateType As NamedTypeSymbol, targetMethodSymbol As MethodSymbol, diagnostics As BindingDiagnosticBag ) ' Option Strict On does not allow narrowing in implicit type conversion between method '{0}' and delegate "{1}". If targetMethodSymbol.ReducedFrom Is Nothing Then ReportDiagnostic(diagnostics, syntax, ERRID.ERR_DelegateBindingIncompatible2, targetMethodSymbol, CustomSymbolDisplayFormatter.DelegateSignature(delegateType)) Else ' This is an extension method. ReportDiagnostic(diagnostics, syntax, ERRID.ERR_DelegateBindingIncompatible3, targetMethodSymbol, CustomSymbolDisplayFormatter.DelegateSignature(delegateType), targetMethodSymbol.ContainingType) End If End Sub ''' <summary> ''' Determines the method conversion for delegates based on the arguments. ''' </summary> ''' <param name="bestResult">The resolution result.</param> ''' <param name="delegateInvoke">The delegate invoke method.</param> Private Shared Function GetDelegateMethodConversionBasedOnArguments( bestResult As OverloadResolution.CandidateAnalysisResult, delegateInvoke As MethodSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol) ) As MethodConversionKind Dim methodConversions As MethodConversionKind = MethodConversionKind.Identity ' in contrast to the native compiler we know that there is a legal conversion and we do not ' need to classify invalid conversions. ' however there is still the ParamArray expansion that needs special treatment. ' if there is one conversion needed, the array ConversionsOpt contains all conversions for all used parameters ' (including e.g. identity conversion). If a ParamArray was expanded, there will be a conversion for each ' expanded parameter. Dim bestCandidate As OverloadResolution.Candidate = bestResult.Candidate Dim candidateParameterCount = bestCandidate.ParameterCount Dim candidateLastParameterIndex = candidateParameterCount - 1 Dim delegateParameterCount = delegateInvoke.ParameterCount Dim lastCommonIndex = Math.Min(candidateParameterCount, delegateParameterCount) - 1 ' IsExpandedParamArrayForm is true if there was no, one or more parameters given for the ParamArray ' Note: if an array was passed, IsExpandedParamArrayForm is false. If bestResult.IsExpandedParamArrayForm Then ' Dev10 always sets the ExcessOptionalArgumentsOnTarget whenever the last parameter of the target was a ' ParamArray. This forces a stub for the ParamArray conversion, that is needed for the ParamArray in any case. methodConversions = methodConversions Or MethodConversionKind.ExcessOptionalArgumentsOnTarget ElseIf candidateParameterCount > delegateParameterCount Then ' An omission of optional parameters for expanded ParamArray form doesn't add anything new for ' the method conversion. Non-expanded ParamArray form, would be dismissed by overload resolution ' if there were omitted optional parameters because it is illegal to omit the ParamArray argument ' in non-expanded form. ' there are optional parameters that have not been exercised by the delegate. ' e.g. Delegate Sub(b As Byte) -> Sub Target(b As Byte, Optional c as Byte) methodConversions = methodConversions Or MethodConversionKind.ExcessOptionalArgumentsOnTarget #If DEBUG Then ' check that all unused parameters on the target are optional For parameterIndex = delegateParameterCount To candidateParameterCount - 1 Debug.Assert(bestCandidate.Parameters(parameterIndex).IsOptional) Next #End If ElseIf lastCommonIndex >= 0 AndAlso bestCandidate.Parameters(lastCommonIndex).IsParamArray AndAlso delegateInvoke.Parameters(lastCommonIndex).IsByRef AndAlso bestCandidate.Parameters(lastCommonIndex).IsByRef AndAlso Not bestResult.ConversionsOpt.IsDefaultOrEmpty AndAlso Not Conversions.IsIdentityConversion(bestResult.ConversionsOpt(lastCommonIndex).Key) Then ' Dev10 has the following behavior that needs to be re-implemented: ' Using ' Sub Target(ByRef Base()) ' with a ' Delegate Sub Del(ByRef ParamArray Base()) ' does not create a stub and the values are transported ByRef ' however using a ' Sub Target(ByRef ParamArray Base()) ' with a ' Delegate Del(ByRef Derived()) (with or without ParamArray, works with Option Strict Off only) ' creates a stub and transports the values ByVal. ' Note: if the ParamArray is not expanded, the parameter count must match Debug.Assert(candidateParameterCount = delegateParameterCount) Debug.Assert(Conversions.IsWideningConversion(bestResult.ConversionsOpt(lastCommonIndex).Key)) Dim conv = Conversions.ClassifyConversion(bestCandidate.Parameters(lastCommonIndex).Type, delegateInvoke.Parameters(lastCommonIndex).Type, useSiteInfo) methodConversions = methodConversions Or Conversions.ClassifyMethodConversionBasedOnArgumentConversion(conv.Key, delegateInvoke.Parameters(lastCommonIndex).Type) End If ' the overload resolution does not consider ByRef/ByVal mismatches, so we need to check the ' parameters here. ' first iterate over the common parameters For parameterIndex = 0 To lastCommonIndex If delegateInvoke.Parameters(parameterIndex).IsByRef <> bestCandidate.Parameters(parameterIndex).IsByRef Then methodConversions = methodConversions Or MethodConversionKind.Error_ByRefByValMismatch Exit For End If Next ' after the loop above the remaining parameters on the target can only be optional and/or a ParamArray If bestResult.IsExpandedParamArrayForm AndAlso (methodConversions And MethodConversionKind.Error_ByRefByValMismatch) <> MethodConversionKind.Error_ByRefByValMismatch Then ' if delegateParameterCount is smaller than targetParameterCount the for loop does not ' execute Dim lastTargetParameterIsByRef = bestCandidate.Parameters(candidateLastParameterIndex).IsByRef Debug.Assert(bestCandidate.Parameters(candidateLastParameterIndex).IsParamArray) For parameterIndex = lastCommonIndex + 1 To delegateParameterCount - 1 ' test against the last parameter of the target method If delegateInvoke.Parameters(parameterIndex).IsByRef <> lastTargetParameterIsByRef Then methodConversions = methodConversions Or MethodConversionKind.Error_ByRefByValMismatch Exit For End If Next End If ' there have been conversions, check them all If Not bestResult.ConversionsOpt.IsDefaultOrEmpty Then For conversionIndex = 0 To bestResult.ConversionsOpt.Length - 1 Dim conversion = bestResult.ConversionsOpt(conversionIndex) Dim delegateParameterType = delegateInvoke.Parameters(conversionIndex).Type methodConversions = methodConversions Or Conversions.ClassifyMethodConversionBasedOnArgumentConversion(conversion.Key, delegateParameterType) Next End If ' in case of ByRef, there might also be backward conversions If Not bestResult.ConversionsBackOpt.IsDefaultOrEmpty Then For conversionIndex = 0 To bestResult.ConversionsBackOpt.Length - 1 Dim conversion = bestResult.ConversionsBackOpt(conversionIndex) If Not Conversions.IsIdentityConversion(conversion.Key) Then Dim targetMethodParameterType = bestCandidate.Parameters(conversionIndex).Type methodConversions = methodConversions Or Conversions.ClassifyMethodConversionBasedOnArgumentConversion(conversion.Key, targetMethodParameterType) End If Next End If Return methodConversions End Function ''' <summary> ''' Classifies the address of conversion. ''' </summary> ''' <param name="source">The bound AddressOf expression.</param> ''' <param name="destination">The target type to convert this AddressOf expression to.</param><returns></returns> Friend Shared Function ClassifyAddressOfConversion( source As BoundAddressOfOperator, destination As TypeSymbol ) As ConversionKind Return source.GetConversionClassification(destination) End Function Private Shared ReadOnly s_checkDelegateParameterModifierCallback As CheckParameterModifierDelegate = AddressOf CheckDelegateParameterModifier ''' <summary> ''' Checks if a parameter is a ParamArray and reports this as an error. ''' </summary> ''' <param name="container">The containing type.</param> ''' <param name="token">The current parameter token.</param> ''' <param name="flag">The flags of this parameter.</param> ''' <param name="diagnostics">The diagnostics.</param> Private Shared Function CheckDelegateParameterModifier( container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag ) As SourceParameterFlags ' 9.2.5.4: ParamArray parameters may not be specified in delegate or event declarations. If (flag And SourceParameterFlags.ParamArray) = SourceParameterFlags.ParamArray Then Dim location = token.GetLocation() diagnostics.Add(ERRID.ERR_ParamArrayIllegal1, location, GetDelegateOrEventKeywordText(container)) flag = flag And (Not SourceParameterFlags.ParamArray) End If ' 9.2.5.3 Optional parameters may not be specified on delegate or event declarations If (flag And SourceParameterFlags.Optional) = SourceParameterFlags.Optional Then Dim location = token.GetLocation() diagnostics.Add(ERRID.ERR_OptionalIllegal1, location, GetDelegateOrEventKeywordText(container)) flag = flag And (Not SourceParameterFlags.Optional) End If Return flag End Function Private Shared Function GetDelegateOrEventKeywordText(sym As Symbol) As String Dim keyword As SyntaxKind If sym.Kind = SymbolKind.Event Then keyword = SyntaxKind.EventKeyword ElseIf TypeOf sym.ContainingType Is SynthesizedEventDelegateSymbol Then keyword = SyntaxKind.EventKeyword Else keyword = SyntaxKind.DelegateKeyword End If Return SyntaxFacts.GetText(keyword) End Function ''' <summary> ''' Reclassifies the bound address of operator into a delegate creation expression (if there is no delegate ''' relaxation required) or into a bound lambda expression (which gets a delegate creation expression later on) ''' </summary> ''' <param name="addressOfExpression">The AddressOf expression.</param> ''' <param name="delegateResolutionResult">The delegate resolution result.</param> ''' <param name="targetType">Type of the target.</param> ''' <param name="diagnostics">The diagnostics.</param><returns></returns> Friend Function ReclassifyAddressOf( addressOfExpression As BoundAddressOfOperator, ByRef delegateResolutionResult As DelegateResolutionResult, targetType As TypeSymbol, diagnostics As BindingDiagnosticBag, isForHandles As Boolean, warnIfResultOfAsyncMethodIsDroppedDueToRelaxation As Boolean ) As BoundExpression If addressOfExpression.HasErrors Then Return addressOfExpression End If Dim boundLambda As BoundLambda = Nothing Dim relaxationReceiverPlaceholder As BoundRValuePlaceholder = Nothing Dim syntaxNode = addressOfExpression.Syntax Dim targetMethod As MethodSymbol = delegateResolutionResult.Target Dim reducedFromDefinition As MethodSymbol = targetMethod.ReducedFrom Dim sourceMethodGroup = addressOfExpression.MethodGroup Dim receiver As BoundExpression = sourceMethodGroup.ReceiverOpt Dim resolvedTypeOrValueReceiver As BoundExpression = Nothing If receiver IsNot Nothing AndAlso Not addressOfExpression.HasErrors AndAlso Not delegateResolutionResult.Diagnostics.Diagnostics.HasAnyErrors Then receiver = AdjustReceiverTypeOrValue(receiver, receiver.Syntax, targetMethod.IsShared, diagnostics, resolvedTypeOrValueReceiver) End If If Me.OptionStrict = OptionStrict.On AndAlso Conversions.IsNarrowingConversion(delegateResolutionResult.DelegateConversions) Then Dim addressOfOperandSyntax = addressOfExpression.Syntax If addressOfOperandSyntax.Kind = SyntaxKind.AddressOfExpression Then addressOfOperandSyntax = DirectCast(addressOfOperandSyntax, UnaryExpressionSyntax).Operand End If ' Option Strict On does not allow narrowing in implicit type conversion between method '{0}' and delegate "{1}". ReportDelegateBindingMismatchStrictOff(addressOfOperandSyntax, DirectCast(targetType, NamedTypeSymbol), targetMethod, diagnostics) Else ' When the target method is an extension method, we are creating so called curried delegate. ' However, CLR doesn't support creating curried delegates that close over a ByRef 'this' argument. ' A similar problem exists when the 'this' argument is a value type. For these cases we need a stub too, ' but they are not covered by MethodConversionKind. If Conversions.IsStubRequiredForMethodConversion(delegateResolutionResult.MethodConversions) OrElse (reducedFromDefinition IsNot Nothing AndAlso (reducedFromDefinition.Parameters(0).IsByRef OrElse targetMethod.ReceiverType.IsTypeParameter() OrElse targetMethod.ReceiverType.IsValueType)) Then ' because of a delegate relaxation there is a conversion needed to create a delegate instance. ' We will create a lambda with the exact signature of the delegate. This lambda itself will ' call the target method. boundLambda = BuildDelegateRelaxationLambda(syntaxNode, sourceMethodGroup.Syntax, receiver, targetMethod, sourceMethodGroup.TypeArgumentsOpt, sourceMethodGroup.QualificationKind, DirectCast(targetType, NamedTypeSymbol).DelegateInvokeMethod, delegateResolutionResult.DelegateConversions And ConversionKind.DelegateRelaxationLevelMask, isZeroArgumentKnownToBeUsed:=(delegateResolutionResult.MethodConversions And MethodConversionKind.AllArgumentsIgnored) <> 0, diagnostics:=diagnostics, warnIfResultOfAsyncMethodIsDroppedDueToRelaxation:=warnIfResultOfAsyncMethodIsDroppedDueToRelaxation, relaxationReceiverPlaceholder:=relaxationReceiverPlaceholder) End If End If Dim target As MethodSymbol = delegateResolutionResult.Target ' Check if the target is a partial method without implementation provided If Not isForHandles AndAlso target.IsPartialWithoutImplementation Then ReportDiagnostic(diagnostics, addressOfExpression.MethodGroup.Syntax, ERRID.ERR_NoPartialMethodInAddressOf1, target) End If Dim newReceiver As BoundExpression If receiver IsNot Nothing Then If receiver.IsPropertyOrXmlPropertyAccess() Then receiver = MakeRValue(receiver, diagnostics) End If newReceiver = Nothing Else newReceiver = If(resolvedTypeOrValueReceiver, sourceMethodGroup.ReceiverOpt) End If sourceMethodGroup = sourceMethodGroup.Update(sourceMethodGroup.TypeArgumentsOpt, sourceMethodGroup.Methods, sourceMethodGroup.PendingExtensionMethodsOpt, sourceMethodGroup.ResultKind, newReceiver, sourceMethodGroup.QualificationKind) ' the delegate creation has the lambda stored internally to not clutter the bound tree with synthesized nodes ' in the first pass. Later on in the DelegateRewriter the node get's rewritten with the lambda if needed. Return New BoundDelegateCreationExpression(syntaxNode, receiver, target, boundLambda, relaxationReceiverPlaceholder, sourceMethodGroup, targetType, hasErrors:=False) End Function Private Function BuildDelegateRelaxationLambda( syntaxNode As SyntaxNode, methodGroupSyntax As SyntaxNode, receiver As BoundExpression, targetMethod As MethodSymbol, typeArgumentsOpt As BoundTypeArguments, qualificationKind As QualificationKind, delegateInvoke As MethodSymbol, delegateRelaxation As ConversionKind, isZeroArgumentKnownToBeUsed As Boolean, warnIfResultOfAsyncMethodIsDroppedDueToRelaxation As Boolean, diagnostics As BindingDiagnosticBag, <Out()> ByRef relaxationReceiverPlaceholder As BoundRValuePlaceholder ) As BoundLambda relaxationReceiverPlaceholder = Nothing Dim unconstructedTargetMethod As MethodSymbol = targetMethod.ConstructedFrom If typeArgumentsOpt Is Nothing AndAlso unconstructedTargetMethod.IsGenericMethod Then typeArgumentsOpt = New BoundTypeArguments(methodGroupSyntax, targetMethod.TypeArguments) typeArgumentsOpt.SetWasCompilerGenerated() End If Dim actualReceiver As BoundExpression = receiver ' Figure out if we need to capture the receiver in a temp before creating the lambda ' in order to enforce correct semantics. If actualReceiver IsNot Nothing AndAlso actualReceiver.IsValue() AndAlso Not actualReceiver.HasErrors Then If actualReceiver.IsInstanceReference() AndAlso targetMethod.ReceiverType.IsReferenceType Then Debug.Assert(Not actualReceiver.Type.IsTypeParameter()) Debug.Assert(Not actualReceiver.IsLValue) ' See the comment below why this is important. Else ' Will need to capture the receiver in a temp, rewriter do the job. relaxationReceiverPlaceholder = New BoundRValuePlaceholder(actualReceiver.Syntax, actualReceiver.Type) actualReceiver = relaxationReceiverPlaceholder End If End If Dim methodGroup = New BoundMethodGroup(methodGroupSyntax, typeArgumentsOpt, ImmutableArray.Create(unconstructedTargetMethod), LookupResultKind.Good, actualReceiver, qualificationKind) methodGroup.SetWasCompilerGenerated() Return BuildDelegateRelaxationLambda(syntaxNode, delegateInvoke, methodGroup, delegateRelaxation, isZeroArgumentKnownToBeUsed, warnIfResultOfAsyncMethodIsDroppedDueToRelaxation, diagnostics) End Function ''' <summary> ''' Build a lambda that has a shape of the [delegateInvoke] and calls ''' the only method from the [methodGroup] passing all parameters of the lambda ''' as arguments for the call. ''' Note, that usually the receiver of the [methodGroup] should be captured before entering the ''' relaxation lambda in order to prevent its reevaluation every time the lambda is invoked and ''' prevent its mutation. ''' ''' !!! Therefore, it is not common to call this overload directly. !!! ''' ''' </summary> ''' <param name="syntaxNode">Location to use for various synthetic nodes and symbols.</param> ''' <param name="delegateInvoke">The Invoke method to "implement".</param> ''' <param name="methodGroup">The method group with the only method in it.</param> ''' <param name="delegateRelaxation">Delegate relaxation to store within the new BoundLambda node.</param> ''' <param name="diagnostics"></param> Private Function BuildDelegateRelaxationLambda( syntaxNode As SyntaxNode, delegateInvoke As MethodSymbol, methodGroup As BoundMethodGroup, delegateRelaxation As ConversionKind, isZeroArgumentKnownToBeUsed As Boolean, warnIfResultOfAsyncMethodIsDroppedDueToRelaxation As Boolean, diagnostics As BindingDiagnosticBag ) As BoundLambda Debug.Assert(delegateInvoke.MethodKind = MethodKind.DelegateInvoke) Debug.Assert(methodGroup.Methods.Length = 1) Debug.Assert(methodGroup.PendingExtensionMethodsOpt Is Nothing) Debug.Assert((delegateRelaxation And (Not ConversionKind.DelegateRelaxationLevelMask)) = 0) ' build lambda symbol parameters matching the invocation method exactly. To do this, ' we'll create a BoundLambdaParameterSymbol for each parameter of the invoke method. Dim delegateInvokeReturnType = delegateInvoke.ReturnType Dim invokeParameters = delegateInvoke.Parameters Dim invokeParameterCount = invokeParameters.Length Dim lambdaSymbolParameters(invokeParameterCount - 1) As BoundLambdaParameterSymbol Dim addressOfLocation As Location = syntaxNode.GetLocation() For parameterIndex = 0 To invokeParameterCount - 1 Dim parameter = invokeParameters(parameterIndex) lambdaSymbolParameters(parameterIndex) = New BoundLambdaParameterSymbol(GeneratedNames.MakeDelegateRelaxationParameterName(parameterIndex), parameter.Ordinal, parameter.Type, parameter.IsByRef, syntaxNode, addressOfLocation) Next ' even if the return value is dropped, we're using the delegate's return type for ' this lambda symbol. Dim lambdaSymbol = New SynthesizedLambdaSymbol(SynthesizedLambdaKind.DelegateRelaxationStub, syntaxNode, lambdaSymbolParameters.AsImmutable(), delegateInvokeReturnType, Me) ' the body of the lambda only contains a call to the target (or a return of the return value of ' the call in case of a function) ' for each parameter of the lambda symbol/invoke method we will create a bound parameter, except ' we are implementing a zero argument relaxation. ' These parameters will be used in the method invocation as passed parameters. Dim method As MethodSymbol = methodGroup.Methods(0) Dim droppedArguments = isZeroArgumentKnownToBeUsed OrElse (invokeParameterCount > 0 AndAlso method.ParameterCount = 0) Dim targetParameterCount = If(droppedArguments, 0, invokeParameterCount) Dim lambdaBoundParameters(targetParameterCount - 1) As BoundExpression If Not droppedArguments Then For parameterIndex = 0 To lambdaSymbolParameters.Length - 1 Dim lambdaSymbolParameter = lambdaSymbolParameters(parameterIndex) Dim boundParameter = New BoundParameter(syntaxNode, lambdaSymbolParameter, lambdaSymbolParameter.Type) boundParameter.SetWasCompilerGenerated() lambdaBoundParameters(parameterIndex) = boundParameter Next End If 'The invocation of the target method must be bound in the context of the lambda 'The reason is that binding the invoke may introduce local symbols and they need 'to be properly parented to the lambda and not to the outer method. Dim lambdaBinder = New LambdaBodyBinder(lambdaSymbol, Me) ' Dev10 ignores the type characters used in the operand of an AddressOf operator. ' NOTE: we suppress suppressAbstractCallDiagnostics because it ' should have been reported already Dim boundInvocationExpression As BoundExpression = lambdaBinder.BindInvocationExpression(syntaxNode, syntaxNode, TypeCharacter.None, methodGroup, lambdaBoundParameters.AsImmutable(), Nothing, diagnostics, suppressAbstractCallDiagnostics:=True, callerInfoOpt:=Nothing) boundInvocationExpression.SetWasCompilerGenerated() ' In case of a function target that got assigned to a sub delegate, the return value will be dropped Dim statementList As ImmutableArray(Of BoundStatement) = Nothing If lambdaSymbol.IsSub Then Dim statements(1) As BoundStatement Dim boundStatement As BoundStatement = New BoundExpressionStatement(syntaxNode, boundInvocationExpression) boundStatement.SetWasCompilerGenerated() statements(0) = boundStatement boundStatement = New BoundReturnStatement(syntaxNode, Nothing, Nothing, Nothing) boundStatement.SetWasCompilerGenerated() statements(1) = boundStatement statementList = statements.AsImmutableOrNull If warnIfResultOfAsyncMethodIsDroppedDueToRelaxation AndAlso Not method.IsSub Then If Not method.IsAsync Then warnIfResultOfAsyncMethodIsDroppedDueToRelaxation = False If method.MethodKind = MethodKind.DelegateInvoke AndAlso methodGroup.ReceiverOpt IsNot Nothing AndAlso methodGroup.ReceiverOpt.Kind = BoundKind.Conversion Then Dim receiver = DirectCast(methodGroup.ReceiverOpt, BoundConversion) If Not receiver.ExplicitCastInCode AndAlso receiver.Operand.Kind = BoundKind.Lambda AndAlso DirectCast(receiver.Operand, BoundLambda).LambdaSymbol.IsAsync AndAlso receiver.Type.IsDelegateType() AndAlso receiver.Type.IsAnonymousType Then warnIfResultOfAsyncMethodIsDroppedDueToRelaxation = True End If End If Else warnIfResultOfAsyncMethodIsDroppedDueToRelaxation = method.ContainingAssembly Is Compilation.Assembly End If If warnIfResultOfAsyncMethodIsDroppedDueToRelaxation Then ReportDiagnostic(diagnostics, syntaxNode, ERRID.WRN_UnobservedAwaitableDelegate) End If End If Else ' process conversions between the return types of the target and invoke function if needed. boundInvocationExpression = lambdaBinder.ApplyImplicitConversion(syntaxNode, delegateInvokeReturnType, boundInvocationExpression, diagnostics) Dim returnstmt As BoundStatement = New BoundReturnStatement(syntaxNode, boundInvocationExpression, Nothing, Nothing) returnstmt.SetWasCompilerGenerated() statementList = ImmutableArray.Create(returnstmt) End If Dim lambdaBody = New BoundBlock(syntaxNode, Nothing, ImmutableArray(Of LocalSymbol).Empty, statementList) lambdaBody.SetWasCompilerGenerated() Dim boundLambda = New BoundLambda(syntaxNode, lambdaSymbol, lambdaBody, ImmutableBindingDiagnostic(Of AssemblySymbol).Empty, Nothing, delegateRelaxation, MethodConversionKind.Identity) boundLambda.SetWasCompilerGenerated() Return boundLambda 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 System.Runtime.InteropServices Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports TypeKind = Microsoft.CodeAnalysis.TypeKind Namespace Microsoft.CodeAnalysis.VisualBasic Partial Friend Class Binder ''' <summary> ''' Structure is used to store all information which is needed to construct and classify a Delegate creation ''' expression later on. ''' </summary> Friend Structure DelegateResolutionResult ' we store the DelegateConversions although it could be derived from MethodConversions to improve performance Public ReadOnly DelegateConversions As ConversionKind Public ReadOnly Target As MethodSymbol Public ReadOnly MethodConversions As MethodConversionKind Public ReadOnly Diagnostics As ImmutableBindingDiagnostic(Of AssemblySymbol) Public Sub New( DelegateConversions As ConversionKind, Target As MethodSymbol, MethodConversions As MethodConversionKind, Diagnostics As ImmutableBindingDiagnostic(Of AssemblySymbol) ) Me.DelegateConversions = DelegateConversions Me.Target = Target Me.Diagnostics = Diagnostics Me.MethodConversions = MethodConversions End Sub End Structure ''' <summary> ''' Binds the AddressOf expression. ''' </summary> ''' <param name="node">The AddressOf expression node.</param> ''' <param name="diagnostics">The diagnostics.</param><returns></returns> Private Function BindAddressOfExpression(node As VisualBasicSyntaxNode, diagnostics As BindingDiagnosticBag) As BoundExpression Dim addressOfSyntax = DirectCast(node, UnaryExpressionSyntax) Dim boundOperand = BindExpression(addressOfSyntax.Operand, isInvocationOrAddressOf:=True, diagnostics:=diagnostics, isOperandOfConditionalBranch:=False, eventContext:=False) If boundOperand.Kind = BoundKind.LateMemberAccess Then Return New BoundLateAddressOfOperator(node, Me, DirectCast(boundOperand, BoundLateMemberAccess), boundOperand.Type) End If ' only accept MethodGroups as operands. More detailed checks (e.g. for Constructors follow later) If boundOperand.Kind <> BoundKind.MethodGroup Then If Not boundOperand.HasErrors Then ReportDiagnostic(diagnostics, addressOfSyntax.Operand, ERRID.ERR_AddressOfOperandNotMethod) End If Return BadExpression(addressOfSyntax, boundOperand, LookupResultKind.NotAValue, ErrorTypeSymbol.UnknownResultType) End If Dim hasErrors As Boolean = False Dim group = DirectCast(boundOperand, BoundMethodGroup) If IsGroupOfConstructors(group) Then ReportDiagnostic(diagnostics, addressOfSyntax.Operand, ERRID.ERR_InvalidConstructorCall) hasErrors = True End If Return New BoundAddressOfOperator(node, Me, diagnostics.AccumulatesDependencies, group, hasErrors) End Function ''' <summary> ''' Binds the delegate creation expression. ''' This comes in form of e.g. ''' Dim del as new DelegateType(AddressOf methodName) ''' </summary> ''' <param name="delegateType">Type of the delegate.</param> ''' <param name="argumentListOpt">The argument list.</param> ''' <param name="node">Syntax node to attach diagnostics to in case the argument list is nothing.</param> ''' <param name="diagnostics">The diagnostics.</param><returns></returns> Private Function BindDelegateCreationExpression( delegateType As TypeSymbol, argumentListOpt As ArgumentListSyntax, node As VisualBasicSyntaxNode, diagnostics As BindingDiagnosticBag ) As BoundExpression Dim boundFirstArgument As BoundExpression = Nothing Dim argumentCount = 0 If argumentListOpt IsNot Nothing Then argumentCount = argumentListOpt.Arguments.Count End If Dim hadErrorsInFirstArgument = False ' a delegate creation expression should have exactly one argument. If argumentCount > 0 Then Dim argumentSyntax = argumentListOpt.Arguments(0) Dim expressionSyntax As ExpressionSyntax = Nothing ' a delegate creation expression does not care if what the name of a named argument ' was. Just take whatever was passed. If argumentSyntax.Kind = SyntaxKind.SimpleArgument Then expressionSyntax = argumentSyntax.GetExpression() End If ' omitted argument will leave expressionSyntax as nothing which means no binding, which is fine. If expressionSyntax IsNot Nothing Then If expressionSyntax.Kind = SyntaxKind.AddressOfExpression Then boundFirstArgument = BindAddressOfExpression(expressionSyntax, diagnostics) ElseIf expressionSyntax.IsLambdaExpressionSyntax() Then ' this covers the legal cases for SyntaxKind.MultiLineFunctionLambdaExpression, ' SyntaxKind.SingleLineFunctionLambdaExpression, SyntaxKind.MultiLineSubLambdaExpression and ' SyntaxKind.SingleLineSubLambdaExpression, as well as all the other invalid ones. boundFirstArgument = BindExpression(expressionSyntax, diagnostics) End If If boundFirstArgument IsNot Nothing Then hadErrorsInFirstArgument = boundFirstArgument.HasErrors Debug.Assert(boundFirstArgument.Kind = BoundKind.BadExpression OrElse boundFirstArgument.Kind = BoundKind.LateAddressOfOperator OrElse boundFirstArgument.Kind = BoundKind.AddressOfOperator OrElse boundFirstArgument.Kind = BoundKind.UnboundLambda) If argumentCount = 1 Then boundFirstArgument = ApplyImplicitConversion(node, delegateType, boundFirstArgument, diagnostics:=diagnostics) If boundFirstArgument.Syntax IsNot node Then ' We must have a bound node that corresponds to that syntax node for GetSemanticInfo. ' Insert an identity conversion if necessary. Debug.Assert(boundFirstArgument.Kind <> BoundKind.Conversion, "Associated wrong node with conversion?") boundFirstArgument = New BoundConversion(node, boundFirstArgument, ConversionKind.Identity, CheckOverflow, True, delegateType) ElseIf boundFirstArgument.Kind = BoundKind.Conversion Then Debug.Assert(Not boundFirstArgument.WasCompilerGenerated) Dim boundConversion = DirectCast(boundFirstArgument, BoundConversion) boundFirstArgument = boundConversion.Update(boundConversion.Operand, boundConversion.ConversionKind, boundConversion.Checked, True, ' ExplicitCastInCode boundConversion.ConstantValueOpt, boundConversion.ExtendedInfoOpt, boundConversion.Type) End If Return boundFirstArgument End If End If Else boundFirstArgument = New BoundBadExpression(argumentSyntax, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType, hasErrors:=True) End If End If Dim boundArguments(argumentCount - 1) As BoundExpression If boundFirstArgument IsNot Nothing Then boundFirstArgument = MakeRValueAndIgnoreDiagnostics(boundFirstArgument) boundArguments(0) = boundFirstArgument End If ' bind all arguments and ignore all diagnostics. These bound nodes will be passed to ' a BoundBadNode For argumentIndex = If(boundFirstArgument Is Nothing, 0, 1) To argumentCount - 1 Dim expressionSyntax As ExpressionSyntax = Nothing Dim argumentSyntax = argumentListOpt.Arguments(argumentIndex) If argumentSyntax.Kind = SyntaxKind.SimpleArgument Then expressionSyntax = argumentSyntax.GetExpression() End If If expressionSyntax IsNot Nothing Then boundArguments(argumentIndex) = BindValue(expressionSyntax, BindingDiagnosticBag.Discarded) Else boundArguments(argumentIndex) = New BoundBadExpression(argumentSyntax, LookupResultKind.Empty, ImmutableArray(Of Symbol).Empty, ImmutableArray(Of BoundExpression).Empty, ErrorTypeSymbol.UnknownResultType, hasErrors:=True) End If Next ' the default error message in delegate creations if the passed arguments are empty or not a addressOf ' should be ERRID.ERR_NoDirectDelegateConstruction1 ' if binding an AddressOf expression caused diagnostics these should be shown instead If Not hadErrorsInFirstArgument OrElse argumentCount <> 1 Then ReportDiagnostic(diagnostics, If(argumentListOpt, node), ERRID.ERR_NoDirectDelegateConstruction1, delegateType) End If Return BadExpression(node, ImmutableArray.Create(boundArguments), delegateType) End Function ''' <summary> ''' Resolves the target method for the delegate and classifies the conversion ''' </summary> ''' <param name="addressOfExpression">The bound AddressOf expression itself.</param> ''' <param name="targetType">The delegate type to assign the result of the AddressOf operator to.</param> ''' <returns></returns> Friend Shared Function InterpretDelegateBinding( addressOfExpression As BoundAddressOfOperator, targetType As TypeSymbol, isForHandles As Boolean ) As DelegateResolutionResult Debug.Assert(targetType IsNot Nothing) Dim diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, addressOfExpression.WithDependencies) Dim result As OverloadResolution.OverloadResolutionResult = Nothing Dim fromMethod As MethodSymbol = Nothing Dim syntaxTree = addressOfExpression.Syntax Dim methodConversions As MethodConversionKind = MethodConversionKind.Identity ' must be a delegate, and also a concrete delegate If targetType.SpecialType = SpecialType.System_Delegate OrElse targetType.SpecialType = SpecialType.System_MulticastDelegate Then ' 'AddressOf' expression cannot be converted to '{0}' because type '{0}' is declared 'MustInherit' and cannot be created. ReportDiagnostic(diagnostics, syntaxTree, ERRID.ERR_AddressOfNotCreatableDelegate1, targetType) methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified ElseIf targetType.TypeKind <> TypeKind.Delegate Then ' 'AddressOf' expression cannot be converted to '{0}' because '{0}' is not a delegate type. If targetType.TypeKind <> TypeKind.Error Then ReportDiagnostic(diagnostics, syntaxTree, ERRID.ERR_AddressOfNotDelegate1, targetType) End If methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified Else Dim delegateInvoke = DirectCast(targetType, NamedTypeSymbol).DelegateInvokeMethod If delegateInvoke IsNot Nothing Then If ReportDelegateInvokeUseSite(diagnostics, syntaxTree, targetType, delegateInvoke) Then methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified Else ' todo(rbeckers) if (IsLateReference(addressOfExpression)) Dim matchingMethod As KeyValuePair(Of MethodSymbol, MethodConversionKind) = ResolveMethodForDelegateInvokeFullAndRelaxed( addressOfExpression, delegateInvoke, False, diagnostics) fromMethod = matchingMethod.Key methodConversions = matchingMethod.Value End If Else ReportDiagnostic(diagnostics, syntaxTree, ERRID.ERR_UnsupportedMethod1, targetType) methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified End If End If ' show diagnostics if the an instance method is used in a shared context. If fromMethod IsNot Nothing Then ' Generate an error, but continue processing If addressOfExpression.Binder.CheckSharedSymbolAccess(addressOfExpression.Syntax, fromMethod.IsShared, addressOfExpression.MethodGroup.ReceiverOpt, addressOfExpression.MethodGroup.QualificationKind, diagnostics) Then methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified End If End If ' TODO: Check boxing of restricted types, report ERRID_RestrictedConversion1 and continue. Dim receiver As BoundExpression = addressOfExpression.MethodGroup.ReceiverOpt If fromMethod IsNot Nothing Then If fromMethod.IsMustOverride AndAlso receiver IsNot Nothing AndAlso (receiver.IsMyBaseReference OrElse receiver.IsMyClassReference) Then ' Generate an error, but continue processing ReportDiagnostic(diagnostics, addressOfExpression.MethodGroup.Syntax, If(receiver.IsMyBaseReference, ERRID.ERR_MyBaseAbstractCall1, ERRID.ERR_MyClassAbstractCall1), fromMethod) methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified End If If Not fromMethod.IsShared AndAlso fromMethod.ContainingType.IsNullableType AndAlso Not fromMethod.IsOverrides Then Dim addressOfSyntax As SyntaxNode = addressOfExpression.Syntax Dim addressOfExpressionSyntax = DirectCast(addressOfExpression.Syntax, UnaryExpressionSyntax) If (addressOfExpressionSyntax IsNot Nothing) Then addressOfSyntax = addressOfExpressionSyntax.Operand End If ' Generate an error, but continue processing ReportDiagnostic(diagnostics, addressOfSyntax, ERRID.ERR_AddressOfNullableMethod, fromMethod.ContainingType, SyntaxFacts.GetText(SyntaxKind.AddressOfKeyword)) ' There's no real need to set MethodConversionKind.Error because there are no overloads of the same method where one ' may be legal to call because it's shared and the other's not. ' However to be future proof, we set it regardless. methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified End If addressOfExpression.Binder.ReportDiagnosticsIfObsoleteOrNotSupportedByRuntime(diagnostics, fromMethod, addressOfExpression.MethodGroup.Syntax) End If Dim delegateConversions As ConversionKind = Conversions.DetermineDelegateRelaxationLevel(methodConversions) If (delegateConversions And ConversionKind.DelegateRelaxationLevelInvalid) <> ConversionKind.DelegateRelaxationLevelInvalid Then If Conversions.IsNarrowingMethodConversion(methodConversions, isForAddressOf:=Not isForHandles) Then delegateConversions = delegateConversions Or ConversionKind.Narrowing Else delegateConversions = delegateConversions Or ConversionKind.Widening End If End If Return New DelegateResolutionResult(delegateConversions, fromMethod, methodConversions, diagnostics.ToReadOnlyAndFree()) End Function Friend Shared Function ReportDelegateInvokeUseSite( diagBag As BindingDiagnosticBag, syntax As SyntaxNode, delegateType As TypeSymbol, invoke As MethodSymbol ) As Boolean Debug.Assert(delegateType IsNot Nothing) Debug.Assert(invoke IsNot Nothing) Dim useSiteInfo As UseSiteInfo(Of AssemblySymbol) = invoke.GetUseSiteInfo() If useSiteInfo.DiagnosticInfo?.Code = ERRID.ERR_UnsupportedMethod1 Then useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, delegateType)) End If Return diagBag.Add(useSiteInfo, syntax) End Function ''' <summary> ''' Resolves the method for delegate invoke with all or relaxed arguments / return types. It also determines ''' the method conversion kind. ''' </summary> ''' <param name="addressOfExpression">The AddressOf expression.</param> ''' <param name="toMethod">The delegate invoke method.</param> ''' <param name="ignoreMethodReturnType">Ignore method's return type for the purpose of calculating 'methodConversions'.</param> ''' <param name="diagnostics">The diagnostics.</param> ''' <returns>The resolved method if any.</returns> Friend Shared Function ResolveMethodForDelegateInvokeFullAndRelaxed( addressOfExpression As BoundAddressOfOperator, toMethod As MethodSymbol, ignoreMethodReturnType As Boolean, diagnostics As BindingDiagnosticBag ) As KeyValuePair(Of MethodSymbol, MethodConversionKind) Dim argumentDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) Dim couldTryZeroArgumentRelaxation As Boolean = True Dim matchingMethod As KeyValuePair(Of MethodSymbol, MethodConversionKind) = ResolveMethodForDelegateInvokeFullOrRelaxed( addressOfExpression, toMethod, ignoreMethodReturnType, argumentDiagnostics, useZeroArgumentRelaxation:=False, couldTryZeroArgumentRelaxation:=couldTryZeroArgumentRelaxation) ' If there have been parameters and if there was no ambiguous match before, try zero argument relaxation. If matchingMethod.Key Is Nothing AndAlso couldTryZeroArgumentRelaxation Then Dim zeroArgumentDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) Dim argumentMatchingMethod = matchingMethod matchingMethod = ResolveMethodForDelegateInvokeFullOrRelaxed( addressOfExpression, toMethod, ignoreMethodReturnType, zeroArgumentDiagnostics, useZeroArgumentRelaxation:=True, couldTryZeroArgumentRelaxation:=couldTryZeroArgumentRelaxation) ' if zero relaxation did not find something, we'll report the diagnostics of the ' non zero relaxation try, else the diagnostics of the zero argument relaxation. If matchingMethod.Key Is Nothing Then diagnostics.AddRange(argumentDiagnostics) matchingMethod = argumentMatchingMethod Else diagnostics.AddRange(zeroArgumentDiagnostics) End If zeroArgumentDiagnostics.Free() Else diagnostics.AddRange(argumentDiagnostics) End If argumentDiagnostics.Free() ' check that there's not method returned if there is no conversion. Debug.Assert(matchingMethod.Key Is Nothing OrElse (matchingMethod.Value And MethodConversionKind.AllErrorReasons) = 0) Return matchingMethod End Function ''' <summary> ''' Resolves the method for delegate invoke with all or relaxed arguments / return types. It also determines ''' the method conversion kind. ''' </summary> ''' <param name="addressOfExpression">The AddressOf expression.</param> ''' <param name="toMethod">The delegate invoke method.</param> ''' <param name="ignoreMethodReturnType">Ignore method's return type for the purpose of calculating 'methodConversions'.</param> ''' <param name="diagnostics">The diagnostics.</param> ''' <param name="useZeroArgumentRelaxation">if set to <c>true</c> use zero argument relaxation.</param> ''' <returns>The resolved method if any.</returns> Private Shared Function ResolveMethodForDelegateInvokeFullOrRelaxed( addressOfExpression As BoundAddressOfOperator, toMethod As MethodSymbol, ignoreMethodReturnType As Boolean, diagnostics As BindingDiagnosticBag, useZeroArgumentRelaxation As Boolean, ByRef couldTryZeroArgumentRelaxation As Boolean ) As KeyValuePair(Of MethodSymbol, MethodConversionKind) Dim boundArguments = ImmutableArray(Of BoundExpression).Empty If Not useZeroArgumentRelaxation Then ' build array of bound expressions for overload resolution (BoundLocal is easy to create) Dim toMethodParameters = toMethod.Parameters Dim parameterCount = toMethodParameters.Length If parameterCount > 0 Then Dim boundParameterArguments(parameterCount - 1) As BoundExpression Dim argumentIndex As Integer = 0 Dim syntaxTree As SyntaxTree Dim addressOfSyntax = addressOfExpression.Syntax syntaxTree = addressOfExpression.Binder.SyntaxTree For Each parameter In toMethodParameters Dim parameterType = parameter.Type Dim tempParamSymbol = New SynthesizedLocal(toMethod, parameterType, SynthesizedLocalKind.LoweringTemp) ' TODO: Switch to using BoundValuePlaceholder, but we need it to be able to appear ' as an LValue in case of a ByRef parameter. Dim tempBoundParameter As BoundExpression = New BoundLocal(addressOfSyntax, tempParamSymbol, parameterType) ' don't treat ByVal parameters as lvalues in the following OverloadResolution If Not parameter.IsByRef Then tempBoundParameter = tempBoundParameter.MakeRValue() End If boundParameterArguments(argumentIndex) = tempBoundParameter argumentIndex += 1 Next boundArguments = boundParameterArguments.AsImmutableOrNull() Else couldTryZeroArgumentRelaxation = False End If End If Dim delegateReturnType As TypeSymbol Dim delegateReturnTypeReferenceBoundNode As BoundNode If ignoreMethodReturnType Then ' Keep them Nothing such that the delegate's return type won't be taken part of in overload resolution ' when we are inferring the return type. delegateReturnType = Nothing delegateReturnTypeReferenceBoundNode = Nothing Else delegateReturnType = toMethod.ReturnType delegateReturnTypeReferenceBoundNode = addressOfExpression End If ' Let's go through overload resolution, pretending that Option Strict is Off and see if it succeeds. Dim resolutionBinder As Binder If addressOfExpression.Binder.OptionStrict <> VisualBasic.OptionStrict.Off Then resolutionBinder = New OptionStrictOffBinder(addressOfExpression.Binder) Else resolutionBinder = addressOfExpression.Binder End If Debug.Assert(resolutionBinder.OptionStrict = VisualBasic.OptionStrict.Off) Dim useSiteInfo = addressOfExpression.Binder.GetNewCompoundUseSiteInfo(diagnostics) Dim resolutionResult = OverloadResolution.MethodInvocationOverloadResolution( addressOfExpression.MethodGroup, boundArguments, Nothing, resolutionBinder, includeEliminatedCandidates:=False, delegateReturnType:=delegateReturnType, delegateReturnTypeReferenceBoundNode:=delegateReturnTypeReferenceBoundNode, lateBindingIsAllowed:=False, callerInfoOpt:=Nothing, useSiteInfo:=useSiteInfo) If diagnostics.Add(addressOfExpression.MethodGroup, useSiteInfo) Then couldTryZeroArgumentRelaxation = False If addressOfExpression.MethodGroup.ResultKind <> LookupResultKind.Inaccessible Then ' Suppress additional diagnostics diagnostics = BindingDiagnosticBag.Discarded End If End If Dim addressOfMethodGroup = addressOfExpression.MethodGroup If resolutionResult.BestResult.HasValue Then Return ValidateMethodForDelegateInvoke( addressOfExpression, resolutionResult.BestResult.Value, toMethod, ignoreMethodReturnType, useZeroArgumentRelaxation, diagnostics) End If ' Overload Resolution didn't find a match If resolutionResult.Candidates.Length = 0 Then resolutionResult = OverloadResolution.MethodInvocationOverloadResolution( addressOfMethodGroup, boundArguments, Nothing, resolutionBinder, includeEliminatedCandidates:=True, delegateReturnType:=delegateReturnType, delegateReturnTypeReferenceBoundNode:=delegateReturnTypeReferenceBoundNode, lateBindingIsAllowed:=False, callerInfoOpt:=Nothing, useSiteInfo:=useSiteInfo) End If Dim bestCandidates = ArrayBuilder(Of OverloadResolution.CandidateAnalysisResult).GetInstance() Dim bestSymbols = ImmutableArray(Of Symbol).Empty Dim commonReturnType As TypeSymbol = GetSetOfTheBestCandidates(resolutionResult, bestCandidates, bestSymbols) Debug.Assert(bestCandidates.Count > 0 AndAlso bestCandidates.Count > 0) Dim bestCandidatesState As OverloadResolution.CandidateAnalysisResultState = bestCandidates(0).State If bestCandidatesState = VisualBasic.OverloadResolution.CandidateAnalysisResultState.Applicable Then ' if there is an applicable candidate in the list, we know it must be an ambiguous match ' (or there are more applicable candidates in this list), otherwise this would have been ' the best match. Debug.Assert(bestCandidates.Count > 1 AndAlso bestSymbols.Length > 1) ' there are multiple candidates, so it ambiguous and zero argument relaxation will not be tried, ' unless the candidates require narrowing. If Not bestCandidates(0).RequiresNarrowingConversion Then couldTryZeroArgumentRelaxation = False End If End If If bestSymbols.Length = 1 AndAlso (bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.ArgumentCountMismatch OrElse bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.ArgumentMismatch) Then ' Dev10 has squiggles under the operand of the AddressOf. The syntax of addressOfExpression ' is the complete AddressOf expression, so we need to get the operand first. Dim addressOfOperandSyntax = addressOfExpression.Syntax If addressOfOperandSyntax.Kind = SyntaxKind.AddressOfExpression Then addressOfOperandSyntax = DirectCast(addressOfOperandSyntax, UnaryExpressionSyntax).Operand End If If addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Inaccessible Then ReportDiagnostic(diagnostics, addressOfOperandSyntax, addressOfExpression.Binder.GetInaccessibleErrorInfo( bestSymbols(0))) Else Debug.Assert(addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Good) End If ReportDelegateBindingIncompatible( addressOfOperandSyntax, toMethod.ContainingType, DirectCast(bestSymbols(0), MethodSymbol), diagnostics) Else If bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.HasUseSiteError OrElse bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.HasUnsupportedMetadata OrElse bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.Ambiguous Then couldTryZeroArgumentRelaxation = False End If Dim unused = resolutionBinder.ReportOverloadResolutionFailureAndProduceBoundNode( addressOfExpression.MethodGroup.Syntax, addressOfMethodGroup, bestCandidates, bestSymbols, commonReturnType, boundArguments, Nothing, diagnostics, delegateSymbol:=toMethod.ContainingType, callerInfoOpt:=Nothing) End If bestCandidates.Free() Return New KeyValuePair(Of MethodSymbol, MethodConversionKind)(Nothing, MethodConversionKind.Error_OverloadResolution) End Function Private Shared Function ValidateMethodForDelegateInvoke( addressOfExpression As BoundAddressOfOperator, analysisResult As OverloadResolution.CandidateAnalysisResult, toMethod As MethodSymbol, ignoreMethodReturnType As Boolean, useZeroArgumentRelaxation As Boolean, diagnostics As BindingDiagnosticBag ) As KeyValuePair(Of MethodSymbol, MethodConversionKind) Dim methodConversions As MethodConversionKind = MethodConversionKind.Identity ' Dev10 has squiggles under the operand of the AddressOf. The syntax of addressOfExpression ' is the complete AddressOf expression, so we need to get the operand first. Dim addressOfOperandSyntax = addressOfExpression.Syntax If addressOfOperandSyntax.Kind = SyntaxKind.AddressOfExpression Then addressOfOperandSyntax = DirectCast(addressOfOperandSyntax, UnaryExpressionSyntax).Operand End If ' determine conversions based on return type Dim useSiteInfo = addressOfExpression.Binder.GetNewCompoundUseSiteInfo(diagnostics) Dim targetMethodSymbol = DirectCast(analysisResult.Candidate.UnderlyingSymbol, MethodSymbol) If Not ignoreMethodReturnType Then methodConversions = methodConversions Or Conversions.ClassifyMethodConversionBasedOnReturn(targetMethodSymbol.ReturnType, targetMethodSymbol.ReturnsByRef, toMethod.ReturnType, toMethod.ReturnsByRef, useSiteInfo) If diagnostics.Add(addressOfOperandSyntax, useSiteInfo) Then ' Suppress additional diagnostics diagnostics = BindingDiagnosticBag.Discarded End If End If If useZeroArgumentRelaxation Then Debug.Assert(toMethod.ParameterCount > 0) ' special flag for ignoring all arguments (zero argument relaxation) If targetMethodSymbol.ParameterCount = 0 Then methodConversions = methodConversions Or MethodConversionKind.AllArgumentsIgnored Else ' We can get here if all method's parameters are Optional/ParamArray, however, ' according to the language spec, zero arguments relaxation is allowed only ' if target method has no parameters. Here is the quote: ' "method referenced by the method pointer, but it is not applicable due to ' the fact that it has no parameters and the delegate type does, then the method ' is considered applicable and the parameters are simply ignored." ' ' There is a bug in Dev10, sometimes it erroneously allows zero-argument relaxation against ' a method with optional parameters, if parameters of the delegate invoke can be passed to ' the method (i.e. without dropping them). See unit-test Bug12211 for an example. methodConversions = methodConversions Or MethodConversionKind.Error_IllegalToIgnoreAllArguments End If Else ' determine conversions based on arguments methodConversions = methodConversions Or GetDelegateMethodConversionBasedOnArguments(analysisResult, toMethod, useSiteInfo) If diagnostics.Add(addressOfOperandSyntax, useSiteInfo) Then ' Suppress additional diagnostics diagnostics = BindingDiagnosticBag.Discarded End If End If ' Stubs for ByRef returning methods are not supported. ' We could easily support a stub for the case when return value is dropped, ' but enabling other kinds of stubs later can lead to breaking changes ' because those relaxations could be "better". If Not ignoreMethodReturnType AndAlso targetMethodSymbol.ReturnsByRef AndAlso Conversions.IsDelegateRelaxationSupportedFor(methodConversions) AndAlso Conversions.IsStubRequiredForMethodConversion(methodConversions) Then methodConversions = methodConversions Or MethodConversionKind.Error_StubNotSupported End If If Conversions.IsDelegateRelaxationSupportedFor(methodConversions) Then Dim typeArgumentInferenceDiagnosticsOpt = analysisResult.TypeArgumentInferenceDiagnosticsOpt If typeArgumentInferenceDiagnosticsOpt IsNot Nothing Then diagnostics.AddRange(typeArgumentInferenceDiagnosticsOpt) End If If addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Good Then addressOfExpression.Binder.CheckMemberTypeAccessibility(diagnostics, addressOfOperandSyntax, targetMethodSymbol) Return New KeyValuePair(Of MethodSymbol, MethodConversionKind)(targetMethodSymbol, methodConversions) End If methodConversions = methodConversions Or MethodConversionKind.Error_Unspecified Else ReportDelegateBindingIncompatible( addressOfOperandSyntax, toMethod.ContainingType, targetMethodSymbol, diagnostics) End If Debug.Assert((methodConversions And MethodConversionKind.AllErrorReasons) <> 0) If addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Inaccessible Then ReportDiagnostic(diagnostics, addressOfOperandSyntax, addressOfExpression.Binder.GetInaccessibleErrorInfo( analysisResult.Candidate.UnderlyingSymbol)) Else Debug.Assert(addressOfExpression.MethodGroup.ResultKind = LookupResultKind.Good) End If Return New KeyValuePair(Of MethodSymbol, MethodConversionKind)(Nothing, methodConversions) End Function Private Shared Sub ReportDelegateBindingMismatchStrictOff( syntax As SyntaxNode, delegateType As NamedTypeSymbol, targetMethodSymbol As MethodSymbol, diagnostics As BindingDiagnosticBag ) ' Option Strict On does not allow narrowing in implicit type conversion between method '{0}' and delegate "{1}". If targetMethodSymbol.ReducedFrom Is Nothing Then ReportDiagnostic(diagnostics, syntax, ERRID.ERR_DelegateBindingMismatchStrictOff2, targetMethodSymbol, CustomSymbolDisplayFormatter.DelegateSignature(delegateType)) Else ' This is an extension method. ReportDiagnostic(diagnostics, syntax, ERRID.ERR_DelegateBindingMismatchStrictOff3, targetMethodSymbol, CustomSymbolDisplayFormatter.DelegateSignature(delegateType), targetMethodSymbol.ContainingType) End If End Sub Private Shared Sub ReportDelegateBindingIncompatible( syntax As SyntaxNode, delegateType As NamedTypeSymbol, targetMethodSymbol As MethodSymbol, diagnostics As BindingDiagnosticBag ) ' Option Strict On does not allow narrowing in implicit type conversion between method '{0}' and delegate "{1}". If targetMethodSymbol.ReducedFrom Is Nothing Then ReportDiagnostic(diagnostics, syntax, ERRID.ERR_DelegateBindingIncompatible2, targetMethodSymbol, CustomSymbolDisplayFormatter.DelegateSignature(delegateType)) Else ' This is an extension method. ReportDiagnostic(diagnostics, syntax, ERRID.ERR_DelegateBindingIncompatible3, targetMethodSymbol, CustomSymbolDisplayFormatter.DelegateSignature(delegateType), targetMethodSymbol.ContainingType) End If End Sub ''' <summary> ''' Determines the method conversion for delegates based on the arguments. ''' </summary> ''' <param name="bestResult">The resolution result.</param> ''' <param name="delegateInvoke">The delegate invoke method.</param> Private Shared Function GetDelegateMethodConversionBasedOnArguments( bestResult As OverloadResolution.CandidateAnalysisResult, delegateInvoke As MethodSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol) ) As MethodConversionKind Dim methodConversions As MethodConversionKind = MethodConversionKind.Identity ' in contrast to the native compiler we know that there is a legal conversion and we do not ' need to classify invalid conversions. ' however there is still the ParamArray expansion that needs special treatment. ' if there is one conversion needed, the array ConversionsOpt contains all conversions for all used parameters ' (including e.g. identity conversion). If a ParamArray was expanded, there will be a conversion for each ' expanded parameter. Dim bestCandidate As OverloadResolution.Candidate = bestResult.Candidate Dim candidateParameterCount = bestCandidate.ParameterCount Dim candidateLastParameterIndex = candidateParameterCount - 1 Dim delegateParameterCount = delegateInvoke.ParameterCount Dim lastCommonIndex = Math.Min(candidateParameterCount, delegateParameterCount) - 1 ' IsExpandedParamArrayForm is true if there was no, one or more parameters given for the ParamArray ' Note: if an array was passed, IsExpandedParamArrayForm is false. If bestResult.IsExpandedParamArrayForm Then ' Dev10 always sets the ExcessOptionalArgumentsOnTarget whenever the last parameter of the target was a ' ParamArray. This forces a stub for the ParamArray conversion, that is needed for the ParamArray in any case. methodConversions = methodConversions Or MethodConversionKind.ExcessOptionalArgumentsOnTarget ElseIf candidateParameterCount > delegateParameterCount Then ' An omission of optional parameters for expanded ParamArray form doesn't add anything new for ' the method conversion. Non-expanded ParamArray form, would be dismissed by overload resolution ' if there were omitted optional parameters because it is illegal to omit the ParamArray argument ' in non-expanded form. ' there are optional parameters that have not been exercised by the delegate. ' e.g. Delegate Sub(b As Byte) -> Sub Target(b As Byte, Optional c as Byte) methodConversions = methodConversions Or MethodConversionKind.ExcessOptionalArgumentsOnTarget #If DEBUG Then ' check that all unused parameters on the target are optional For parameterIndex = delegateParameterCount To candidateParameterCount - 1 Debug.Assert(bestCandidate.Parameters(parameterIndex).IsOptional) Next #End If ElseIf lastCommonIndex >= 0 AndAlso bestCandidate.Parameters(lastCommonIndex).IsParamArray AndAlso delegateInvoke.Parameters(lastCommonIndex).IsByRef AndAlso bestCandidate.Parameters(lastCommonIndex).IsByRef AndAlso Not bestResult.ConversionsOpt.IsDefaultOrEmpty AndAlso Not Conversions.IsIdentityConversion(bestResult.ConversionsOpt(lastCommonIndex).Key) Then ' Dev10 has the following behavior that needs to be re-implemented: ' Using ' Sub Target(ByRef Base()) ' with a ' Delegate Sub Del(ByRef ParamArray Base()) ' does not create a stub and the values are transported ByRef ' however using a ' Sub Target(ByRef ParamArray Base()) ' with a ' Delegate Del(ByRef Derived()) (with or without ParamArray, works with Option Strict Off only) ' creates a stub and transports the values ByVal. ' Note: if the ParamArray is not expanded, the parameter count must match Debug.Assert(candidateParameterCount = delegateParameterCount) Debug.Assert(Conversions.IsWideningConversion(bestResult.ConversionsOpt(lastCommonIndex).Key)) Dim conv = Conversions.ClassifyConversion(bestCandidate.Parameters(lastCommonIndex).Type, delegateInvoke.Parameters(lastCommonIndex).Type, useSiteInfo) methodConversions = methodConversions Or Conversions.ClassifyMethodConversionBasedOnArgumentConversion(conv.Key, delegateInvoke.Parameters(lastCommonIndex).Type) End If ' the overload resolution does not consider ByRef/ByVal mismatches, so we need to check the ' parameters here. ' first iterate over the common parameters For parameterIndex = 0 To lastCommonIndex If delegateInvoke.Parameters(parameterIndex).IsByRef <> bestCandidate.Parameters(parameterIndex).IsByRef Then methodConversions = methodConversions Or MethodConversionKind.Error_ByRefByValMismatch Exit For End If Next ' after the loop above the remaining parameters on the target can only be optional and/or a ParamArray If bestResult.IsExpandedParamArrayForm AndAlso (methodConversions And MethodConversionKind.Error_ByRefByValMismatch) <> MethodConversionKind.Error_ByRefByValMismatch Then ' if delegateParameterCount is smaller than targetParameterCount the for loop does not ' execute Dim lastTargetParameterIsByRef = bestCandidate.Parameters(candidateLastParameterIndex).IsByRef Debug.Assert(bestCandidate.Parameters(candidateLastParameterIndex).IsParamArray) For parameterIndex = lastCommonIndex + 1 To delegateParameterCount - 1 ' test against the last parameter of the target method If delegateInvoke.Parameters(parameterIndex).IsByRef <> lastTargetParameterIsByRef Then methodConversions = methodConversions Or MethodConversionKind.Error_ByRefByValMismatch Exit For End If Next End If ' there have been conversions, check them all If Not bestResult.ConversionsOpt.IsDefaultOrEmpty Then For conversionIndex = 0 To bestResult.ConversionsOpt.Length - 1 Dim conversion = bestResult.ConversionsOpt(conversionIndex) Dim delegateParameterType = delegateInvoke.Parameters(conversionIndex).Type methodConversions = methodConversions Or Conversions.ClassifyMethodConversionBasedOnArgumentConversion(conversion.Key, delegateParameterType) Next End If ' in case of ByRef, there might also be backward conversions If Not bestResult.ConversionsBackOpt.IsDefaultOrEmpty Then For conversionIndex = 0 To bestResult.ConversionsBackOpt.Length - 1 Dim conversion = bestResult.ConversionsBackOpt(conversionIndex) If Not Conversions.IsIdentityConversion(conversion.Key) Then Dim targetMethodParameterType = bestCandidate.Parameters(conversionIndex).Type methodConversions = methodConversions Or Conversions.ClassifyMethodConversionBasedOnArgumentConversion(conversion.Key, targetMethodParameterType) End If Next End If Return methodConversions End Function ''' <summary> ''' Classifies the address of conversion. ''' </summary> ''' <param name="source">The bound AddressOf expression.</param> ''' <param name="destination">The target type to convert this AddressOf expression to.</param><returns></returns> Friend Shared Function ClassifyAddressOfConversion( source As BoundAddressOfOperator, destination As TypeSymbol ) As ConversionKind Return source.GetConversionClassification(destination) End Function Private Shared ReadOnly s_checkDelegateParameterModifierCallback As CheckParameterModifierDelegate = AddressOf CheckDelegateParameterModifier ''' <summary> ''' Checks if a parameter is a ParamArray and reports this as an error. ''' </summary> ''' <param name="container">The containing type.</param> ''' <param name="token">The current parameter token.</param> ''' <param name="flag">The flags of this parameter.</param> ''' <param name="diagnostics">The diagnostics.</param> Private Shared Function CheckDelegateParameterModifier( container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag ) As SourceParameterFlags ' 9.2.5.4: ParamArray parameters may not be specified in delegate or event declarations. If (flag And SourceParameterFlags.ParamArray) = SourceParameterFlags.ParamArray Then Dim location = token.GetLocation() diagnostics.Add(ERRID.ERR_ParamArrayIllegal1, location, GetDelegateOrEventKeywordText(container)) flag = flag And (Not SourceParameterFlags.ParamArray) End If ' 9.2.5.3 Optional parameters may not be specified on delegate or event declarations If (flag And SourceParameterFlags.Optional) = SourceParameterFlags.Optional Then Dim location = token.GetLocation() diagnostics.Add(ERRID.ERR_OptionalIllegal1, location, GetDelegateOrEventKeywordText(container)) flag = flag And (Not SourceParameterFlags.Optional) End If Return flag End Function Private Shared Function GetDelegateOrEventKeywordText(sym As Symbol) As String Dim keyword As SyntaxKind If sym.Kind = SymbolKind.Event Then keyword = SyntaxKind.EventKeyword ElseIf TypeOf sym.ContainingType Is SynthesizedEventDelegateSymbol Then keyword = SyntaxKind.EventKeyword Else keyword = SyntaxKind.DelegateKeyword End If Return SyntaxFacts.GetText(keyword) End Function ''' <summary> ''' Reclassifies the bound address of operator into a delegate creation expression (if there is no delegate ''' relaxation required) or into a bound lambda expression (which gets a delegate creation expression later on) ''' </summary> ''' <param name="addressOfExpression">The AddressOf expression.</param> ''' <param name="delegateResolutionResult">The delegate resolution result.</param> ''' <param name="targetType">Type of the target.</param> ''' <param name="diagnostics">The diagnostics.</param><returns></returns> Friend Function ReclassifyAddressOf( addressOfExpression As BoundAddressOfOperator, ByRef delegateResolutionResult As DelegateResolutionResult, targetType As TypeSymbol, diagnostics As BindingDiagnosticBag, isForHandles As Boolean, warnIfResultOfAsyncMethodIsDroppedDueToRelaxation As Boolean ) As BoundExpression If addressOfExpression.HasErrors Then Return addressOfExpression End If Dim boundLambda As BoundLambda = Nothing Dim relaxationReceiverPlaceholder As BoundRValuePlaceholder = Nothing Dim syntaxNode = addressOfExpression.Syntax Dim targetMethod As MethodSymbol = delegateResolutionResult.Target Dim reducedFromDefinition As MethodSymbol = targetMethod.ReducedFrom Dim sourceMethodGroup = addressOfExpression.MethodGroup Dim receiver As BoundExpression = sourceMethodGroup.ReceiverOpt Dim resolvedTypeOrValueReceiver As BoundExpression = Nothing If receiver IsNot Nothing AndAlso Not addressOfExpression.HasErrors AndAlso Not delegateResolutionResult.Diagnostics.Diagnostics.HasAnyErrors Then receiver = AdjustReceiverTypeOrValue(receiver, receiver.Syntax, targetMethod.IsShared, diagnostics, resolvedTypeOrValueReceiver) End If If Me.OptionStrict = OptionStrict.On AndAlso Conversions.IsNarrowingConversion(delegateResolutionResult.DelegateConversions) Then Dim addressOfOperandSyntax = addressOfExpression.Syntax If addressOfOperandSyntax.Kind = SyntaxKind.AddressOfExpression Then addressOfOperandSyntax = DirectCast(addressOfOperandSyntax, UnaryExpressionSyntax).Operand End If ' Option Strict On does not allow narrowing in implicit type conversion between method '{0}' and delegate "{1}". ReportDelegateBindingMismatchStrictOff(addressOfOperandSyntax, DirectCast(targetType, NamedTypeSymbol), targetMethod, diagnostics) Else ' When the target method is an extension method, we are creating so called curried delegate. ' However, CLR doesn't support creating curried delegates that close over a ByRef 'this' argument. ' A similar problem exists when the 'this' argument is a value type. For these cases we need a stub too, ' but they are not covered by MethodConversionKind. If Conversions.IsStubRequiredForMethodConversion(delegateResolutionResult.MethodConversions) OrElse (reducedFromDefinition IsNot Nothing AndAlso (reducedFromDefinition.Parameters(0).IsByRef OrElse targetMethod.ReceiverType.IsTypeParameter() OrElse targetMethod.ReceiverType.IsValueType)) Then ' because of a delegate relaxation there is a conversion needed to create a delegate instance. ' We will create a lambda with the exact signature of the delegate. This lambda itself will ' call the target method. boundLambda = BuildDelegateRelaxationLambda(syntaxNode, sourceMethodGroup.Syntax, receiver, targetMethod, sourceMethodGroup.TypeArgumentsOpt, sourceMethodGroup.QualificationKind, DirectCast(targetType, NamedTypeSymbol).DelegateInvokeMethod, delegateResolutionResult.DelegateConversions And ConversionKind.DelegateRelaxationLevelMask, isZeroArgumentKnownToBeUsed:=(delegateResolutionResult.MethodConversions And MethodConversionKind.AllArgumentsIgnored) <> 0, diagnostics:=diagnostics, warnIfResultOfAsyncMethodIsDroppedDueToRelaxation:=warnIfResultOfAsyncMethodIsDroppedDueToRelaxation, relaxationReceiverPlaceholder:=relaxationReceiverPlaceholder) End If End If Dim target As MethodSymbol = delegateResolutionResult.Target ' Check if the target is a partial method without implementation provided If Not isForHandles AndAlso target.IsPartialWithoutImplementation Then ReportDiagnostic(diagnostics, addressOfExpression.MethodGroup.Syntax, ERRID.ERR_NoPartialMethodInAddressOf1, target) End If Dim newReceiver As BoundExpression If receiver IsNot Nothing Then If receiver.IsPropertyOrXmlPropertyAccess() Then receiver = MakeRValue(receiver, diagnostics) End If newReceiver = Nothing Else newReceiver = If(resolvedTypeOrValueReceiver, sourceMethodGroup.ReceiverOpt) End If sourceMethodGroup = sourceMethodGroup.Update(sourceMethodGroup.TypeArgumentsOpt, sourceMethodGroup.Methods, sourceMethodGroup.PendingExtensionMethodsOpt, sourceMethodGroup.ResultKind, newReceiver, sourceMethodGroup.QualificationKind) ' the delegate creation has the lambda stored internally to not clutter the bound tree with synthesized nodes ' in the first pass. Later on in the DelegateRewriter the node get's rewritten with the lambda if needed. Return New BoundDelegateCreationExpression(syntaxNode, receiver, target, boundLambda, relaxationReceiverPlaceholder, sourceMethodGroup, targetType, hasErrors:=False) End Function Private Function BuildDelegateRelaxationLambda( syntaxNode As SyntaxNode, methodGroupSyntax As SyntaxNode, receiver As BoundExpression, targetMethod As MethodSymbol, typeArgumentsOpt As BoundTypeArguments, qualificationKind As QualificationKind, delegateInvoke As MethodSymbol, delegateRelaxation As ConversionKind, isZeroArgumentKnownToBeUsed As Boolean, warnIfResultOfAsyncMethodIsDroppedDueToRelaxation As Boolean, diagnostics As BindingDiagnosticBag, <Out()> ByRef relaxationReceiverPlaceholder As BoundRValuePlaceholder ) As BoundLambda relaxationReceiverPlaceholder = Nothing Dim unconstructedTargetMethod As MethodSymbol = targetMethod.ConstructedFrom If typeArgumentsOpt Is Nothing AndAlso unconstructedTargetMethod.IsGenericMethod Then typeArgumentsOpt = New BoundTypeArguments(methodGroupSyntax, targetMethod.TypeArguments) typeArgumentsOpt.SetWasCompilerGenerated() End If Dim actualReceiver As BoundExpression = receiver ' Figure out if we need to capture the receiver in a temp before creating the lambda ' in order to enforce correct semantics. If actualReceiver IsNot Nothing AndAlso actualReceiver.IsValue() AndAlso Not actualReceiver.HasErrors Then If actualReceiver.IsInstanceReference() AndAlso targetMethod.ReceiverType.IsReferenceType Then Debug.Assert(Not actualReceiver.Type.IsTypeParameter()) Debug.Assert(Not actualReceiver.IsLValue) ' See the comment below why this is important. Else ' Will need to capture the receiver in a temp, rewriter do the job. relaxationReceiverPlaceholder = New BoundRValuePlaceholder(actualReceiver.Syntax, actualReceiver.Type) actualReceiver = relaxationReceiverPlaceholder End If End If Dim methodGroup = New BoundMethodGroup(methodGroupSyntax, typeArgumentsOpt, ImmutableArray.Create(unconstructedTargetMethod), LookupResultKind.Good, actualReceiver, qualificationKind) methodGroup.SetWasCompilerGenerated() Return BuildDelegateRelaxationLambda(syntaxNode, delegateInvoke, methodGroup, delegateRelaxation, isZeroArgumentKnownToBeUsed, warnIfResultOfAsyncMethodIsDroppedDueToRelaxation, diagnostics) End Function ''' <summary> ''' Build a lambda that has a shape of the [delegateInvoke] and calls ''' the only method from the [methodGroup] passing all parameters of the lambda ''' as arguments for the call. ''' Note, that usually the receiver of the [methodGroup] should be captured before entering the ''' relaxation lambda in order to prevent its reevaluation every time the lambda is invoked and ''' prevent its mutation. ''' ''' !!! Therefore, it is not common to call this overload directly. !!! ''' ''' </summary> ''' <param name="syntaxNode">Location to use for various synthetic nodes and symbols.</param> ''' <param name="delegateInvoke">The Invoke method to "implement".</param> ''' <param name="methodGroup">The method group with the only method in it.</param> ''' <param name="delegateRelaxation">Delegate relaxation to store within the new BoundLambda node.</param> ''' <param name="diagnostics"></param> Private Function BuildDelegateRelaxationLambda( syntaxNode As SyntaxNode, delegateInvoke As MethodSymbol, methodGroup As BoundMethodGroup, delegateRelaxation As ConversionKind, isZeroArgumentKnownToBeUsed As Boolean, warnIfResultOfAsyncMethodIsDroppedDueToRelaxation As Boolean, diagnostics As BindingDiagnosticBag ) As BoundLambda Debug.Assert(delegateInvoke.MethodKind = MethodKind.DelegateInvoke) Debug.Assert(methodGroup.Methods.Length = 1) Debug.Assert(methodGroup.PendingExtensionMethodsOpt Is Nothing) Debug.Assert((delegateRelaxation And (Not ConversionKind.DelegateRelaxationLevelMask)) = 0) ' build lambda symbol parameters matching the invocation method exactly. To do this, ' we'll create a BoundLambdaParameterSymbol for each parameter of the invoke method. Dim delegateInvokeReturnType = delegateInvoke.ReturnType Dim invokeParameters = delegateInvoke.Parameters Dim invokeParameterCount = invokeParameters.Length Dim lambdaSymbolParameters(invokeParameterCount - 1) As BoundLambdaParameterSymbol Dim addressOfLocation As Location = syntaxNode.GetLocation() For parameterIndex = 0 To invokeParameterCount - 1 Dim parameter = invokeParameters(parameterIndex) lambdaSymbolParameters(parameterIndex) = New BoundLambdaParameterSymbol(GeneratedNames.MakeDelegateRelaxationParameterName(parameterIndex), parameter.Ordinal, parameter.Type, parameter.IsByRef, syntaxNode, addressOfLocation) Next ' even if the return value is dropped, we're using the delegate's return type for ' this lambda symbol. Dim lambdaSymbol = New SynthesizedLambdaSymbol(SynthesizedLambdaKind.DelegateRelaxationStub, syntaxNode, lambdaSymbolParameters.AsImmutable(), delegateInvokeReturnType, Me) ' the body of the lambda only contains a call to the target (or a return of the return value of ' the call in case of a function) ' for each parameter of the lambda symbol/invoke method we will create a bound parameter, except ' we are implementing a zero argument relaxation. ' These parameters will be used in the method invocation as passed parameters. Dim method As MethodSymbol = methodGroup.Methods(0) Dim droppedArguments = isZeroArgumentKnownToBeUsed OrElse (invokeParameterCount > 0 AndAlso method.ParameterCount = 0) Dim targetParameterCount = If(droppedArguments, 0, invokeParameterCount) Dim lambdaBoundParameters(targetParameterCount - 1) As BoundExpression If Not droppedArguments Then For parameterIndex = 0 To lambdaSymbolParameters.Length - 1 Dim lambdaSymbolParameter = lambdaSymbolParameters(parameterIndex) Dim boundParameter = New BoundParameter(syntaxNode, lambdaSymbolParameter, lambdaSymbolParameter.Type) boundParameter.SetWasCompilerGenerated() lambdaBoundParameters(parameterIndex) = boundParameter Next End If 'The invocation of the target method must be bound in the context of the lambda 'The reason is that binding the invoke may introduce local symbols and they need 'to be properly parented to the lambda and not to the outer method. Dim lambdaBinder = New LambdaBodyBinder(lambdaSymbol, Me) ' Dev10 ignores the type characters used in the operand of an AddressOf operator. ' NOTE: we suppress suppressAbstractCallDiagnostics because it ' should have been reported already Dim boundInvocationExpression As BoundExpression = lambdaBinder.BindInvocationExpression(syntaxNode, syntaxNode, TypeCharacter.None, methodGroup, lambdaBoundParameters.AsImmutable(), Nothing, diagnostics, suppressAbstractCallDiagnostics:=True, callerInfoOpt:=Nothing) boundInvocationExpression.SetWasCompilerGenerated() ' In case of a function target that got assigned to a sub delegate, the return value will be dropped Dim statementList As ImmutableArray(Of BoundStatement) = Nothing If lambdaSymbol.IsSub Then Dim statements(1) As BoundStatement Dim boundStatement As BoundStatement = New BoundExpressionStatement(syntaxNode, boundInvocationExpression) boundStatement.SetWasCompilerGenerated() statements(0) = boundStatement boundStatement = New BoundReturnStatement(syntaxNode, Nothing, Nothing, Nothing) boundStatement.SetWasCompilerGenerated() statements(1) = boundStatement statementList = statements.AsImmutableOrNull If warnIfResultOfAsyncMethodIsDroppedDueToRelaxation AndAlso Not method.IsSub Then If Not method.IsAsync Then warnIfResultOfAsyncMethodIsDroppedDueToRelaxation = False If method.MethodKind = MethodKind.DelegateInvoke AndAlso methodGroup.ReceiverOpt IsNot Nothing AndAlso methodGroup.ReceiverOpt.Kind = BoundKind.Conversion Then Dim receiver = DirectCast(methodGroup.ReceiverOpt, BoundConversion) If Not receiver.ExplicitCastInCode AndAlso receiver.Operand.Kind = BoundKind.Lambda AndAlso DirectCast(receiver.Operand, BoundLambda).LambdaSymbol.IsAsync AndAlso receiver.Type.IsDelegateType() AndAlso receiver.Type.IsAnonymousType Then warnIfResultOfAsyncMethodIsDroppedDueToRelaxation = True End If End If Else warnIfResultOfAsyncMethodIsDroppedDueToRelaxation = method.ContainingAssembly Is Compilation.Assembly End If If warnIfResultOfAsyncMethodIsDroppedDueToRelaxation Then ReportDiagnostic(diagnostics, syntaxNode, ERRID.WRN_UnobservedAwaitableDelegate) End If End If Else ' process conversions between the return types of the target and invoke function if needed. boundInvocationExpression = lambdaBinder.ApplyImplicitConversion(syntaxNode, delegateInvokeReturnType, boundInvocationExpression, diagnostics) Dim returnstmt As BoundStatement = New BoundReturnStatement(syntaxNode, boundInvocationExpression, Nothing, Nothing) returnstmt.SetWasCompilerGenerated() statementList = ImmutableArray.Create(returnstmt) End If Dim lambdaBody = New BoundBlock(syntaxNode, Nothing, ImmutableArray(Of LocalSymbol).Empty, statementList) lambdaBody.SetWasCompilerGenerated() Dim boundLambda = New BoundLambda(syntaxNode, lambdaSymbol, lambdaBody, ImmutableBindingDiagnostic(Of AssemblySymbol).Empty, Nothing, delegateRelaxation, MethodConversionKind.Identity) boundLambda.SetWasCompilerGenerated() Return boundLambda End Function End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/VisualBasic/Portable/Syntax/InternalSyntax/SyntaxNodeFactories.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 hand-written factories for the SyntaxNodes. Most factories are ' code-generated into SyntaxNodes.vb, but some are easier to hand-write. '----------------------------------------------------------------------------------------------------------- Imports Microsoft.CodeAnalysis.Syntax.InternalSyntax Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports InternalSyntax = Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax Partial Friend Class SyntaxFactory Friend Shared Function IntegerLiteralToken(text As String, base As LiteralBase, typeSuffix As TypeCharacter, value As ULong, leadingTrivia As GreenNode, trailingTrivia As GreenNode) As IntegerLiteralTokenSyntax Debug.Assert(text IsNot Nothing) Select Case typeSuffix Case TypeCharacter.ShortLiteral Return New IntegerLiteralTokenSyntax(Of Short)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CShort(value)) Case TypeCharacter.UShortLiteral Return New IntegerLiteralTokenSyntax(Of UShort)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CUShort(value)) Case TypeCharacter.IntegerLiteral, TypeCharacter.Integer Return New IntegerLiteralTokenSyntax(Of Integer)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CInt(value)) Case TypeCharacter.UIntegerLiteral Return New IntegerLiteralTokenSyntax(Of UInteger)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CUInt(value)) Case TypeCharacter.LongLiteral, TypeCharacter.Long Return New IntegerLiteralTokenSyntax(Of Long)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CLng(value)) Case TypeCharacter.ULongLiteral Return New IntegerLiteralTokenSyntax(Of ULong)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, value) Case TypeCharacter.None Dim useIntegerType As Boolean = False If base = LiteralBase.Decimal Then useIntegerType = (value <= Integer.MaxValue) Else useIntegerType = ((value And (Not &HFFFFFFFFUL)) = 0) End If If useIntegerType Then Return New IntegerLiteralTokenSyntax(Of Integer)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CInt(value)) Else Return New IntegerLiteralTokenSyntax(Of Long)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CLng(value)) End If Case Else Throw New ArgumentException(NameOf(typeSuffix)) End Select End Function Friend Shared Function FloatingLiteralToken(text As String, typeSuffix As TypeCharacter, value As Double, leadingTrivia As GreenNode, trailingTrivia As GreenNode) As FloatingLiteralTokenSyntax Debug.Assert(text IsNot Nothing) Select Case typeSuffix Case TypeCharacter.DoubleLiteral, TypeCharacter.Double, TypeCharacter.None Return New FloatingLiteralTokenSyntax(Of Double)(SyntaxKind.FloatingLiteralToken, text, leadingTrivia, trailingTrivia, typeSuffix, value) Case TypeCharacter.SingleLiteral, TypeCharacter.Single Return New FloatingLiteralTokenSyntax(Of Single)(SyntaxKind.FloatingLiteralToken, text, leadingTrivia, trailingTrivia, typeSuffix, CSng(value)) Case Else Throw New ArgumentException(NameOf(typeSuffix)) End Select End Function ''' <summary> ''' Create an identifier node without brackets or type character. ''' </summary> Friend Shared Function Identifier(text As String, leadingTrivia As GreenNode, trailingTrivia As GreenNode) As IdentifierTokenSyntax Debug.Assert(text IsNot Nothing) Return New SimpleIdentifierSyntax(SyntaxKind.IdentifierToken, Nothing, Nothing, text, leadingTrivia, trailingTrivia) End Function ''' <summary> ''' Create an identifier node with brackets or type character. ''' </summary> Friend Shared Function Identifier(text As String, possibleKeywordKind As SyntaxKind, isBracketed As Boolean, identifierText As String, typeCharacter As TypeCharacter, leadingTrivia As GreenNode, trailingTrivia As GreenNode) As IdentifierTokenSyntax Debug.Assert(text IsNot Nothing) Return New ComplexIdentifierSyntax(SyntaxKind.IdentifierToken, Nothing, Nothing, text, leadingTrivia, trailingTrivia, possibleKeywordKind, isBracketed, identifierText, typeCharacter) End Function ''' <summary> ''' Create an identifier node without brackets or type character or trivia. ''' </summary> Friend Shared Function Identifier(text As String) As IdentifierTokenSyntax Debug.Assert(text IsNot Nothing) Return New SimpleIdentifierSyntax(SyntaxKind.IdentifierToken, Nothing, Nothing, text, Nothing, Nothing) End Function ''' <summary> ''' Create a missing identifier. ''' </summary> Friend Shared Function MissingIdentifier() As IdentifierTokenSyntax Return New SimpleIdentifierSyntax(SyntaxKind.IdentifierToken, Nothing, Nothing, "", Nothing, Nothing) End Function ''' <summary> ''' Create a missing contextual keyword. ''' </summary> Friend Shared Function MissingIdentifier(kind As SyntaxKind) As IdentifierTokenSyntax Return New ComplexIdentifierSyntax(SyntaxKind.IdentifierToken, Nothing, Nothing, "", Nothing, Nothing, kind, False, "", TypeCharacter.None) End Function ''' <summary> ''' Create a missing keyword. ''' </summary> Friend Shared Function MissingKeyword(kind As SyntaxKind) As KeywordSyntax Return New KeywordSyntax(kind, "", Nothing, Nothing) End Function ''' <summary> ''' Create a missing punctuation mark. ''' </summary> Friend Shared Function MissingPunctuation(kind As SyntaxKind) As PunctuationSyntax Return New PunctuationSyntax(kind, "", Nothing, Nothing) End Function ''' <summary> ''' Create a missing string literal. ''' </summary> Friend Shared Function MissingStringLiteral() As StringLiteralTokenSyntax Return StringLiteralToken("", "", Nothing, Nothing) End Function ''' <summary> ''' Create a missing character literal. ''' </summary> Friend Shared Function MissingCharacterLiteralToken() As CharacterLiteralTokenSyntax Return CharacterLiteralToken("", Nothing, Nothing, Nothing) End Function ''' <summary> ''' Create a missing integer literal. ''' </summary> Friend Shared Function MissingIntegerLiteralToken() As IntegerLiteralTokenSyntax Return IntegerLiteralToken("", LiteralBase.Decimal, TypeCharacter.None, Nothing, Nothing, Nothing) End Function ''' <summary> ''' Creates a copy of a token. ''' <para name="err"></para> ''' <para name="trivia"></para> ''' </summary> ''' <returns>The new token</returns> Friend Shared Function MissingToken(kind As SyntaxKind) As SyntaxToken Dim t As SyntaxToken Select Case kind Case SyntaxKind.StatementTerminatorToken t = SyntaxFactory.Token(Nothing, SyntaxKind.StatementTerminatorToken, Nothing, String.Empty) Case SyntaxKind.EndOfFileToken t = SyntaxFactory.EndOfFileToken() Case SyntaxKind.AddHandlerKeyword, SyntaxKind.AddressOfKeyword, SyntaxKind.AliasKeyword, SyntaxKind.AndKeyword, SyntaxKind.AndAlsoKeyword, SyntaxKind.AsKeyword, SyntaxKind.BooleanKeyword, SyntaxKind.ByRefKeyword, SyntaxKind.ByteKeyword, SyntaxKind.ByValKeyword, SyntaxKind.CallKeyword, SyntaxKind.CaseKeyword, SyntaxKind.CatchKeyword, SyntaxKind.CBoolKeyword, SyntaxKind.CByteKeyword, SyntaxKind.CCharKeyword, SyntaxKind.CDateKeyword, SyntaxKind.CDecKeyword, SyntaxKind.CDblKeyword, SyntaxKind.CharKeyword, SyntaxKind.CIntKeyword, SyntaxKind.ClassKeyword, SyntaxKind.CLngKeyword, SyntaxKind.CObjKeyword, SyntaxKind.ConstKeyword, SyntaxKind.ContinueKeyword, SyntaxKind.CSByteKeyword, SyntaxKind.CShortKeyword, SyntaxKind.CSngKeyword, SyntaxKind.CStrKeyword, SyntaxKind.CTypeKeyword, SyntaxKind.CUIntKeyword, SyntaxKind.CULngKeyword, SyntaxKind.CUShortKeyword, SyntaxKind.DateKeyword, SyntaxKind.DecimalKeyword, SyntaxKind.DeclareKeyword, SyntaxKind.DefaultKeyword, SyntaxKind.DelegateKeyword, SyntaxKind.DimKeyword, SyntaxKind.DirectCastKeyword, SyntaxKind.DoKeyword, SyntaxKind.DoubleKeyword, SyntaxKind.EachKeyword, SyntaxKind.ElseKeyword, SyntaxKind.ElseIfKeyword, SyntaxKind.EndKeyword, SyntaxKind.EnumKeyword, SyntaxKind.EraseKeyword, SyntaxKind.ErrorKeyword, SyntaxKind.EventKeyword, SyntaxKind.ExitKeyword, SyntaxKind.FalseKeyword, SyntaxKind.FinallyKeyword, SyntaxKind.ForKeyword, SyntaxKind.FriendKeyword, SyntaxKind.FunctionKeyword, SyntaxKind.GetKeyword, SyntaxKind.GetTypeKeyword, SyntaxKind.GetXmlNamespaceKeyword, SyntaxKind.GlobalKeyword, SyntaxKind.GoToKeyword, SyntaxKind.HandlesKeyword, SyntaxKind.IfKeyword, SyntaxKind.ImplementsKeyword, SyntaxKind.ImportsKeyword, SyntaxKind.InKeyword, SyntaxKind.InheritsKeyword, SyntaxKind.IntegerKeyword, SyntaxKind.InterfaceKeyword, SyntaxKind.IsKeyword, SyntaxKind.IsNotKeyword, SyntaxKind.LetKeyword, SyntaxKind.LibKeyword, SyntaxKind.LikeKeyword, SyntaxKind.LongKeyword, SyntaxKind.LoopKeyword, SyntaxKind.MeKeyword, SyntaxKind.ModKeyword, SyntaxKind.ModuleKeyword, SyntaxKind.MustInheritKeyword, SyntaxKind.MustOverrideKeyword, SyntaxKind.MyBaseKeyword, SyntaxKind.MyClassKeyword, SyntaxKind.NameOfKeyword, SyntaxKind.NamespaceKeyword, SyntaxKind.NarrowingKeyword, SyntaxKind.NextKeyword, SyntaxKind.NewKeyword, SyntaxKind.NotKeyword, SyntaxKind.NothingKeyword, SyntaxKind.NotInheritableKeyword, SyntaxKind.NotOverridableKeyword, SyntaxKind.ObjectKeyword, SyntaxKind.OfKeyword, SyntaxKind.OnKeyword, SyntaxKind.OperatorKeyword, SyntaxKind.OptionKeyword, SyntaxKind.OptionalKeyword, SyntaxKind.OrKeyword, SyntaxKind.OrElseKeyword, SyntaxKind.OverloadsKeyword, SyntaxKind.OverridableKeyword, SyntaxKind.OverridesKeyword, SyntaxKind.ParamArrayKeyword, SyntaxKind.PartialKeyword, SyntaxKind.PrivateKeyword, SyntaxKind.PropertyKeyword, SyntaxKind.ProtectedKeyword, SyntaxKind.PublicKeyword, SyntaxKind.RaiseEventKeyword, SyntaxKind.ReadOnlyKeyword, SyntaxKind.ReDimKeyword, SyntaxKind.REMKeyword, SyntaxKind.RemoveHandlerKeyword, SyntaxKind.ResumeKeyword, SyntaxKind.ReturnKeyword, SyntaxKind.SByteKeyword, SyntaxKind.SelectKeyword, SyntaxKind.SetKeyword, SyntaxKind.ShadowsKeyword, SyntaxKind.SharedKeyword, SyntaxKind.ShortKeyword, SyntaxKind.SingleKeyword, SyntaxKind.StaticKeyword, SyntaxKind.StepKeyword, SyntaxKind.StopKeyword, SyntaxKind.StringKeyword, SyntaxKind.StructureKeyword, SyntaxKind.SubKeyword, SyntaxKind.SyncLockKeyword, SyntaxKind.ThenKeyword, SyntaxKind.ThrowKeyword, SyntaxKind.ToKeyword, SyntaxKind.TrueKeyword, SyntaxKind.TryKeyword, SyntaxKind.TryCastKeyword, SyntaxKind.TypeOfKeyword, SyntaxKind.UIntegerKeyword, SyntaxKind.ULongKeyword, SyntaxKind.UShortKeyword, SyntaxKind.UsingKeyword, SyntaxKind.WhenKeyword, SyntaxKind.WhileKeyword, SyntaxKind.WideningKeyword, SyntaxKind.WithKeyword, SyntaxKind.WithEventsKeyword, SyntaxKind.WriteOnlyKeyword, SyntaxKind.XorKeyword, SyntaxKind.EndIfKeyword, SyntaxKind.GosubKeyword, SyntaxKind.VariantKeyword, SyntaxKind.WendKeyword, SyntaxKind.OutKeyword t = SyntaxFactory.MissingKeyword(kind) Case SyntaxKind.AggregateKeyword, SyntaxKind.AllKeyword, SyntaxKind.AnsiKeyword, SyntaxKind.AscendingKeyword, SyntaxKind.AssemblyKeyword, SyntaxKind.AutoKeyword, SyntaxKind.BinaryKeyword, SyntaxKind.ByKeyword, SyntaxKind.CompareKeyword, SyntaxKind.CustomKeyword, SyntaxKind.DescendingKeyword, SyntaxKind.DisableKeyword, SyntaxKind.DistinctKeyword, SyntaxKind.EnableKeyword, SyntaxKind.EqualsKeyword, SyntaxKind.ExplicitKeyword, SyntaxKind.ExternalSourceKeyword, SyntaxKind.ExternalChecksumKeyword, SyntaxKind.FromKeyword, SyntaxKind.GroupKeyword, SyntaxKind.InferKeyword, SyntaxKind.IntoKeyword, SyntaxKind.IsFalseKeyword, SyntaxKind.IsTrueKeyword, SyntaxKind.JoinKeyword, SyntaxKind.KeyKeyword, SyntaxKind.MidKeyword, SyntaxKind.OffKeyword, SyntaxKind.OrderKeyword, SyntaxKind.PreserveKeyword, SyntaxKind.RegionKeyword, SyntaxKind.ReferenceKeyword, SyntaxKind.SkipKeyword, SyntaxKind.StrictKeyword, SyntaxKind.TextKeyword, SyntaxKind.TakeKeyword, SyntaxKind.UnicodeKeyword, SyntaxKind.UntilKeyword, SyntaxKind.WarningKeyword, SyntaxKind.WhereKeyword ' These are identifiers that have a contextual kind Return SyntaxFactory.MissingIdentifier(kind) Case SyntaxKind.ExclamationToken, SyntaxKind.CommaToken, SyntaxKind.HashToken, SyntaxKind.AmpersandToken, SyntaxKind.SingleQuoteToken, SyntaxKind.OpenParenToken, SyntaxKind.CloseParenToken, SyntaxKind.OpenBraceToken, SyntaxKind.CloseBraceToken, SyntaxKind.DoubleQuoteToken, SyntaxKind.SemicolonToken, SyntaxKind.AsteriskToken, SyntaxKind.PlusToken, SyntaxKind.MinusToken, SyntaxKind.DotToken, SyntaxKind.SlashToken, SyntaxKind.ColonToken, SyntaxKind.LessThanToken, SyntaxKind.LessThanEqualsToken, SyntaxKind.LessThanGreaterThanToken, SyntaxKind.EqualsToken, SyntaxKind.GreaterThanToken, SyntaxKind.GreaterThanEqualsToken, SyntaxKind.BackslashToken, SyntaxKind.CaretToken, SyntaxKind.ColonEqualsToken, SyntaxKind.AmpersandEqualsToken, SyntaxKind.AsteriskEqualsToken, SyntaxKind.PlusEqualsToken, SyntaxKind.MinusEqualsToken, SyntaxKind.SlashEqualsToken, SyntaxKind.BackslashEqualsToken, SyntaxKind.CaretEqualsToken, SyntaxKind.LessThanLessThanToken, SyntaxKind.GreaterThanGreaterThanToken, SyntaxKind.LessThanLessThanEqualsToken, SyntaxKind.GreaterThanGreaterThanEqualsToken, SyntaxKind.QuestionToken t = SyntaxFactory.MissingPunctuation(kind) Case SyntaxKind.FloatingLiteralToken t = SyntaxFactory.FloatingLiteralToken("", TypeCharacter.None, Nothing, Nothing, Nothing) Case SyntaxKind.DecimalLiteralToken t = SyntaxFactory.DecimalLiteralToken("", TypeCharacter.None, Nothing, Nothing, Nothing) Case SyntaxKind.DateLiteralToken t = SyntaxFactory.DateLiteralToken("", Nothing, Nothing, Nothing) Case SyntaxKind.XmlNameToken t = SyntaxFactory.XmlNameToken("", SyntaxKind.XmlNameToken, Nothing, Nothing) Case SyntaxKind.XmlTextLiteralToken t = SyntaxFactory.XmlTextLiteralToken("", "", Nothing, Nothing) Case SyntaxKind.SlashGreaterThanToken, SyntaxKind.LessThanSlashToken, SyntaxKind.LessThanExclamationMinusMinusToken, SyntaxKind.MinusMinusGreaterThanToken, SyntaxKind.LessThanQuestionToken, SyntaxKind.QuestionGreaterThanToken, SyntaxKind.LessThanPercentEqualsToken, SyntaxKind.PercentGreaterThanToken, SyntaxKind.BeginCDataToken, SyntaxKind.EndCDataToken t = SyntaxFactory.MissingPunctuation(kind) Case SyntaxKind.IdentifierToken t = SyntaxFactory.MissingIdentifier() Case SyntaxKind.IntegerLiteralToken t = MissingIntegerLiteralToken() Case SyntaxKind.StringLiteralToken t = SyntaxFactory.MissingStringLiteral() Case SyntaxKind.CharacterLiteralToken t = SyntaxFactory.MissingCharacterLiteralToken() Case SyntaxKind.InterpolatedStringTextToken t = SyntaxFactory.InterpolatedStringTextToken("", "", Nothing, Nothing) Case Else Throw ExceptionUtilities.UnexpectedValue(kind) End Select Return t End Function Friend Shared Function BadToken(SubKind As SyntaxSubKind, text As String, precedingTrivia As GreenNode, followingTrivia As GreenNode) As BadTokenSyntax Return New BadTokenSyntax(SyntaxKind.BadToken, SubKind, Nothing, Nothing, text, precedingTrivia, followingTrivia) End Function ''' <summary> ''' Create an end-of-text token. ''' </summary> Friend Shared Function EndOfFileToken(precedingTrivia As SyntaxTrivia) As PunctuationSyntax Return New PunctuationSyntax(SyntaxKind.EndOfFileToken, "", precedingTrivia, Nothing) End Function ''' <summary> ''' Create an end-of-text token. ''' </summary> Friend Shared Function EndOfFileToken() As PunctuationSyntax Return New PunctuationSyntax(SyntaxKind.EndOfFileToken, "", Nothing, Nothing) End Function Friend Shared Function Identifier(text As String, isBracketed As Boolean, baseText As String, typeCharacter As TypeCharacter, precedingTrivia As GreenNode, followingTrivia As GreenNode) As IdentifierTokenSyntax Debug.Assert(text IsNot Nothing) Return New ComplexIdentifierSyntax(SyntaxKind.IdentifierToken, Nothing, Nothing, text, precedingTrivia, followingTrivia, SyntaxKind.IdentifierToken, isBracketed, baseText, typeCharacter) End Function Private Shared s_notMissingEmptyToken As PunctuationSyntax = Nothing Friend Shared ReadOnly Property NotMissingEmptyToken() As PunctuationSyntax Get If s_notMissingEmptyToken Is Nothing Then s_notMissingEmptyToken = New PunctuationSyntax(SyntaxKind.EmptyToken, "", Nothing, Nothing) End If Return s_notMissingEmptyToken End Get End Property Private Shared s_missingEmptyToken As PunctuationSyntax = Nothing Friend Shared ReadOnly Property MissingEmptyToken() As PunctuationSyntax Get If s_missingEmptyToken Is Nothing Then s_missingEmptyToken = New PunctuationSyntax(SyntaxKind.EmptyToken, "", Nothing, Nothing) s_missingEmptyToken.ClearFlags(GreenNode.NodeFlags.IsNotMissing) End If Return s_missingEmptyToken End Get End Property Private Shared s_statementTerminatorToken As PunctuationSyntax = Nothing Friend Shared ReadOnly Property StatementTerminatorToken() As PunctuationSyntax Get If s_statementTerminatorToken Is Nothing Then s_statementTerminatorToken = New PunctuationSyntax(SyntaxKind.StatementTerminatorToken, "", Nothing, Nothing) s_statementTerminatorToken.SetFlags(GreenNode.NodeFlags.IsNotMissing) End If Return s_statementTerminatorToken End Get End Property Private Shared s_colonToken As PunctuationSyntax = Nothing Friend Shared ReadOnly Property ColonToken() As PunctuationSyntax Get If s_colonToken Is Nothing Then s_colonToken = New PunctuationSyntax(SyntaxKind.ColonToken, "", Nothing, Nothing) s_colonToken.SetFlags(GreenNode.NodeFlags.IsNotMissing) End If Return s_colonToken End Get End Property Private Shared ReadOnly s_missingExpr As ExpressionSyntax = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("", Nothing, Nothing)) Friend Shared Function MissingExpression() As ExpressionSyntax Return s_missingExpr End Function Private Shared ReadOnly s_emptyStatement As EmptyStatementSyntax = SyntaxFactory.EmptyStatement(NotMissingEmptyToken) Friend Shared Function EmptyStatement() As EmptyStatementSyntax Return s_emptyStatement End Function Private Shared ReadOnly s_omittedArgument As OmittedArgumentSyntax = SyntaxFactory.OmittedArgument(NotMissingEmptyToken) Friend Shared Function OmittedArgument() As OmittedArgumentSyntax Return s_omittedArgument End Function Public Shared Function TypeBlock(ByVal blockKind As SyntaxKind, ByVal begin As TypeStatementSyntax, ByVal [inherits] As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of InheritsStatementSyntax), ByVal [implements] As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of ImplementsStatementSyntax), ByVal members As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax), ByVal [end] As EndBlockStatementSyntax) As TypeBlockSyntax Select Case blockKind Case SyntaxKind.ModuleBlock Return SyntaxFactory.ModuleBlock(DirectCast(begin, ModuleStatementSyntax), [inherits], [implements], members, [end]) Case SyntaxKind.ClassBlock Return SyntaxFactory.ClassBlock(DirectCast(begin, ClassStatementSyntax), [inherits], [implements], members, [end]) Case SyntaxKind.StructureBlock Return SyntaxFactory.StructureBlock(DirectCast(begin, StructureStatementSyntax), [inherits], [implements], members, [end]) Case SyntaxKind.InterfaceBlock Return SyntaxFactory.InterfaceBlock(DirectCast(begin, InterfaceStatementSyntax), [inherits], [implements], members, [end]) Case Else Throw ExceptionUtilities.UnexpectedValue(blockKind) End Select End Function Public Shared Function TypeStatement(ByVal statementKind As SyntaxKind, ByVal attributes As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of GreenNode), ByVal modifiers As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of GreenNode), ByVal keyword As KeywordSyntax, ByVal identifier As IdentifierTokenSyntax, ByVal typeParameterList As TypeParameterListSyntax) As TypeStatementSyntax Select Case statementKind Case SyntaxKind.ModuleStatement Return SyntaxFactory.ModuleStatement(attributes, modifiers, keyword, identifier, typeParameterList) Case SyntaxKind.ClassStatement Return SyntaxFactory.ClassStatement(attributes, modifiers, keyword, identifier, typeParameterList) Case SyntaxKind.StructureStatement Return SyntaxFactory.StructureStatement(attributes, modifiers, keyword, identifier, typeParameterList) Case SyntaxKind.InterfaceStatement Return SyntaxFactory.InterfaceStatement(attributes, modifiers, keyword, identifier, typeParameterList) Case Else Throw ExceptionUtilities.UnexpectedValue(statementKind) End Select 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. '----------------------------------------------------------------------------------------------------------- ' Contains hand-written factories for the SyntaxNodes. Most factories are ' code-generated into SyntaxNodes.vb, but some are easier to hand-write. '----------------------------------------------------------------------------------------------------------- Imports Microsoft.CodeAnalysis.Syntax.InternalSyntax Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports InternalSyntax = Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax Partial Friend Class SyntaxFactory Friend Shared Function IntegerLiteralToken(text As String, base As LiteralBase, typeSuffix As TypeCharacter, value As ULong, leadingTrivia As GreenNode, trailingTrivia As GreenNode) As IntegerLiteralTokenSyntax Debug.Assert(text IsNot Nothing) Select Case typeSuffix Case TypeCharacter.ShortLiteral Return New IntegerLiteralTokenSyntax(Of Short)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CShort(value)) Case TypeCharacter.UShortLiteral Return New IntegerLiteralTokenSyntax(Of UShort)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CUShort(value)) Case TypeCharacter.IntegerLiteral, TypeCharacter.Integer Return New IntegerLiteralTokenSyntax(Of Integer)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CInt(value)) Case TypeCharacter.UIntegerLiteral Return New IntegerLiteralTokenSyntax(Of UInteger)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CUInt(value)) Case TypeCharacter.LongLiteral, TypeCharacter.Long Return New IntegerLiteralTokenSyntax(Of Long)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CLng(value)) Case TypeCharacter.ULongLiteral Return New IntegerLiteralTokenSyntax(Of ULong)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, value) Case TypeCharacter.None Dim useIntegerType As Boolean = False If base = LiteralBase.Decimal Then useIntegerType = (value <= Integer.MaxValue) Else useIntegerType = ((value And (Not &HFFFFFFFFUL)) = 0) End If If useIntegerType Then Return New IntegerLiteralTokenSyntax(Of Integer)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CInt(value)) Else Return New IntegerLiteralTokenSyntax(Of Long)(SyntaxKind.IntegerLiteralToken, text, leadingTrivia, trailingTrivia, base, typeSuffix, CLng(value)) End If Case Else Throw New ArgumentException(NameOf(typeSuffix)) End Select End Function Friend Shared Function FloatingLiteralToken(text As String, typeSuffix As TypeCharacter, value As Double, leadingTrivia As GreenNode, trailingTrivia As GreenNode) As FloatingLiteralTokenSyntax Debug.Assert(text IsNot Nothing) Select Case typeSuffix Case TypeCharacter.DoubleLiteral, TypeCharacter.Double, TypeCharacter.None Return New FloatingLiteralTokenSyntax(Of Double)(SyntaxKind.FloatingLiteralToken, text, leadingTrivia, trailingTrivia, typeSuffix, value) Case TypeCharacter.SingleLiteral, TypeCharacter.Single Return New FloatingLiteralTokenSyntax(Of Single)(SyntaxKind.FloatingLiteralToken, text, leadingTrivia, trailingTrivia, typeSuffix, CSng(value)) Case Else Throw New ArgumentException(NameOf(typeSuffix)) End Select End Function ''' <summary> ''' Create an identifier node without brackets or type character. ''' </summary> Friend Shared Function Identifier(text As String, leadingTrivia As GreenNode, trailingTrivia As GreenNode) As IdentifierTokenSyntax Debug.Assert(text IsNot Nothing) Return New SimpleIdentifierSyntax(SyntaxKind.IdentifierToken, Nothing, Nothing, text, leadingTrivia, trailingTrivia) End Function ''' <summary> ''' Create an identifier node with brackets or type character. ''' </summary> Friend Shared Function Identifier(text As String, possibleKeywordKind As SyntaxKind, isBracketed As Boolean, identifierText As String, typeCharacter As TypeCharacter, leadingTrivia As GreenNode, trailingTrivia As GreenNode) As IdentifierTokenSyntax Debug.Assert(text IsNot Nothing) Return New ComplexIdentifierSyntax(SyntaxKind.IdentifierToken, Nothing, Nothing, text, leadingTrivia, trailingTrivia, possibleKeywordKind, isBracketed, identifierText, typeCharacter) End Function ''' <summary> ''' Create an identifier node without brackets or type character or trivia. ''' </summary> Friend Shared Function Identifier(text As String) As IdentifierTokenSyntax Debug.Assert(text IsNot Nothing) Return New SimpleIdentifierSyntax(SyntaxKind.IdentifierToken, Nothing, Nothing, text, Nothing, Nothing) End Function ''' <summary> ''' Create a missing identifier. ''' </summary> Friend Shared Function MissingIdentifier() As IdentifierTokenSyntax Return New SimpleIdentifierSyntax(SyntaxKind.IdentifierToken, Nothing, Nothing, "", Nothing, Nothing) End Function ''' <summary> ''' Create a missing contextual keyword. ''' </summary> Friend Shared Function MissingIdentifier(kind As SyntaxKind) As IdentifierTokenSyntax Return New ComplexIdentifierSyntax(SyntaxKind.IdentifierToken, Nothing, Nothing, "", Nothing, Nothing, kind, False, "", TypeCharacter.None) End Function ''' <summary> ''' Create a missing keyword. ''' </summary> Friend Shared Function MissingKeyword(kind As SyntaxKind) As KeywordSyntax Return New KeywordSyntax(kind, "", Nothing, Nothing) End Function ''' <summary> ''' Create a missing punctuation mark. ''' </summary> Friend Shared Function MissingPunctuation(kind As SyntaxKind) As PunctuationSyntax Return New PunctuationSyntax(kind, "", Nothing, Nothing) End Function ''' <summary> ''' Create a missing string literal. ''' </summary> Friend Shared Function MissingStringLiteral() As StringLiteralTokenSyntax Return StringLiteralToken("", "", Nothing, Nothing) End Function ''' <summary> ''' Create a missing character literal. ''' </summary> Friend Shared Function MissingCharacterLiteralToken() As CharacterLiteralTokenSyntax Return CharacterLiteralToken("", Nothing, Nothing, Nothing) End Function ''' <summary> ''' Create a missing integer literal. ''' </summary> Friend Shared Function MissingIntegerLiteralToken() As IntegerLiteralTokenSyntax Return IntegerLiteralToken("", LiteralBase.Decimal, TypeCharacter.None, Nothing, Nothing, Nothing) End Function ''' <summary> ''' Creates a copy of a token. ''' <para name="err"></para> ''' <para name="trivia"></para> ''' </summary> ''' <returns>The new token</returns> Friend Shared Function MissingToken(kind As SyntaxKind) As SyntaxToken Dim t As SyntaxToken Select Case kind Case SyntaxKind.StatementTerminatorToken t = SyntaxFactory.Token(Nothing, SyntaxKind.StatementTerminatorToken, Nothing, String.Empty) Case SyntaxKind.EndOfFileToken t = SyntaxFactory.EndOfFileToken() Case SyntaxKind.AddHandlerKeyword, SyntaxKind.AddressOfKeyword, SyntaxKind.AliasKeyword, SyntaxKind.AndKeyword, SyntaxKind.AndAlsoKeyword, SyntaxKind.AsKeyword, SyntaxKind.BooleanKeyword, SyntaxKind.ByRefKeyword, SyntaxKind.ByteKeyword, SyntaxKind.ByValKeyword, SyntaxKind.CallKeyword, SyntaxKind.CaseKeyword, SyntaxKind.CatchKeyword, SyntaxKind.CBoolKeyword, SyntaxKind.CByteKeyword, SyntaxKind.CCharKeyword, SyntaxKind.CDateKeyword, SyntaxKind.CDecKeyword, SyntaxKind.CDblKeyword, SyntaxKind.CharKeyword, SyntaxKind.CIntKeyword, SyntaxKind.ClassKeyword, SyntaxKind.CLngKeyword, SyntaxKind.CObjKeyword, SyntaxKind.ConstKeyword, SyntaxKind.ContinueKeyword, SyntaxKind.CSByteKeyword, SyntaxKind.CShortKeyword, SyntaxKind.CSngKeyword, SyntaxKind.CStrKeyword, SyntaxKind.CTypeKeyword, SyntaxKind.CUIntKeyword, SyntaxKind.CULngKeyword, SyntaxKind.CUShortKeyword, SyntaxKind.DateKeyword, SyntaxKind.DecimalKeyword, SyntaxKind.DeclareKeyword, SyntaxKind.DefaultKeyword, SyntaxKind.DelegateKeyword, SyntaxKind.DimKeyword, SyntaxKind.DirectCastKeyword, SyntaxKind.DoKeyword, SyntaxKind.DoubleKeyword, SyntaxKind.EachKeyword, SyntaxKind.ElseKeyword, SyntaxKind.ElseIfKeyword, SyntaxKind.EndKeyword, SyntaxKind.EnumKeyword, SyntaxKind.EraseKeyword, SyntaxKind.ErrorKeyword, SyntaxKind.EventKeyword, SyntaxKind.ExitKeyword, SyntaxKind.FalseKeyword, SyntaxKind.FinallyKeyword, SyntaxKind.ForKeyword, SyntaxKind.FriendKeyword, SyntaxKind.FunctionKeyword, SyntaxKind.GetKeyword, SyntaxKind.GetTypeKeyword, SyntaxKind.GetXmlNamespaceKeyword, SyntaxKind.GlobalKeyword, SyntaxKind.GoToKeyword, SyntaxKind.HandlesKeyword, SyntaxKind.IfKeyword, SyntaxKind.ImplementsKeyword, SyntaxKind.ImportsKeyword, SyntaxKind.InKeyword, SyntaxKind.InheritsKeyword, SyntaxKind.IntegerKeyword, SyntaxKind.InterfaceKeyword, SyntaxKind.IsKeyword, SyntaxKind.IsNotKeyword, SyntaxKind.LetKeyword, SyntaxKind.LibKeyword, SyntaxKind.LikeKeyword, SyntaxKind.LongKeyword, SyntaxKind.LoopKeyword, SyntaxKind.MeKeyword, SyntaxKind.ModKeyword, SyntaxKind.ModuleKeyword, SyntaxKind.MustInheritKeyword, SyntaxKind.MustOverrideKeyword, SyntaxKind.MyBaseKeyword, SyntaxKind.MyClassKeyword, SyntaxKind.NameOfKeyword, SyntaxKind.NamespaceKeyword, SyntaxKind.NarrowingKeyword, SyntaxKind.NextKeyword, SyntaxKind.NewKeyword, SyntaxKind.NotKeyword, SyntaxKind.NothingKeyword, SyntaxKind.NotInheritableKeyword, SyntaxKind.NotOverridableKeyword, SyntaxKind.ObjectKeyword, SyntaxKind.OfKeyword, SyntaxKind.OnKeyword, SyntaxKind.OperatorKeyword, SyntaxKind.OptionKeyword, SyntaxKind.OptionalKeyword, SyntaxKind.OrKeyword, SyntaxKind.OrElseKeyword, SyntaxKind.OverloadsKeyword, SyntaxKind.OverridableKeyword, SyntaxKind.OverridesKeyword, SyntaxKind.ParamArrayKeyword, SyntaxKind.PartialKeyword, SyntaxKind.PrivateKeyword, SyntaxKind.PropertyKeyword, SyntaxKind.ProtectedKeyword, SyntaxKind.PublicKeyword, SyntaxKind.RaiseEventKeyword, SyntaxKind.ReadOnlyKeyword, SyntaxKind.ReDimKeyword, SyntaxKind.REMKeyword, SyntaxKind.RemoveHandlerKeyword, SyntaxKind.ResumeKeyword, SyntaxKind.ReturnKeyword, SyntaxKind.SByteKeyword, SyntaxKind.SelectKeyword, SyntaxKind.SetKeyword, SyntaxKind.ShadowsKeyword, SyntaxKind.SharedKeyword, SyntaxKind.ShortKeyword, SyntaxKind.SingleKeyword, SyntaxKind.StaticKeyword, SyntaxKind.StepKeyword, SyntaxKind.StopKeyword, SyntaxKind.StringKeyword, SyntaxKind.StructureKeyword, SyntaxKind.SubKeyword, SyntaxKind.SyncLockKeyword, SyntaxKind.ThenKeyword, SyntaxKind.ThrowKeyword, SyntaxKind.ToKeyword, SyntaxKind.TrueKeyword, SyntaxKind.TryKeyword, SyntaxKind.TryCastKeyword, SyntaxKind.TypeOfKeyword, SyntaxKind.UIntegerKeyword, SyntaxKind.ULongKeyword, SyntaxKind.UShortKeyword, SyntaxKind.UsingKeyword, SyntaxKind.WhenKeyword, SyntaxKind.WhileKeyword, SyntaxKind.WideningKeyword, SyntaxKind.WithKeyword, SyntaxKind.WithEventsKeyword, SyntaxKind.WriteOnlyKeyword, SyntaxKind.XorKeyword, SyntaxKind.EndIfKeyword, SyntaxKind.GosubKeyword, SyntaxKind.VariantKeyword, SyntaxKind.WendKeyword, SyntaxKind.OutKeyword t = SyntaxFactory.MissingKeyword(kind) Case SyntaxKind.AggregateKeyword, SyntaxKind.AllKeyword, SyntaxKind.AnsiKeyword, SyntaxKind.AscendingKeyword, SyntaxKind.AssemblyKeyword, SyntaxKind.AutoKeyword, SyntaxKind.BinaryKeyword, SyntaxKind.ByKeyword, SyntaxKind.CompareKeyword, SyntaxKind.CustomKeyword, SyntaxKind.DescendingKeyword, SyntaxKind.DisableKeyword, SyntaxKind.DistinctKeyword, SyntaxKind.EnableKeyword, SyntaxKind.EqualsKeyword, SyntaxKind.ExplicitKeyword, SyntaxKind.ExternalSourceKeyword, SyntaxKind.ExternalChecksumKeyword, SyntaxKind.FromKeyword, SyntaxKind.GroupKeyword, SyntaxKind.InferKeyword, SyntaxKind.IntoKeyword, SyntaxKind.IsFalseKeyword, SyntaxKind.IsTrueKeyword, SyntaxKind.JoinKeyword, SyntaxKind.KeyKeyword, SyntaxKind.MidKeyword, SyntaxKind.OffKeyword, SyntaxKind.OrderKeyword, SyntaxKind.PreserveKeyword, SyntaxKind.RegionKeyword, SyntaxKind.ReferenceKeyword, SyntaxKind.SkipKeyword, SyntaxKind.StrictKeyword, SyntaxKind.TextKeyword, SyntaxKind.TakeKeyword, SyntaxKind.UnicodeKeyword, SyntaxKind.UntilKeyword, SyntaxKind.WarningKeyword, SyntaxKind.WhereKeyword ' These are identifiers that have a contextual kind Return SyntaxFactory.MissingIdentifier(kind) Case SyntaxKind.ExclamationToken, SyntaxKind.CommaToken, SyntaxKind.HashToken, SyntaxKind.AmpersandToken, SyntaxKind.SingleQuoteToken, SyntaxKind.OpenParenToken, SyntaxKind.CloseParenToken, SyntaxKind.OpenBraceToken, SyntaxKind.CloseBraceToken, SyntaxKind.DoubleQuoteToken, SyntaxKind.SemicolonToken, SyntaxKind.AsteriskToken, SyntaxKind.PlusToken, SyntaxKind.MinusToken, SyntaxKind.DotToken, SyntaxKind.SlashToken, SyntaxKind.ColonToken, SyntaxKind.LessThanToken, SyntaxKind.LessThanEqualsToken, SyntaxKind.LessThanGreaterThanToken, SyntaxKind.EqualsToken, SyntaxKind.GreaterThanToken, SyntaxKind.GreaterThanEqualsToken, SyntaxKind.BackslashToken, SyntaxKind.CaretToken, SyntaxKind.ColonEqualsToken, SyntaxKind.AmpersandEqualsToken, SyntaxKind.AsteriskEqualsToken, SyntaxKind.PlusEqualsToken, SyntaxKind.MinusEqualsToken, SyntaxKind.SlashEqualsToken, SyntaxKind.BackslashEqualsToken, SyntaxKind.CaretEqualsToken, SyntaxKind.LessThanLessThanToken, SyntaxKind.GreaterThanGreaterThanToken, SyntaxKind.LessThanLessThanEqualsToken, SyntaxKind.GreaterThanGreaterThanEqualsToken, SyntaxKind.QuestionToken t = SyntaxFactory.MissingPunctuation(kind) Case SyntaxKind.FloatingLiteralToken t = SyntaxFactory.FloatingLiteralToken("", TypeCharacter.None, Nothing, Nothing, Nothing) Case SyntaxKind.DecimalLiteralToken t = SyntaxFactory.DecimalLiteralToken("", TypeCharacter.None, Nothing, Nothing, Nothing) Case SyntaxKind.DateLiteralToken t = SyntaxFactory.DateLiteralToken("", Nothing, Nothing, Nothing) Case SyntaxKind.XmlNameToken t = SyntaxFactory.XmlNameToken("", SyntaxKind.XmlNameToken, Nothing, Nothing) Case SyntaxKind.XmlTextLiteralToken t = SyntaxFactory.XmlTextLiteralToken("", "", Nothing, Nothing) Case SyntaxKind.SlashGreaterThanToken, SyntaxKind.LessThanSlashToken, SyntaxKind.LessThanExclamationMinusMinusToken, SyntaxKind.MinusMinusGreaterThanToken, SyntaxKind.LessThanQuestionToken, SyntaxKind.QuestionGreaterThanToken, SyntaxKind.LessThanPercentEqualsToken, SyntaxKind.PercentGreaterThanToken, SyntaxKind.BeginCDataToken, SyntaxKind.EndCDataToken t = SyntaxFactory.MissingPunctuation(kind) Case SyntaxKind.IdentifierToken t = SyntaxFactory.MissingIdentifier() Case SyntaxKind.IntegerLiteralToken t = MissingIntegerLiteralToken() Case SyntaxKind.StringLiteralToken t = SyntaxFactory.MissingStringLiteral() Case SyntaxKind.CharacterLiteralToken t = SyntaxFactory.MissingCharacterLiteralToken() Case SyntaxKind.InterpolatedStringTextToken t = SyntaxFactory.InterpolatedStringTextToken("", "", Nothing, Nothing) Case Else Throw ExceptionUtilities.UnexpectedValue(kind) End Select Return t End Function Friend Shared Function BadToken(SubKind As SyntaxSubKind, text As String, precedingTrivia As GreenNode, followingTrivia As GreenNode) As BadTokenSyntax Return New BadTokenSyntax(SyntaxKind.BadToken, SubKind, Nothing, Nothing, text, precedingTrivia, followingTrivia) End Function ''' <summary> ''' Create an end-of-text token. ''' </summary> Friend Shared Function EndOfFileToken(precedingTrivia As SyntaxTrivia) As PunctuationSyntax Return New PunctuationSyntax(SyntaxKind.EndOfFileToken, "", precedingTrivia, Nothing) End Function ''' <summary> ''' Create an end-of-text token. ''' </summary> Friend Shared Function EndOfFileToken() As PunctuationSyntax Return New PunctuationSyntax(SyntaxKind.EndOfFileToken, "", Nothing, Nothing) End Function Friend Shared Function Identifier(text As String, isBracketed As Boolean, baseText As String, typeCharacter As TypeCharacter, precedingTrivia As GreenNode, followingTrivia As GreenNode) As IdentifierTokenSyntax Debug.Assert(text IsNot Nothing) Return New ComplexIdentifierSyntax(SyntaxKind.IdentifierToken, Nothing, Nothing, text, precedingTrivia, followingTrivia, SyntaxKind.IdentifierToken, isBracketed, baseText, typeCharacter) End Function Private Shared s_notMissingEmptyToken As PunctuationSyntax = Nothing Friend Shared ReadOnly Property NotMissingEmptyToken() As PunctuationSyntax Get If s_notMissingEmptyToken Is Nothing Then s_notMissingEmptyToken = New PunctuationSyntax(SyntaxKind.EmptyToken, "", Nothing, Nothing) End If Return s_notMissingEmptyToken End Get End Property Private Shared s_missingEmptyToken As PunctuationSyntax = Nothing Friend Shared ReadOnly Property MissingEmptyToken() As PunctuationSyntax Get If s_missingEmptyToken Is Nothing Then s_missingEmptyToken = New PunctuationSyntax(SyntaxKind.EmptyToken, "", Nothing, Nothing) s_missingEmptyToken.ClearFlags(GreenNode.NodeFlags.IsNotMissing) End If Return s_missingEmptyToken End Get End Property Private Shared s_statementTerminatorToken As PunctuationSyntax = Nothing Friend Shared ReadOnly Property StatementTerminatorToken() As PunctuationSyntax Get If s_statementTerminatorToken Is Nothing Then s_statementTerminatorToken = New PunctuationSyntax(SyntaxKind.StatementTerminatorToken, "", Nothing, Nothing) s_statementTerminatorToken.SetFlags(GreenNode.NodeFlags.IsNotMissing) End If Return s_statementTerminatorToken End Get End Property Private Shared s_colonToken As PunctuationSyntax = Nothing Friend Shared ReadOnly Property ColonToken() As PunctuationSyntax Get If s_colonToken Is Nothing Then s_colonToken = New PunctuationSyntax(SyntaxKind.ColonToken, "", Nothing, Nothing) s_colonToken.SetFlags(GreenNode.NodeFlags.IsNotMissing) End If Return s_colonToken End Get End Property Private Shared ReadOnly s_missingExpr As ExpressionSyntax = SyntaxFactory.IdentifierName(SyntaxFactory.Identifier("", Nothing, Nothing)) Friend Shared Function MissingExpression() As ExpressionSyntax Return s_missingExpr End Function Private Shared ReadOnly s_emptyStatement As EmptyStatementSyntax = SyntaxFactory.EmptyStatement(NotMissingEmptyToken) Friend Shared Function EmptyStatement() As EmptyStatementSyntax Return s_emptyStatement End Function Private Shared ReadOnly s_omittedArgument As OmittedArgumentSyntax = SyntaxFactory.OmittedArgument(NotMissingEmptyToken) Friend Shared Function OmittedArgument() As OmittedArgumentSyntax Return s_omittedArgument End Function Public Shared Function TypeBlock(ByVal blockKind As SyntaxKind, ByVal begin As TypeStatementSyntax, ByVal [inherits] As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of InheritsStatementSyntax), ByVal [implements] As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of ImplementsStatementSyntax), ByVal members As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax), ByVal [end] As EndBlockStatementSyntax) As TypeBlockSyntax Select Case blockKind Case SyntaxKind.ModuleBlock Return SyntaxFactory.ModuleBlock(DirectCast(begin, ModuleStatementSyntax), [inherits], [implements], members, [end]) Case SyntaxKind.ClassBlock Return SyntaxFactory.ClassBlock(DirectCast(begin, ClassStatementSyntax), [inherits], [implements], members, [end]) Case SyntaxKind.StructureBlock Return SyntaxFactory.StructureBlock(DirectCast(begin, StructureStatementSyntax), [inherits], [implements], members, [end]) Case SyntaxKind.InterfaceBlock Return SyntaxFactory.InterfaceBlock(DirectCast(begin, InterfaceStatementSyntax), [inherits], [implements], members, [end]) Case Else Throw ExceptionUtilities.UnexpectedValue(blockKind) End Select End Function Public Shared Function TypeStatement(ByVal statementKind As SyntaxKind, ByVal attributes As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of GreenNode), ByVal modifiers As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of GreenNode), ByVal keyword As KeywordSyntax, ByVal identifier As IdentifierTokenSyntax, ByVal typeParameterList As TypeParameterListSyntax) As TypeStatementSyntax Select Case statementKind Case SyntaxKind.ModuleStatement Return SyntaxFactory.ModuleStatement(attributes, modifiers, keyword, identifier, typeParameterList) Case SyntaxKind.ClassStatement Return SyntaxFactory.ClassStatement(attributes, modifiers, keyword, identifier, typeParameterList) Case SyntaxKind.StructureStatement Return SyntaxFactory.StructureStatement(attributes, modifiers, keyword, identifier, typeParameterList) Case SyntaxKind.InterfaceStatement Return SyntaxFactory.InterfaceStatement(attributes, modifiers, keyword, identifier, typeParameterList) Case Else Throw ExceptionUtilities.UnexpectedValue(statementKind) End Select End Function End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/EditorFeatures/Core/Implementation/CommentSelection/CommentUncommentSelectionCommandHandler.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.ComponentModel.Composition; using System.Diagnostics.CodeAnalysis; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CommentSelection; using Microsoft.CodeAnalysis.Editor.Shared.Extensions; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; using Microsoft.CodeAnalysis.Text.Shared.Extensions; using Microsoft.VisualStudio.Commanding; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor.Commanding.Commands; using Microsoft.VisualStudio.Text.Operations; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.Implementation.CommentSelection { [Export(typeof(ICommandHandler))] [VisualStudio.Utilities.ContentType(ContentTypeNames.RoslynContentType)] [VisualStudio.Utilities.Name(PredefinedCommandHandlerNames.CommentSelection)] internal class CommentUncommentSelectionCommandHandler : AbstractCommentSelectionBase<Operation>, ICommandHandler<CommentSelectionCommandArgs>, ICommandHandler<UncommentSelectionCommandArgs> { [ImportingConstructor] [SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification = "Used in test code: https://github.com/dotnet/roslyn/issues/42814")] public CommentUncommentSelectionCommandHandler( ITextUndoHistoryRegistry undoHistoryRegistry, IEditorOperationsFactoryService editorOperationsFactoryService) : base(undoHistoryRegistry, editorOperationsFactoryService) { } public CommandState GetCommandState(CommentSelectionCommandArgs args) => GetCommandState(args.SubjectBuffer); /// <summary> /// Comment the selected spans, and reset the selection. /// </summary> public bool ExecuteCommand(CommentSelectionCommandArgs args, CommandExecutionContext context) => this.ExecuteCommand(args.TextView, args.SubjectBuffer, Operation.Comment, context); public CommandState GetCommandState(UncommentSelectionCommandArgs args) => GetCommandState(args.SubjectBuffer); /// <summary> /// Uncomment the selected spans, and reset the selection. /// </summary> public bool ExecuteCommand(UncommentSelectionCommandArgs args, CommandExecutionContext context) => this.ExecuteCommand(args.TextView, args.SubjectBuffer, Operation.Uncomment, context); public override string DisplayName => EditorFeaturesResources.Comment_Uncomment_Selection; protected override string GetTitle(Operation operation) => operation == Operation.Comment ? EditorFeaturesResources.Comment_Selection : EditorFeaturesResources.Uncomment_Selection; protected override string GetMessage(Operation operation) => operation == Operation.Comment ? EditorFeaturesResources.Commenting_currently_selected_text : EditorFeaturesResources.Uncommenting_currently_selected_text; /// <summary> /// Add the necessary edits to the given spans. Also collect tracking spans over each span. /// /// Internal so that it can be called by unit tests. /// </summary> internal override Task<CommentSelectionResult> CollectEditsAsync( Document document, ICommentSelectionService service, ITextBuffer subjectBuffer, NormalizedSnapshotSpanCollection selectedSpans, Operation operation, CancellationToken cancellationToken) { var spanTrackingList = ArrayBuilder<CommentTrackingSpan>.GetInstance(); var textChanges = ArrayBuilder<TextChange>.GetInstance(); foreach (var span in selectedSpans) { if (operation == Operation.Comment) { CommentSpan(document, service, span, textChanges, spanTrackingList, cancellationToken); } else { UncommentSpan(document, service, span, textChanges, spanTrackingList, cancellationToken); } } return Task.FromResult(new CommentSelectionResult(textChanges.ToArrayAndFree(), spanTrackingList.ToArrayAndFree(), operation)); } /// <summary> /// Add the necessary edits to comment out a single span. /// </summary> private static void CommentSpan( Document document, ICommentSelectionService service, SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> trackingSpans, CancellationToken cancellationToken) { var (firstLine, lastLine) = DetermineFirstAndLastLine(span); if (span.IsEmpty && firstLine.IsEmptyOrWhitespace()) { // No selection, and on an empty line, don't do anything. return; } if (!span.IsEmpty && string.IsNullOrWhiteSpace(span.GetText())) { // Just whitespace selected, don't do anything. return; } // Get the information from the language as to how they'd like to comment this region. var commentInfo = service.GetInfoAsync(document, span.Span.ToTextSpan(), cancellationToken).WaitAndGetResult(cancellationToken); if (!commentInfo.SupportsBlockComment && !commentInfo.SupportsSingleLineComment) { // Neither type of comment supported. return; } if (commentInfo.SupportsBlockComment && !commentInfo.SupportsSingleLineComment) { // Only block comments supported here. If there is a span, just surround that // span with a block comment. If tehre is no span then surround the entire line // with a block comment. if (span.IsEmpty) { var firstNonWhitespaceOnLine = firstLine.GetFirstNonWhitespacePosition(); var insertPosition = firstNonWhitespaceOnLine ?? firstLine.Start; span = new SnapshotSpan(span.Snapshot, Span.FromBounds(insertPosition, firstLine.End)); } AddBlockComment(span, textChanges, trackingSpans, commentInfo); } else if (!commentInfo.SupportsBlockComment && commentInfo.SupportsSingleLineComment) { // Only single line comments supported here. AddSingleLineComments(span, textChanges, trackingSpans, firstLine, lastLine, commentInfo); } else { // both comment forms supported. Do a block comment only if a portion of code is // selected on a single line, otherwise comment out all the lines using single-line // comments. if (!span.IsEmpty && !SpanIncludesAllTextOnIncludedLines(span) && firstLine.LineNumber == lastLine.LineNumber) { AddBlockComment(span, textChanges, trackingSpans, commentInfo); } else { AddSingleLineComments(span, textChanges, trackingSpans, firstLine, lastLine, commentInfo); } } } private static void AddSingleLineComments(SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> trackingSpans, ITextSnapshotLine firstLine, ITextSnapshotLine lastLine, CommentSelectionInfo commentInfo) { // Select the entirety of the lines, so that another comment operation will add more // comments, not insert block comments. trackingSpans.Add(new CommentTrackingSpan(TextSpan.FromBounds(firstLine.Start.Position, lastLine.End.Position))); var indentToCommentAt = DetermineSmallestIndent(span, firstLine, lastLine); ApplySingleLineCommentToNonBlankLines(commentInfo, textChanges, firstLine, lastLine, indentToCommentAt); } private static void AddBlockComment(SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> trackingSpans, CommentSelectionInfo commentInfo) { trackingSpans.Add(new CommentTrackingSpan(TextSpan.FromBounds(span.Start, span.End))); InsertText(textChanges, span.Start, commentInfo.BlockCommentStartString); InsertText(textChanges, span.End, commentInfo.BlockCommentEndString); } /// <summary> /// Add the necessary edits to uncomment out a single span. /// </summary> private static void UncommentSpan( Document document, ICommentSelectionService service, SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> spansToSelect, CancellationToken cancellationToken) { var info = service.GetInfoAsync(document, span.Span.ToTextSpan(), cancellationToken).WaitAndGetResult(cancellationToken); // If the selection is exactly a block comment, use it as priority over single line comments. if (info.SupportsBlockComment && TryUncommentExactlyBlockComment(info, span, textChanges, spansToSelect)) { return; } if (info.SupportsSingleLineComment && TryUncommentSingleLineComments(info, span, textChanges, spansToSelect)) { return; } // We didn't make any single line changes. If the language supports block comments, see // if we're inside a containing block comment and uncomment that. if (info.SupportsBlockComment) { UncommentContainingBlockComment(info, span, textChanges, spansToSelect); } } /// <summary> /// Check if the selected span matches an entire block comment. /// If it does, uncomment it and return true. /// </summary> private static bool TryUncommentExactlyBlockComment(CommentSelectionInfo info, SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> spansToSelect) { var spanText = span.GetText(); var trimmedSpanText = spanText.Trim(); // See if the selection includes just a block comment (plus whitespace) if (trimmedSpanText.StartsWith(info.BlockCommentStartString, StringComparison.Ordinal) && trimmedSpanText.EndsWith(info.BlockCommentEndString, StringComparison.Ordinal)) { var positionOfStart = span.Start + spanText.IndexOf(info.BlockCommentStartString, StringComparison.Ordinal); var positionOfEnd = span.Start + spanText.LastIndexOf(info.BlockCommentEndString, StringComparison.Ordinal); UncommentPosition(info, textChanges, spansToSelect, positionOfStart, positionOfEnd); return true; } return false; } private static void UncommentContainingBlockComment(CommentSelectionInfo info, SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> spansToSelect) { // See if we are (textually) contained in a block comment. // This could allow a selection that spans multiple block comments to uncomment the beginning of // the first and end of the last. Oh well. var positionOfEnd = -1; var text = span.Snapshot.AsText(); var positionOfStart = text.LastIndexOf(info.BlockCommentStartString, span.Start, caseSensitive: true); // If we found a start comment marker, make sure there isn't an end comment marker after it but before our span. if (positionOfStart >= 0) { var lastEnd = text.LastIndexOf(info.BlockCommentEndString, span.Start, caseSensitive: true); if (lastEnd < positionOfStart) { positionOfEnd = text.IndexOf(info.BlockCommentEndString, span.End, caseSensitive: true); } else if (lastEnd + info.BlockCommentEndString.Length > span.End) { // The end of the span is *inside* the end marker, so searching backwards found it. positionOfEnd = lastEnd; } } UncommentPosition(info, textChanges, spansToSelect, positionOfStart, positionOfEnd); } private static void UncommentPosition(CommentSelectionInfo info, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> spansToSelect, int positionOfStart, int positionOfEnd) { if (positionOfStart < 0 || positionOfEnd < 0) { return; } spansToSelect.Add(new CommentTrackingSpan(TextSpan.FromBounds(positionOfStart, positionOfEnd + info.BlockCommentEndString.Length))); DeleteText(textChanges, new TextSpan(positionOfStart, info.BlockCommentStartString.Length)); DeleteText(textChanges, new TextSpan(positionOfEnd, info.BlockCommentEndString.Length)); } private static bool TryUncommentSingleLineComments(CommentSelectionInfo info, SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> spansToSelect) { // First see if we're selecting any lines that have the single-line comment prefix. // If so, then we'll just remove the single-line comment prefix from those lines. var (firstLine, lastLine) = DetermineFirstAndLastLine(span); for (var lineNumber = firstLine.LineNumber; lineNumber <= lastLine.LineNumber; ++lineNumber) { var line = span.Snapshot.GetLineFromLineNumber(lineNumber); var lineText = line.GetText(); if (lineText.Trim().StartsWith(info.SingleLineCommentString, StringComparison.Ordinal)) { DeleteText(textChanges, new TextSpan(line.Start.Position + lineText.IndexOf(info.SingleLineCommentString, StringComparison.Ordinal), info.SingleLineCommentString.Length)); } } // If we made any changes, select the entirety of the lines we change, so that subsequent invocations will // affect the same lines. if (textChanges.Count == 0) { return false; } spansToSelect.Add(new CommentTrackingSpan(TextSpan.FromBounds(firstLine.Start.Position, lastLine.End.Position))); return true; } /// <summary> /// Adds edits to comment out each non-blank line, at the given indent. /// </summary> private static void ApplySingleLineCommentToNonBlankLines( CommentSelectionInfo info, ArrayBuilder<TextChange> textChanges, ITextSnapshotLine firstLine, ITextSnapshotLine lastLine, int indentToCommentAt) { var snapshot = firstLine.Snapshot; for (var lineNumber = firstLine.LineNumber; lineNumber <= lastLine.LineNumber; ++lineNumber) { var line = snapshot.GetLineFromLineNumber(lineNumber); if (!line.IsEmptyOrWhitespace()) { InsertText(textChanges, line.Start + indentToCommentAt, info.SingleLineCommentString); } } } /// <summary> /// Given a span, find the first and last line that are part of the span. NOTE: If the /// span ends in column zero, we back up to the previous line, to handle the case where /// the user used shift + down to select a bunch of lines. They probably don't want the /// last line commented in that case. /// </summary> private static (ITextSnapshotLine firstLine, ITextSnapshotLine lastLine) DetermineFirstAndLastLine(SnapshotSpan span) { var firstLine = span.Snapshot.GetLineFromPosition(span.Start.Position); var lastLine = span.Snapshot.GetLineFromPosition(span.End.Position); if (lastLine.Start == span.End.Position && !span.IsEmpty) { lastLine = lastLine.GetPreviousMatchingLine(_ => true); } return (firstLine, lastLine); } /// <summary> /// Returns true if the span includes all of the non-whitespace text on the first and last line. /// </summary> private static bool SpanIncludesAllTextOnIncludedLines(SnapshotSpan span) { var (firstLine, lastLine) = DetermineFirstAndLastLine(span); var firstNonWhitespacePosition = firstLine.GetFirstNonWhitespacePosition(); var lastNonWhitespacePosition = lastLine.GetLastNonWhitespacePosition(); var allOnFirst = !firstNonWhitespacePosition.HasValue || span.Start.Position <= firstNonWhitespacePosition.Value; var allOnLast = !lastNonWhitespacePosition.HasValue || span.End.Position > lastNonWhitespacePosition.Value; return allOnFirst && allOnLast; } } }
// 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.ComponentModel.Composition; using System.Diagnostics.CodeAnalysis; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CommentSelection; using Microsoft.CodeAnalysis.Editor.Shared.Extensions; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Text; using Microsoft.CodeAnalysis.Text.Shared.Extensions; using Microsoft.VisualStudio.Commanding; using Microsoft.VisualStudio.Text; using Microsoft.VisualStudio.Text.Editor.Commanding.Commands; using Microsoft.VisualStudio.Text.Operations; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.Implementation.CommentSelection { [Export(typeof(ICommandHandler))] [VisualStudio.Utilities.ContentType(ContentTypeNames.RoslynContentType)] [VisualStudio.Utilities.Name(PredefinedCommandHandlerNames.CommentSelection)] internal class CommentUncommentSelectionCommandHandler : AbstractCommentSelectionBase<Operation>, ICommandHandler<CommentSelectionCommandArgs>, ICommandHandler<UncommentSelectionCommandArgs> { [ImportingConstructor] [SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification = "Used in test code: https://github.com/dotnet/roslyn/issues/42814")] public CommentUncommentSelectionCommandHandler( ITextUndoHistoryRegistry undoHistoryRegistry, IEditorOperationsFactoryService editorOperationsFactoryService) : base(undoHistoryRegistry, editorOperationsFactoryService) { } public CommandState GetCommandState(CommentSelectionCommandArgs args) => GetCommandState(args.SubjectBuffer); /// <summary> /// Comment the selected spans, and reset the selection. /// </summary> public bool ExecuteCommand(CommentSelectionCommandArgs args, CommandExecutionContext context) => this.ExecuteCommand(args.TextView, args.SubjectBuffer, Operation.Comment, context); public CommandState GetCommandState(UncommentSelectionCommandArgs args) => GetCommandState(args.SubjectBuffer); /// <summary> /// Uncomment the selected spans, and reset the selection. /// </summary> public bool ExecuteCommand(UncommentSelectionCommandArgs args, CommandExecutionContext context) => this.ExecuteCommand(args.TextView, args.SubjectBuffer, Operation.Uncomment, context); public override string DisplayName => EditorFeaturesResources.Comment_Uncomment_Selection; protected override string GetTitle(Operation operation) => operation == Operation.Comment ? EditorFeaturesResources.Comment_Selection : EditorFeaturesResources.Uncomment_Selection; protected override string GetMessage(Operation operation) => operation == Operation.Comment ? EditorFeaturesResources.Commenting_currently_selected_text : EditorFeaturesResources.Uncommenting_currently_selected_text; /// <summary> /// Add the necessary edits to the given spans. Also collect tracking spans over each span. /// /// Internal so that it can be called by unit tests. /// </summary> internal override Task<CommentSelectionResult> CollectEditsAsync( Document document, ICommentSelectionService service, ITextBuffer subjectBuffer, NormalizedSnapshotSpanCollection selectedSpans, Operation operation, CancellationToken cancellationToken) { var spanTrackingList = ArrayBuilder<CommentTrackingSpan>.GetInstance(); var textChanges = ArrayBuilder<TextChange>.GetInstance(); foreach (var span in selectedSpans) { if (operation == Operation.Comment) { CommentSpan(document, service, span, textChanges, spanTrackingList, cancellationToken); } else { UncommentSpan(document, service, span, textChanges, spanTrackingList, cancellationToken); } } return Task.FromResult(new CommentSelectionResult(textChanges.ToArrayAndFree(), spanTrackingList.ToArrayAndFree(), operation)); } /// <summary> /// Add the necessary edits to comment out a single span. /// </summary> private static void CommentSpan( Document document, ICommentSelectionService service, SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> trackingSpans, CancellationToken cancellationToken) { var (firstLine, lastLine) = DetermineFirstAndLastLine(span); if (span.IsEmpty && firstLine.IsEmptyOrWhitespace()) { // No selection, and on an empty line, don't do anything. return; } if (!span.IsEmpty && string.IsNullOrWhiteSpace(span.GetText())) { // Just whitespace selected, don't do anything. return; } // Get the information from the language as to how they'd like to comment this region. var commentInfo = service.GetInfoAsync(document, span.Span.ToTextSpan(), cancellationToken).WaitAndGetResult(cancellationToken); if (!commentInfo.SupportsBlockComment && !commentInfo.SupportsSingleLineComment) { // Neither type of comment supported. return; } if (commentInfo.SupportsBlockComment && !commentInfo.SupportsSingleLineComment) { // Only block comments supported here. If there is a span, just surround that // span with a block comment. If tehre is no span then surround the entire line // with a block comment. if (span.IsEmpty) { var firstNonWhitespaceOnLine = firstLine.GetFirstNonWhitespacePosition(); var insertPosition = firstNonWhitespaceOnLine ?? firstLine.Start; span = new SnapshotSpan(span.Snapshot, Span.FromBounds(insertPosition, firstLine.End)); } AddBlockComment(span, textChanges, trackingSpans, commentInfo); } else if (!commentInfo.SupportsBlockComment && commentInfo.SupportsSingleLineComment) { // Only single line comments supported here. AddSingleLineComments(span, textChanges, trackingSpans, firstLine, lastLine, commentInfo); } else { // both comment forms supported. Do a block comment only if a portion of code is // selected on a single line, otherwise comment out all the lines using single-line // comments. if (!span.IsEmpty && !SpanIncludesAllTextOnIncludedLines(span) && firstLine.LineNumber == lastLine.LineNumber) { AddBlockComment(span, textChanges, trackingSpans, commentInfo); } else { AddSingleLineComments(span, textChanges, trackingSpans, firstLine, lastLine, commentInfo); } } } private static void AddSingleLineComments(SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> trackingSpans, ITextSnapshotLine firstLine, ITextSnapshotLine lastLine, CommentSelectionInfo commentInfo) { // Select the entirety of the lines, so that another comment operation will add more // comments, not insert block comments. trackingSpans.Add(new CommentTrackingSpan(TextSpan.FromBounds(firstLine.Start.Position, lastLine.End.Position))); var indentToCommentAt = DetermineSmallestIndent(span, firstLine, lastLine); ApplySingleLineCommentToNonBlankLines(commentInfo, textChanges, firstLine, lastLine, indentToCommentAt); } private static void AddBlockComment(SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> trackingSpans, CommentSelectionInfo commentInfo) { trackingSpans.Add(new CommentTrackingSpan(TextSpan.FromBounds(span.Start, span.End))); InsertText(textChanges, span.Start, commentInfo.BlockCommentStartString); InsertText(textChanges, span.End, commentInfo.BlockCommentEndString); } /// <summary> /// Add the necessary edits to uncomment out a single span. /// </summary> private static void UncommentSpan( Document document, ICommentSelectionService service, SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> spansToSelect, CancellationToken cancellationToken) { var info = service.GetInfoAsync(document, span.Span.ToTextSpan(), cancellationToken).WaitAndGetResult(cancellationToken); // If the selection is exactly a block comment, use it as priority over single line comments. if (info.SupportsBlockComment && TryUncommentExactlyBlockComment(info, span, textChanges, spansToSelect)) { return; } if (info.SupportsSingleLineComment && TryUncommentSingleLineComments(info, span, textChanges, spansToSelect)) { return; } // We didn't make any single line changes. If the language supports block comments, see // if we're inside a containing block comment and uncomment that. if (info.SupportsBlockComment) { UncommentContainingBlockComment(info, span, textChanges, spansToSelect); } } /// <summary> /// Check if the selected span matches an entire block comment. /// If it does, uncomment it and return true. /// </summary> private static bool TryUncommentExactlyBlockComment(CommentSelectionInfo info, SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> spansToSelect) { var spanText = span.GetText(); var trimmedSpanText = spanText.Trim(); // See if the selection includes just a block comment (plus whitespace) if (trimmedSpanText.StartsWith(info.BlockCommentStartString, StringComparison.Ordinal) && trimmedSpanText.EndsWith(info.BlockCommentEndString, StringComparison.Ordinal)) { var positionOfStart = span.Start + spanText.IndexOf(info.BlockCommentStartString, StringComparison.Ordinal); var positionOfEnd = span.Start + spanText.LastIndexOf(info.BlockCommentEndString, StringComparison.Ordinal); UncommentPosition(info, textChanges, spansToSelect, positionOfStart, positionOfEnd); return true; } return false; } private static void UncommentContainingBlockComment(CommentSelectionInfo info, SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> spansToSelect) { // See if we are (textually) contained in a block comment. // This could allow a selection that spans multiple block comments to uncomment the beginning of // the first and end of the last. Oh well. var positionOfEnd = -1; var text = span.Snapshot.AsText(); var positionOfStart = text.LastIndexOf(info.BlockCommentStartString, span.Start, caseSensitive: true); // If we found a start comment marker, make sure there isn't an end comment marker after it but before our span. if (positionOfStart >= 0) { var lastEnd = text.LastIndexOf(info.BlockCommentEndString, span.Start, caseSensitive: true); if (lastEnd < positionOfStart) { positionOfEnd = text.IndexOf(info.BlockCommentEndString, span.End, caseSensitive: true); } else if (lastEnd + info.BlockCommentEndString.Length > span.End) { // The end of the span is *inside* the end marker, so searching backwards found it. positionOfEnd = lastEnd; } } UncommentPosition(info, textChanges, spansToSelect, positionOfStart, positionOfEnd); } private static void UncommentPosition(CommentSelectionInfo info, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> spansToSelect, int positionOfStart, int positionOfEnd) { if (positionOfStart < 0 || positionOfEnd < 0) { return; } spansToSelect.Add(new CommentTrackingSpan(TextSpan.FromBounds(positionOfStart, positionOfEnd + info.BlockCommentEndString.Length))); DeleteText(textChanges, new TextSpan(positionOfStart, info.BlockCommentStartString.Length)); DeleteText(textChanges, new TextSpan(positionOfEnd, info.BlockCommentEndString.Length)); } private static bool TryUncommentSingleLineComments(CommentSelectionInfo info, SnapshotSpan span, ArrayBuilder<TextChange> textChanges, ArrayBuilder<CommentTrackingSpan> spansToSelect) { // First see if we're selecting any lines that have the single-line comment prefix. // If so, then we'll just remove the single-line comment prefix from those lines. var (firstLine, lastLine) = DetermineFirstAndLastLine(span); for (var lineNumber = firstLine.LineNumber; lineNumber <= lastLine.LineNumber; ++lineNumber) { var line = span.Snapshot.GetLineFromLineNumber(lineNumber); var lineText = line.GetText(); if (lineText.Trim().StartsWith(info.SingleLineCommentString, StringComparison.Ordinal)) { DeleteText(textChanges, new TextSpan(line.Start.Position + lineText.IndexOf(info.SingleLineCommentString, StringComparison.Ordinal), info.SingleLineCommentString.Length)); } } // If we made any changes, select the entirety of the lines we change, so that subsequent invocations will // affect the same lines. if (textChanges.Count == 0) { return false; } spansToSelect.Add(new CommentTrackingSpan(TextSpan.FromBounds(firstLine.Start.Position, lastLine.End.Position))); return true; } /// <summary> /// Adds edits to comment out each non-blank line, at the given indent. /// </summary> private static void ApplySingleLineCommentToNonBlankLines( CommentSelectionInfo info, ArrayBuilder<TextChange> textChanges, ITextSnapshotLine firstLine, ITextSnapshotLine lastLine, int indentToCommentAt) { var snapshot = firstLine.Snapshot; for (var lineNumber = firstLine.LineNumber; lineNumber <= lastLine.LineNumber; ++lineNumber) { var line = snapshot.GetLineFromLineNumber(lineNumber); if (!line.IsEmptyOrWhitespace()) { InsertText(textChanges, line.Start + indentToCommentAt, info.SingleLineCommentString); } } } /// <summary> /// Given a span, find the first and last line that are part of the span. NOTE: If the /// span ends in column zero, we back up to the previous line, to handle the case where /// the user used shift + down to select a bunch of lines. They probably don't want the /// last line commented in that case. /// </summary> private static (ITextSnapshotLine firstLine, ITextSnapshotLine lastLine) DetermineFirstAndLastLine(SnapshotSpan span) { var firstLine = span.Snapshot.GetLineFromPosition(span.Start.Position); var lastLine = span.Snapshot.GetLineFromPosition(span.End.Position); if (lastLine.Start == span.End.Position && !span.IsEmpty) { lastLine = lastLine.GetPreviousMatchingLine(_ => true); } return (firstLine, lastLine); } /// <summary> /// Returns true if the span includes all of the non-whitespace text on the first and last line. /// </summary> private static bool SpanIncludesAllTextOnIncludedLines(SnapshotSpan span) { var (firstLine, lastLine) = DetermineFirstAndLastLine(span); var firstNonWhitespacePosition = firstLine.GetFirstNonWhitespacePosition(); var lastNonWhitespacePosition = lastLine.GetLastNonWhitespacePosition(); var allOnFirst = !firstNonWhitespacePosition.HasValue || span.Start.Position <= firstNonWhitespacePosition.Value; var allOnLast = !lastNonWhitespacePosition.HasValue || span.End.Position > lastNonWhitespacePosition.Value; return allOnFirst && allOnLast; } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Analyzers/CSharp/CodeFixes/ConvertTypeOfToNameOf/CSharpConvertTypeOfToNameOfCodeFixProvider.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.Composition; using System.Diagnostics.CodeAnalysis; using System.Threading; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.ConvertTypeOfToNameOf; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Shared.Extensions; namespace Microsoft.CodeAnalysis.CSharp.ConvertTypeOfToNameOf { [ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.ConvertTypeOfToNameOf), Shared] internal class CSharpConvertTypeOfToNameOfCodeFixProvider : AbstractConvertTypeOfToNameOfCodeFixProvider { [ImportingConstructor] [SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification = "Used in test code: https://github.com/dotnet/roslyn/issues/42814")] public CSharpConvertTypeOfToNameOfCodeFixProvider() { } protected override string GetCodeFixTitle() => CSharpCodeFixesResources.Convert_typeof_to_nameof; protected override SyntaxNode? GetSymbolTypeExpression(SemanticModel model, SyntaxNode node, CancellationToken cancellationToken) { if (node is MemberAccessExpressionSyntax { Expression: TypeOfExpressionSyntax typeOfExpression }) { var typeSymbol = model.GetSymbolInfo(typeOfExpression.Type, cancellationToken).Symbol.GetSymbolType(); return typeSymbol?.GenerateExpressionSyntax(); } return 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.Composition; using System.Diagnostics.CodeAnalysis; using System.Threading; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.ConvertTypeOfToNameOf; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Shared.Extensions; namespace Microsoft.CodeAnalysis.CSharp.ConvertTypeOfToNameOf { [ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.ConvertTypeOfToNameOf), Shared] internal class CSharpConvertTypeOfToNameOfCodeFixProvider : AbstractConvertTypeOfToNameOfCodeFixProvider { [ImportingConstructor] [SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification = "Used in test code: https://github.com/dotnet/roslyn/issues/42814")] public CSharpConvertTypeOfToNameOfCodeFixProvider() { } protected override string GetCodeFixTitle() => CSharpCodeFixesResources.Convert_typeof_to_nameof; protected override SyntaxNode? GetSymbolTypeExpression(SemanticModel model, SyntaxNode node, CancellationToken cancellationToken) { if (node is MemberAccessExpressionSyntax { Expression: TypeOfExpressionSyntax typeOfExpression }) { var typeSymbol = model.GetSymbolInfo(typeOfExpression.Type, cancellationToken).Symbol.GetSymbolType(); return typeSymbol?.GenerateExpressionSyntax(); } return null; } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/EditorFeatures/CSharpTest2/Recommendations/NotKeywordRecommenderTests.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.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Recommendations { public class NotKeywordRecommenderTests : KeywordRecommenderTests { private const string InitializeObjectE = @"object e = new object(); "; [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterIsKeyword() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterNotKeyword() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is not $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterNotKeywordAndOpenParen() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is not ($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterAndKeyword_IntExpression() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is 1 and $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterAndKeyword_StrExpression() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is ""str"" and $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterAndKeyword_RelationalExpression() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is <= 1 and $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterOpenParen() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is ($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterMultipleOpenParen() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is ((($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleofCompletePattern() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is $$ 1 or 2)")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleOfCompleteQualifiedPattern() { await VerifyKeywordAsync( @"namespace N { class C { const int P = 1; void M() { if (e is $$ N.C.P or 2) { } } } }"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleOfCompleteQualifiedPattern_List() { await VerifyKeywordAsync( @"namespace N { class C { const int P = 1; void M() { if (e is $$ System.Collections.Generic.List<int> or 2) { } } } }"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleofCompletePattern_MultipleParens() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is ((($$ 1 or 2))))")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAtBeginningOfSwitchExpression() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"var result = e switch { $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAtBeginningOfSwitchStatement() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"switch (e) { case $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleOfSwitchExpression() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"var result = e switch { 1 => 2, $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleOfSwitchStatement() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"switch (e) { case 1: case $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAtBeginningOfSwitchExpression_AfterOpenParen() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"var result = e switch { ($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleOfSwitchExpression_AfterOpenParen() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"var result = e switch { 1 => 2, ($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleOfSwitchExpression_ComplexCase() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"var result = e switch { 1 and ($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAtBeginningOfSwitchStatement_AfterOpenParen() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"switch (e) { case ($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAtBeginningOfSwitchStatement_AfterOpenParen_CompleteStatement() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"switch (e) { case ($$ 1)")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInsideSubpattern() { await VerifyKeywordAsync( @"class C { public int P { get; } void M(C test) { if (test is { P: $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInsideSubpattern_ExtendedProperty() { await VerifyKeywordAsync( @"class C { public C P { get; } public int P2 { get; } void M(C test) { if (test is { P.P2: $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInsideSubpattern_AfterOpenParen() { await VerifyKeywordAsync( @"class C { public int P { get; } void M(C test) { if (test is { P: ($$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInsideSubpattern_AfterOpenParen_Complex() { await VerifyKeywordAsync( @"class C { public int P { get; } void M(C test) { if (test is { P: (1 or $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestMissingAfterConstant() { await VerifyAbsenceAsync(AddInsideMethod(InitializeObjectE + @"if (e is 1 $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestMissingAfterMultipleConstants() { await VerifyAbsenceAsync(AddInsideMethod(InitializeObjectE + @"if (e is 1 or 2 $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterType() { await VerifyAbsenceAsync(AddInsideMethod(InitializeObjectE + @"if (e is int $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterRelationalOperator() { await VerifyAbsenceAsync(AddInsideMethod(InitializeObjectE + @"if (e is >= 0 $$")); } } }
// 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.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Recommendations { public class NotKeywordRecommenderTests : KeywordRecommenderTests { private const string InitializeObjectE = @"object e = new object(); "; [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterIsKeyword() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterNotKeyword() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is not $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterNotKeywordAndOpenParen() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is not ($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterAndKeyword_IntExpression() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is 1 and $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterAndKeyword_StrExpression() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is ""str"" and $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterAndKeyword_RelationalExpression() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is <= 1 and $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterOpenParen() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is ($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterMultipleOpenParen() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is ((($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleofCompletePattern() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is $$ 1 or 2)")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleOfCompleteQualifiedPattern() { await VerifyKeywordAsync( @"namespace N { class C { const int P = 1; void M() { if (e is $$ N.C.P or 2) { } } } }"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleOfCompleteQualifiedPattern_List() { await VerifyKeywordAsync( @"namespace N { class C { const int P = 1; void M() { if (e is $$ System.Collections.Generic.List<int> or 2) { } } } }"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleofCompletePattern_MultipleParens() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"if (e is ((($$ 1 or 2))))")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAtBeginningOfSwitchExpression() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"var result = e switch { $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAtBeginningOfSwitchStatement() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"switch (e) { case $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleOfSwitchExpression() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"var result = e switch { 1 => 2, $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleOfSwitchStatement() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"switch (e) { case 1: case $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAtBeginningOfSwitchExpression_AfterOpenParen() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"var result = e switch { ($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleOfSwitchExpression_AfterOpenParen() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"var result = e switch { 1 => 2, ($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInMiddleOfSwitchExpression_ComplexCase() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"var result = e switch { 1 and ($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAtBeginningOfSwitchStatement_AfterOpenParen() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"switch (e) { case ($$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAtBeginningOfSwitchStatement_AfterOpenParen_CompleteStatement() { await VerifyKeywordAsync(AddInsideMethod(InitializeObjectE + @"switch (e) { case ($$ 1)")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInsideSubpattern() { await VerifyKeywordAsync( @"class C { public int P { get; } void M(C test) { if (test is { P: $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInsideSubpattern_ExtendedProperty() { await VerifyKeywordAsync( @"class C { public C P { get; } public int P2 { get; } void M(C test) { if (test is { P.P2: $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInsideSubpattern_AfterOpenParen() { await VerifyKeywordAsync( @"class C { public int P { get; } void M(C test) { if (test is { P: ($$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestInsideSubpattern_AfterOpenParen_Complex() { await VerifyKeywordAsync( @"class C { public int P { get; } void M(C test) { if (test is { P: (1 or $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestMissingAfterConstant() { await VerifyAbsenceAsync(AddInsideMethod(InitializeObjectE + @"if (e is 1 $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestMissingAfterMultipleConstants() { await VerifyAbsenceAsync(AddInsideMethod(InitializeObjectE + @"if (e is 1 or 2 $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterType() { await VerifyAbsenceAsync(AddInsideMethod(InitializeObjectE + @"if (e is int $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public async Task TestAfterRelationalOperator() { await VerifyAbsenceAsync(AddInsideMethod(InitializeObjectE + @"if (e is >= 0 $$")); } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/Core/Portable/PEWriter/AssemblyReferenceAlias.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.Diagnostics; using Roslyn.Utilities; namespace Microsoft.Cci { /// <summary> /// Represents an assembly reference with an alias (C# only, /r:Name=Reference on command line). /// </summary> internal struct AssemblyReferenceAlias { /// <summary> /// An alias for the global namespace of the assembly. /// </summary> public readonly string Name; /// <summary> /// The assembly reference. /// </summary> public readonly IAssemblyReference Assembly; internal AssemblyReferenceAlias(string name, IAssemblyReference assembly) { RoslynDebug.Assert(name != null); RoslynDebug.Assert(assembly != null); Name = name; Assembly = assembly; } } }
// 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.Diagnostics; using Roslyn.Utilities; namespace Microsoft.Cci { /// <summary> /// Represents an assembly reference with an alias (C# only, /r:Name=Reference on command line). /// </summary> internal struct AssemblyReferenceAlias { /// <summary> /// An alias for the global namespace of the assembly. /// </summary> public readonly string Name; /// <summary> /// The assembly reference. /// </summary> public readonly IAssemblyReference Assembly; internal AssemblyReferenceAlias(string name, IAssemblyReference assembly) { RoslynDebug.Assert(name != null); RoslynDebug.Assert(assembly != null); Name = name; Assembly = assembly; } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/CSharp/Portable/Symbols/MissingModuleSymbol.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.Runtime.InteropServices; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; using System.Diagnostics; using System.Reflection.PortableExecutable; namespace Microsoft.CodeAnalysis.CSharp.Symbols { /// <summary> /// A <see cref="MissingModuleSymbol"/> is a special kind of <see cref="ModuleSymbol"/> that represents /// a module that couldn't be found. /// </summary> internal class MissingModuleSymbol : ModuleSymbol { protected readonly AssemblySymbol assembly; protected readonly int ordinal; protected readonly MissingNamespaceSymbol globalNamespace; public MissingModuleSymbol(AssemblySymbol assembly, int ordinal) { Debug.Assert((object)assembly != null); Debug.Assert(ordinal >= -1); this.assembly = assembly; this.ordinal = ordinal; globalNamespace = new MissingNamespaceSymbol(this); } internal override int Ordinal { get { return ordinal; } } internal override Machine Machine { get { return Machine.I386; } } internal override bool Bit32Required { get { return false; } } internal sealed override bool IsMissing { get { return true; } } public override string Name { get { // Once we switch to a non-hardcoded name, GetHashCode/Equals should be adjusted. return "<Missing Module>"; } } public override AssemblySymbol ContainingAssembly { get { return assembly; } } public override Symbol ContainingSymbol { get { return assembly; } } public override NamespaceSymbol GlobalNamespace { get { return globalNamespace; } } public override int GetHashCode() { return assembly.GetHashCode(); } public override bool Equals(Symbol obj, TypeCompareKind compareKind) { if (ReferenceEquals(this, obj)) { return true; } MissingModuleSymbol other = obj as MissingModuleSymbol; return (object)other != null && assembly.Equals(other.assembly, compareKind); } public override ImmutableArray<Location> Locations { get { return ImmutableArray<Location>.Empty; } } internal override ICollection<string> NamespaceNames { get { return SpecializedCollections.EmptyCollection<string>(); } } internal override ICollection<string> TypeNames { get { return SpecializedCollections.EmptyCollection<string>(); } } internal override NamedTypeSymbol LookupTopLevelMetadataType(ref MetadataTypeName emittedName) { return new MissingMetadataTypeSymbol.TopLevel(this, ref emittedName); } internal override ImmutableArray<AssemblyIdentity> GetReferencedAssemblies() { return ImmutableArray<AssemblyIdentity>.Empty; } internal override ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols() { return ImmutableArray<AssemblySymbol>.Empty; } internal override void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly) { throw ExceptionUtilities.Unreachable; } internal override bool HasUnifiedReferences { get { return false; } } internal override bool GetUnificationUseSiteDiagnostic(ref DiagnosticInfo result, TypeSymbol dependentType) { throw ExceptionUtilities.Unreachable; } internal override bool HasAssemblyCompilationRelaxationsAttribute { get { return false; } } internal override bool HasAssemblyRuntimeCompatibilityAttribute { get { return false; } } internal override CharSet? DefaultMarshallingCharSet { get { return null; } } public override ModuleMetadata GetMetadata() => null; public sealed override bool AreLocalsZeroed { get { throw ExceptionUtilities.Unreachable; } } } internal sealed class MissingModuleSymbolWithName : MissingModuleSymbol { private readonly string _name; public MissingModuleSymbolWithName(AssemblySymbol assembly, string name) : base(assembly, ordinal: -1) { Debug.Assert(name != null); _name = name; } public override string Name { get { return _name; } } public override int GetHashCode() { return Hash.Combine(assembly.GetHashCode(), StringComparer.OrdinalIgnoreCase.GetHashCode(_name)); } public override bool Equals(Symbol obj, TypeCompareKind compareKind) { if (ReferenceEquals(this, obj)) { return true; } MissingModuleSymbolWithName other = obj as MissingModuleSymbolWithName; return (object)other != null && assembly.Equals(other.assembly, compareKind) && string.Equals(_name, other._name, StringComparison.OrdinalIgnoreCase); } } }
// 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.Runtime.InteropServices; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; using Roslyn.Utilities; using System.Diagnostics; using System.Reflection.PortableExecutable; namespace Microsoft.CodeAnalysis.CSharp.Symbols { /// <summary> /// A <see cref="MissingModuleSymbol"/> is a special kind of <see cref="ModuleSymbol"/> that represents /// a module that couldn't be found. /// </summary> internal class MissingModuleSymbol : ModuleSymbol { protected readonly AssemblySymbol assembly; protected readonly int ordinal; protected readonly MissingNamespaceSymbol globalNamespace; public MissingModuleSymbol(AssemblySymbol assembly, int ordinal) { Debug.Assert((object)assembly != null); Debug.Assert(ordinal >= -1); this.assembly = assembly; this.ordinal = ordinal; globalNamespace = new MissingNamespaceSymbol(this); } internal override int Ordinal { get { return ordinal; } } internal override Machine Machine { get { return Machine.I386; } } internal override bool Bit32Required { get { return false; } } internal sealed override bool IsMissing { get { return true; } } public override string Name { get { // Once we switch to a non-hardcoded name, GetHashCode/Equals should be adjusted. return "<Missing Module>"; } } public override AssemblySymbol ContainingAssembly { get { return assembly; } } public override Symbol ContainingSymbol { get { return assembly; } } public override NamespaceSymbol GlobalNamespace { get { return globalNamespace; } } public override int GetHashCode() { return assembly.GetHashCode(); } public override bool Equals(Symbol obj, TypeCompareKind compareKind) { if (ReferenceEquals(this, obj)) { return true; } MissingModuleSymbol other = obj as MissingModuleSymbol; return (object)other != null && assembly.Equals(other.assembly, compareKind); } public override ImmutableArray<Location> Locations { get { return ImmutableArray<Location>.Empty; } } internal override ICollection<string> NamespaceNames { get { return SpecializedCollections.EmptyCollection<string>(); } } internal override ICollection<string> TypeNames { get { return SpecializedCollections.EmptyCollection<string>(); } } internal override NamedTypeSymbol LookupTopLevelMetadataType(ref MetadataTypeName emittedName) { return new MissingMetadataTypeSymbol.TopLevel(this, ref emittedName); } internal override ImmutableArray<AssemblyIdentity> GetReferencedAssemblies() { return ImmutableArray<AssemblyIdentity>.Empty; } internal override ImmutableArray<AssemblySymbol> GetReferencedAssemblySymbols() { return ImmutableArray<AssemblySymbol>.Empty; } internal override void SetReferences(ModuleReferences<AssemblySymbol> moduleReferences, SourceAssemblySymbol originatingSourceAssemblyDebugOnly) { throw ExceptionUtilities.Unreachable; } internal override bool HasUnifiedReferences { get { return false; } } internal override bool GetUnificationUseSiteDiagnostic(ref DiagnosticInfo result, TypeSymbol dependentType) { throw ExceptionUtilities.Unreachable; } internal override bool HasAssemblyCompilationRelaxationsAttribute { get { return false; } } internal override bool HasAssemblyRuntimeCompatibilityAttribute { get { return false; } } internal override CharSet? DefaultMarshallingCharSet { get { return null; } } public override ModuleMetadata GetMetadata() => null; public sealed override bool AreLocalsZeroed { get { throw ExceptionUtilities.Unreachable; } } } internal sealed class MissingModuleSymbolWithName : MissingModuleSymbol { private readonly string _name; public MissingModuleSymbolWithName(AssemblySymbol assembly, string name) : base(assembly, ordinal: -1) { Debug.Assert(name != null); _name = name; } public override string Name { get { return _name; } } public override int GetHashCode() { return Hash.Combine(assembly.GetHashCode(), StringComparer.OrdinalIgnoreCase.GetHashCode(_name)); } public override bool Equals(Symbol obj, TypeCompareKind compareKind) { if (ReferenceEquals(this, obj)) { return true; } MissingModuleSymbolWithName other = obj as MissingModuleSymbolWithName; return (object)other != null && assembly.Equals(other.assembly, compareKind) && string.Equals(_name, other._name, StringComparison.OrdinalIgnoreCase); } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/EditorFeatures/CSharpTest/SymbolKey/SymbolKeyTests.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.Tasks; using System.Xml.Linq; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.SymbolId { [UseExportProvider] public class SymbolKeyTests { [Fact, WorkItem(45437, "https://github.com/dotnet/roslyn/issues/45437")] public async Task TestGenericsAndNullability() { var typeSource = @" #nullable enable public sealed class ConditionalWeakTableTest<TKey, TValue> /*: IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable*/ where TKey : class where TValue : class { public ConditionalWeakTable() { } public void Add(TKey key, TValue value) { } public void AddOrUpdate(TKey key, TValue value) { } public void Clear() { } public TValue GetOrCreateValue(TKey key) => default; public TValue GetValue(TKey key, ConditionalWeakTableTest<TKey, TValue>.CreateValueCallback createValueCallback) => default; public bool Remove(TKey key) => false; public delegate TValue CreateValueCallback(TKey key); }".Replace("<", "&lt;").Replace(">", "&gt;"); var workspaceXml = @$" <Workspace> <Project Language=""C#""> <CompilationOptions Nullable=""Enable""/> <Document FilePath=""C.cs""> {typeSource} </Document> </Project> </Workspace> "; using var workspace = TestWorkspace.Create(workspaceXml); var solution = workspace.CurrentSolution; var project = solution.Projects.Single(); var compilation = await project.GetCompilationAsync(); var type = compilation.GetTypeByMetadataName("ConditionalWeakTableTest`2"); var method = type.GetMembers("GetValue").OfType<IMethodSymbol>().Single(); var callbackParamater = method.Parameters[1]; var parameterType = callbackParamater.Type; Assert.Equal("global::ConditionalWeakTableTest<TKey!, TValue!>.CreateValueCallback!", parameterType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.IncludeNotNullableReferenceTypeModifier))); var symbolKey = SymbolKey.Create(method); var resolved = symbolKey.Resolve(compilation).Symbol; Assert.Equal(method, resolved); } [Fact] [WorkItem(1178861, "https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1178861")] [WorkItem(1192188, "https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1192188")] [WorkItem(1192486, "https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1192486")] public async Task ResolveBodySymbolsInMultiProjectReferencesToOriginalProjectAsync() { var random = new Random(Seed: 0); // try to trigger race caused by ability to find reference in multiple potential projects depending on what // order things are in in internal collections. This test was always able to hit the issue prior to the fix // going in, but does not hit it with the fix. While this doesn't prove the race is gone, it strongly // implies it. for (var i = 0; i < 100; i++) { using var workspace = GetWorkspace(); var solution = workspace.CurrentSolution; var bodyProject = solution.Projects.Single(p => p.AssemblyName == "BodyProject"); var referenceProject = solution.Projects.Single(p => p.AssemblyName == "ReferenceProject"); var (bodyCompilation, referenceCompilation) = await GetCompilationsAsync(bodyProject, referenceProject); var (bodyLocalSymbol, referenceAssemblySymbol) = await GetSymbolsAsync(bodyCompilation, referenceCompilation); var (bodyLocalProjectId, referenceAssemblyProjectId) = GetOriginatingProjectIds(solution, bodyLocalSymbol, referenceAssemblySymbol); Assert.True(bodyProject.Id == bodyLocalProjectId, $"Expected {bodyProject.Id} == {bodyLocalProjectId}. {i}"); Assert.Equal(referenceProject.Id, referenceAssemblyProjectId); } return; TestWorkspace GetWorkspace() { var bodyProject = @" <Project Language=""C#"" AssemblyName=""BodyProject"" CommonReferences=""true""> <Document> class Program { void M() { int local; } } </Document> </Project>"; var referenceProject = @" <Project Language=""C#"" AssemblyName=""ReferenceProject"" CommonReferences=""true""> <ProjectReference>BodyProject</ProjectReference> <Document> </Document> </Project>"; // Randomize the order of the projects in the workspace. if (random.Next() % 2 == 0) { return TestWorkspace.CreateWorkspace(XElement.Parse($@" <Workspace> {bodyProject} {referenceProject} </Workspace> ")); } else { return TestWorkspace.CreateWorkspace(XElement.Parse($@" <Workspace> {referenceProject} {bodyProject} </Workspace> ")); } } async Task<(Compilation bodyCompilation, Compilation referenceCompilation)> GetCompilationsAsync(Project bodyProject, Project referenceProject) { // Randomize the order that we get compilations (and thus populate our internal caches). Compilation bodyCompilation, referenceCompilation; if (random.Next() % 2 == 0) { bodyCompilation = await bodyProject.GetCompilationAsync(); referenceCompilation = await referenceProject.GetCompilationAsync(); } else { referenceCompilation = await referenceProject.GetCompilationAsync(); bodyCompilation = await bodyProject.GetCompilationAsync(); } return (bodyCompilation, referenceCompilation); } async Task<(ISymbol bodyLocalSymbol, ISymbol referenceAssemblySymbol)> GetSymbolsAsync(Compilation bodyCompilation, Compilation referenceCompilation) { // Randomize the order that we get symbols from each project. ISymbol bodyLocalSymbol, referenceAssemblySymbol; if (random.Next() % 2 == 0) { bodyLocalSymbol = await GetBodyLocalSymbol(bodyCompilation); referenceAssemblySymbol = referenceCompilation.Assembly; } else { referenceAssemblySymbol = referenceCompilation.Assembly; bodyLocalSymbol = await GetBodyLocalSymbol(bodyCompilation); } return (bodyLocalSymbol, referenceAssemblySymbol); } async Task<ILocalSymbol> GetBodyLocalSymbol(Compilation bodyCompilation) { var tree = bodyCompilation.SyntaxTrees.Single(); var semanticModel = bodyCompilation.GetSemanticModel(tree); var root = await tree.GetRootAsync(); var varDecl = root.DescendantNodesAndSelf().OfType<VariableDeclaratorSyntax>().Single(); var local = (ILocalSymbol)semanticModel.GetDeclaredSymbol(varDecl); Assert.NotNull(local); return local; } (ProjectId bodyLocalProjectId, ProjectId referenceAssemblyProjectId) GetOriginatingProjectIds(Solution solution, ISymbol bodyLocalSymbol, ISymbol referenceAssemblySymbol) { // Randomize the order that we get try to get the originating project for the symbol. ProjectId bodyLocalProjectId, referenceAssemblyProjectId; if (random.Next() % 2 == 0) { bodyLocalProjectId = solution.GetOriginatingProjectId(bodyLocalSymbol); referenceAssemblyProjectId = solution.GetOriginatingProjectId(referenceAssemblySymbol); } else { referenceAssemblyProjectId = solution.GetOriginatingProjectId(referenceAssemblySymbol); bodyLocalProjectId = solution.GetOriginatingProjectId(bodyLocalSymbol); } return (bodyLocalProjectId, referenceAssemblyProjectId); } } } }
// 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.Tasks; using System.Xml.Linq; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.SymbolId { [UseExportProvider] public class SymbolKeyTests { [Fact, WorkItem(45437, "https://github.com/dotnet/roslyn/issues/45437")] public async Task TestGenericsAndNullability() { var typeSource = @" #nullable enable public sealed class ConditionalWeakTableTest<TKey, TValue> /*: IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable*/ where TKey : class where TValue : class { public ConditionalWeakTable() { } public void Add(TKey key, TValue value) { } public void AddOrUpdate(TKey key, TValue value) { } public void Clear() { } public TValue GetOrCreateValue(TKey key) => default; public TValue GetValue(TKey key, ConditionalWeakTableTest<TKey, TValue>.CreateValueCallback createValueCallback) => default; public bool Remove(TKey key) => false; public delegate TValue CreateValueCallback(TKey key); }".Replace("<", "&lt;").Replace(">", "&gt;"); var workspaceXml = @$" <Workspace> <Project Language=""C#""> <CompilationOptions Nullable=""Enable""/> <Document FilePath=""C.cs""> {typeSource} </Document> </Project> </Workspace> "; using var workspace = TestWorkspace.Create(workspaceXml); var solution = workspace.CurrentSolution; var project = solution.Projects.Single(); var compilation = await project.GetCompilationAsync(); var type = compilation.GetTypeByMetadataName("ConditionalWeakTableTest`2"); var method = type.GetMembers("GetValue").OfType<IMethodSymbol>().Single(); var callbackParamater = method.Parameters[1]; var parameterType = callbackParamater.Type; Assert.Equal("global::ConditionalWeakTableTest<TKey!, TValue!>.CreateValueCallback!", parameterType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat.WithMiscellaneousOptions(SymbolDisplayMiscellaneousOptions.IncludeNotNullableReferenceTypeModifier))); var symbolKey = SymbolKey.Create(method); var resolved = symbolKey.Resolve(compilation).Symbol; Assert.Equal(method, resolved); } [Fact] [WorkItem(1178861, "https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1178861")] [WorkItem(1192188, "https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1192188")] [WorkItem(1192486, "https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1192486")] public async Task ResolveBodySymbolsInMultiProjectReferencesToOriginalProjectAsync() { var random = new Random(Seed: 0); // try to trigger race caused by ability to find reference in multiple potential projects depending on what // order things are in in internal collections. This test was always able to hit the issue prior to the fix // going in, but does not hit it with the fix. While this doesn't prove the race is gone, it strongly // implies it. for (var i = 0; i < 100; i++) { using var workspace = GetWorkspace(); var solution = workspace.CurrentSolution; var bodyProject = solution.Projects.Single(p => p.AssemblyName == "BodyProject"); var referenceProject = solution.Projects.Single(p => p.AssemblyName == "ReferenceProject"); var (bodyCompilation, referenceCompilation) = await GetCompilationsAsync(bodyProject, referenceProject); var (bodyLocalSymbol, referenceAssemblySymbol) = await GetSymbolsAsync(bodyCompilation, referenceCompilation); var (bodyLocalProjectId, referenceAssemblyProjectId) = GetOriginatingProjectIds(solution, bodyLocalSymbol, referenceAssemblySymbol); Assert.True(bodyProject.Id == bodyLocalProjectId, $"Expected {bodyProject.Id} == {bodyLocalProjectId}. {i}"); Assert.Equal(referenceProject.Id, referenceAssemblyProjectId); } return; TestWorkspace GetWorkspace() { var bodyProject = @" <Project Language=""C#"" AssemblyName=""BodyProject"" CommonReferences=""true""> <Document> class Program { void M() { int local; } } </Document> </Project>"; var referenceProject = @" <Project Language=""C#"" AssemblyName=""ReferenceProject"" CommonReferences=""true""> <ProjectReference>BodyProject</ProjectReference> <Document> </Document> </Project>"; // Randomize the order of the projects in the workspace. if (random.Next() % 2 == 0) { return TestWorkspace.CreateWorkspace(XElement.Parse($@" <Workspace> {bodyProject} {referenceProject} </Workspace> ")); } else { return TestWorkspace.CreateWorkspace(XElement.Parse($@" <Workspace> {referenceProject} {bodyProject} </Workspace> ")); } } async Task<(Compilation bodyCompilation, Compilation referenceCompilation)> GetCompilationsAsync(Project bodyProject, Project referenceProject) { // Randomize the order that we get compilations (and thus populate our internal caches). Compilation bodyCompilation, referenceCompilation; if (random.Next() % 2 == 0) { bodyCompilation = await bodyProject.GetCompilationAsync(); referenceCompilation = await referenceProject.GetCompilationAsync(); } else { referenceCompilation = await referenceProject.GetCompilationAsync(); bodyCompilation = await bodyProject.GetCompilationAsync(); } return (bodyCompilation, referenceCompilation); } async Task<(ISymbol bodyLocalSymbol, ISymbol referenceAssemblySymbol)> GetSymbolsAsync(Compilation bodyCompilation, Compilation referenceCompilation) { // Randomize the order that we get symbols from each project. ISymbol bodyLocalSymbol, referenceAssemblySymbol; if (random.Next() % 2 == 0) { bodyLocalSymbol = await GetBodyLocalSymbol(bodyCompilation); referenceAssemblySymbol = referenceCompilation.Assembly; } else { referenceAssemblySymbol = referenceCompilation.Assembly; bodyLocalSymbol = await GetBodyLocalSymbol(bodyCompilation); } return (bodyLocalSymbol, referenceAssemblySymbol); } async Task<ILocalSymbol> GetBodyLocalSymbol(Compilation bodyCompilation) { var tree = bodyCompilation.SyntaxTrees.Single(); var semanticModel = bodyCompilation.GetSemanticModel(tree); var root = await tree.GetRootAsync(); var varDecl = root.DescendantNodesAndSelf().OfType<VariableDeclaratorSyntax>().Single(); var local = (ILocalSymbol)semanticModel.GetDeclaredSymbol(varDecl); Assert.NotNull(local); return local; } (ProjectId bodyLocalProjectId, ProjectId referenceAssemblyProjectId) GetOriginatingProjectIds(Solution solution, ISymbol bodyLocalSymbol, ISymbol referenceAssemblySymbol) { // Randomize the order that we get try to get the originating project for the symbol. ProjectId bodyLocalProjectId, referenceAssemblyProjectId; if (random.Next() % 2 == 0) { bodyLocalProjectId = solution.GetOriginatingProjectId(bodyLocalSymbol); referenceAssemblyProjectId = solution.GetOriginatingProjectId(referenceAssemblySymbol); } else { referenceAssemblyProjectId = solution.GetOriginatingProjectId(referenceAssemblySymbol); bodyLocalProjectId = solution.GetOriginatingProjectId(bodyLocalSymbol); } return (bodyLocalProjectId, referenceAssemblyProjectId); } } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Workspaces/Core/Portable/Workspace/Host/PersistentStorage/DefaultPersistentStorageServiceFactory.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.Composition; using Microsoft.CodeAnalysis.Host.Mef; namespace Microsoft.CodeAnalysis.Host { /// <summary> /// A service that enables storing and retrieving of information associated with solutions, /// projects or documents across runtime sessions. /// </summary> [ExportWorkspaceServiceFactory(typeof(IPersistentStorageService), ServiceLayer.Default), Shared] internal class DefaultPersistentStorageServiceFactory : IWorkspaceServiceFactory { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public DefaultPersistentStorageServiceFactory() { } public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices) => NoOpPersistentStorageService.GetOrThrow(workspaceServices.Workspace.Options); } }
// 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.Composition; using Microsoft.CodeAnalysis.Host.Mef; namespace Microsoft.CodeAnalysis.Host { /// <summary> /// A service that enables storing and retrieving of information associated with solutions, /// projects or documents across runtime sessions. /// </summary> [ExportWorkspaceServiceFactory(typeof(IPersistentStorageService), ServiceLayer.Default), Shared] internal class DefaultPersistentStorageServiceFactory : IWorkspaceServiceFactory { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public DefaultPersistentStorageServiceFactory() { } public IWorkspaceService CreateService(HostWorkspaceServices workspaceServices) => NoOpPersistentStorageService.GetOrThrow(workspaceServices.Workspace.Options); } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/Test/Core/Compilation/OperationTreeVerifier.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.Linq; using System.Text; using System.Text.RegularExpressions; using Microsoft.CodeAnalysis.FlowAnalysis; using Microsoft.CodeAnalysis.Operations; using Roslyn.Test.Utilities; using Roslyn.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Test.Utilities { public class OperationTreeVerifier : OperationWalker { protected readonly Compilation _compilation; protected readonly IOperation _root; protected readonly StringBuilder _builder; private readonly Dictionary<SyntaxNode, IOperation> _explicitNodeMap; private readonly Dictionary<ILabelSymbol, uint> _labelIdMap; private const string indent = " "; protected string _currentIndent; private bool _pendingIndent; private uint _currentLabelId = 0; public OperationTreeVerifier(Compilation compilation, IOperation root, int initialIndent) { _compilation = compilation; _root = root; _builder = new StringBuilder(); _currentIndent = new string(' ', initialIndent); _pendingIndent = true; _explicitNodeMap = new Dictionary<SyntaxNode, IOperation>(); _labelIdMap = new Dictionary<ILabelSymbol, uint>(); } public static string GetOperationTree(Compilation compilation, IOperation operation, int initialIndent = 0) { var walker = new OperationTreeVerifier(compilation, operation, initialIndent); walker.Visit(operation); return walker._builder.ToString(); } public static void Verify(string expectedOperationTree, string actualOperationTree) { char[] newLineChars = Environment.NewLine.ToCharArray(); string actual = actualOperationTree.Trim(newLineChars); actual = actual.Replace(" \n", "\n").Replace(" \r", "\r"); expectedOperationTree = expectedOperationTree.Trim(newLineChars); expectedOperationTree = expectedOperationTree.Replace("\r\n", "\n").Replace(" \n", "\n").Replace("\n", Environment.NewLine); AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedOperationTree, actual); } #region Logging helpers private void LogPatternPropertiesAndNewLine(IPatternOperation operation) { LogPatternProperties(operation); LogString(")"); LogNewLine(); } private void LogPatternProperties(IPatternOperation operation) { LogCommonProperties(operation); LogString(" ("); LogType(operation.InputType, $"{nameof(operation.InputType)}"); LogString(", "); LogType(operation.NarrowedType, $"{nameof(operation.NarrowedType)}"); } private void LogCommonPropertiesAndNewLine(IOperation operation) { LogCommonProperties(operation); LogNewLine(); } private void LogCommonProperties(IOperation operation) { LogString(" ("); // Kind LogString($"{nameof(OperationKind)}.{GetKindText(operation.Kind)}"); // Type LogString(", "); LogType(operation.Type); // ConstantValue if (operation.ConstantValue.HasValue) { LogString(", "); LogConstant(operation.ConstantValue); } // IsInvalid if (operation.HasErrors(_compilation)) { LogString(", IsInvalid"); } // IsImplicit if (operation.IsImplicit) { LogString(", IsImplicit"); } LogString(")"); // Syntax Assert.NotNull(operation.Syntax); LogString($" (Syntax: {GetSnippetFromSyntax(operation.Syntax)})"); // Some of these kinds were inconsistent in the first release, and in standardizing them the // string output isn't guaranteed to be one or the other. So standardize manually. string GetKindText(OperationKind kind) { switch (kind) { case OperationKind.Unary: return "Unary"; case OperationKind.Binary: return "Binary"; case OperationKind.TupleBinary: return "TupleBinary"; case OperationKind.MethodBody: return "MethodBody"; case OperationKind.ConstructorBody: return "ConstructorBody"; default: return kind.ToString(); } } } private static string GetSnippetFromSyntax(SyntaxNode syntax) { if (syntax == null) { return "null"; } var text = syntax.ToString().Trim(Environment.NewLine.ToCharArray()); var lines = text.Split(new[] { Environment.NewLine, "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).Select(l => l.Trim()).ToArray(); if (lines.Length <= 1 && text.Length < 25) { return $"'{text}'"; } const int maxTokenLength = 11; var firstLine = lines[0]; var lastLine = lines[lines.Length - 1]; var prefix = firstLine.Length <= maxTokenLength ? firstLine : firstLine.Substring(0, maxTokenLength); var suffix = lastLine.Length <= maxTokenLength ? lastLine : lastLine.Substring(lastLine.Length - maxTokenLength, maxTokenLength); return $"'{prefix} ... {suffix}'"; } private static bool ShouldLogType(IOperation operation) { var operationKind = (int)operation.Kind; // Expressions if (operationKind >= 0x100 && operationKind < 0x400) { return true; } return false; } protected void LogString(string str) { if (_pendingIndent) { str = _currentIndent + str; _pendingIndent = false; } _builder.Append(str); } protected void LogNewLine() { LogString(Environment.NewLine); _pendingIndent = true; } private void Indent() { _currentIndent += indent; } private void Unindent() { _currentIndent = _currentIndent.Substring(indent.Length); } private void LogConstant(Optional<object> constant, string header = "Constant") { if (constant.HasValue) { LogConstant(constant.Value, header); } } private static string ConstantToString(object constant) { switch (constant) { case null: return "null"; case string s: s = s.Replace("\"", "\"\""); return @"""" + s + @""""; case IFormattable formattable: return formattable.ToString(null, CultureInfo.InvariantCulture).Replace("\"", "\"\""); default: return constant.ToString().Replace("\"", "\"\""); } } private void LogConstant(object constant, string header = "Constant") { string valueStr = ConstantToString(constant); LogString($"{header}: {valueStr}"); } private void LogConversion(CommonConversion conversion, string header = "Conversion") { var exists = FormatBoolProperty(nameof(conversion.Exists), conversion.Exists); var isIdentity = FormatBoolProperty(nameof(conversion.IsIdentity), conversion.IsIdentity); var isNumeric = FormatBoolProperty(nameof(conversion.IsNumeric), conversion.IsNumeric); var isReference = FormatBoolProperty(nameof(conversion.IsReference), conversion.IsReference); var isUserDefined = FormatBoolProperty(nameof(conversion.IsUserDefined), conversion.IsUserDefined); LogString($"{header}: {nameof(CommonConversion)} ({exists}, {isIdentity}, {isNumeric}, {isReference}, {isUserDefined}) ("); LogSymbol(conversion.MethodSymbol, nameof(conversion.MethodSymbol)); LogString(")"); } private void LogSymbol(ISymbol symbol, string header, bool logDisplayString = true) { if (!string.IsNullOrEmpty(header)) { LogString($"{header}: "); } var symbolStr = symbol != null ? (logDisplayString ? symbol.ToTestDisplayString() : symbol.Name) : "null"; LogString($"{symbolStr}"); } private void LogType(ITypeSymbol type, string header = "Type") { var typeStr = type != null ? type.ToTestDisplayString() : "null"; LogString($"{header}: {typeStr}"); } private uint GetLabelId(ILabelSymbol symbol) { if (_labelIdMap.ContainsKey(symbol)) { return _labelIdMap[symbol]; } var id = _currentLabelId++; _labelIdMap[symbol] = id; return id; } private static string FormatBoolProperty(string propertyName, bool value) => $"{propertyName}: {(value ? "True" : "False")}"; #endregion #region Visit methods public override void Visit(IOperation operation) { if (operation == null) { Indent(); LogString("null"); LogNewLine(); Unindent(); return; } if (!operation.IsImplicit) { try { _explicitNodeMap.Add(operation.Syntax, operation); } catch (ArgumentException) { Assert.False(true, $"Duplicate explicit node for syntax ({operation.Syntax.RawKind}): {operation.Syntax.ToString()}"); } } Assert.True(operation.Type == null || !operation.MustHaveNullType(), $"Unexpected non-null type: {operation.Type}"); if (operation != _root) { Indent(); } base.Visit(operation); if (operation != _root) { Unindent(); } Assert.True(operation.Syntax.Language == operation.Language); } private void Visit(IOperation operation, string header) { Debug.Assert(!string.IsNullOrEmpty(header)); Indent(); LogString($"{header}: "); LogNewLine(); Visit(operation); Unindent(); } private void VisitArrayCommon<T>(ImmutableArray<T> list, string header, bool logElementCount, bool logNullForDefault, Action<T> arrayElementVisitor) { Debug.Assert(!string.IsNullOrEmpty(header)); Indent(); if (!list.IsDefaultOrEmpty) { var elementCount = logElementCount ? $"({list.Count()})" : string.Empty; LogString($"{header}{elementCount}:"); LogNewLine(); Indent(); foreach (var element in list) { arrayElementVisitor(element); } Unindent(); } else { var suffix = logNullForDefault && list.IsDefault ? ": null" : "(0)"; LogString($"{header}{suffix}"); LogNewLine(); } Unindent(); } internal void VisitSymbolArrayElement(ISymbol element) { LogSymbol(element, header: "Symbol"); LogNewLine(); } internal void VisitStringArrayElement(string element) { var valueStr = element != null ? element.ToString() : "null"; valueStr = @"""" + valueStr + @""""; LogString(valueStr); LogNewLine(); } internal void VisitRefKindArrayElement(RefKind element) { LogString(element.ToString()); LogNewLine(); } private void VisitChildren(IOperation operation) { Debug.Assert(operation.Children.All(o => o != null)); var children = operation.Children.ToImmutableArray(); if (!children.IsEmpty || operation.Kind != OperationKind.None) { VisitArray(children, "Children", logElementCount: true); } } private void VisitArray<T>(ImmutableArray<T> list, string header, bool logElementCount, bool logNullForDefault = false) where T : IOperation { VisitArrayCommon(list, header, logElementCount, logNullForDefault, o => Visit(o)); } private void VisitArray(ImmutableArray<ISymbol> list, string header, bool logElementCount, bool logNullForDefault = false) { VisitArrayCommon(list, header, logElementCount, logNullForDefault, VisitSymbolArrayElement); } private void VisitArray(ImmutableArray<string> list, string header, bool logElementCount, bool logNullForDefault = false) { VisitArrayCommon(list, header, logElementCount, logNullForDefault, VisitStringArrayElement); } private void VisitArray(ImmutableArray<RefKind> list, string header, bool logElementCount, bool logNullForDefault = false) { VisitArrayCommon(list, header, logElementCount, logNullForDefault, VisitRefKindArrayElement); } private void VisitInstance(IOperation instance) { Visit(instance, header: "Instance Receiver"); } internal override void VisitNoneOperation(IOperation operation) { LogString("IOperation: "); LogCommonPropertiesAndNewLine(operation); VisitChildren(operation); } public override void VisitBlock(IBlockOperation operation) { LogString(nameof(IBlockOperation)); var statementsStr = $"{operation.Operations.Length} statements"; var localStr = !operation.Locals.IsEmpty ? $", {operation.Locals.Length} locals" : string.Empty; LogString($" ({statementsStr}{localStr})"); LogCommonPropertiesAndNewLine(operation); if (operation.Operations.IsEmpty) { return; } LogLocals(operation.Locals); base.VisitBlock(operation); } public override void VisitVariableDeclarationGroup(IVariableDeclarationGroupOperation operation) { var variablesCountStr = $"{operation.Declarations.Length} declarations"; LogString($"{nameof(IVariableDeclarationGroupOperation)} ({variablesCountStr})"); LogCommonPropertiesAndNewLine(operation); base.VisitVariableDeclarationGroup(operation); } public override void VisitUsingDeclaration(IUsingDeclarationOperation operation) { LogString($"{nameof(IUsingDeclarationOperation)}"); LogString($"(IsAsynchronous: {operation.IsAsynchronous}"); var disposeMethod = ((UsingDeclarationOperation)operation).DisposeInfo.DisposeMethod; if (disposeMethod is object) { LogSymbol(disposeMethod, ", DisposeMethod"); } LogString(")"); LogCommonPropertiesAndNewLine(operation); Visit(operation.DeclarationGroup, "DeclarationGroup"); var disposeArgs = ((UsingDeclarationOperation)operation).DisposeInfo.DisposeArguments; if (!disposeArgs.IsDefaultOrEmpty) { VisitArray(disposeArgs, "DisposeArguments", logElementCount: true); } } public override void VisitVariableDeclarator(IVariableDeclaratorOperation operation) { LogString($"{nameof(IVariableDeclaratorOperation)} ("); LogSymbol(operation.Symbol, "Symbol"); LogString(")"); LogCommonPropertiesAndNewLine(operation); Visit(operation.Initializer, "Initializer"); if (!operation.IgnoredArguments.IsEmpty) { VisitArray(operation.IgnoredArguments, "IgnoredArguments", logElementCount: true); } } public override void VisitVariableDeclaration(IVariableDeclarationOperation operation) { var variableCount = operation.Declarators.Length; LogString($"{nameof(IVariableDeclarationOperation)} ({variableCount} declarators)"); LogCommonPropertiesAndNewLine(operation); if (!operation.IgnoredDimensions.IsEmpty) { VisitArray(operation.IgnoredDimensions, "Ignored Dimensions", true); } VisitArray(operation.Declarators, "Declarators", false); Visit(operation.Initializer, "Initializer"); } public override void VisitSwitch(ISwitchOperation operation) { var caseCountStr = $"{operation.Cases.Length} cases"; var exitLabelStr = $", Exit Label Id: {GetLabelId(operation.ExitLabel)}"; LogString($"{nameof(ISwitchOperation)} ({caseCountStr}{exitLabelStr})"); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value, header: "Switch expression"); LogLocals(operation.Locals); foreach (ISwitchCaseOperation section in operation.Cases) { foreach (ICaseClauseOperation c in section.Clauses) { if (c.Label != null) { GetLabelId(c.Label); } } } VisitArray(operation.Cases, "Sections", logElementCount: false); } public override void VisitSwitchCase(ISwitchCaseOperation operation) { var caseClauseCountStr = $"{operation.Clauses.Length} case clauses"; var statementCountStr = $"{operation.Body.Length} statements"; LogString($"{nameof(ISwitchCaseOperation)} ({caseClauseCountStr}, {statementCountStr})"); LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); Indent(); VisitArray(operation.Clauses, "Clauses", logElementCount: false); VisitArray(operation.Body, "Body", logElementCount: false); Unindent(); _ = ((SwitchCaseOperation)operation).Condition; } public override void VisitWhileLoop(IWhileLoopOperation operation) { LogString(nameof(IWhileLoopOperation)); LogString($" (ConditionIsTop: {operation.ConditionIsTop}, ConditionIsUntil: {operation.ConditionIsUntil})"); LogLoopStatementHeader(operation); Visit(operation.Condition, "Condition"); Visit(operation.Body, "Body"); Visit(operation.IgnoredCondition, "IgnoredCondition"); } public override void VisitForLoop(IForLoopOperation operation) { LogString(nameof(IForLoopOperation)); LogLoopStatementHeader(operation); LogLocals(operation.ConditionLocals, header: nameof(operation.ConditionLocals)); Visit(operation.Condition, "Condition"); VisitArray(operation.Before, "Before", logElementCount: false); VisitArray(operation.AtLoopBottom, "AtLoopBottom", logElementCount: false); Visit(operation.Body, "Body"); } public override void VisitForToLoop(IForToLoopOperation operation) { LogString(nameof(IForToLoopOperation)); LogLoopStatementHeader(operation, operation.IsChecked); Visit(operation.LoopControlVariable, "LoopControlVariable"); Visit(operation.InitialValue, "InitialValue"); Visit(operation.LimitValue, "LimitValue"); Visit(operation.StepValue, "StepValue"); Visit(operation.Body, "Body"); VisitArray(operation.NextVariables, "NextVariables", logElementCount: true); (ILocalSymbol loopObject, ForToLoopOperationUserDefinedInfo userDefinedInfo) = ((ForToLoopOperation)operation).Info; if (userDefinedInfo != null) { _ = userDefinedInfo.Addition; _ = userDefinedInfo.Subtraction; _ = userDefinedInfo.LessThanOrEqual; _ = userDefinedInfo.GreaterThanOrEqual; } } private void LogLocals(IEnumerable<ILocalSymbol> locals, string header = "Locals") { if (!locals.Any()) { return; } Indent(); LogString($"{header}: "); Indent(); int localIndex = 1; foreach (var local in locals) { LogSymbol(local, header: $"Local_{localIndex++}"); LogNewLine(); } Unindent(); Unindent(); } private void LogLoopStatementHeader(ILoopOperation operation, bool? isChecked = null) { Assert.Equal(OperationKind.Loop, operation.Kind); var propertyStringBuilder = new StringBuilder(); propertyStringBuilder.Append(" ("); propertyStringBuilder.Append($"{nameof(LoopKind)}.{operation.LoopKind}"); if (operation is IForEachLoopOperation { IsAsynchronous: true }) { propertyStringBuilder.Append($", IsAsynchronous"); } propertyStringBuilder.Append($", Continue Label Id: {GetLabelId(operation.ContinueLabel)}"); propertyStringBuilder.Append($", Exit Label Id: {GetLabelId(operation.ExitLabel)}"); if (isChecked.GetValueOrDefault()) { propertyStringBuilder.Append($", Checked"); } propertyStringBuilder.Append(")"); LogString(propertyStringBuilder.ToString()); LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); } public override void VisitForEachLoop(IForEachLoopOperation operation) { LogString(nameof(IForEachLoopOperation)); LogLoopStatementHeader(operation); Assert.NotNull(operation.LoopControlVariable); Visit(operation.LoopControlVariable, "LoopControlVariable"); Visit(operation.Collection, "Collection"); Visit(operation.Body, "Body"); VisitArray(operation.NextVariables, "NextVariables", logElementCount: true); ForEachLoopOperationInfo info = ((ForEachLoopOperation)operation).Info; } public override void VisitLabeled(ILabeledOperation operation) { LogString(nameof(ILabeledOperation)); if (!operation.Label.IsImplicitlyDeclared) { LogString($" (Label: {operation.Label.Name})"); } else { LogString($" (Label Id: {GetLabelId(operation.Label)})"); } LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, "Statement"); } public override void VisitBranch(IBranchOperation operation) { LogString(nameof(IBranchOperation)); var kindStr = $"{nameof(BranchKind)}.{operation.BranchKind}"; // If the label is implicit, or if it has been assigned an id (such as VB Exit Do/While/Switch labels) then print the id, instead of the name. var labelStr = !(operation.Target.IsImplicitlyDeclared || _labelIdMap.ContainsKey(operation.Target)) ? $", Label: {operation.Target.Name}" : $", Label Id: {GetLabelId(operation.Target)}"; LogString($" ({kindStr}{labelStr})"); LogCommonPropertiesAndNewLine(operation); base.VisitBranch(operation); } public override void VisitEmpty(IEmptyOperation operation) { LogString(nameof(IEmptyOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitReturn(IReturnOperation operation) { LogString(nameof(IReturnOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.ReturnedValue, "ReturnedValue"); } public override void VisitLock(ILockOperation operation) { LogString(nameof(ILockOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.LockedValue, "Expression"); Visit(operation.Body, "Body"); } public override void VisitTry(ITryOperation operation) { LogString(nameof(ITryOperation)); if (operation.ExitLabel != null) { LogString($" (Exit Label Id: {GetLabelId(operation.ExitLabel)})"); } LogCommonPropertiesAndNewLine(operation); Visit(operation.Body, "Body"); VisitArray(operation.Catches, "Catch clauses", logElementCount: true); Visit(operation.Finally, "Finally"); } public override void VisitCatchClause(ICatchClauseOperation operation) { LogString(nameof(ICatchClauseOperation)); var exceptionTypeStr = operation.ExceptionType != null ? operation.ExceptionType.ToTestDisplayString() : "null"; LogString($" (Exception type: {exceptionTypeStr})"); LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); Visit(operation.ExceptionDeclarationOrExpression, "ExceptionDeclarationOrExpression"); Visit(operation.Filter, "Filter"); Visit(operation.Handler, "Handler"); } public override void VisitUsing(IUsingOperation operation) { LogString(nameof(IUsingOperation)); if (operation.IsAsynchronous) { LogString($" (IsAsynchronous)"); } var disposeMethod = ((UsingOperation)operation).DisposeInfo.DisposeMethod; if (disposeMethod is object) { LogSymbol(disposeMethod, " (DisposeMethod"); LogString(")"); } LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); Visit(operation.Resources, "Resources"); Visit(operation.Body, "Body"); Assert.NotEqual(OperationKind.VariableDeclaration, operation.Resources.Kind); Assert.NotEqual(OperationKind.VariableDeclarator, operation.Resources.Kind); var disposeArgs = ((UsingOperation)operation).DisposeInfo.DisposeArguments; if (!disposeArgs.IsDefaultOrEmpty) { VisitArray(disposeArgs, "DisposeArguments", logElementCount: true); } } // https://github.com/dotnet/roslyn/issues/21281 internal override void VisitFixed(IFixedOperation operation) { LogString(nameof(IFixedOperation)); LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); Visit(operation.Variables, "Declaration"); Visit(operation.Body, "Body"); } internal override void VisitAggregateQuery(IAggregateQueryOperation operation) { LogString(nameof(IAggregateQueryOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Group, "Group"); Visit(operation.Aggregation, "Aggregation"); } public override void VisitExpressionStatement(IExpressionStatementOperation operation) { LogString(nameof(IExpressionStatementOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, "Expression"); } internal override void VisitWithStatement(IWithStatementOperation operation) { LogString(nameof(IWithStatementOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value, "Value"); Visit(operation.Body, "Body"); } public override void VisitStop(IStopOperation operation) { LogString(nameof(IStopOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitEnd(IEndOperation operation) { LogString(nameof(IEndOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitInvocation(IInvocationOperation operation) { LogString(nameof(IInvocationOperation)); var isVirtualStr = operation.IsVirtual ? "virtual " : string.Empty; var spacing = !operation.IsVirtual && operation.Instance != null ? " " : string.Empty; LogString($" ({isVirtualStr}{spacing}"); LogSymbol(operation.TargetMethod, header: string.Empty); LogString(")"); LogCommonPropertiesAndNewLine(operation); VisitInstance(operation.Instance); VisitArguments(operation.Arguments); } private void VisitArguments(ImmutableArray<IArgumentOperation> arguments) { VisitArray(arguments, "Arguments", logElementCount: true); } private void VisitDynamicArguments(HasDynamicArgumentsExpression operation) { VisitArray(operation.Arguments, "Arguments", logElementCount: true); VisitArray(operation.ArgumentNames, "ArgumentNames", logElementCount: true); VisitArray(operation.ArgumentRefKinds, "ArgumentRefKinds", logElementCount: true, logNullForDefault: true); VerifyGetArgumentNamePublicApi(operation, operation.ArgumentNames); VerifyGetArgumentRefKindPublicApi(operation, operation.ArgumentRefKinds); } private static void VerifyGetArgumentNamePublicApi(HasDynamicArgumentsExpression operation, ImmutableArray<string> argumentNames) { var length = operation.Arguments.Length; if (argumentNames.IsDefaultOrEmpty) { for (int i = 0; i < length; i++) { Assert.Null(operation.GetArgumentName(i)); } } else { Assert.Equal(length, argumentNames.Length); for (var i = 0; i < length; i++) { Assert.Equal(argumentNames[i], operation.GetArgumentName(i)); } } } private static void VerifyGetArgumentRefKindPublicApi(HasDynamicArgumentsExpression operation, ImmutableArray<RefKind> argumentRefKinds) { var length = operation.Arguments.Length; if (argumentRefKinds.IsDefault) { for (int i = 0; i < length; i++) { Assert.Null(operation.GetArgumentRefKind(i)); } } else if (argumentRefKinds.IsEmpty) { for (int i = 0; i < length; i++) { Assert.Equal(RefKind.None, operation.GetArgumentRefKind(i)); } } else { Assert.Equal(length, argumentRefKinds.Length); for (var i = 0; i < length; i++) { Assert.Equal(argumentRefKinds[i], operation.GetArgumentRefKind(i)); } } } public override void VisitArgument(IArgumentOperation operation) { LogString($"{nameof(IArgumentOperation)} ("); LogString($"{nameof(ArgumentKind)}.{operation.ArgumentKind}, "); LogSymbol(operation.Parameter, header: "Matching Parameter", logDisplayString: false); LogString(")"); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value); Indent(); LogConversion(operation.InConversion, "InConversion"); LogNewLine(); LogConversion(operation.OutConversion, "OutConversion"); LogNewLine(); Unindent(); } public override void VisitOmittedArgument(IOmittedArgumentOperation operation) { LogString(nameof(IOmittedArgumentOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitArrayElementReference(IArrayElementReferenceOperation operation) { LogString(nameof(IArrayElementReferenceOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.ArrayReference, "Array reference"); VisitArray(operation.Indices, "Indices", logElementCount: true); } internal override void VisitPointerIndirectionReference(IPointerIndirectionReferenceOperation operation) { LogString(nameof(IPointerIndirectionReferenceOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Pointer, "Pointer"); } public override void VisitLocalReference(ILocalReferenceOperation operation) { LogString(nameof(ILocalReferenceOperation)); LogString($": {operation.Local.Name}"); if (operation.IsDeclaration) { LogString($" (IsDeclaration: {operation.IsDeclaration})"); } LogCommonPropertiesAndNewLine(operation); } public override void VisitFlowCapture(IFlowCaptureOperation operation) { LogString(nameof(IFlowCaptureOperation)); LogString($": {operation.Id.Value}"); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value, "Value"); TestOperationVisitor.Singleton.VisitFlowCapture(operation); } public override void VisitFlowCaptureReference(IFlowCaptureReferenceOperation operation) { LogString(nameof(IFlowCaptureReferenceOperation)); LogString($": {operation.Id.Value}"); LogCommonPropertiesAndNewLine(operation); } public override void VisitIsNull(IIsNullOperation operation) { LogString(nameof(IIsNullOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operand, "Operand"); } public override void VisitCaughtException(ICaughtExceptionOperation operation) { LogString(nameof(ICaughtExceptionOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitParameterReference(IParameterReferenceOperation operation) { LogString(nameof(IParameterReferenceOperation)); LogString($": {operation.Parameter.Name}"); LogCommonPropertiesAndNewLine(operation); } public override void VisitInstanceReference(IInstanceReferenceOperation operation) { LogString(nameof(IInstanceReferenceOperation)); LogString($" (ReferenceKind: {operation.ReferenceKind})"); LogCommonPropertiesAndNewLine(operation); if (operation.IsImplicit) { if (operation.Parent is IMemberReferenceOperation memberReference && memberReference.Instance == operation) { Assert.False(memberReference.Member.IsStatic && !operation.HasErrors(this._compilation)); } else if (operation.Parent is IInvocationOperation invocation && invocation.Instance == operation) { Assert.False(invocation.TargetMethod.IsStatic); } } } private void VisitMemberReferenceExpressionCommon(IMemberReferenceOperation operation) { if (operation.Member.IsStatic) { LogString(" (Static)"); } LogCommonPropertiesAndNewLine(operation); VisitInstance(operation.Instance); } public override void VisitFieldReference(IFieldReferenceOperation operation) { LogString(nameof(IFieldReferenceOperation)); LogString($": {operation.Field.ToTestDisplayString()}"); if (operation.IsDeclaration) { LogString($" (IsDeclaration: {operation.IsDeclaration})"); } VisitMemberReferenceExpressionCommon(operation); } public override void VisitMethodReference(IMethodReferenceOperation operation) { LogString(nameof(IMethodReferenceOperation)); LogString($": {operation.Method.ToTestDisplayString()}"); if (operation.IsVirtual) { LogString(" (IsVirtual)"); } Assert.Null(operation.Type); VisitMemberReferenceExpressionCommon(operation); } public override void VisitPropertyReference(IPropertyReferenceOperation operation) { LogString(nameof(IPropertyReferenceOperation)); LogString($": {operation.Property.ToTestDisplayString()}"); VisitMemberReferenceExpressionCommon(operation); if (operation.Arguments.Length > 0) { VisitArguments(operation.Arguments); } } public override void VisitEventReference(IEventReferenceOperation operation) { LogString(nameof(IEventReferenceOperation)); LogString($": {operation.Event.ToTestDisplayString()}"); VisitMemberReferenceExpressionCommon(operation); } public override void VisitEventAssignment(IEventAssignmentOperation operation) { var kindStr = operation.Adds ? "EventAdd" : "EventRemove"; LogString($"{nameof(IEventAssignmentOperation)} ({kindStr})"); LogCommonPropertiesAndNewLine(operation); Assert.NotNull(operation.EventReference); Visit(operation.EventReference, header: "Event Reference"); Visit(operation.HandlerValue, header: "Handler"); } public override void VisitConditionalAccess(IConditionalAccessOperation operation) { LogString(nameof(IConditionalAccessOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, header: nameof(operation.Operation)); Visit(operation.WhenNotNull, header: nameof(operation.WhenNotNull)); Assert.NotNull(operation.Type); } public override void VisitConditionalAccessInstance(IConditionalAccessInstanceOperation operation) { LogString(nameof(IConditionalAccessInstanceOperation)); LogCommonPropertiesAndNewLine(operation); } internal override void VisitPlaceholder(IPlaceholderOperation operation) { LogString(nameof(IPlaceholderOperation)); LogCommonPropertiesAndNewLine(operation); Assert.Equal(PlaceholderKind.AggregationGroup, operation.PlaceholderKind); } public override void VisitUnaryOperator(IUnaryOperation operation) { LogString(nameof(IUnaryOperation)); var kindStr = $"{nameof(UnaryOperatorKind)}.{operation.OperatorKind}"; if (operation.IsLifted) { kindStr += ", IsLifted"; } if (operation.IsChecked) { kindStr += ", Checked"; } LogString($" ({kindStr})"); LogHasOperatorMethodExpressionCommon(operation.OperatorMethod); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operand, "Operand"); } public override void VisitBinaryOperator(IBinaryOperation operation) { LogString(nameof(IBinaryOperation)); var kindStr = $"{nameof(BinaryOperatorKind)}.{operation.OperatorKind}"; if (operation.IsLifted) { kindStr += ", IsLifted"; } if (operation.IsChecked) { kindStr += ", Checked"; } if (operation.IsCompareText) { kindStr += ", CompareText"; } LogString($" ({kindStr})"); LogHasOperatorMethodExpressionCommon(operation.OperatorMethod); var unaryOperatorMethod = ((BinaryOperation)operation).UnaryOperatorMethod; LogCommonPropertiesAndNewLine(operation); Visit(operation.LeftOperand, "Left"); Visit(operation.RightOperand, "Right"); } public override void VisitTupleBinaryOperator(ITupleBinaryOperation operation) { LogString(nameof(ITupleBinaryOperation)); var kindStr = $"{nameof(BinaryOperatorKind)}.{operation.OperatorKind}"; LogString($" ({kindStr})"); LogCommonPropertiesAndNewLine(operation); Visit(operation.LeftOperand, "Left"); Visit(operation.RightOperand, "Right"); } private void LogHasOperatorMethodExpressionCommon(IMethodSymbol operatorMethodOpt) { if (operatorMethodOpt != null) { LogSymbol(operatorMethodOpt, header: " (OperatorMethod"); LogString(")"); } } public override void VisitConversion(IConversionOperation operation) { LogString(nameof(IConversionOperation)); var isTryCast = $"TryCast: {(operation.IsTryCast ? "True" : "False")}"; var isChecked = operation.IsChecked ? "Checked" : "Unchecked"; LogString($" ({isTryCast}, {isChecked})"); LogHasOperatorMethodExpressionCommon(operation.OperatorMethod); LogCommonPropertiesAndNewLine(operation); Indent(); LogConversion(operation.Conversion); if (((Operation)operation).OwningSemanticModel == null) { LogNewLine(); Indent(); LogString($"({((ConversionOperation)operation).ConversionConvertible})"); Unindent(); } Unindent(); LogNewLine(); Visit(operation.Operand, "Operand"); } public override void VisitConditional(IConditionalOperation operation) { LogString(nameof(IConditionalOperation)); if (operation.IsRef) { LogString(" (IsRef)"); } LogCommonPropertiesAndNewLine(operation); Visit(operation.Condition, "Condition"); Visit(operation.WhenTrue, "WhenTrue"); Visit(operation.WhenFalse, "WhenFalse"); } public override void VisitCoalesce(ICoalesceOperation operation) { LogString(nameof(ICoalesceOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value, "Expression"); Indent(); LogConversion(operation.ValueConversion, "ValueConversion"); LogNewLine(); Indent(); LogString($"({((CoalesceOperation)operation).ValueConversionConvertible})"); Unindent(); LogNewLine(); Unindent(); Visit(operation.WhenNull, "WhenNull"); } public override void VisitCoalesceAssignment(ICoalesceAssignmentOperation operation) { LogString(nameof(ICoalesceAssignmentOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Target, nameof(operation.Target)); Visit(operation.Value, nameof(operation.Value)); } public override void VisitIsType(IIsTypeOperation operation) { LogString(nameof(IIsTypeOperation)); if (operation.IsNegated) { LogString(" (IsNotExpression)"); } LogCommonPropertiesAndNewLine(operation); Visit(operation.ValueOperand, "Operand"); Indent(); LogType(operation.TypeOperand, "IsType"); LogNewLine(); Unindent(); } public override void VisitSizeOf(ISizeOfOperation operation) { LogString(nameof(ISizeOfOperation)); LogCommonPropertiesAndNewLine(operation); Indent(); LogType(operation.TypeOperand, "TypeOperand"); LogNewLine(); Unindent(); } public override void VisitTypeOf(ITypeOfOperation operation) { LogString(nameof(ITypeOfOperation)); LogCommonPropertiesAndNewLine(operation); Indent(); LogType(operation.TypeOperand, "TypeOperand"); LogNewLine(); Unindent(); } public override void VisitAnonymousFunction(IAnonymousFunctionOperation operation) { LogString(nameof(IAnonymousFunctionOperation)); // For C# this prints "lambda expression", which is not very helpful if we want to tell lambdas apart. // That is how symbol display is implemented for C#. // https://github.com/dotnet/roslyn/issues/22559#issuecomment-393667316 tracks improving the output. LogSymbol(operation.Symbol, header: " (Symbol"); LogString(")"); LogCommonPropertiesAndNewLine(operation); base.VisitAnonymousFunction(operation); } public override void VisitFlowAnonymousFunction(IFlowAnonymousFunctionOperation operation) { LogString(nameof(IFlowAnonymousFunctionOperation)); // For C# this prints "lambda expression", which is not very helpful if we want to tell lambdas apart. // That is how symbol display is implemented for C#. // https://github.com/dotnet/roslyn/issues/22559#issuecomment-393667316 tracks improving the output. LogSymbol(operation.Symbol, header: " (Symbol"); LogString(")"); LogCommonPropertiesAndNewLine(operation); base.VisitFlowAnonymousFunction(operation); } public override void VisitDelegateCreation(IDelegateCreationOperation operation) { LogString(nameof(IDelegateCreationOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Target, nameof(operation.Target)); } public override void VisitLiteral(ILiteralOperation operation) { LogString(nameof(ILiteralOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitAwait(IAwaitOperation operation) { LogString(nameof(IAwaitOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, "Expression"); } public override void VisitNameOf(INameOfOperation operation) { LogString(nameof(INameOfOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Argument); } public override void VisitThrow(IThrowOperation operation) { LogString(nameof(IThrowOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Exception); } public override void VisitAddressOf(IAddressOfOperation operation) { LogString(nameof(IAddressOfOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Reference, "Reference"); } public override void VisitObjectCreation(IObjectCreationOperation operation) { LogString(nameof(IObjectCreationOperation)); LogString($" (Constructor: {operation.Constructor?.ToTestDisplayString() ?? "<null>"})"); LogCommonPropertiesAndNewLine(operation); VisitArguments(operation.Arguments); Visit(operation.Initializer, "Initializer"); } public override void VisitAnonymousObjectCreation(IAnonymousObjectCreationOperation operation) { LogString(nameof(IAnonymousObjectCreationOperation)); LogCommonPropertiesAndNewLine(operation); foreach (var initializer in operation.Initializers) { var simpleAssignment = (ISimpleAssignmentOperation)initializer; var propertyReference = (IPropertyReferenceOperation)simpleAssignment.Target; Assert.Empty(propertyReference.Arguments); Assert.Equal(OperationKind.InstanceReference, propertyReference.Instance.Kind); Assert.Equal(InstanceReferenceKind.ImplicitReceiver, ((IInstanceReferenceOperation)propertyReference.Instance).ReferenceKind); } VisitArray(operation.Initializers, "Initializers", logElementCount: true); } public override void VisitDynamicObjectCreation(IDynamicObjectCreationOperation operation) { LogString(nameof(IDynamicObjectCreationOperation)); LogCommonPropertiesAndNewLine(operation); VisitDynamicArguments((HasDynamicArgumentsExpression)operation); Visit(operation.Initializer, "Initializer"); } public override void VisitDynamicInvocation(IDynamicInvocationOperation operation) { LogString(nameof(IDynamicInvocationOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, "Expression"); VisitDynamicArguments((HasDynamicArgumentsExpression)operation); } public override void VisitDynamicIndexerAccess(IDynamicIndexerAccessOperation operation) { LogString(nameof(IDynamicIndexerAccessOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, "Expression"); VisitDynamicArguments((HasDynamicArgumentsExpression)operation); } public override void VisitObjectOrCollectionInitializer(IObjectOrCollectionInitializerOperation operation) { LogString(nameof(IObjectOrCollectionInitializerOperation)); LogCommonPropertiesAndNewLine(operation); VisitArray(operation.Initializers, "Initializers", logElementCount: true); } public override void VisitMemberInitializer(IMemberInitializerOperation operation) { LogString(nameof(IMemberInitializerOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.InitializedMember, "InitializedMember"); Visit(operation.Initializer, "Initializer"); } [Obsolete("ICollectionElementInitializerOperation has been replaced with IInvocationOperation and IDynamicInvocationOperation", error: true)] public override void VisitCollectionElementInitializer(ICollectionElementInitializerOperation operation) { // Kept to ensure that it's never called, as we can't override DefaultVisit in this visitor throw ExceptionUtilities.Unreachable; } public override void VisitFieldInitializer(IFieldInitializerOperation operation) { LogString(nameof(IFieldInitializerOperation)); if (operation.InitializedFields.Length <= 1) { if (operation.InitializedFields.Length == 1) { LogSymbol(operation.InitializedFields[0], header: " (Field"); LogString(")"); } LogCommonPropertiesAndNewLine(operation); } else { LogString($" ({operation.InitializedFields.Length} initialized fields)"); LogCommonPropertiesAndNewLine(operation); Indent(); int index = 1; foreach (var local in operation.InitializedFields) { LogSymbol(local, header: $"Field_{index++}"); LogNewLine(); } Unindent(); } LogLocals(operation.Locals); base.VisitFieldInitializer(operation); } public override void VisitVariableInitializer(IVariableInitializerOperation operation) { LogString(nameof(IVariableInitializerOperation)); LogCommonPropertiesAndNewLine(operation); Assert.Empty(operation.Locals); base.VisitVariableInitializer(operation); } public override void VisitPropertyInitializer(IPropertyInitializerOperation operation) { LogString(nameof(IPropertyInitializerOperation)); if (operation.InitializedProperties.Length <= 1) { if (operation.InitializedProperties.Length == 1) { LogSymbol(operation.InitializedProperties[0], header: " (Property"); LogString(")"); } LogCommonPropertiesAndNewLine(operation); } else { LogString($" ({operation.InitializedProperties.Length} initialized properties)"); LogCommonPropertiesAndNewLine(operation); Indent(); int index = 1; foreach (var property in operation.InitializedProperties) { LogSymbol(property, header: $"Property_{index++}"); LogNewLine(); } Unindent(); } LogLocals(operation.Locals); base.VisitPropertyInitializer(operation); } public override void VisitParameterInitializer(IParameterInitializerOperation operation) { LogString(nameof(IParameterInitializerOperation)); LogSymbol(operation.Parameter, header: " (Parameter"); LogString(")"); LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); base.VisitParameterInitializer(operation); } public override void VisitArrayCreation(IArrayCreationOperation operation) { LogString(nameof(IArrayCreationOperation)); LogCommonPropertiesAndNewLine(operation); VisitArray(operation.DimensionSizes, "Dimension Sizes", logElementCount: true); Visit(operation.Initializer, "Initializer"); } public override void VisitArrayInitializer(IArrayInitializerOperation operation) { LogString(nameof(IArrayInitializerOperation)); LogString($" ({operation.ElementValues.Length} elements)"); LogCommonPropertiesAndNewLine(operation); Assert.Null(operation.Type); VisitArray(operation.ElementValues, "Element Values", logElementCount: true); } public override void VisitSimpleAssignment(ISimpleAssignmentOperation operation) { LogString(nameof(ISimpleAssignmentOperation)); if (operation.IsRef) { LogString(" (IsRef)"); } LogCommonPropertiesAndNewLine(operation); Visit(operation.Target, "Left"); Visit(operation.Value, "Right"); } public override void VisitDeconstructionAssignment(IDeconstructionAssignmentOperation operation) { LogString(nameof(IDeconstructionAssignmentOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Target, "Left"); Visit(operation.Value, "Right"); } public override void VisitDeclarationExpression(IDeclarationExpressionOperation operation) { LogString(nameof(IDeclarationExpressionOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Expression); } public override void VisitCompoundAssignment(ICompoundAssignmentOperation operation) { LogString(nameof(ICompoundAssignmentOperation)); var kindStr = $"{nameof(BinaryOperatorKind)}.{operation.OperatorKind}"; if (operation.IsLifted) { kindStr += ", IsLifted"; } if (operation.IsChecked) { kindStr += ", Checked"; } LogString($" ({kindStr})"); LogHasOperatorMethodExpressionCommon(operation.OperatorMethod); LogCommonPropertiesAndNewLine(operation); Indent(); LogConversion(operation.InConversion, "InConversion"); LogNewLine(); LogConversion(operation.OutConversion, "OutConversion"); LogNewLine(); Unindent(); Visit(operation.Target, "Left"); Visit(operation.Value, "Right"); } public override void VisitIncrementOrDecrement(IIncrementOrDecrementOperation operation) { LogString(nameof(IIncrementOrDecrementOperation)); var kindStr = operation.IsPostfix ? "Postfix" : "Prefix"; if (operation.IsLifted) { kindStr += ", IsLifted"; } if (operation.IsChecked) { kindStr += ", Checked"; } LogString($" ({kindStr})"); LogHasOperatorMethodExpressionCommon(operation.OperatorMethod); LogCommonPropertiesAndNewLine(operation); Visit(operation.Target, "Target"); } public override void VisitParenthesized(IParenthesizedOperation operation) { LogString(nameof(IParenthesizedOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operand, "Operand"); } public override void VisitDynamicMemberReference(IDynamicMemberReferenceOperation operation) { LogString(nameof(IDynamicMemberReferenceOperation)); // (Member Name: "quoted name", Containing Type: type) LogString(" ("); LogConstant((object)operation.MemberName, "Member Name"); LogString(", "); LogType(operation.ContainingType, "Containing Type"); LogString(")"); LogCommonPropertiesAndNewLine(operation); VisitArrayCommon(operation.TypeArguments, "Type Arguments", logElementCount: true, logNullForDefault: false, arrayElementVisitor: VisitSymbolArrayElement); VisitInstance(operation.Instance); } public override void VisitDefaultValue(IDefaultValueOperation operation) { LogString(nameof(IDefaultValueOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitTypeParameterObjectCreation(ITypeParameterObjectCreationOperation operation) { LogString(nameof(ITypeParameterObjectCreationOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Initializer, "Initializer"); } internal override void VisitNoPiaObjectCreation(INoPiaObjectCreationOperation operation) { LogString(nameof(INoPiaObjectCreationOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Initializer, "Initializer"); } public override void VisitInvalid(IInvalidOperation operation) { LogString(nameof(IInvalidOperation)); LogCommonPropertiesAndNewLine(operation); VisitChildren(operation); } public override void VisitLocalFunction(ILocalFunctionOperation operation) { LogString(nameof(ILocalFunctionOperation)); LogSymbol(operation.Symbol, header: " (Symbol"); LogString(")"); LogCommonPropertiesAndNewLine(operation); if (operation.Body != null) { if (operation.IgnoredBody != null) { Visit(operation.Body, "Body"); Visit(operation.IgnoredBody, "IgnoredBody"); } else { Visit(operation.Body); } } else { Assert.Null(operation.IgnoredBody); } } private void LogCaseClauseCommon(ICaseClauseOperation operation) { Assert.Equal(OperationKind.CaseClause, operation.Kind); if (operation.Label != null) { LogString($" (Label Id: {GetLabelId(operation.Label)})"); } var kindStr = $"{nameof(CaseKind)}.{operation.CaseKind}"; LogString($" ({kindStr})"); LogCommonPropertiesAndNewLine(operation); } public override void VisitSingleValueCaseClause(ISingleValueCaseClauseOperation operation) { LogString(nameof(ISingleValueCaseClauseOperation)); LogCaseClauseCommon(operation); Visit(operation.Value, "Value"); } public override void VisitRelationalCaseClause(IRelationalCaseClauseOperation operation) { LogString(nameof(IRelationalCaseClauseOperation)); var kindStr = $"{nameof(BinaryOperatorKind)}.{operation.Relation}"; LogString($" (Relational operator kind: {kindStr})"); LogCaseClauseCommon(operation); Visit(operation.Value, "Value"); } public override void VisitRangeCaseClause(IRangeCaseClauseOperation operation) { LogString(nameof(IRangeCaseClauseOperation)); LogCaseClauseCommon(operation); Visit(operation.MinimumValue, "Min"); Visit(operation.MaximumValue, "Max"); } public override void VisitDefaultCaseClause(IDefaultCaseClauseOperation operation) { LogString(nameof(IDefaultCaseClauseOperation)); LogCaseClauseCommon(operation); } public override void VisitTuple(ITupleOperation operation) { LogString(nameof(ITupleOperation)); LogCommonPropertiesAndNewLine(operation); Indent(); LogType(operation.NaturalType, nameof(operation.NaturalType)); LogNewLine(); Unindent(); VisitArray(operation.Elements, "Elements", logElementCount: true); } public override void VisitInterpolatedString(IInterpolatedStringOperation operation) { LogString(nameof(IInterpolatedStringOperation)); LogCommonPropertiesAndNewLine(operation); VisitArray(operation.Parts, "Parts", logElementCount: true); } public override void VisitInterpolatedStringText(IInterpolatedStringTextOperation operation) { LogString(nameof(IInterpolatedStringTextOperation)); LogCommonPropertiesAndNewLine(operation); if (operation.Text.Kind != OperationKind.Literal) { Assert.Equal(OperationKind.Literal, ((IConversionOperation)operation.Text).Operand.Kind); } Visit(operation.Text, "Text"); } public override void VisitInterpolation(IInterpolationOperation operation) { LogString(nameof(IInterpolationOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Expression, "Expression"); Visit(operation.Alignment, "Alignment"); Visit(operation.FormatString, "FormatString"); if (operation.FormatString != null && operation.FormatString.Kind != OperationKind.Literal) { Assert.Equal(OperationKind.Literal, ((IConversionOperation)operation.FormatString).Operand.Kind); } } public override void VisitConstantPattern(IConstantPatternOperation operation) { LogString(nameof(IConstantPatternOperation)); LogPatternPropertiesAndNewLine(operation); Visit(operation.Value, "Value"); } public override void VisitRelationalPattern(IRelationalPatternOperation operation) { LogString(nameof(IRelationalPatternOperation)); LogString($" ({nameof(BinaryOperatorKind)}.{operation.OperatorKind})"); LogPatternPropertiesAndNewLine(operation); Visit(operation.Value, "Value"); } public override void VisitNegatedPattern(INegatedPatternOperation operation) { LogString(nameof(INegatedPatternOperation)); LogPatternPropertiesAndNewLine(operation); Visit(operation.Pattern, "Pattern"); } public override void VisitBinaryPattern(IBinaryPatternOperation operation) { LogString(nameof(IBinaryPatternOperation)); LogString($" ({nameof(BinaryOperatorKind)}.{operation.OperatorKind})"); LogPatternPropertiesAndNewLine(operation); Visit(operation.LeftPattern, "LeftPattern"); Visit(operation.RightPattern, "RightPattern"); } public override void VisitTypePattern(ITypePatternOperation operation) { LogString(nameof(ITypePatternOperation)); LogPatternProperties(operation); LogSymbol(operation.MatchedType, $", {nameof(operation.MatchedType)}"); LogString(")"); LogNewLine(); } public override void VisitDeclarationPattern(IDeclarationPatternOperation operation) { LogString(nameof(IDeclarationPatternOperation)); LogPatternProperties(operation); LogSymbol(operation.DeclaredSymbol, $", {nameof(operation.DeclaredSymbol)}"); LogConstant((object)operation.MatchesNull, $", {nameof(operation.MatchesNull)}"); LogString(")"); LogNewLine(); } public override void VisitRecursivePattern(IRecursivePatternOperation operation) { LogString(nameof(IRecursivePatternOperation)); LogPatternProperties(operation); LogSymbol(operation.DeclaredSymbol, $", {nameof(operation.DeclaredSymbol)}"); LogType(operation.MatchedType, $", {nameof(operation.MatchedType)}"); LogSymbol(operation.DeconstructSymbol, $", {nameof(operation.DeconstructSymbol)}"); LogString(")"); LogNewLine(); VisitArray(operation.DeconstructionSubpatterns, $"{nameof(operation.DeconstructionSubpatterns)} ", true, true); VisitArray(operation.PropertySubpatterns, $"{nameof(operation.PropertySubpatterns)} ", true, true); } public override void VisitPropertySubpattern(IPropertySubpatternOperation operation) { LogString(nameof(IPropertySubpatternOperation)); LogCommonProperties(operation); LogNewLine(); Visit(operation.Member, $"{nameof(operation.Member)}"); Visit(operation.Pattern, $"{nameof(operation.Pattern)}"); } public override void VisitIsPattern(IIsPatternOperation operation) { LogString(nameof(IIsPatternOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value, $"{nameof(operation.Value)}"); Visit(operation.Pattern, "Pattern"); } public override void VisitPatternCaseClause(IPatternCaseClauseOperation operation) { LogString(nameof(IPatternCaseClauseOperation)); LogCaseClauseCommon(operation); Assert.Same(((ICaseClauseOperation)operation).Label, operation.Label); Visit(operation.Pattern, "Pattern"); if (operation.Guard != null) Visit(operation.Guard, nameof(operation.Guard)); } public override void VisitTranslatedQuery(ITranslatedQueryOperation operation) { LogString(nameof(ITranslatedQueryOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, "Expression"); } public override void VisitRaiseEvent(IRaiseEventOperation operation) { LogString(nameof(IRaiseEventOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.EventReference, header: "Event Reference"); VisitArguments(operation.Arguments); } public override void VisitConstructorBodyOperation(IConstructorBodyOperation operation) { LogString(nameof(IConstructorBodyOperation)); LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); Visit(operation.Initializer, "Initializer"); Visit(operation.BlockBody, "BlockBody"); Visit(operation.ExpressionBody, "ExpressionBody"); } public override void VisitMethodBodyOperation(IMethodBodyOperation operation) { LogString(nameof(IMethodBodyOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.BlockBody, "BlockBody"); Visit(operation.ExpressionBody, "ExpressionBody"); } public override void VisitDiscardOperation(IDiscardOperation operation) { LogString(nameof(IDiscardOperation)); LogString(" ("); LogSymbol(operation.DiscardSymbol, "Symbol"); LogString(")"); LogCommonPropertiesAndNewLine(operation); } public override void VisitDiscardPattern(IDiscardPatternOperation operation) { LogString(nameof(IDiscardPatternOperation)); LogPatternPropertiesAndNewLine(operation); } public override void VisitSwitchExpression(ISwitchExpressionOperation operation) { LogString($"{nameof(ISwitchExpressionOperation)} ({operation.Arms.Length} arms, IsExhaustive: {operation.IsExhaustive})"); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value, nameof(operation.Value)); VisitArray(operation.Arms, nameof(operation.Arms), logElementCount: true); } public override void VisitSwitchExpressionArm(ISwitchExpressionArmOperation operation) { LogString($"{nameof(ISwitchExpressionArmOperation)} ({operation.Locals.Length} locals)"); LogCommonPropertiesAndNewLine(operation); Visit(operation.Pattern, nameof(operation.Pattern)); if (operation.Guard != null) Visit(operation.Guard, nameof(operation.Guard)); Visit(operation.Value, nameof(operation.Value)); LogLocals(operation.Locals); } public override void VisitStaticLocalInitializationSemaphore(IStaticLocalInitializationSemaphoreOperation operation) { LogString(nameof(IStaticLocalInitializationSemaphoreOperation)); LogSymbol(operation.Local, " (Local Symbol"); LogString(")"); LogCommonPropertiesAndNewLine(operation); } public override void VisitRangeOperation(IRangeOperation operation) { LogString(nameof(IRangeOperation)); if (operation.IsLifted) { LogString(" (IsLifted)"); } LogCommonPropertiesAndNewLine(operation); Visit(operation.LeftOperand, nameof(operation.LeftOperand)); Visit(operation.RightOperand, nameof(operation.RightOperand)); } public override void VisitReDim(IReDimOperation operation) { LogString(nameof(IReDimOperation)); if (operation.Preserve) { LogString(" (Preserve)"); } LogCommonPropertiesAndNewLine(operation); VisitArray(operation.Clauses, "Clauses", logElementCount: true); } public override void VisitReDimClause(IReDimClauseOperation operation) { LogString(nameof(IReDimClauseOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operand, "Operand"); VisitArray(operation.DimensionSizes, "DimensionSizes", logElementCount: true); } public override void VisitWith(IWithOperation operation) { LogString(nameof(IWithOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operand, "Operand"); Indent(); LogSymbol(operation.CloneMethod, nameof(operation.CloneMethod)); LogNewLine(); Unindent(); Visit(operation.Initializer, "Initializer"); } #endregion } }
// 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.Linq; using System.Text; using System.Text.RegularExpressions; using Microsoft.CodeAnalysis.FlowAnalysis; using Microsoft.CodeAnalysis.Operations; using Roslyn.Test.Utilities; using Roslyn.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Test.Utilities { public class OperationTreeVerifier : OperationWalker { protected readonly Compilation _compilation; protected readonly IOperation _root; protected readonly StringBuilder _builder; private readonly Dictionary<SyntaxNode, IOperation> _explicitNodeMap; private readonly Dictionary<ILabelSymbol, uint> _labelIdMap; private const string indent = " "; protected string _currentIndent; private bool _pendingIndent; private uint _currentLabelId = 0; public OperationTreeVerifier(Compilation compilation, IOperation root, int initialIndent) { _compilation = compilation; _root = root; _builder = new StringBuilder(); _currentIndent = new string(' ', initialIndent); _pendingIndent = true; _explicitNodeMap = new Dictionary<SyntaxNode, IOperation>(); _labelIdMap = new Dictionary<ILabelSymbol, uint>(); } public static string GetOperationTree(Compilation compilation, IOperation operation, int initialIndent = 0) { var walker = new OperationTreeVerifier(compilation, operation, initialIndent); walker.Visit(operation); return walker._builder.ToString(); } public static void Verify(string expectedOperationTree, string actualOperationTree) { char[] newLineChars = Environment.NewLine.ToCharArray(); string actual = actualOperationTree.Trim(newLineChars); actual = actual.Replace(" \n", "\n").Replace(" \r", "\r"); expectedOperationTree = expectedOperationTree.Trim(newLineChars); expectedOperationTree = expectedOperationTree.Replace("\r\n", "\n").Replace(" \n", "\n").Replace("\n", Environment.NewLine); AssertEx.AssertEqualToleratingWhitespaceDifferences(expectedOperationTree, actual); } #region Logging helpers private void LogPatternPropertiesAndNewLine(IPatternOperation operation) { LogPatternProperties(operation); LogString(")"); LogNewLine(); } private void LogPatternProperties(IPatternOperation operation) { LogCommonProperties(operation); LogString(" ("); LogType(operation.InputType, $"{nameof(operation.InputType)}"); LogString(", "); LogType(operation.NarrowedType, $"{nameof(operation.NarrowedType)}"); } private void LogCommonPropertiesAndNewLine(IOperation operation) { LogCommonProperties(operation); LogNewLine(); } private void LogCommonProperties(IOperation operation) { LogString(" ("); // Kind LogString($"{nameof(OperationKind)}.{GetKindText(operation.Kind)}"); // Type LogString(", "); LogType(operation.Type); // ConstantValue if (operation.ConstantValue.HasValue) { LogString(", "); LogConstant(operation.ConstantValue); } // IsInvalid if (operation.HasErrors(_compilation)) { LogString(", IsInvalid"); } // IsImplicit if (operation.IsImplicit) { LogString(", IsImplicit"); } LogString(")"); // Syntax Assert.NotNull(operation.Syntax); LogString($" (Syntax: {GetSnippetFromSyntax(operation.Syntax)})"); // Some of these kinds were inconsistent in the first release, and in standardizing them the // string output isn't guaranteed to be one or the other. So standardize manually. string GetKindText(OperationKind kind) { switch (kind) { case OperationKind.Unary: return "Unary"; case OperationKind.Binary: return "Binary"; case OperationKind.TupleBinary: return "TupleBinary"; case OperationKind.MethodBody: return "MethodBody"; case OperationKind.ConstructorBody: return "ConstructorBody"; default: return kind.ToString(); } } } private static string GetSnippetFromSyntax(SyntaxNode syntax) { if (syntax == null) { return "null"; } var text = syntax.ToString().Trim(Environment.NewLine.ToCharArray()); var lines = text.Split(new[] { Environment.NewLine, "\r", "\n" }, StringSplitOptions.RemoveEmptyEntries).Select(l => l.Trim()).ToArray(); if (lines.Length <= 1 && text.Length < 25) { return $"'{text}'"; } const int maxTokenLength = 11; var firstLine = lines[0]; var lastLine = lines[lines.Length - 1]; var prefix = firstLine.Length <= maxTokenLength ? firstLine : firstLine.Substring(0, maxTokenLength); var suffix = lastLine.Length <= maxTokenLength ? lastLine : lastLine.Substring(lastLine.Length - maxTokenLength, maxTokenLength); return $"'{prefix} ... {suffix}'"; } private static bool ShouldLogType(IOperation operation) { var operationKind = (int)operation.Kind; // Expressions if (operationKind >= 0x100 && operationKind < 0x400) { return true; } return false; } protected void LogString(string str) { if (_pendingIndent) { str = _currentIndent + str; _pendingIndent = false; } _builder.Append(str); } protected void LogNewLine() { LogString(Environment.NewLine); _pendingIndent = true; } private void Indent() { _currentIndent += indent; } private void Unindent() { _currentIndent = _currentIndent.Substring(indent.Length); } private void LogConstant(Optional<object> constant, string header = "Constant") { if (constant.HasValue) { LogConstant(constant.Value, header); } } private static string ConstantToString(object constant) { switch (constant) { case null: return "null"; case string s: s = s.Replace("\"", "\"\""); return @"""" + s + @""""; case IFormattable formattable: return formattable.ToString(null, CultureInfo.InvariantCulture).Replace("\"", "\"\""); default: return constant.ToString().Replace("\"", "\"\""); } } private void LogConstant(object constant, string header = "Constant") { string valueStr = ConstantToString(constant); LogString($"{header}: {valueStr}"); } private void LogConversion(CommonConversion conversion, string header = "Conversion") { var exists = FormatBoolProperty(nameof(conversion.Exists), conversion.Exists); var isIdentity = FormatBoolProperty(nameof(conversion.IsIdentity), conversion.IsIdentity); var isNumeric = FormatBoolProperty(nameof(conversion.IsNumeric), conversion.IsNumeric); var isReference = FormatBoolProperty(nameof(conversion.IsReference), conversion.IsReference); var isUserDefined = FormatBoolProperty(nameof(conversion.IsUserDefined), conversion.IsUserDefined); LogString($"{header}: {nameof(CommonConversion)} ({exists}, {isIdentity}, {isNumeric}, {isReference}, {isUserDefined}) ("); LogSymbol(conversion.MethodSymbol, nameof(conversion.MethodSymbol)); LogString(")"); } private void LogSymbol(ISymbol symbol, string header, bool logDisplayString = true) { if (!string.IsNullOrEmpty(header)) { LogString($"{header}: "); } var symbolStr = symbol != null ? (logDisplayString ? symbol.ToTestDisplayString() : symbol.Name) : "null"; LogString($"{symbolStr}"); } private void LogType(ITypeSymbol type, string header = "Type") { var typeStr = type != null ? type.ToTestDisplayString() : "null"; LogString($"{header}: {typeStr}"); } private uint GetLabelId(ILabelSymbol symbol) { if (_labelIdMap.ContainsKey(symbol)) { return _labelIdMap[symbol]; } var id = _currentLabelId++; _labelIdMap[symbol] = id; return id; } private static string FormatBoolProperty(string propertyName, bool value) => $"{propertyName}: {(value ? "True" : "False")}"; #endregion #region Visit methods public override void Visit(IOperation operation) { if (operation == null) { Indent(); LogString("null"); LogNewLine(); Unindent(); return; } if (!operation.IsImplicit) { try { _explicitNodeMap.Add(operation.Syntax, operation); } catch (ArgumentException) { Assert.False(true, $"Duplicate explicit node for syntax ({operation.Syntax.RawKind}): {operation.Syntax.ToString()}"); } } Assert.True(operation.Type == null || !operation.MustHaveNullType(), $"Unexpected non-null type: {operation.Type}"); if (operation != _root) { Indent(); } base.Visit(operation); if (operation != _root) { Unindent(); } Assert.True(operation.Syntax.Language == operation.Language); } private void Visit(IOperation operation, string header) { Debug.Assert(!string.IsNullOrEmpty(header)); Indent(); LogString($"{header}: "); LogNewLine(); Visit(operation); Unindent(); } private void VisitArrayCommon<T>(ImmutableArray<T> list, string header, bool logElementCount, bool logNullForDefault, Action<T> arrayElementVisitor) { Debug.Assert(!string.IsNullOrEmpty(header)); Indent(); if (!list.IsDefaultOrEmpty) { var elementCount = logElementCount ? $"({list.Count()})" : string.Empty; LogString($"{header}{elementCount}:"); LogNewLine(); Indent(); foreach (var element in list) { arrayElementVisitor(element); } Unindent(); } else { var suffix = logNullForDefault && list.IsDefault ? ": null" : "(0)"; LogString($"{header}{suffix}"); LogNewLine(); } Unindent(); } internal void VisitSymbolArrayElement(ISymbol element) { LogSymbol(element, header: "Symbol"); LogNewLine(); } internal void VisitStringArrayElement(string element) { var valueStr = element != null ? element.ToString() : "null"; valueStr = @"""" + valueStr + @""""; LogString(valueStr); LogNewLine(); } internal void VisitRefKindArrayElement(RefKind element) { LogString(element.ToString()); LogNewLine(); } private void VisitChildren(IOperation operation) { Debug.Assert(operation.Children.All(o => o != null)); var children = operation.Children.ToImmutableArray(); if (!children.IsEmpty || operation.Kind != OperationKind.None) { VisitArray(children, "Children", logElementCount: true); } } private void VisitArray<T>(ImmutableArray<T> list, string header, bool logElementCount, bool logNullForDefault = false) where T : IOperation { VisitArrayCommon(list, header, logElementCount, logNullForDefault, o => Visit(o)); } private void VisitArray(ImmutableArray<ISymbol> list, string header, bool logElementCount, bool logNullForDefault = false) { VisitArrayCommon(list, header, logElementCount, logNullForDefault, VisitSymbolArrayElement); } private void VisitArray(ImmutableArray<string> list, string header, bool logElementCount, bool logNullForDefault = false) { VisitArrayCommon(list, header, logElementCount, logNullForDefault, VisitStringArrayElement); } private void VisitArray(ImmutableArray<RefKind> list, string header, bool logElementCount, bool logNullForDefault = false) { VisitArrayCommon(list, header, logElementCount, logNullForDefault, VisitRefKindArrayElement); } private void VisitInstance(IOperation instance) { Visit(instance, header: "Instance Receiver"); } internal override void VisitNoneOperation(IOperation operation) { LogString("IOperation: "); LogCommonPropertiesAndNewLine(operation); VisitChildren(operation); } public override void VisitBlock(IBlockOperation operation) { LogString(nameof(IBlockOperation)); var statementsStr = $"{operation.Operations.Length} statements"; var localStr = !operation.Locals.IsEmpty ? $", {operation.Locals.Length} locals" : string.Empty; LogString($" ({statementsStr}{localStr})"); LogCommonPropertiesAndNewLine(operation); if (operation.Operations.IsEmpty) { return; } LogLocals(operation.Locals); base.VisitBlock(operation); } public override void VisitVariableDeclarationGroup(IVariableDeclarationGroupOperation operation) { var variablesCountStr = $"{operation.Declarations.Length} declarations"; LogString($"{nameof(IVariableDeclarationGroupOperation)} ({variablesCountStr})"); LogCommonPropertiesAndNewLine(operation); base.VisitVariableDeclarationGroup(operation); } public override void VisitUsingDeclaration(IUsingDeclarationOperation operation) { LogString($"{nameof(IUsingDeclarationOperation)}"); LogString($"(IsAsynchronous: {operation.IsAsynchronous}"); var disposeMethod = ((UsingDeclarationOperation)operation).DisposeInfo.DisposeMethod; if (disposeMethod is object) { LogSymbol(disposeMethod, ", DisposeMethod"); } LogString(")"); LogCommonPropertiesAndNewLine(operation); Visit(operation.DeclarationGroup, "DeclarationGroup"); var disposeArgs = ((UsingDeclarationOperation)operation).DisposeInfo.DisposeArguments; if (!disposeArgs.IsDefaultOrEmpty) { VisitArray(disposeArgs, "DisposeArguments", logElementCount: true); } } public override void VisitVariableDeclarator(IVariableDeclaratorOperation operation) { LogString($"{nameof(IVariableDeclaratorOperation)} ("); LogSymbol(operation.Symbol, "Symbol"); LogString(")"); LogCommonPropertiesAndNewLine(operation); Visit(operation.Initializer, "Initializer"); if (!operation.IgnoredArguments.IsEmpty) { VisitArray(operation.IgnoredArguments, "IgnoredArguments", logElementCount: true); } } public override void VisitVariableDeclaration(IVariableDeclarationOperation operation) { var variableCount = operation.Declarators.Length; LogString($"{nameof(IVariableDeclarationOperation)} ({variableCount} declarators)"); LogCommonPropertiesAndNewLine(operation); if (!operation.IgnoredDimensions.IsEmpty) { VisitArray(operation.IgnoredDimensions, "Ignored Dimensions", true); } VisitArray(operation.Declarators, "Declarators", false); Visit(operation.Initializer, "Initializer"); } public override void VisitSwitch(ISwitchOperation operation) { var caseCountStr = $"{operation.Cases.Length} cases"; var exitLabelStr = $", Exit Label Id: {GetLabelId(operation.ExitLabel)}"; LogString($"{nameof(ISwitchOperation)} ({caseCountStr}{exitLabelStr})"); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value, header: "Switch expression"); LogLocals(operation.Locals); foreach (ISwitchCaseOperation section in operation.Cases) { foreach (ICaseClauseOperation c in section.Clauses) { if (c.Label != null) { GetLabelId(c.Label); } } } VisitArray(operation.Cases, "Sections", logElementCount: false); } public override void VisitSwitchCase(ISwitchCaseOperation operation) { var caseClauseCountStr = $"{operation.Clauses.Length} case clauses"; var statementCountStr = $"{operation.Body.Length} statements"; LogString($"{nameof(ISwitchCaseOperation)} ({caseClauseCountStr}, {statementCountStr})"); LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); Indent(); VisitArray(operation.Clauses, "Clauses", logElementCount: false); VisitArray(operation.Body, "Body", logElementCount: false); Unindent(); _ = ((SwitchCaseOperation)operation).Condition; } public override void VisitWhileLoop(IWhileLoopOperation operation) { LogString(nameof(IWhileLoopOperation)); LogString($" (ConditionIsTop: {operation.ConditionIsTop}, ConditionIsUntil: {operation.ConditionIsUntil})"); LogLoopStatementHeader(operation); Visit(operation.Condition, "Condition"); Visit(operation.Body, "Body"); Visit(operation.IgnoredCondition, "IgnoredCondition"); } public override void VisitForLoop(IForLoopOperation operation) { LogString(nameof(IForLoopOperation)); LogLoopStatementHeader(operation); LogLocals(operation.ConditionLocals, header: nameof(operation.ConditionLocals)); Visit(operation.Condition, "Condition"); VisitArray(operation.Before, "Before", logElementCount: false); VisitArray(operation.AtLoopBottom, "AtLoopBottom", logElementCount: false); Visit(operation.Body, "Body"); } public override void VisitForToLoop(IForToLoopOperation operation) { LogString(nameof(IForToLoopOperation)); LogLoopStatementHeader(operation, operation.IsChecked); Visit(operation.LoopControlVariable, "LoopControlVariable"); Visit(operation.InitialValue, "InitialValue"); Visit(operation.LimitValue, "LimitValue"); Visit(operation.StepValue, "StepValue"); Visit(operation.Body, "Body"); VisitArray(operation.NextVariables, "NextVariables", logElementCount: true); (ILocalSymbol loopObject, ForToLoopOperationUserDefinedInfo userDefinedInfo) = ((ForToLoopOperation)operation).Info; if (userDefinedInfo != null) { _ = userDefinedInfo.Addition; _ = userDefinedInfo.Subtraction; _ = userDefinedInfo.LessThanOrEqual; _ = userDefinedInfo.GreaterThanOrEqual; } } private void LogLocals(IEnumerable<ILocalSymbol> locals, string header = "Locals") { if (!locals.Any()) { return; } Indent(); LogString($"{header}: "); Indent(); int localIndex = 1; foreach (var local in locals) { LogSymbol(local, header: $"Local_{localIndex++}"); LogNewLine(); } Unindent(); Unindent(); } private void LogLoopStatementHeader(ILoopOperation operation, bool? isChecked = null) { Assert.Equal(OperationKind.Loop, operation.Kind); var propertyStringBuilder = new StringBuilder(); propertyStringBuilder.Append(" ("); propertyStringBuilder.Append($"{nameof(LoopKind)}.{operation.LoopKind}"); if (operation is IForEachLoopOperation { IsAsynchronous: true }) { propertyStringBuilder.Append($", IsAsynchronous"); } propertyStringBuilder.Append($", Continue Label Id: {GetLabelId(operation.ContinueLabel)}"); propertyStringBuilder.Append($", Exit Label Id: {GetLabelId(operation.ExitLabel)}"); if (isChecked.GetValueOrDefault()) { propertyStringBuilder.Append($", Checked"); } propertyStringBuilder.Append(")"); LogString(propertyStringBuilder.ToString()); LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); } public override void VisitForEachLoop(IForEachLoopOperation operation) { LogString(nameof(IForEachLoopOperation)); LogLoopStatementHeader(operation); Assert.NotNull(operation.LoopControlVariable); Visit(operation.LoopControlVariable, "LoopControlVariable"); Visit(operation.Collection, "Collection"); Visit(operation.Body, "Body"); VisitArray(operation.NextVariables, "NextVariables", logElementCount: true); ForEachLoopOperationInfo info = ((ForEachLoopOperation)operation).Info; } public override void VisitLabeled(ILabeledOperation operation) { LogString(nameof(ILabeledOperation)); if (!operation.Label.IsImplicitlyDeclared) { LogString($" (Label: {operation.Label.Name})"); } else { LogString($" (Label Id: {GetLabelId(operation.Label)})"); } LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, "Statement"); } public override void VisitBranch(IBranchOperation operation) { LogString(nameof(IBranchOperation)); var kindStr = $"{nameof(BranchKind)}.{operation.BranchKind}"; // If the label is implicit, or if it has been assigned an id (such as VB Exit Do/While/Switch labels) then print the id, instead of the name. var labelStr = !(operation.Target.IsImplicitlyDeclared || _labelIdMap.ContainsKey(operation.Target)) ? $", Label: {operation.Target.Name}" : $", Label Id: {GetLabelId(operation.Target)}"; LogString($" ({kindStr}{labelStr})"); LogCommonPropertiesAndNewLine(operation); base.VisitBranch(operation); } public override void VisitEmpty(IEmptyOperation operation) { LogString(nameof(IEmptyOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitReturn(IReturnOperation operation) { LogString(nameof(IReturnOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.ReturnedValue, "ReturnedValue"); } public override void VisitLock(ILockOperation operation) { LogString(nameof(ILockOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.LockedValue, "Expression"); Visit(operation.Body, "Body"); } public override void VisitTry(ITryOperation operation) { LogString(nameof(ITryOperation)); if (operation.ExitLabel != null) { LogString($" (Exit Label Id: {GetLabelId(operation.ExitLabel)})"); } LogCommonPropertiesAndNewLine(operation); Visit(operation.Body, "Body"); VisitArray(operation.Catches, "Catch clauses", logElementCount: true); Visit(operation.Finally, "Finally"); } public override void VisitCatchClause(ICatchClauseOperation operation) { LogString(nameof(ICatchClauseOperation)); var exceptionTypeStr = operation.ExceptionType != null ? operation.ExceptionType.ToTestDisplayString() : "null"; LogString($" (Exception type: {exceptionTypeStr})"); LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); Visit(operation.ExceptionDeclarationOrExpression, "ExceptionDeclarationOrExpression"); Visit(operation.Filter, "Filter"); Visit(operation.Handler, "Handler"); } public override void VisitUsing(IUsingOperation operation) { LogString(nameof(IUsingOperation)); if (operation.IsAsynchronous) { LogString($" (IsAsynchronous)"); } var disposeMethod = ((UsingOperation)operation).DisposeInfo.DisposeMethod; if (disposeMethod is object) { LogSymbol(disposeMethod, " (DisposeMethod"); LogString(")"); } LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); Visit(operation.Resources, "Resources"); Visit(operation.Body, "Body"); Assert.NotEqual(OperationKind.VariableDeclaration, operation.Resources.Kind); Assert.NotEqual(OperationKind.VariableDeclarator, operation.Resources.Kind); var disposeArgs = ((UsingOperation)operation).DisposeInfo.DisposeArguments; if (!disposeArgs.IsDefaultOrEmpty) { VisitArray(disposeArgs, "DisposeArguments", logElementCount: true); } } // https://github.com/dotnet/roslyn/issues/21281 internal override void VisitFixed(IFixedOperation operation) { LogString(nameof(IFixedOperation)); LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); Visit(operation.Variables, "Declaration"); Visit(operation.Body, "Body"); } internal override void VisitAggregateQuery(IAggregateQueryOperation operation) { LogString(nameof(IAggregateQueryOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Group, "Group"); Visit(operation.Aggregation, "Aggregation"); } public override void VisitExpressionStatement(IExpressionStatementOperation operation) { LogString(nameof(IExpressionStatementOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, "Expression"); } internal override void VisitWithStatement(IWithStatementOperation operation) { LogString(nameof(IWithStatementOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value, "Value"); Visit(operation.Body, "Body"); } public override void VisitStop(IStopOperation operation) { LogString(nameof(IStopOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitEnd(IEndOperation operation) { LogString(nameof(IEndOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitInvocation(IInvocationOperation operation) { LogString(nameof(IInvocationOperation)); var isVirtualStr = operation.IsVirtual ? "virtual " : string.Empty; var spacing = !operation.IsVirtual && operation.Instance != null ? " " : string.Empty; LogString($" ({isVirtualStr}{spacing}"); LogSymbol(operation.TargetMethod, header: string.Empty); LogString(")"); LogCommonPropertiesAndNewLine(operation); VisitInstance(operation.Instance); VisitArguments(operation.Arguments); } private void VisitArguments(ImmutableArray<IArgumentOperation> arguments) { VisitArray(arguments, "Arguments", logElementCount: true); } private void VisitDynamicArguments(HasDynamicArgumentsExpression operation) { VisitArray(operation.Arguments, "Arguments", logElementCount: true); VisitArray(operation.ArgumentNames, "ArgumentNames", logElementCount: true); VisitArray(operation.ArgumentRefKinds, "ArgumentRefKinds", logElementCount: true, logNullForDefault: true); VerifyGetArgumentNamePublicApi(operation, operation.ArgumentNames); VerifyGetArgumentRefKindPublicApi(operation, operation.ArgumentRefKinds); } private static void VerifyGetArgumentNamePublicApi(HasDynamicArgumentsExpression operation, ImmutableArray<string> argumentNames) { var length = operation.Arguments.Length; if (argumentNames.IsDefaultOrEmpty) { for (int i = 0; i < length; i++) { Assert.Null(operation.GetArgumentName(i)); } } else { Assert.Equal(length, argumentNames.Length); for (var i = 0; i < length; i++) { Assert.Equal(argumentNames[i], operation.GetArgumentName(i)); } } } private static void VerifyGetArgumentRefKindPublicApi(HasDynamicArgumentsExpression operation, ImmutableArray<RefKind> argumentRefKinds) { var length = operation.Arguments.Length; if (argumentRefKinds.IsDefault) { for (int i = 0; i < length; i++) { Assert.Null(operation.GetArgumentRefKind(i)); } } else if (argumentRefKinds.IsEmpty) { for (int i = 0; i < length; i++) { Assert.Equal(RefKind.None, operation.GetArgumentRefKind(i)); } } else { Assert.Equal(length, argumentRefKinds.Length); for (var i = 0; i < length; i++) { Assert.Equal(argumentRefKinds[i], operation.GetArgumentRefKind(i)); } } } public override void VisitArgument(IArgumentOperation operation) { LogString($"{nameof(IArgumentOperation)} ("); LogString($"{nameof(ArgumentKind)}.{operation.ArgumentKind}, "); LogSymbol(operation.Parameter, header: "Matching Parameter", logDisplayString: false); LogString(")"); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value); Indent(); LogConversion(operation.InConversion, "InConversion"); LogNewLine(); LogConversion(operation.OutConversion, "OutConversion"); LogNewLine(); Unindent(); } public override void VisitOmittedArgument(IOmittedArgumentOperation operation) { LogString(nameof(IOmittedArgumentOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitArrayElementReference(IArrayElementReferenceOperation operation) { LogString(nameof(IArrayElementReferenceOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.ArrayReference, "Array reference"); VisitArray(operation.Indices, "Indices", logElementCount: true); } internal override void VisitPointerIndirectionReference(IPointerIndirectionReferenceOperation operation) { LogString(nameof(IPointerIndirectionReferenceOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Pointer, "Pointer"); } public override void VisitLocalReference(ILocalReferenceOperation operation) { LogString(nameof(ILocalReferenceOperation)); LogString($": {operation.Local.Name}"); if (operation.IsDeclaration) { LogString($" (IsDeclaration: {operation.IsDeclaration})"); } LogCommonPropertiesAndNewLine(operation); } public override void VisitFlowCapture(IFlowCaptureOperation operation) { LogString(nameof(IFlowCaptureOperation)); LogString($": {operation.Id.Value}"); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value, "Value"); TestOperationVisitor.Singleton.VisitFlowCapture(operation); } public override void VisitFlowCaptureReference(IFlowCaptureReferenceOperation operation) { LogString(nameof(IFlowCaptureReferenceOperation)); LogString($": {operation.Id.Value}"); LogCommonPropertiesAndNewLine(operation); } public override void VisitIsNull(IIsNullOperation operation) { LogString(nameof(IIsNullOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operand, "Operand"); } public override void VisitCaughtException(ICaughtExceptionOperation operation) { LogString(nameof(ICaughtExceptionOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitParameterReference(IParameterReferenceOperation operation) { LogString(nameof(IParameterReferenceOperation)); LogString($": {operation.Parameter.Name}"); LogCommonPropertiesAndNewLine(operation); } public override void VisitInstanceReference(IInstanceReferenceOperation operation) { LogString(nameof(IInstanceReferenceOperation)); LogString($" (ReferenceKind: {operation.ReferenceKind})"); LogCommonPropertiesAndNewLine(operation); if (operation.IsImplicit) { if (operation.Parent is IMemberReferenceOperation memberReference && memberReference.Instance == operation) { Assert.False(memberReference.Member.IsStatic && !operation.HasErrors(this._compilation)); } else if (operation.Parent is IInvocationOperation invocation && invocation.Instance == operation) { Assert.False(invocation.TargetMethod.IsStatic); } } } private void VisitMemberReferenceExpressionCommon(IMemberReferenceOperation operation) { if (operation.Member.IsStatic) { LogString(" (Static)"); } LogCommonPropertiesAndNewLine(operation); VisitInstance(operation.Instance); } public override void VisitFieldReference(IFieldReferenceOperation operation) { LogString(nameof(IFieldReferenceOperation)); LogString($": {operation.Field.ToTestDisplayString()}"); if (operation.IsDeclaration) { LogString($" (IsDeclaration: {operation.IsDeclaration})"); } VisitMemberReferenceExpressionCommon(operation); } public override void VisitMethodReference(IMethodReferenceOperation operation) { LogString(nameof(IMethodReferenceOperation)); LogString($": {operation.Method.ToTestDisplayString()}"); if (operation.IsVirtual) { LogString(" (IsVirtual)"); } Assert.Null(operation.Type); VisitMemberReferenceExpressionCommon(operation); } public override void VisitPropertyReference(IPropertyReferenceOperation operation) { LogString(nameof(IPropertyReferenceOperation)); LogString($": {operation.Property.ToTestDisplayString()}"); VisitMemberReferenceExpressionCommon(operation); if (operation.Arguments.Length > 0) { VisitArguments(operation.Arguments); } } public override void VisitEventReference(IEventReferenceOperation operation) { LogString(nameof(IEventReferenceOperation)); LogString($": {operation.Event.ToTestDisplayString()}"); VisitMemberReferenceExpressionCommon(operation); } public override void VisitEventAssignment(IEventAssignmentOperation operation) { var kindStr = operation.Adds ? "EventAdd" : "EventRemove"; LogString($"{nameof(IEventAssignmentOperation)} ({kindStr})"); LogCommonPropertiesAndNewLine(operation); Assert.NotNull(operation.EventReference); Visit(operation.EventReference, header: "Event Reference"); Visit(operation.HandlerValue, header: "Handler"); } public override void VisitConditionalAccess(IConditionalAccessOperation operation) { LogString(nameof(IConditionalAccessOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, header: nameof(operation.Operation)); Visit(operation.WhenNotNull, header: nameof(operation.WhenNotNull)); Assert.NotNull(operation.Type); } public override void VisitConditionalAccessInstance(IConditionalAccessInstanceOperation operation) { LogString(nameof(IConditionalAccessInstanceOperation)); LogCommonPropertiesAndNewLine(operation); } internal override void VisitPlaceholder(IPlaceholderOperation operation) { LogString(nameof(IPlaceholderOperation)); LogCommonPropertiesAndNewLine(operation); Assert.Equal(PlaceholderKind.AggregationGroup, operation.PlaceholderKind); } public override void VisitUnaryOperator(IUnaryOperation operation) { LogString(nameof(IUnaryOperation)); var kindStr = $"{nameof(UnaryOperatorKind)}.{operation.OperatorKind}"; if (operation.IsLifted) { kindStr += ", IsLifted"; } if (operation.IsChecked) { kindStr += ", Checked"; } LogString($" ({kindStr})"); LogHasOperatorMethodExpressionCommon(operation.OperatorMethod); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operand, "Operand"); } public override void VisitBinaryOperator(IBinaryOperation operation) { LogString(nameof(IBinaryOperation)); var kindStr = $"{nameof(BinaryOperatorKind)}.{operation.OperatorKind}"; if (operation.IsLifted) { kindStr += ", IsLifted"; } if (operation.IsChecked) { kindStr += ", Checked"; } if (operation.IsCompareText) { kindStr += ", CompareText"; } LogString($" ({kindStr})"); LogHasOperatorMethodExpressionCommon(operation.OperatorMethod); var unaryOperatorMethod = ((BinaryOperation)operation).UnaryOperatorMethod; LogCommonPropertiesAndNewLine(operation); Visit(operation.LeftOperand, "Left"); Visit(operation.RightOperand, "Right"); } public override void VisitTupleBinaryOperator(ITupleBinaryOperation operation) { LogString(nameof(ITupleBinaryOperation)); var kindStr = $"{nameof(BinaryOperatorKind)}.{operation.OperatorKind}"; LogString($" ({kindStr})"); LogCommonPropertiesAndNewLine(operation); Visit(operation.LeftOperand, "Left"); Visit(operation.RightOperand, "Right"); } private void LogHasOperatorMethodExpressionCommon(IMethodSymbol operatorMethodOpt) { if (operatorMethodOpt != null) { LogSymbol(operatorMethodOpt, header: " (OperatorMethod"); LogString(")"); } } public override void VisitConversion(IConversionOperation operation) { LogString(nameof(IConversionOperation)); var isTryCast = $"TryCast: {(operation.IsTryCast ? "True" : "False")}"; var isChecked = operation.IsChecked ? "Checked" : "Unchecked"; LogString($" ({isTryCast}, {isChecked})"); LogHasOperatorMethodExpressionCommon(operation.OperatorMethod); LogCommonPropertiesAndNewLine(operation); Indent(); LogConversion(operation.Conversion); if (((Operation)operation).OwningSemanticModel == null) { LogNewLine(); Indent(); LogString($"({((ConversionOperation)operation).ConversionConvertible})"); Unindent(); } Unindent(); LogNewLine(); Visit(operation.Operand, "Operand"); } public override void VisitConditional(IConditionalOperation operation) { LogString(nameof(IConditionalOperation)); if (operation.IsRef) { LogString(" (IsRef)"); } LogCommonPropertiesAndNewLine(operation); Visit(operation.Condition, "Condition"); Visit(operation.WhenTrue, "WhenTrue"); Visit(operation.WhenFalse, "WhenFalse"); } public override void VisitCoalesce(ICoalesceOperation operation) { LogString(nameof(ICoalesceOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value, "Expression"); Indent(); LogConversion(operation.ValueConversion, "ValueConversion"); LogNewLine(); Indent(); LogString($"({((CoalesceOperation)operation).ValueConversionConvertible})"); Unindent(); LogNewLine(); Unindent(); Visit(operation.WhenNull, "WhenNull"); } public override void VisitCoalesceAssignment(ICoalesceAssignmentOperation operation) { LogString(nameof(ICoalesceAssignmentOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Target, nameof(operation.Target)); Visit(operation.Value, nameof(operation.Value)); } public override void VisitIsType(IIsTypeOperation operation) { LogString(nameof(IIsTypeOperation)); if (operation.IsNegated) { LogString(" (IsNotExpression)"); } LogCommonPropertiesAndNewLine(operation); Visit(operation.ValueOperand, "Operand"); Indent(); LogType(operation.TypeOperand, "IsType"); LogNewLine(); Unindent(); } public override void VisitSizeOf(ISizeOfOperation operation) { LogString(nameof(ISizeOfOperation)); LogCommonPropertiesAndNewLine(operation); Indent(); LogType(operation.TypeOperand, "TypeOperand"); LogNewLine(); Unindent(); } public override void VisitTypeOf(ITypeOfOperation operation) { LogString(nameof(ITypeOfOperation)); LogCommonPropertiesAndNewLine(operation); Indent(); LogType(operation.TypeOperand, "TypeOperand"); LogNewLine(); Unindent(); } public override void VisitAnonymousFunction(IAnonymousFunctionOperation operation) { LogString(nameof(IAnonymousFunctionOperation)); // For C# this prints "lambda expression", which is not very helpful if we want to tell lambdas apart. // That is how symbol display is implemented for C#. // https://github.com/dotnet/roslyn/issues/22559#issuecomment-393667316 tracks improving the output. LogSymbol(operation.Symbol, header: " (Symbol"); LogString(")"); LogCommonPropertiesAndNewLine(operation); base.VisitAnonymousFunction(operation); } public override void VisitFlowAnonymousFunction(IFlowAnonymousFunctionOperation operation) { LogString(nameof(IFlowAnonymousFunctionOperation)); // For C# this prints "lambda expression", which is not very helpful if we want to tell lambdas apart. // That is how symbol display is implemented for C#. // https://github.com/dotnet/roslyn/issues/22559#issuecomment-393667316 tracks improving the output. LogSymbol(operation.Symbol, header: " (Symbol"); LogString(")"); LogCommonPropertiesAndNewLine(operation); base.VisitFlowAnonymousFunction(operation); } public override void VisitDelegateCreation(IDelegateCreationOperation operation) { LogString(nameof(IDelegateCreationOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Target, nameof(operation.Target)); } public override void VisitLiteral(ILiteralOperation operation) { LogString(nameof(ILiteralOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitAwait(IAwaitOperation operation) { LogString(nameof(IAwaitOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, "Expression"); } public override void VisitNameOf(INameOfOperation operation) { LogString(nameof(INameOfOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Argument); } public override void VisitThrow(IThrowOperation operation) { LogString(nameof(IThrowOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Exception); } public override void VisitAddressOf(IAddressOfOperation operation) { LogString(nameof(IAddressOfOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Reference, "Reference"); } public override void VisitObjectCreation(IObjectCreationOperation operation) { LogString(nameof(IObjectCreationOperation)); LogString($" (Constructor: {operation.Constructor?.ToTestDisplayString() ?? "<null>"})"); LogCommonPropertiesAndNewLine(operation); VisitArguments(operation.Arguments); Visit(operation.Initializer, "Initializer"); } public override void VisitAnonymousObjectCreation(IAnonymousObjectCreationOperation operation) { LogString(nameof(IAnonymousObjectCreationOperation)); LogCommonPropertiesAndNewLine(operation); foreach (var initializer in operation.Initializers) { var simpleAssignment = (ISimpleAssignmentOperation)initializer; var propertyReference = (IPropertyReferenceOperation)simpleAssignment.Target; Assert.Empty(propertyReference.Arguments); Assert.Equal(OperationKind.InstanceReference, propertyReference.Instance.Kind); Assert.Equal(InstanceReferenceKind.ImplicitReceiver, ((IInstanceReferenceOperation)propertyReference.Instance).ReferenceKind); } VisitArray(operation.Initializers, "Initializers", logElementCount: true); } public override void VisitDynamicObjectCreation(IDynamicObjectCreationOperation operation) { LogString(nameof(IDynamicObjectCreationOperation)); LogCommonPropertiesAndNewLine(operation); VisitDynamicArguments((HasDynamicArgumentsExpression)operation); Visit(operation.Initializer, "Initializer"); } public override void VisitDynamicInvocation(IDynamicInvocationOperation operation) { LogString(nameof(IDynamicInvocationOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, "Expression"); VisitDynamicArguments((HasDynamicArgumentsExpression)operation); } public override void VisitDynamicIndexerAccess(IDynamicIndexerAccessOperation operation) { LogString(nameof(IDynamicIndexerAccessOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, "Expression"); VisitDynamicArguments((HasDynamicArgumentsExpression)operation); } public override void VisitObjectOrCollectionInitializer(IObjectOrCollectionInitializerOperation operation) { LogString(nameof(IObjectOrCollectionInitializerOperation)); LogCommonPropertiesAndNewLine(operation); VisitArray(operation.Initializers, "Initializers", logElementCount: true); } public override void VisitMemberInitializer(IMemberInitializerOperation operation) { LogString(nameof(IMemberInitializerOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.InitializedMember, "InitializedMember"); Visit(operation.Initializer, "Initializer"); } [Obsolete("ICollectionElementInitializerOperation has been replaced with IInvocationOperation and IDynamicInvocationOperation", error: true)] public override void VisitCollectionElementInitializer(ICollectionElementInitializerOperation operation) { // Kept to ensure that it's never called, as we can't override DefaultVisit in this visitor throw ExceptionUtilities.Unreachable; } public override void VisitFieldInitializer(IFieldInitializerOperation operation) { LogString(nameof(IFieldInitializerOperation)); if (operation.InitializedFields.Length <= 1) { if (operation.InitializedFields.Length == 1) { LogSymbol(operation.InitializedFields[0], header: " (Field"); LogString(")"); } LogCommonPropertiesAndNewLine(operation); } else { LogString($" ({operation.InitializedFields.Length} initialized fields)"); LogCommonPropertiesAndNewLine(operation); Indent(); int index = 1; foreach (var local in operation.InitializedFields) { LogSymbol(local, header: $"Field_{index++}"); LogNewLine(); } Unindent(); } LogLocals(operation.Locals); base.VisitFieldInitializer(operation); } public override void VisitVariableInitializer(IVariableInitializerOperation operation) { LogString(nameof(IVariableInitializerOperation)); LogCommonPropertiesAndNewLine(operation); Assert.Empty(operation.Locals); base.VisitVariableInitializer(operation); } public override void VisitPropertyInitializer(IPropertyInitializerOperation operation) { LogString(nameof(IPropertyInitializerOperation)); if (operation.InitializedProperties.Length <= 1) { if (operation.InitializedProperties.Length == 1) { LogSymbol(operation.InitializedProperties[0], header: " (Property"); LogString(")"); } LogCommonPropertiesAndNewLine(operation); } else { LogString($" ({operation.InitializedProperties.Length} initialized properties)"); LogCommonPropertiesAndNewLine(operation); Indent(); int index = 1; foreach (var property in operation.InitializedProperties) { LogSymbol(property, header: $"Property_{index++}"); LogNewLine(); } Unindent(); } LogLocals(operation.Locals); base.VisitPropertyInitializer(operation); } public override void VisitParameterInitializer(IParameterInitializerOperation operation) { LogString(nameof(IParameterInitializerOperation)); LogSymbol(operation.Parameter, header: " (Parameter"); LogString(")"); LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); base.VisitParameterInitializer(operation); } public override void VisitArrayCreation(IArrayCreationOperation operation) { LogString(nameof(IArrayCreationOperation)); LogCommonPropertiesAndNewLine(operation); VisitArray(operation.DimensionSizes, "Dimension Sizes", logElementCount: true); Visit(operation.Initializer, "Initializer"); } public override void VisitArrayInitializer(IArrayInitializerOperation operation) { LogString(nameof(IArrayInitializerOperation)); LogString($" ({operation.ElementValues.Length} elements)"); LogCommonPropertiesAndNewLine(operation); Assert.Null(operation.Type); VisitArray(operation.ElementValues, "Element Values", logElementCount: true); } public override void VisitSimpleAssignment(ISimpleAssignmentOperation operation) { LogString(nameof(ISimpleAssignmentOperation)); if (operation.IsRef) { LogString(" (IsRef)"); } LogCommonPropertiesAndNewLine(operation); Visit(operation.Target, "Left"); Visit(operation.Value, "Right"); } public override void VisitDeconstructionAssignment(IDeconstructionAssignmentOperation operation) { LogString(nameof(IDeconstructionAssignmentOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Target, "Left"); Visit(operation.Value, "Right"); } public override void VisitDeclarationExpression(IDeclarationExpressionOperation operation) { LogString(nameof(IDeclarationExpressionOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Expression); } public override void VisitCompoundAssignment(ICompoundAssignmentOperation operation) { LogString(nameof(ICompoundAssignmentOperation)); var kindStr = $"{nameof(BinaryOperatorKind)}.{operation.OperatorKind}"; if (operation.IsLifted) { kindStr += ", IsLifted"; } if (operation.IsChecked) { kindStr += ", Checked"; } LogString($" ({kindStr})"); LogHasOperatorMethodExpressionCommon(operation.OperatorMethod); LogCommonPropertiesAndNewLine(operation); Indent(); LogConversion(operation.InConversion, "InConversion"); LogNewLine(); LogConversion(operation.OutConversion, "OutConversion"); LogNewLine(); Unindent(); Visit(operation.Target, "Left"); Visit(operation.Value, "Right"); } public override void VisitIncrementOrDecrement(IIncrementOrDecrementOperation operation) { LogString(nameof(IIncrementOrDecrementOperation)); var kindStr = operation.IsPostfix ? "Postfix" : "Prefix"; if (operation.IsLifted) { kindStr += ", IsLifted"; } if (operation.IsChecked) { kindStr += ", Checked"; } LogString($" ({kindStr})"); LogHasOperatorMethodExpressionCommon(operation.OperatorMethod); LogCommonPropertiesAndNewLine(operation); Visit(operation.Target, "Target"); } public override void VisitParenthesized(IParenthesizedOperation operation) { LogString(nameof(IParenthesizedOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operand, "Operand"); } public override void VisitDynamicMemberReference(IDynamicMemberReferenceOperation operation) { LogString(nameof(IDynamicMemberReferenceOperation)); // (Member Name: "quoted name", Containing Type: type) LogString(" ("); LogConstant((object)operation.MemberName, "Member Name"); LogString(", "); LogType(operation.ContainingType, "Containing Type"); LogString(")"); LogCommonPropertiesAndNewLine(operation); VisitArrayCommon(operation.TypeArguments, "Type Arguments", logElementCount: true, logNullForDefault: false, arrayElementVisitor: VisitSymbolArrayElement); VisitInstance(operation.Instance); } public override void VisitDefaultValue(IDefaultValueOperation operation) { LogString(nameof(IDefaultValueOperation)); LogCommonPropertiesAndNewLine(operation); } public override void VisitTypeParameterObjectCreation(ITypeParameterObjectCreationOperation operation) { LogString(nameof(ITypeParameterObjectCreationOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Initializer, "Initializer"); } internal override void VisitNoPiaObjectCreation(INoPiaObjectCreationOperation operation) { LogString(nameof(INoPiaObjectCreationOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Initializer, "Initializer"); } public override void VisitInvalid(IInvalidOperation operation) { LogString(nameof(IInvalidOperation)); LogCommonPropertiesAndNewLine(operation); VisitChildren(operation); } public override void VisitLocalFunction(ILocalFunctionOperation operation) { LogString(nameof(ILocalFunctionOperation)); LogSymbol(operation.Symbol, header: " (Symbol"); LogString(")"); LogCommonPropertiesAndNewLine(operation); if (operation.Body != null) { if (operation.IgnoredBody != null) { Visit(operation.Body, "Body"); Visit(operation.IgnoredBody, "IgnoredBody"); } else { Visit(operation.Body); } } else { Assert.Null(operation.IgnoredBody); } } private void LogCaseClauseCommon(ICaseClauseOperation operation) { Assert.Equal(OperationKind.CaseClause, operation.Kind); if (operation.Label != null) { LogString($" (Label Id: {GetLabelId(operation.Label)})"); } var kindStr = $"{nameof(CaseKind)}.{operation.CaseKind}"; LogString($" ({kindStr})"); LogCommonPropertiesAndNewLine(operation); } public override void VisitSingleValueCaseClause(ISingleValueCaseClauseOperation operation) { LogString(nameof(ISingleValueCaseClauseOperation)); LogCaseClauseCommon(operation); Visit(operation.Value, "Value"); } public override void VisitRelationalCaseClause(IRelationalCaseClauseOperation operation) { LogString(nameof(IRelationalCaseClauseOperation)); var kindStr = $"{nameof(BinaryOperatorKind)}.{operation.Relation}"; LogString($" (Relational operator kind: {kindStr})"); LogCaseClauseCommon(operation); Visit(operation.Value, "Value"); } public override void VisitRangeCaseClause(IRangeCaseClauseOperation operation) { LogString(nameof(IRangeCaseClauseOperation)); LogCaseClauseCommon(operation); Visit(operation.MinimumValue, "Min"); Visit(operation.MaximumValue, "Max"); } public override void VisitDefaultCaseClause(IDefaultCaseClauseOperation operation) { LogString(nameof(IDefaultCaseClauseOperation)); LogCaseClauseCommon(operation); } public override void VisitTuple(ITupleOperation operation) { LogString(nameof(ITupleOperation)); LogCommonPropertiesAndNewLine(operation); Indent(); LogType(operation.NaturalType, nameof(operation.NaturalType)); LogNewLine(); Unindent(); VisitArray(operation.Elements, "Elements", logElementCount: true); } public override void VisitInterpolatedString(IInterpolatedStringOperation operation) { LogString(nameof(IInterpolatedStringOperation)); LogCommonPropertiesAndNewLine(operation); VisitArray(operation.Parts, "Parts", logElementCount: true); } public override void VisitInterpolatedStringText(IInterpolatedStringTextOperation operation) { LogString(nameof(IInterpolatedStringTextOperation)); LogCommonPropertiesAndNewLine(operation); if (operation.Text.Kind != OperationKind.Literal) { Assert.Equal(OperationKind.Literal, ((IConversionOperation)operation.Text).Operand.Kind); } Visit(operation.Text, "Text"); } public override void VisitInterpolation(IInterpolationOperation operation) { LogString(nameof(IInterpolationOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Expression, "Expression"); Visit(operation.Alignment, "Alignment"); Visit(operation.FormatString, "FormatString"); if (operation.FormatString != null && operation.FormatString.Kind != OperationKind.Literal) { Assert.Equal(OperationKind.Literal, ((IConversionOperation)operation.FormatString).Operand.Kind); } } public override void VisitConstantPattern(IConstantPatternOperation operation) { LogString(nameof(IConstantPatternOperation)); LogPatternPropertiesAndNewLine(operation); Visit(operation.Value, "Value"); } public override void VisitRelationalPattern(IRelationalPatternOperation operation) { LogString(nameof(IRelationalPatternOperation)); LogString($" ({nameof(BinaryOperatorKind)}.{operation.OperatorKind})"); LogPatternPropertiesAndNewLine(operation); Visit(operation.Value, "Value"); } public override void VisitNegatedPattern(INegatedPatternOperation operation) { LogString(nameof(INegatedPatternOperation)); LogPatternPropertiesAndNewLine(operation); Visit(operation.Pattern, "Pattern"); } public override void VisitBinaryPattern(IBinaryPatternOperation operation) { LogString(nameof(IBinaryPatternOperation)); LogString($" ({nameof(BinaryOperatorKind)}.{operation.OperatorKind})"); LogPatternPropertiesAndNewLine(operation); Visit(operation.LeftPattern, "LeftPattern"); Visit(operation.RightPattern, "RightPattern"); } public override void VisitTypePattern(ITypePatternOperation operation) { LogString(nameof(ITypePatternOperation)); LogPatternProperties(operation); LogSymbol(operation.MatchedType, $", {nameof(operation.MatchedType)}"); LogString(")"); LogNewLine(); } public override void VisitDeclarationPattern(IDeclarationPatternOperation operation) { LogString(nameof(IDeclarationPatternOperation)); LogPatternProperties(operation); LogSymbol(operation.DeclaredSymbol, $", {nameof(operation.DeclaredSymbol)}"); LogConstant((object)operation.MatchesNull, $", {nameof(operation.MatchesNull)}"); LogString(")"); LogNewLine(); } public override void VisitRecursivePattern(IRecursivePatternOperation operation) { LogString(nameof(IRecursivePatternOperation)); LogPatternProperties(operation); LogSymbol(operation.DeclaredSymbol, $", {nameof(operation.DeclaredSymbol)}"); LogType(operation.MatchedType, $", {nameof(operation.MatchedType)}"); LogSymbol(operation.DeconstructSymbol, $", {nameof(operation.DeconstructSymbol)}"); LogString(")"); LogNewLine(); VisitArray(operation.DeconstructionSubpatterns, $"{nameof(operation.DeconstructionSubpatterns)} ", true, true); VisitArray(operation.PropertySubpatterns, $"{nameof(operation.PropertySubpatterns)} ", true, true); } public override void VisitPropertySubpattern(IPropertySubpatternOperation operation) { LogString(nameof(IPropertySubpatternOperation)); LogCommonProperties(operation); LogNewLine(); Visit(operation.Member, $"{nameof(operation.Member)}"); Visit(operation.Pattern, $"{nameof(operation.Pattern)}"); } public override void VisitIsPattern(IIsPatternOperation operation) { LogString(nameof(IIsPatternOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value, $"{nameof(operation.Value)}"); Visit(operation.Pattern, "Pattern"); } public override void VisitPatternCaseClause(IPatternCaseClauseOperation operation) { LogString(nameof(IPatternCaseClauseOperation)); LogCaseClauseCommon(operation); Assert.Same(((ICaseClauseOperation)operation).Label, operation.Label); Visit(operation.Pattern, "Pattern"); if (operation.Guard != null) Visit(operation.Guard, nameof(operation.Guard)); } public override void VisitTranslatedQuery(ITranslatedQueryOperation operation) { LogString(nameof(ITranslatedQueryOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operation, "Expression"); } public override void VisitRaiseEvent(IRaiseEventOperation operation) { LogString(nameof(IRaiseEventOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.EventReference, header: "Event Reference"); VisitArguments(operation.Arguments); } public override void VisitConstructorBodyOperation(IConstructorBodyOperation operation) { LogString(nameof(IConstructorBodyOperation)); LogCommonPropertiesAndNewLine(operation); LogLocals(operation.Locals); Visit(operation.Initializer, "Initializer"); Visit(operation.BlockBody, "BlockBody"); Visit(operation.ExpressionBody, "ExpressionBody"); } public override void VisitMethodBodyOperation(IMethodBodyOperation operation) { LogString(nameof(IMethodBodyOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.BlockBody, "BlockBody"); Visit(operation.ExpressionBody, "ExpressionBody"); } public override void VisitDiscardOperation(IDiscardOperation operation) { LogString(nameof(IDiscardOperation)); LogString(" ("); LogSymbol(operation.DiscardSymbol, "Symbol"); LogString(")"); LogCommonPropertiesAndNewLine(operation); } public override void VisitDiscardPattern(IDiscardPatternOperation operation) { LogString(nameof(IDiscardPatternOperation)); LogPatternPropertiesAndNewLine(operation); } public override void VisitSwitchExpression(ISwitchExpressionOperation operation) { LogString($"{nameof(ISwitchExpressionOperation)} ({operation.Arms.Length} arms, IsExhaustive: {operation.IsExhaustive})"); LogCommonPropertiesAndNewLine(operation); Visit(operation.Value, nameof(operation.Value)); VisitArray(operation.Arms, nameof(operation.Arms), logElementCount: true); } public override void VisitSwitchExpressionArm(ISwitchExpressionArmOperation operation) { LogString($"{nameof(ISwitchExpressionArmOperation)} ({operation.Locals.Length} locals)"); LogCommonPropertiesAndNewLine(operation); Visit(operation.Pattern, nameof(operation.Pattern)); if (operation.Guard != null) Visit(operation.Guard, nameof(operation.Guard)); Visit(operation.Value, nameof(operation.Value)); LogLocals(operation.Locals); } public override void VisitStaticLocalInitializationSemaphore(IStaticLocalInitializationSemaphoreOperation operation) { LogString(nameof(IStaticLocalInitializationSemaphoreOperation)); LogSymbol(operation.Local, " (Local Symbol"); LogString(")"); LogCommonPropertiesAndNewLine(operation); } public override void VisitRangeOperation(IRangeOperation operation) { LogString(nameof(IRangeOperation)); if (operation.IsLifted) { LogString(" (IsLifted)"); } LogCommonPropertiesAndNewLine(operation); Visit(operation.LeftOperand, nameof(operation.LeftOperand)); Visit(operation.RightOperand, nameof(operation.RightOperand)); } public override void VisitReDim(IReDimOperation operation) { LogString(nameof(IReDimOperation)); if (operation.Preserve) { LogString(" (Preserve)"); } LogCommonPropertiesAndNewLine(operation); VisitArray(operation.Clauses, "Clauses", logElementCount: true); } public override void VisitReDimClause(IReDimClauseOperation operation) { LogString(nameof(IReDimClauseOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operand, "Operand"); VisitArray(operation.DimensionSizes, "DimensionSizes", logElementCount: true); } public override void VisitWith(IWithOperation operation) { LogString(nameof(IWithOperation)); LogCommonPropertiesAndNewLine(operation); Visit(operation.Operand, "Operand"); Indent(); LogSymbol(operation.CloneMethod, nameof(operation.CloneMethod)); LogNewLine(); Unindent(); Visit(operation.Initializer, "Initializer"); } #endregion } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/VisualBasic/Test/IOperation/IOperation/IOperationTests_IConversionExpression.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.VisualBasic.Syntax Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.CodeAnalysis.Operations Imports Roslyn.Test.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics Partial Public Class IOperationTests Inherits SemanticModelTestBase #Region "Widening Conversions" <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningNothingToClass() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim s As String = Nothing'BIND:"Dim s As String = Nothing" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim s As St ... g = Nothing') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 's As String = Nothing') Declarators: IVariableDeclaratorOperation (Symbol: s As System.String) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Nothing') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, Constant: null, IsImplicit) (Syntax: 'Nothing') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: null, Constant: null) (Syntax: 'Nothing') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningNothingToStruct() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim s As Integer = Nothing'BIND:"Dim s As Integer = Nothing" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim s As In ... r = Nothing') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 's As Integer = Nothing') Declarators: IVariableDeclaratorOperation (Symbol: s As System.Int32) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Nothing') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int32, Constant: 0, IsImplicit) (Syntax: 'Nothing') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: null, Constant: null) (Syntax: 'Nothing') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningNumberToNumber() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim s As Double = 1'BIND:"Dim s As Double = 1" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim s As Double = 1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 's As Double = 1') Declarators: IVariableDeclaratorOperation (Symbol: s As System.Double) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= 1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Double, Constant: 1, IsImplicit) (Syntax: '1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningZeroAsEnum() Dim source = <![CDATA[ Option Strict On Module Program Enum A Zero End Enum Sub M1() Dim a As A = 0'BIND:"Dim a As A = 0" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As A = 0') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As A = 0') Declarators: IVariableDeclaratorOperation (Symbol: a As Program.A) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= 0') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.A, Constant: 0, IsImplicit) (Syntax: '0') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 0) (Syntax: '0') ]]>.Value Dim expectedDiagnostics = String.Empty ' We don't look for the type here. Semantic model doesn't have a conversion here VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingOneAsEnum() Dim source = <![CDATA[ Module Program Sub M1() Dim a As A = 1'BIND:"Dim a As A = 1" End Sub Enum A Zero End Enum End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As A = 1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As A = 1') Declarators: IVariableDeclaratorOperation (Symbol: a As Program.A) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= 1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.A, Constant: 1, IsImplicit) (Syntax: '1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingOneAsEnum_InvalidOptionStrictOn() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As A = 1'BIND:"Dim a As A = 1" End Sub Enum A Zero End Enum End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As A = 1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As A = 1') Declarators: IVariableDeclaratorOperation (Symbol: a As Program.A) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= 1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.A, Constant: 1, IsInvalid, IsImplicit) (Syntax: '1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1, IsInvalid) (Syntax: '1') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Integer' to 'Program.A'. Dim a As A = 1'BIND:"Dim a As A = 1" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingIntAsEnum() Dim source = <![CDATA[ Module Program Sub M1() Dim i As Integer = 0 Dim a As A = i'BIND:"Dim a As A = i" End Sub Enum A Zero End Enum End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As A = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As A = i') Declarators: IVariableDeclaratorOperation (Symbol: a As Program.A) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.A, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingIntAsEnum_InvalidOptionStrictOn() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim i As Integer = 0 Dim a As A = i'BIND:"Dim a As A = i" End Sub Enum A Zero End Enum End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As A = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As A = i') Declarators: IVariableDeclaratorOperation (Symbol: a As Program.A) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.A, IsInvalid, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32, IsInvalid) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Integer' to 'Program.A'. Dim a As A = i'BIND:"Dim a As A = i" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_InvalidStatement_NoIdentifier() Dim source = <![CDATA[ Option Strict On Module Program Enum A Zero End Enum Sub M1() Dim a As A ='BIND:"Dim a As A =" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As A =') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As A =') Declarators: IVariableDeclaratorOperation (Symbol: a As Program.A) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '=') IInvalidOperation (OperationKind.Invalid, Type: null, IsInvalid) (Syntax: '') Children(0) ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30201: Expression expected. Dim a As A ='BIND:"Dim a As A =" ~ ]]>.Value ' We don't verify the symbols here, as the semantic model says that there is no conversion. VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_InvalidStatement_InvalidIdentifier() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim a As Integer = b + c'BIND:"Dim a As Integer = b + c" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Integer = b + c') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Integer = b + c') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Int32) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= b + c') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int32, IsInvalid, IsImplicit) (Syntax: 'b + c') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IBinaryOperation (BinaryOperatorKind.Add, Checked) (OperationKind.Binary, Type: ?, IsInvalid) (Syntax: 'b + c') Left: IInvalidOperation (OperationKind.Invalid, Type: ?, IsInvalid) (Syntax: 'b') Children(0) Right: IInvalidOperation (OperationKind.Invalid, Type: ?, IsInvalid) (Syntax: 'c') Children(0) ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30451: 'b' is not declared. It may be inaccessible due to its protection level. Dim a As Integer = b + c'BIND:"Dim a As Integer = b + c" ~ BC30451: 'c' is not declared. It may be inaccessible due to its protection level. Dim a As Integer = b + c'BIND:"Dim a As Integer = b + c" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningEnumToUnderlyingType() Dim source = <![CDATA[ Option Strict On Module Program Enum A Zero One Two End Enum Sub M1() Dim i As Integer = A.Two'BIND:"Dim i As Integer = A.Two" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i As Integer = A.Two') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i As Integer = A.Two') Declarators: IVariableDeclaratorOperation (Symbol: i As System.Int32) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= A.Two') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int32, Constant: 2, IsImplicit) (Syntax: 'A.Two') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IFieldReferenceOperation: Program.A.Two (Static) (OperationKind.FieldReference, Type: Program.A, Constant: 2) (Syntax: 'A.Two') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningEnumToUnderlyingTypeConversion() Dim source = <![CDATA[ Option Strict On Module Program Enum A Zero One Two End Enum Sub M1() Dim i As Single = A.Two'BIND:"Dim i As Single = A.Two" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i As Single = A.Two') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i As Single = A.Two') Declarators: IVariableDeclaratorOperation (Symbol: i As System.Single) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= A.Two') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Single, Constant: 2, IsImplicit) (Syntax: 'A.Two') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IFieldReferenceOperation: Program.A.Two (Static) (OperationKind.FieldReference, Type: Program.A, Constant: 2) (Syntax: 'A.Two') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingEnumToUnderlyingTypeConversion_InvalidOptionStrictConversion() Dim source = <![CDATA[ Option Strict On Module Program Enum A As UInteger Zero One Two End Enum Sub M1() Dim i As Integer = A.Two'BIND:"Dim i As Integer = A.Two" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim i As Integer = A.Two') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'i As Integer = A.Two') Declarators: IVariableDeclaratorOperation (Symbol: i As System.Int32) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= A.Two') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int32, Constant: 2, IsInvalid, IsImplicit) (Syntax: 'A.Two') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IFieldReferenceOperation: Program.A.Two (Static) (OperationKind.FieldReference, Type: Program.A, Constant: 2, IsInvalid) (Syntax: 'A.Two') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Program.A' to 'Integer'. Dim i As Integer = A.Two'BIND:"Dim i As Integer = A.Two" ~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningConstantExpressionNarrowing() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim i As Single = 1.0'BIND:"Dim i As Single = 1.0" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i As Single = 1.0') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i As Single = 1.0') Declarators: IVariableDeclaratorOperation (Symbol: i As System.Single) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= 1.0') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Single, Constant: 1, IsImplicit) (Syntax: '1.0') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Double, Constant: 1) (Syntax: '1.0') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingBooleanConversion() Dim source = <![CDATA[ Module Program Sub M1() Dim b As Boolean = False Dim s As String = b'BIND:"Dim s As String = b" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim s As String = b') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 's As String = b') Declarators: IVariableDeclaratorOperation (Symbol: s As System.String) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= b') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, IsImplicit) (Syntax: 'b') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: b (OperationKind.LocalReference, Type: System.Boolean) (Syntax: 'b') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingBooleanConversion_InvalidOptionStrictOn() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim b As Boolean = False Dim s As String = b'BIND:"Dim s As String = b" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim s As String = b') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 's As String = b') Declarators: IVariableDeclaratorOperation (Symbol: s As System.String) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= b') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, IsInvalid, IsImplicit) (Syntax: 'b') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: b (OperationKind.LocalReference, Type: System.Boolean, IsInvalid) (Syntax: 'b') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Boolean' to 'String'. Dim s As String = b'BIND:"Dim s As String = b" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningClassToBaseClass() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim c2 As C2 = New C2 Dim c1 As C1 = c2'BIND:"Dim c1 As C1 = c2" End Sub Class C1 End Class Class C2 Inherits C1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1 As C1 = c2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1 As C1 = c2') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Program.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c2') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.C1, IsImplicit) (Syntax: 'c2') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2 (OperationKind.LocalReference, Type: Program.C2) (Syntax: 'c2') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningClassToBaseClass_InvalidNoConversion() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim c2 As C2 = New C2 Dim c1 As C1 = c2'BIND:"Dim c1 As C1 = c2" End Sub Class C1 End Class Class C2 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim c1 As C1 = c2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'c1 As C1 = c2') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Program.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= c2') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.C1, IsInvalid, IsImplicit) (Syntax: 'c2') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2 (OperationKind.LocalReference, Type: Program.C2, IsInvalid) (Syntax: 'c2') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30311: Value of type 'Program.C2' cannot be converted to 'Program.C1'. Dim c1 As C1 = c2'BIND:"Dim c1 As C1 = c2" ~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningClassToInterface() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim c1 As C1 = New C1 Dim i1 As I1 = c1'BIND:"Dim i1 As I1 = c1" End Sub Interface I1 End Interface Class C1 Implements I1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i1 As I1 = c1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i1 As I1 = c1') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Program.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.I1, IsImplicit) (Syntax: 'c1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c1 (OperationKind.LocalReference, Type: Program.C1) (Syntax: 'c1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningClassToInterface_InvalidNoImplementation() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim c1 As C1 = New C1 Dim i1 As I1 = c1'BIND:"Dim i1 As I1 = c1" End Sub Interface I1 End Interface Class C1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim i1 As I1 = c1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'i1 As I1 = c1') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Program.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= c1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.I1, IsInvalid, IsImplicit) (Syntax: 'c1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c1 (OperationKind.LocalReference, Type: Program.C1, IsInvalid) (Syntax: 'c1') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Program.C1' to 'Program.I1'. Dim i1 As I1 = c1'BIND:"Dim i1 As I1 = c1" ~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingClassToInterface_OptionStrictOff() Dim source = <![CDATA[ Module Program Sub M1() Dim c1 As C1 = New C1 Dim i1 As I1 = c1'BIND:"Dim i1 As I1 = c1" End Sub Interface I1 End Interface Class C1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i1 As I1 = c1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i1 As I1 = c1') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Program.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.I1, IsImplicit) (Syntax: 'c1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c1 (OperationKind.LocalReference, Type: Program.C1) (Syntax: 'c1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningInterfaceToObject() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim i As I1 = Nothing Dim o As Object = i'BIND:"Dim o As Object = i" End Sub Interface I1 End Interface End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim o As Object = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'o As Object = i') Declarators: IVariableDeclaratorOperation (Symbol: o As System.Object) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'o') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Object, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: Program.I1) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningVarianceConversion() Dim source = <![CDATA[ Option Strict On Imports System.Collections.Generic Module Program Sub M1() Dim i2List As IList(Of I2) = Nothing Dim i1List As IEnumerable(Of I1) = i2List'BIND:"Dim i1List As IEnumerable(Of I1) = i2List" End Sub Interface I1 End Interface Interface I2 Inherits I1 End Interface End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i1List ... 1) = i2List') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i1List As I ... 1) = i2List') Declarators: IVariableDeclaratorOperation (Symbol: i1List As System.Collections.Generic.IEnumerable(Of Program.I1)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1List') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i2List') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Collections.Generic.IEnumerable(Of Program.I1), IsImplicit) (Syntax: 'i2List') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i2List (OperationKind.LocalReference, Type: System.Collections.Generic.IList(Of Program.I2)) (Syntax: 'i2List') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action(Of Integer) = Sub(i As Integer)'BIND:"Dim a As Action(Of Integer) = Sub(i As Integer)" End Sub End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ac ... End Sub') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Action ... End Sub') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Sub(i As ... End Sub') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action(Of System.Int32), IsImplicit) (Syntax: 'Sub(i As In ... End Sub') Target: IAnonymousFunctionOperation (Symbol: Sub (i As System.Int32)) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Sub(i As In ... End Sub') IBlockOperation (2 statements) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Sub(i As In ... End Sub') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'End Sub') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'End Sub') ReturnedValue: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate_JustInitializerReturnsOnlyLambda() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action(Of Integer) = Sub(i As Integer)'BIND:"Sub(i As Integer)" End Sub End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IAnonymousFunctionOperation (Symbol: Sub (i As System.Int32)) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Sub(i As In ... End Sub') IBlockOperation (2 statements) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Sub(i As In ... End Sub') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'End Sub') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'End Sub') ReturnedValue: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of MultiLineLambdaExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate_RelaxationOfArguments() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action(Of Integer) = Sub()'BIND:"Dim a As Action(Of Integer) = Sub()" End Sub End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ac ... End Sub') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Action ... End Sub') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Sub()'BIN ... End Sub') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action(Of System.Int32), IsImplicit) (Syntax: 'Sub()'BIND: ... End Sub') Target: IAnonymousFunctionOperation (Symbol: Sub ()) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Sub()'BIND: ... End Sub') IBlockOperation (2 statements) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Sub()'BIND: ... End Sub') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'End Sub') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'End Sub') ReturnedValue: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate_RelaxationOfArguments_InvalidConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action = Sub(i As Integer)'BIND:"Dim a As Action = Sub(i As Integer)" End Sub End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Ac ... End Sub') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Action ... End Sub') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= Sub(i As ... End Sub') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action, IsInvalid, IsImplicit) (Syntax: 'Sub(i As In ... End Sub') Target: IAnonymousFunctionOperation (Symbol: Sub (i As System.Int32)) (OperationKind.AnonymousFunction, Type: null, IsInvalid) (Syntax: 'Sub(i As In ... End Sub') IBlockOperation (2 statements) (OperationKind.Block, Type: null, IsInvalid, IsImplicit) (Syntax: 'Sub(i As In ... End Sub') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsInvalid, IsImplicit) (Syntax: 'End Sub') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsInvalid, IsImplicit) (Syntax: 'End Sub') ReturnedValue: null ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC36670: Nested sub does not have a signature that is compatible with delegate 'Action'. Dim a As Action = Sub(i As Integer)'BIND:"Dim a As Action = Sub(i As Integer)" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate_ReturnConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Func(Of Long) = Function() As Integer'BIND:"Dim a As Func(Of Long) = Function() As Integer" Return 1 End Function End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Fu ... nd Function') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Func(O ... nd Function') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Func(Of System.Int64)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Function( ... nd Function') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Func(Of System.Int64), IsImplicit) (Syntax: 'Function() ... nd Function') Target: IAnonymousFunctionOperation (Symbol: Function () As System.Int32) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function() ... nd Function') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function() ... nd Function') Locals: Local_1: <anonymous local> As System.Int32 IReturnOperation (OperationKind.Return, Type: null) (Syntax: 'Return 1') ReturnedValue: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'End Function') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'End Function') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Int32, IsImplicit) (Syntax: 'End Function') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate_RelaxationOfReturn() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action(Of Integer) = Function() As Integer'BIND:"Dim a As Action(Of Integer) = Function() As Integer" Return 1 End Function End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ac ... nd Function') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Action ... nd Function') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Function( ... nd Function') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action(Of System.Int32), IsImplicit) (Syntax: 'Function() ... nd Function') Target: IAnonymousFunctionOperation (Symbol: Function () As System.Int32) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function() ... nd Function') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function() ... nd Function') Locals: Local_1: <anonymous local> As System.Int32 IReturnOperation (OperationKind.Return, Type: null) (Syntax: 'Return 1') ReturnedValue: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'End Function') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'End Function') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Int32, IsImplicit) (Syntax: 'End Function') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate_RelaxationOfReturn_InvalidConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Func(Of Integer) = Sub()'BIND:"Dim a As Func(Of Integer) = Sub()" End Sub End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Fu ... End Sub') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Func(O ... End Sub') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Func(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= Sub()'BIN ... End Sub') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Func(Of System.Int32), IsInvalid, IsImplicit) (Syntax: 'Sub()'BIND: ... End Sub') Target: IAnonymousFunctionOperation (Symbol: Sub ()) (OperationKind.AnonymousFunction, Type: null, IsInvalid) (Syntax: 'Sub()'BIND: ... End Sub') IBlockOperation (2 statements) (OperationKind.Block, Type: null, IsInvalid, IsImplicit) (Syntax: 'Sub()'BIND: ... End Sub') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsInvalid, IsImplicit) (Syntax: 'End Sub') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsInvalid, IsImplicit) (Syntax: 'End Sub') ReturnedValue: null ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC36670: Nested sub does not have a signature that is compatible with delegate 'Func(Of Integer)'. Dim a As Func(Of Integer) = Sub()'BIND:"Dim a As Func(Of Integer) = Sub()" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate() Dim source = <![CDATA[ Imports System Module Program Sub M1() Dim a As Action = AddressOf M2'BIND:"Dim a As Action = AddressOf M2" End Sub Sub M2() End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ac ... ddressOf M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Action ... ddressOf M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= AddressOf M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action, IsImplicit) (Syntax: 'AddressOf M2') Target: IMethodReferenceOperation: Sub Program.M2() (Static) (OperationKind.MethodReference, Type: null) (Syntax: 'AddressOf M2') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_RelaxationArguments() Dim source = <![CDATA[ Imports System Module Program Sub M1() Dim a As Action(Of Integer) = AddressOf M2'BIND:"Dim a As Action(Of Integer) = AddressOf M2" End Sub Sub M2() End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ac ... ddressOf M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Action ... ddressOf M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= AddressOf M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action(Of System.Int32), IsImplicit) (Syntax: 'AddressOf M2') Target: IMethodReferenceOperation: Sub Program.M2() (Static) (OperationKind.MethodReference, Type: null) (Syntax: 'AddressOf M2') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_RelaxationArguments_InvalidConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action = AddressOf M2'BIND:"Dim a As Action = AddressOf M2" End Sub Sub M2(i As Integer) End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Ac ... ddressOf M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Action ... ddressOf M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= AddressOf M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action, IsInvalid, IsImplicit) (Syntax: 'AddressOf M2') Target: IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'AddressOf M2') Children(1): IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'M2') Children(1): IInstanceReferenceOperation (ReferenceKind: ContainingTypeInstance) (OperationKind.InstanceReference, Type: Program, IsInvalid, IsImplicit) (Syntax: 'M2') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC31143: Method 'Public Sub M2(i As Integer)' does not have a signature compatible with delegate 'Delegate Sub Action()'. Dim a As Action = AddressOf M2'BIND:"Dim a As Action = AddressOf M2" ~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_RelaxationArguments_NonImplicitReceiver_InvalidConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim c1 As New C1 Dim a As Action = AddressOf c1.M2'BIND:"Dim a As Action = AddressOf c1.M2" End Sub Class C1 Sub M2(i As Integer) End Sub End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Ac ... essOf c1.M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Action ... essOf c1.M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= AddressOf c1.M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action, IsInvalid, IsImplicit) (Syntax: 'AddressOf c1.M2') Target: IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'AddressOf c1.M2') Children(1): IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'c1.M2') Children(1): IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'c1') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC31143: Method 'Public Sub M2(i As Integer)' does not have a signature compatible with delegate 'Delegate Sub Action()'. Dim a As Action = AddressOf c1.M2'BIND:"Dim a As Action = AddressOf c1.M2" ~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_RelaxationReturnType() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action = AddressOf M2'BIND:"Dim a As Action = AddressOf M2" End Sub Function M2() As Integer Return 1 End Function End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ac ... ddressOf M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Action ... ddressOf M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= AddressOf M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action, IsImplicit) (Syntax: 'AddressOf M2') Target: IMethodReferenceOperation: Function Program.M2() As System.Int32 (Static) (OperationKind.MethodReference, Type: null) (Syntax: 'AddressOf M2') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_RelaxationReturnType_JustInitializerReturnsOnlyMethodReference() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action = AddressOf M2'BIND:"AddressOf M2" End Sub Function M2() As Integer Return 1 End Function End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IMethodReferenceOperation: Function Program.M2() As System.Int32 (Static) (OperationKind.MethodReference, Type: null) (Syntax: 'AddressOf M2') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of UnaryExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_ReturnConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Func(Of Long) = AddressOf M2'BIND:"Dim a As Func(Of Long) = AddressOf M2" End Sub Function M2() As Integer Return 1 End Function End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Fu ... ddressOf M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Func(O ... ddressOf M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Func(Of System.Int64)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= AddressOf M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Func(Of System.Int64), IsImplicit) (Syntax: 'AddressOf M2') Target: IMethodReferenceOperation: Function Program.M2() As System.Int32 (Static) (OperationKind.MethodReference, Type: null) (Syntax: 'AddressOf M2') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_RelaxationReturnType_InvalidConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Func(Of Long) = AddressOf M2'BIND:"Dim a As Func(Of Long) = AddressOf M2" End Sub Sub M2() End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Fu ... ddressOf M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Func(O ... ddressOf M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Func(Of System.Int64)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= AddressOf M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Func(Of System.Int64), IsInvalid, IsImplicit) (Syntax: 'AddressOf M2') Target: IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'AddressOf M2') Children(1): IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'M2') Children(1): IInstanceReferenceOperation (ReferenceKind: ContainingTypeInstance) (OperationKind.InstanceReference, Type: Program, IsInvalid, IsImplicit) (Syntax: 'M2') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC31143: Method 'Public Sub M2()' does not have a signature compatible with delegate 'Delegate Function Func(Of Long)() As Long'. Dim a As Func(Of Long) = AddressOf M2'BIND:"Dim a As Func(Of Long) = AddressOf M2" ~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_InvalidMethodGroupToDelegateSyntax() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action = AddressOf'BIND:"Dim a As Action = AddressOf" End Sub Function M2() As Integer Return 1 End Function End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Ac ... = AddressOf') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Action = AddressOf') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= AddressOf') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action, IsInvalid, IsImplicit) (Syntax: 'AddressOf') Target: IInvalidOperation (OperationKind.Invalid, Type: ?, IsInvalid) (Syntax: 'AddressOf') Children(1): IInvalidOperation (OperationKind.Invalid, Type: null, IsInvalid) (Syntax: '') Children(0) ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30201: Expression expected. Dim a As Action = AddressOf'BIND:"Dim a As Action = AddressOf" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToSystemArrayConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Array = New Integer(1) {}'BIND:"Dim a As Array = New Integer(1) {}" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ar ... teger(1) {}') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Array ... teger(1) {}') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Array) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= New Integer(1) {}') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Array, IsImplicit) (Syntax: 'New Integer(1) {}') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: IArrayCreationOperation (OperationKind.ArrayCreation, Type: System.Int32()) (Syntax: 'New Integer(1) {}') Dimension Sizes(1): IBinaryOperation (BinaryOperatorKind.Add, Checked) (OperationKind.Binary, Type: System.Int32, Constant: 2, IsImplicit) (Syntax: '1') Left: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1, IsImplicit) (Syntax: '1') Initializer: IArrayInitializerOperation (0 elements) (OperationKind.ArrayInitializer, Type: null) (Syntax: '{}') Element Values(0) ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToSystemArrayConversion_MultiDimensionalArray() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Array = New Integer(1)() {}'BIND:"Dim a As Array = New Integer(1)() {}" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ar ... ger(1)() {}') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Array ... ger(1)() {}') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Array) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= New Integer(1)() {}') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Array, IsImplicit) (Syntax: 'New Integer(1)() {}') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: IArrayCreationOperation (OperationKind.ArrayCreation, Type: System.Int32()()) (Syntax: 'New Integer(1)() {}') Dimension Sizes(1): IBinaryOperation (BinaryOperatorKind.Add, Checked) (OperationKind.Binary, Type: System.Int32, Constant: 2, IsImplicit) (Syntax: '1') Left: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1, IsImplicit) (Syntax: '1') Initializer: IArrayInitializerOperation (0 elements) (OperationKind.ArrayInitializer, Type: null) (Syntax: '{}') Element Values(0) ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToSystemArray_InvalidNotArray() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Array = New Object'BIND:"Dim a As Array = New Object" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Ar ... New Object') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Array = New Object') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Array) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= New Object') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Array, IsInvalid, IsImplicit) (Syntax: 'New Object') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: IObjectCreationOperation (Constructor: Sub System.Object..ctor()) (OperationKind.ObjectCreation, Type: System.Object, IsInvalid) (Syntax: 'New Object') Arguments(0) Initializer: null ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Object' to 'Array'. Dim a As Array = New Object'BIND:"Dim a As Array = New Object" ~~~~~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToArray() Dim source = <![CDATA[ Option Strict On Imports System.Collections.Generic Module Program Sub M1() Dim c2List(1) As C2 Dim c1List As C1() = c2List'BIND:"Dim c1List As C1() = c2List" End Sub Class C1 End Class Class C2 Inherits C1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1List ... () = c2List') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1List As C1() = c2List') Declarators: IVariableDeclaratorOperation (Symbol: c1List As Program.C1()) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1List') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c2List') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.C1(), IsImplicit) (Syntax: 'c2List') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2List (OperationKind.LocalReference, Type: Program.C2()) (Syntax: 'c2List') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToArray_InvalidDimensionMismatch() Dim source = <![CDATA[ Option Strict On Imports System.Collections.Generic Module Program Sub M1() Dim c2List(1)() As C2 Dim c1List As C1() = c2List'BIND:"Dim c1List As C1() = c2List" End Sub Class C1 End Class Class C2 Inherits C1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim c1List ... () = c2List') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'c1List As C1() = c2List') Declarators: IVariableDeclaratorOperation (Symbol: c1List As Program.C1()) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1List') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= c2List') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.C1(), IsInvalid, IsImplicit) (Syntax: 'c2List') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2List (OperationKind.LocalReference, Type: Program.C2()(), IsInvalid) (Syntax: 'c2List') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30332: Value of type 'Program.C2()()' cannot be converted to 'Program.C1()' because 'Program.C2()' is not derived from 'Program.C1'. Dim c1List As C1() = c2List'BIND:"Dim c1List As C1() = c2List" ~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToArray_InvalidNoConversion() Dim source = <![CDATA[ Option Strict On Imports System.Collections.Generic Module Program Sub M1() Dim c2List(1) As C2 Dim c1List As C1() = c2List'BIND:"Dim c1List As C1() = c2List" End Sub Class C1 End Class Class C2 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim c1List ... () = c2List') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'c1List As C1() = c2List') Declarators: IVariableDeclaratorOperation (Symbol: c1List As Program.C1()) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1List') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= c2List') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.C1(), IsInvalid, IsImplicit) (Syntax: 'c2List') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2List (OperationKind.LocalReference, Type: Program.C2(), IsInvalid) (Syntax: 'c2List') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30332: Value of type 'Program.C2()' cannot be converted to 'Program.C1()' because 'Program.C2' is not derived from 'Program.C1'. Dim c1List As C1() = c2List'BIND:"Dim c1List As C1() = c2List" ~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToSystemIEnumerable() Dim source = <![CDATA[ Option Strict On Imports System.Collections.Generic Module Program Sub M1() Dim c2List(1) As C2 Dim c1List As IEnumerable(Of C1) = c2List'BIND:"Dim c1List As IEnumerable(Of C1) = c2List" End Sub Class C1 End Class Class C2 Inherits C1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1List ... 1) = c2List') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1List As I ... 1) = c2List') Declarators: IVariableDeclaratorOperation (Symbol: c1List As System.Collections.Generic.IEnumerable(Of Program.C1)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1List') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c2List') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Collections.Generic.IEnumerable(Of Program.C1), IsImplicit) (Syntax: 'c2List') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2List (OperationKind.LocalReference, Type: Program.C2()) (Syntax: 'c2List') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToSystemIEnumerable_InvalidNoConversion() Dim source = <![CDATA[ Option Strict On Imports System.Collections.Generic Module Program Sub M1() Dim c2List(1) As C2 Dim c1List As IEnumerable(Of C1) = c2List'BIND:"Dim c1List As IEnumerable(Of C1) = c2List" End Sub Class C1 End Class Class C2 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim c1List ... 1) = c2List') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'c1List As I ... 1) = c2List') Declarators: IVariableDeclaratorOperation (Symbol: c1List As System.Collections.Generic.IEnumerable(Of Program.C1)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1List') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= c2List') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Collections.Generic.IEnumerable(Of Program.C1), IsInvalid, IsImplicit) (Syntax: 'c2List') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2List (OperationKind.LocalReference, Type: Program.C2(), IsInvalid) (Syntax: 'c2List') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC36754: 'Program.C2()' cannot be converted to 'IEnumerable(Of Program.C1)' because 'Program.C2' is not derived from 'Program.C1', as required for the 'Out' generic parameter 'T' in 'Interface IEnumerable(Of Out T)'. Dim c1List As IEnumerable(Of C1) = c2List'BIND:"Dim c1List As IEnumerable(Of C1) = c2List" ~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningStructureToInterface() Dim source = <![CDATA[ Module Program Sub M1() Dim s1 = New S1 Dim i1 As I1 = s1'BIND:"Dim i1 As I1 = s1" End Sub Interface I1 End Interface Structure S1 Implements I1 End Structure End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i1 As I1 = s1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i1 As I1 = s1') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Program.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= s1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.I1, IsImplicit) (Syntax: 's1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: s1 (OperationKind.LocalReference, Type: Program.S1) (Syntax: 's1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningStructureToValueType() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim s1 = New S1 Dim v1 As ValueType = s1'BIND:"Dim v1 As ValueType = s1" End Sub Structure S1 End Structure End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim v1 As ValueType = s1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'v1 As ValueType = s1') Declarators: IVariableDeclaratorOperation (Symbol: v1 As System.ValueType) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'v1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= s1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.ValueType, IsImplicit) (Syntax: 's1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: s1 (OperationKind.LocalReference, Type: Program.S1) (Syntax: 's1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningStructureToInterface_InvalidNoConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim s1 = New S1 Dim i1 As I1 = s1'BIND:"Dim i1 As I1 = s1" End Sub Interface I1 End Interface Structure S1 End Structure End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim i1 As I1 = s1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'i1 As I1 = s1') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Program.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= s1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.I1, IsInvalid, IsImplicit) (Syntax: 's1') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: s1 (OperationKind.LocalReference, Type: Program.S1, IsInvalid) (Syntax: 's1') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30311: Value of type 'Program.S1' cannot be converted to 'Program.I1'. Dim i1 As I1 = s1'BIND:"Dim i1 As I1 = s1" ~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningValueToNullableValue() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim i As Integer? = 1'BIND:"Dim i As Integer? = 1" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i As Integer? = 1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i As Integer? = 1') Declarators: IVariableDeclaratorOperation (Symbol: i As System.Nullable(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= 1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Nullable(Of System.Int32), IsImplicit) (Syntax: '1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningNullableValueToNullableValue() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim i As Integer? = 1 Dim l As Long? = i'BIND:"Dim l As Long? = i" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim l As Long? = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'l As Long? = i') Declarators: IVariableDeclaratorOperation (Symbol: l As System.Nullable(Of System.Int64)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'l') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Nullable(Of System.Int64), IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Nullable(Of System.Int32)) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningValueToNullableValue_MultipleConversion() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim l As Long? = 1'BIND:"Dim l As Long? = 1" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim l As Long? = 1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'l As Long? = 1') Declarators: IVariableDeclaratorOperation (Symbol: l As System.Nullable(Of System.Int64)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'l') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= 1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Nullable(Of System.Int64), IsImplicit) (Syntax: '1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningNullableValueToImplementedInterface() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim s1 As S1? = Nothing Dim i1 As I1 = s1'BIND:"Dim i1 As I1 = s1" End Sub Interface I1 End Interface Structure S1 Implements I1 End Structure End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i1 As I1 = s1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i1 As I1 = s1') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Program.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= s1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.I1, IsImplicit) (Syntax: 's1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: s1 (OperationKind.LocalReference, Type: System.Nullable(Of Program.S1)) (Syntax: 's1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningCharArrayToString() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim s1 As String = New Char(1) {}'BIND:"Dim s1 As String = New Char(1) {}" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim s1 As S ... Char(1) {}') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 's1 As Strin ... Char(1) {}') Declarators: IVariableDeclaratorOperation (Symbol: s1 As System.String) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= New Char(1) {}') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, IsImplicit) (Syntax: 'New Char(1) {}') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IArrayCreationOperation (OperationKind.ArrayCreation, Type: System.Char()) (Syntax: 'New Char(1) {}') Dimension Sizes(1): IBinaryOperation (BinaryOperatorKind.Add, Checked) (OperationKind.Binary, Type: System.Int32, Constant: 2, IsImplicit) (Syntax: '1') Left: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1, IsImplicit) (Syntax: '1') Initializer: IArrayInitializerOperation (0 elements) (OperationKind.ArrayInitializer, Type: null) (Syntax: '{}') Element Values(0) ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningCharToStringConversion() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim s1 As String = "a"c'BIND:"Dim s1 As String = "a"c" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim s1 As String = "a"c') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 's1 As String = "a"c') Declarators: IVariableDeclaratorOperation (Symbol: s1 As System.String) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= "a"c') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, Constant: "a", IsImplicit) (Syntax: '"a"c') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Char, Constant: a) (Syntax: '"a"c') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTransitiveConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1() Dim c3 As New C3 Dim c1 As C1 = c3'BIND:"Dim c1 As C1 = c3" End Sub Class C1 End Class Class C2 Inherits C1 End Class Class C3 Inherits C2 End Class End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1 As C1 = c3') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1 As C1 = c3') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Module1.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c3') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Module1.C1, IsImplicit) (Syntax: 'c3') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c3 (OperationKind.LocalReference, Type: Module1.C3) (Syntax: 'c3') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTypeParameterConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1(Of T As {C2, New})() Dim c1 As C1 = New T'BIND:"Dim c1 As C1 = New T" End Sub Class C1 End Class Class C2 Inherits C1 End Class End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1 As C1 = New T') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1 As C1 = New T') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Module1.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= New T') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Module1.C1, IsImplicit) (Syntax: 'New T') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ITypeParameterObjectCreationOperation (OperationKind.TypeParameterObjectCreation, Type: T) (Syntax: 'New T') Initializer: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTypeParameterConversion_InvalidNoConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1(Of T As {Class, New})() Dim c1 As C1 = New T'BIND:"Dim c1 As C1 = New T" End Sub Class C1 End Class Class C2 Inherits C1 End Class End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim c1 As C1 = New T') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'c1 As C1 = New T') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Module1.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= New T') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Module1.C1, IsInvalid, IsImplicit) (Syntax: 'New T') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ITypeParameterObjectCreationOperation (OperationKind.TypeParameterObjectCreation, Type: T, IsInvalid) (Syntax: 'New T') Initializer: null ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30311: Value of type 'T' cannot be converted to 'Module1.C1'. Dim c1 As C1 = New T'BIND:"Dim c1 As C1 = New T" ~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTypeParameterConversion_ToInterface() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1(Of T As {C1, New})() Dim i1 As I1 = New T'BIND:"Dim i1 As I1 = New T" End Sub Interface I1 End Interface Class C1 Implements I1 End Class End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i1 As I1 = New T') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i1 As I1 = New T') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Module1.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= New T') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Module1.I1, IsImplicit) (Syntax: 'New T') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ITypeParameterObjectCreationOperation (OperationKind.TypeParameterObjectCreation, Type: T) (Syntax: 'New T') Initializer: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTypeParameterToTypeParameterConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1(Of T, U As {T, New})() Dim t1 As T = New U'BIND:"Dim t1 As T = New U" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t1 As T = New U') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't1 As T = New U') Declarators: IVariableDeclaratorOperation (Symbol: t1 As T) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= New U') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: T, IsImplicit) (Syntax: 'New U') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ITypeParameterObjectCreationOperation (OperationKind.TypeParameterObjectCreation, Type: U) (Syntax: 'New U') Initializer: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTypeParameterToTypeParameterConversion_InvalidNoConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1(Of T, U As New)() Dim t1 As T = New U'BIND:"Dim t1 As T = New U" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim t1 As T = New U') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 't1 As T = New U') Declarators: IVariableDeclaratorOperation (Symbol: t1 As T) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= New U') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: T, IsInvalid, IsImplicit) (Syntax: 'New U') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ITypeParameterObjectCreationOperation (OperationKind.TypeParameterObjectCreation, Type: U, IsInvalid) (Syntax: 'New U') Initializer: null ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30311: Value of type 'U' cannot be converted to 'T'. Dim t1 As T = New U'BIND:"Dim t1 As T = New U" ~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTypeParameterFromNothing() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1(Of T)() Dim t1 As T = Nothing'BIND:"Dim t1 As T = Nothing" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t1 As T = Nothing') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't1 As T = Nothing') Declarators: IVariableDeclaratorOperation (Symbol: t1 As T) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Nothing') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: T, IsImplicit) (Syntax: 'Nothing') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: null, Constant: null) (Syntax: 'Nothing') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningConstantConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1() Const i As Integer = 1 Const l As Long = i'BIND:"Const l As Long = i" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Const l As Long = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'l As Long = i') Declarators: IVariableDeclaratorOperation (Symbol: l As System.Int64) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'l') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int64, Constant: 1, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32, Constant: 1) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC42099: Unused local constant: 'l'. Const l As Long = i'BIND:"Const l As Long = i" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningConstantExpressionConversion_InvalidConstantTooLarge() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1() Const i As Integer = 10000 Const s As SByte = i'BIND:"Const s As SByte = i" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Const s As SByte = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 's As SByte = i') Declarators: IVariableDeclaratorOperation (Symbol: s As System.SByte) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.SByte, IsInvalid, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32, Constant: 10000, IsInvalid) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30439: Constant expression not representable in type 'SByte'. Const s As SByte = i'BIND:"Const s As SByte = i" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningConstantExpressionConversion_InvalidNonConstant() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1() Dim i As Integer = 1 Const s As SByte = i'BIND:"Const s As SByte = i" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Const s As SByte = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 's As SByte = i') Declarators: IVariableDeclaratorOperation (Symbol: s As System.SByte) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= i') IInvalidOperation (OperationKind.Invalid, Type: ?, IsInvalid, IsImplicit) (Syntax: 'i') Children(1): IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.SByte, IsInvalid, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32, IsInvalid) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30059: Constant expression is required. Const s As SByte = i'BIND:"Const s As SByte = i" ~ BC30512: Option Strict On disallows implicit conversions from 'Integer' to 'SByte'. Const s As SByte = i'BIND:"Const s As SByte = i" ~ ]]>.Value Dim verifier = New ExpectedSymbolVerifier(operationSelector:= Function(operation As IOperation) As IConversionOperation Dim initializer As IVariableInitializerOperation = DirectCast(operation, IVariableDeclarationGroupOperation).Declarations.Single().Initializer Dim initializerValue As IOperation = initializer.Value Return DirectCast(initializerValue, IInvalidOperation).Children.Cast(Of IConversionOperation).Single() End Function) ' TODO: We're not comparing types because the semantic model doesn't return the correct ConvertedType for this expression. See ' https://github.com/dotnet/roslyn/issues/20523 'VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, 'additionalOperationTreeVerifier:=AddressOf verifier.Verify) VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToExpressionTree() Dim source = <![CDATA[ Option Strict On Imports System Imports System.Linq.Expressions Module Module1 Sub M1() Dim expr As Expression(Of Func(Of Integer, Boolean)) = Function(num) num < 5'BIND:"Dim expr As Expression(Of Func(Of Integer, Boolean)) = Function(num) num < 5" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim expr As ... um) num < 5') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'expr As Exp ... um) num < 5') Declarators: IVariableDeclaratorOperation (Symbol: expr As System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'expr') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Function(num) num < 5') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean)), IsImplicit) (Syntax: 'Function(num) num < 5') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IAnonymousFunctionOperation (Symbol: Function (num As System.Int32) As System.Boolean) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function(num) num < 5') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function(num) num < 5') Locals: Local_1: <anonymous local> As System.Boolean IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'num < 5') ReturnedValue: IBinaryOperation (BinaryOperatorKind.LessThan, Checked) (OperationKind.Binary, Type: System.Boolean) (Syntax: 'num < 5') Left: IParameterReferenceOperation: num (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'num') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 5) (Syntax: '5') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'Function(num) num < 5') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'Function(num) num < 5') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Boolean, IsImplicit) (Syntax: 'Function(num) num < 5') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToExpressionTree_InvalidLambda() Dim source = <![CDATA[ Option Strict On Imports System Imports System.Linq.Expressions Module Module1 Sub M1() Dim expr As Expression(Of Func(Of Integer, Boolean)) = Function(num) num'BIND:"Dim expr As Expression(Of Func(Of Integer, Boolean)) = Function(num) num" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim expr As ... on(num) num') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'expr As Exp ... on(num) num') Declarators: IVariableDeclaratorOperation (Symbol: expr As System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'expr') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= Function(num) num') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean)), IsInvalid, IsImplicit) (Syntax: 'Function(num) num') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IAnonymousFunctionOperation (Symbol: Function (num As System.Int32) As System.Boolean) (OperationKind.AnonymousFunction, Type: null, IsInvalid) (Syntax: 'Function(num) num') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsInvalid, IsImplicit) (Syntax: 'Function(num) num') Locals: Local_1: <anonymous local> As System.Boolean IReturnOperation (OperationKind.Return, Type: null, IsInvalid, IsImplicit) (Syntax: 'num') ReturnedValue: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Boolean, IsInvalid, IsImplicit) (Syntax: 'num') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IParameterReferenceOperation: num (OperationKind.ParameterReference, Type: System.Int32, IsInvalid) (Syntax: 'num') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsInvalid, IsImplicit) (Syntax: 'Function(num) num') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsInvalid, IsImplicit) (Syntax: 'Function(num) num') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Boolean, IsInvalid, IsImplicit) (Syntax: 'Function(num) num') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Integer' to 'Boolean'. Dim expr As Expression(Of Func(Of Integer, Boolean)) = Function(num) num'BIND:"Dim expr As Expression(Of Func(Of Integer, Boolean)) = Function(num) num" ~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningReturnTypeConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Function M1() As Long Dim i As Integer = 1 Return i'BIND:"Return i" End Function End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IReturnOperation (OperationKind.Return, Type: null) (Syntax: 'Return i') ReturnedValue: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int64, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of ReturnStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningReturnTypeConversion_InvalidConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Function M1() As SByte Dim i As Integer = 1 Return i'BIND:"Return i" End Function End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IReturnOperation (OperationKind.Return, Type: null, IsInvalid) (Syntax: 'Return i') ReturnedValue: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.SByte, IsInvalid, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32, IsInvalid) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Integer' to 'SByte'. Return i'BIND:"Return i" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of ReturnStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningInterpolatedStringToIFormattable() Dim source = <![CDATA[ Imports System Module Program Sub M1() Dim formattable As IFormattable = $"{"Hello world!"}"'BIND:"Dim formattable As IFormattable = $"{"Hello world!"}"" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim formatt ... o world!"}"') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'formattable ... o world!"}"') Declarators: IVariableDeclaratorOperation (Symbol: formattable As System.IFormattable) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'formattable') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= $"{"Hello world!"}"') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.IFormattable, IsImplicit) (Syntax: '$"{"Hello world!"}"') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IInterpolatedStringOperation (OperationKind.InterpolatedString, Type: System.String) (Syntax: '$"{"Hello world!"}"') Parts(1): IInterpolationOperation (OperationKind.Interpolation, Type: null) (Syntax: '{"Hello world!"}') Expression: ILiteralOperation (OperationKind.Literal, Type: System.String, Constant: "Hello world!") (Syntax: '"Hello world!"') Alignment: null FormatString: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningUserConversion() Dim source = <![CDATA[ Module Program Sub M1(args As String()) Dim i As Integer = 1 Dim c1 As C1 = i'BIND:"Dim c1 As C1 = i" End Sub Class C1 Public Shared Widening Operator CType(ByVal i As Integer) As C1 Return New C1 End Operator End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1 As C1 = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1 As C1 = i') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Program.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function Program.C1.op_Implicit(i As System.Int32) As Program.C1) (OperationKind.Conversion, Type: Program.C1, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function Program.C1.op_Implicit(i As System.Int32) As Program.C1) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningUserConversionMultiStepConversion() Dim source = <![CDATA[ Module Program Sub M1(args As String()) Dim i As Integer = 1 Dim c1 As C1 = i'BIND:"Dim c1 As C1 = i" End Sub Class C1 Public Shared Widening Operator CType(ByVal i As Long) As C1 Return New C1 End Operator End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1 As C1 = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1 As C1 = i') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Program.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function Program.C1.op_Implicit(i As System.Int64) As Program.C1) (OperationKind.Conversion, Type: Program.C1, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function Program.C1.op_Implicit(i As System.Int64) As Program.C1) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningUserConversionImplicitAndExplicitConversion() Dim source = <![CDATA[ Module Program Sub M1(args As String()) Dim c1 As New C1 Dim c2 As C2 = CType(c1, Integer)'BIND:"Dim c2 As C2 = CType(c1, Integer)" End Sub Class C1 Public Shared Widening Operator CType(ByVal i As C1) As Integer Return 1 End Operator End Class Class C2 Public Shared Widening Operator CType(ByVal l As Long) As C2 Return New C2 End Operator End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c2 As C ... 1, Integer)') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c2 As C2 = ... 1, Integer)') Declarators: IVariableDeclaratorOperation (Symbol: c2 As Program.C2) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c2') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= CType(c1, Integer)') IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function Program.C2.op_Implicit(l As System.Int64) As Program.C2) (OperationKind.Conversion, Type: Program.C2, IsImplicit) (Syntax: 'CType(c1, Integer)') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function Program.C2.op_Implicit(l As System.Int64) As Program.C2) Operand: IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function Program.C1.op_Implicit(i As Program.C1) As System.Int32) (OperationKind.Conversion, Type: System.Int32) (Syntax: 'CType(c1, Integer)') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function Program.C1.op_Implicit(i As Program.C1) As System.Int32) Operand: ILocalReferenceOperation: c1 (OperationKind.LocalReference, Type: Program.C1) (Syntax: 'c1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningDelegateTypeConversion() Dim source = <![CDATA[ Option Strict On Imports System Module M1 Sub Method1() Dim objectAction As Action(Of Object) = New Action(Of Object)(Sub(o As Object) Console.WriteLine(o)) Dim stringAction As Action(Of String) = objectAction'BIND:"Dim stringAction As Action(Of String) = objectAction" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim stringA ... bjectAction') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'stringActio ... bjectAction') Declarators: IVariableDeclaratorOperation (Symbol: stringAction As System.Action(Of System.String)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'stringAction') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= objectAction') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Action(Of System.String), IsImplicit) (Syntax: 'objectAction') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: objectAction (OperationKind.LocalReference, Type: System.Action(Of System.Object)) (Syntax: 'objectAction') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningDelegateTypeConversion_InvalidConversion() Dim source = <![CDATA[ Option Strict On Imports System Module M1 Sub Method1() Dim objectAction As Action(Of Object) = New Action(Of Object)(Sub(o As Object) Console.WriteLine(o)) Dim integerAction As Action(Of Integer) = objectAction'BIND:"Dim integerAction As Action(Of Integer) = objectAction" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim integer ... bjectAction') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'integerActi ... bjectAction') Declarators: IVariableDeclaratorOperation (Symbol: integerAction As System.Action(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'integerAction') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= objectAction') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Action(Of System.Int32), IsInvalid, IsImplicit) (Syntax: 'objectAction') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: objectAction (OperationKind.LocalReference, Type: System.Action(Of System.Object), IsInvalid) (Syntax: 'objectAction') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC36755: 'Action(Of Object)' cannot be converted to 'Action(Of Integer)' because 'Integer' is not derived from 'Object', as required for the 'In' generic parameter 'T' in 'Delegate Sub Action(Of In T)(obj As T)'. Dim integerAction As Action(Of Integer) = objectAction'BIND:"Dim integerAction As Action(Of Integer) = objectAction" ~~~~~~~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub Conversion_CType_ParenthesizedExpressionTree() Dim source = <![CDATA[ Imports System Imports System.Linq.Expressions Public Class C Public Sub M1() Dim a = CType(((Function(ByVal i) i < 5)), Expression(Of Func(Of Integer, Boolean)))'BIND:"CType(((Function(ByVal i) i < 5)), Expression(Of Func(Of Integer, Boolean)))" End Sub End Class]]>.Value Dim expectedOperationTree = <![CDATA[ IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (Syntax: 'CType(((Fun ... Boolean)))') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: null) (Syntax: '((Function( ... i) i < 5))') Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: null) (Syntax: '(Function(B ... l i) i < 5)') Operand: IAnonymousFunctionOperation (Symbol: Function (i As System.Int32) As System.Boolean) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function(ByVal i) i < 5') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Locals: Local_1: <anonymous local> As System.Boolean IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'i < 5') ReturnedValue: IBinaryOperation (BinaryOperatorKind.LessThan, Checked) (OperationKind.Binary, Type: System.Boolean) (Syntax: 'i < 5') Left: IParameterReferenceOperation: i (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'i') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 5) (Syntax: '5') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Boolean, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of CTypeExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub Conversion_DirectCast_ParenthesizedExpressionTree() Dim source = <![CDATA[ Imports System Imports System.Linq.Expressions Public Class C Public Sub M1() Dim a = DirectCast(((Function(ByVal i) i < 5)), Expression(Of Func(Of Integer, Boolean)))'BIND:"DirectCast(((Function(ByVal i) i < 5)), Expression(Of Func(Of Integer, Boolean)))" End Sub End Class]]>.Value Dim expectedOperationTree = <![CDATA[ IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (Syntax: 'DirectCast( ... Boolean)))') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: null) (Syntax: '((Function( ... i) i < 5))') Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: null) (Syntax: '(Function(B ... l i) i < 5)') Operand: IAnonymousFunctionOperation (Symbol: Function (i As System.Int32) As System.Boolean) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function(ByVal i) i < 5') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Locals: Local_1: <anonymous local> As System.Boolean IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'i < 5') ReturnedValue: IBinaryOperation (BinaryOperatorKind.LessThan, Checked) (OperationKind.Binary, Type: System.Boolean) (Syntax: 'i < 5') Left: IParameterReferenceOperation: i (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'i') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 5) (Syntax: '5') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Boolean, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of DirectCastExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub Conversion_TryCast_ParenthesizedExpressionTree() Dim source = <![CDATA[ Imports System Imports System.Linq.Expressions Public Class C Public Sub M1() Dim a = TryCast(((Function(ByVal i) i < 5)), Expression(Of Func(Of Integer, Boolean)))'BIND:"TryCast(((Function(ByVal i) i < 5)), Expression(Of Func(Of Integer, Boolean)))" End Sub End Class]]>.Value Dim expectedOperationTree = <![CDATA[ IConversionOperation (TryCast: True, Unchecked) (OperationKind.Conversion, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (Syntax: 'TryCast(((F ... Boolean)))') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: null) (Syntax: '((Function( ... i) i < 5))') Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: null) (Syntax: '(Function(B ... l i) i < 5)') Operand: IAnonymousFunctionOperation (Symbol: Function (i As System.Int32) As System.Boolean) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function(ByVal i) i < 5') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Locals: Local_1: <anonymous local> As System.Boolean IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'i < 5') ReturnedValue: IBinaryOperation (BinaryOperatorKind.LessThan, Checked) (OperationKind.Binary, Type: System.Boolean) (Syntax: 'i < 5') Left: IParameterReferenceOperation: i (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'i') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 5) (Syntax: '5') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Boolean, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of TryCastExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub Conversion_Implicit_ParenthesizedExpressionTree() Dim source = <![CDATA[ Imports System Imports System.Linq.Expressions Public Class C Public Sub M1() Dim a As Expression(Of Func(Of Integer, Boolean)) = ((Function(ByVal i) i < 5))'BIND:"= ((Function(ByVal i) i < 5))" End Sub End Class]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= ((Functio ... i) i < 5))') IParenthesizedOperation (OperationKind.Parenthesized, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (Syntax: '((Function( ... i) i < 5))') Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (Syntax: '(Function(B ... l i) i < 5)') Operand: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean)), IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IAnonymousFunctionOperation (Symbol: Function (i As System.Int32) As System.Boolean) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function(ByVal i) i < 5') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Locals: Local_1: <anonymous local> As System.Boolean IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'i < 5') ReturnedValue: IBinaryOperation (BinaryOperatorKind.LessThan, Checked) (OperationKind.Binary, Type: System.Boolean) (Syntax: 'i < 5') Left: IParameterReferenceOperation: i (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'i') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 5) (Syntax: '5') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Boolean, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of EqualsValueSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub #End Region <CompilerTrait(CompilerFeature.IOperation)> <Fact> <WorkItem(23203, "https://github.com/dotnet/roslyn/issues/23203")> Public Sub ConversionExpression_IntegerOverflow() Dim source = <![CDATA[ Imports System Module Module1 Class C1 Shared Widening Operator CType(x As Byte) As C1 Return Nothing End Operator End Class Sub Main() Dim z1 As C1 = &H7FFFFFFFL 'BIND:"= &H7FFFFFFFL" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= &H7FFFFFFFL') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Module1.C1, IsInvalid, IsImplicit) (Syntax: '&H7FFFFFFFL') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int64, Constant: 2147483647, IsInvalid) (Syntax: '&H7FFFFFFFL') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30439: Constant expression not representable in type 'Byte'. Dim z1 As C1 = &H7FFFFFFFL 'BIND:"= &H7FFFFFFFL" ~~~~~~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of EqualsValueSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation, CompilerFeature.Dataflow)> <Fact()> Public Sub ConversionFlow_01() Dim source = <![CDATA[ Imports System Public Class C Public Sub M1(i As Integer, l As Long) 'BIND:"Public Sub M1(i As Integer, l As Long)" l = i End Sub End Class]]>.Value Dim expectedDiagnostics = String.Empty Dim expectedFlowGraph = <![CDATA[ Block[B0] - Entry Statements (0) Next (Regular) Block[B1] Block[B1] - Block Predecessors: [B0] Statements (1) IExpressionStatementOperation (OperationKind.ExpressionStatement, Type: null) (Syntax: 'l = i') Expression: ISimpleAssignmentOperation (OperationKind.SimpleAssignment, Type: System.Int64, IsImplicit) (Syntax: 'l = i') Left: IParameterReferenceOperation: l (OperationKind.ParameterReference, Type: System.Int64) (Syntax: 'l') Right: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int64, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) (WideningNumeric) Operand: IParameterReferenceOperation: i (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'i') Next (Regular) Block[B2] Block[B2] - Exit Predecessors: [B1] Statements (0) ]]>.Value VerifyFlowGraphAndDiagnosticsForTest(Of MethodBlockSyntax)(source, expectedFlowGraph, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation, CompilerFeature.Dataflow)> <Fact()> Public Sub ConversionFlow_02() Dim source = <![CDATA[ Imports System Public Class C Public Sub M1(i As Integer, b As Boolean, l As Long, m As Long) 'BIND:"Public Sub M1(i As Integer, b As Boolean, l As Long, m As Long)" i = CType(If(b,l,m), Integer) End Sub End Class]]>.Value Dim expectedDiagnostics = String.Empty Dim expectedFlowGraph = <![CDATA[ Block[B0] - Entry Statements (0) Next (Regular) Block[B1] Entering: {R1} .locals {R1} { CaptureIds: [0] [1] Block[B1] - Block Predecessors: [B0] Statements (1) IFlowCaptureOperation: 0 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: 'i') Value: IParameterReferenceOperation: i (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'i') Jump if False (Regular) to Block[B3] IParameterReferenceOperation: b (OperationKind.ParameterReference, Type: System.Boolean) (Syntax: 'b') Next (Regular) Block[B2] Block[B2] - Block Predecessors: [B1] Statements (1) IFlowCaptureOperation: 1 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: 'l') Value: IParameterReferenceOperation: l (OperationKind.ParameterReference, Type: System.Int64) (Syntax: 'l') Next (Regular) Block[B4] Block[B3] - Block Predecessors: [B1] Statements (1) IFlowCaptureOperation: 1 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: 'm') Value: IParameterReferenceOperation: m (OperationKind.ParameterReference, Type: System.Int64) (Syntax: 'm') Next (Regular) Block[B4] Block[B4] - Block Predecessors: [B2] [B3] Statements (1) IExpressionStatementOperation (OperationKind.ExpressionStatement, Type: null) (Syntax: 'i = CType(I ... ), Integer)') Expression: ISimpleAssignmentOperation (OperationKind.SimpleAssignment, Type: System.Int32, IsImplicit) (Syntax: 'i = CType(I ... ), Integer)') Left: IFlowCaptureReferenceOperation: 0 (OperationKind.FlowCaptureReference, Type: System.Int32, IsImplicit) (Syntax: 'i') Right: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int32) (Syntax: 'CType(If(b, ... ), Integer)') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) (NarrowingNumeric) Operand: IFlowCaptureReferenceOperation: 1 (OperationKind.FlowCaptureReference, Type: System.Int64, IsImplicit) (Syntax: 'If(b,l,m)') Next (Regular) Block[B5] Leaving: {R1} } Block[B5] - Exit Predecessors: [B4] Statements (0) ]]>.Value VerifyFlowGraphAndDiagnosticsForTest(Of MethodBlockSyntax)(source, expectedFlowGraph, expectedDiagnostics) End Sub Private Class ExpectedSymbolVerifier Public Shared Function ConversionOrDelegateChildSelector(conv As IOperation) As IOperation If (conv.Kind = OperationKind.Conversion) Then Return DirectCast(conv, IConversionOperation).Operand Else Return DirectCast(conv, IDelegateCreationOperation).Target End If End Function Private ReadOnly _operationSelector As Func(Of IOperation, IConversionOperation) Private ReadOnly _operationChildSelector As Func(Of IOperation, IOperation) Private ReadOnly _syntaxSelector As Func(Of SyntaxNode, SyntaxNode) Public Sub New(Optional operationSelector As Func(Of IOperation, IConversionOperation) = Nothing, Optional operationChildSelector As Func(Of IOperation, IOperation) = Nothing, Optional syntaxSelector As Func(Of SyntaxNode, SyntaxNode) = Nothing) _operationSelector = operationSelector _operationChildSelector = If(operationChildSelector, AddressOf ConversionOrDelegateChildSelector) _syntaxSelector = syntaxSelector End Sub Public Sub Verify(operation As IOperation, compilation As Compilation, syntaxNode As SyntaxNode) Dim finalSyntax = GetAndInvokeSyntaxSelector(syntaxNode) Dim semanticModel = compilation.GetSemanticModel(finalSyntax.SyntaxTree) Dim typeInfo = semanticModel.GetTypeInfo(finalSyntax) Dim conversion = GetAndInvokeOperationSelector(operation) Assert.Equal(conversion.Type, typeInfo.ConvertedType) Assert.Equal(_operationChildSelector(conversion).Type, typeInfo.Type) End Sub Private Function GetAndInvokeSyntaxSelector(syntax As SyntaxNode) As SyntaxNode If _syntaxSelector IsNot Nothing Then Return _syntaxSelector(syntax) Else Select Case syntax.Kind() Case SyntaxKind.LocalDeclarationStatement Return DirectCast(syntax, LocalDeclarationStatementSyntax).Declarators.Single().Initializer.Value Case SyntaxKind.ReturnStatement Return DirectCast(syntax, ReturnStatementSyntax).Expression Case Else Throw New ArgumentException($"Cannot handle syntax of type {syntax.GetType()}") End Select End If End Function Private Function GetAndInvokeOperationSelector(operation As IOperation) As IOperation If _operationSelector IsNot Nothing Then Return _operationSelector(operation) Else Select Case operation.Kind Case OperationKind.VariableDeclarationGroup Return DirectCast(operation, IVariableDeclarationGroupOperation).Declarations.Single().Initializer.Value Case OperationKind.Return Return DirectCast(operation, IReturnOperation).ReturnedValue Case Else Throw New ArgumentException($"Cannot handle operation of type {operation.GetType()}") End Select End If 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 Microsoft.CodeAnalysis.VisualBasic.Syntax Imports Microsoft.CodeAnalysis.Test.Utilities Imports Microsoft.CodeAnalysis.Operations Imports Roslyn.Test.Utilities Namespace Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics Partial Public Class IOperationTests Inherits SemanticModelTestBase #Region "Widening Conversions" <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningNothingToClass() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim s As String = Nothing'BIND:"Dim s As String = Nothing" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim s As St ... g = Nothing') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 's As String = Nothing') Declarators: IVariableDeclaratorOperation (Symbol: s As System.String) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Nothing') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, Constant: null, IsImplicit) (Syntax: 'Nothing') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: null, Constant: null) (Syntax: 'Nothing') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningNothingToStruct() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim s As Integer = Nothing'BIND:"Dim s As Integer = Nothing" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim s As In ... r = Nothing') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 's As Integer = Nothing') Declarators: IVariableDeclaratorOperation (Symbol: s As System.Int32) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Nothing') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int32, Constant: 0, IsImplicit) (Syntax: 'Nothing') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: null, Constant: null) (Syntax: 'Nothing') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningNumberToNumber() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim s As Double = 1'BIND:"Dim s As Double = 1" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim s As Double = 1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 's As Double = 1') Declarators: IVariableDeclaratorOperation (Symbol: s As System.Double) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= 1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Double, Constant: 1, IsImplicit) (Syntax: '1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningZeroAsEnum() Dim source = <![CDATA[ Option Strict On Module Program Enum A Zero End Enum Sub M1() Dim a As A = 0'BIND:"Dim a As A = 0" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As A = 0') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As A = 0') Declarators: IVariableDeclaratorOperation (Symbol: a As Program.A) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= 0') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.A, Constant: 0, IsImplicit) (Syntax: '0') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 0) (Syntax: '0') ]]>.Value Dim expectedDiagnostics = String.Empty ' We don't look for the type here. Semantic model doesn't have a conversion here VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingOneAsEnum() Dim source = <![CDATA[ Module Program Sub M1() Dim a As A = 1'BIND:"Dim a As A = 1" End Sub Enum A Zero End Enum End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As A = 1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As A = 1') Declarators: IVariableDeclaratorOperation (Symbol: a As Program.A) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= 1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.A, Constant: 1, IsImplicit) (Syntax: '1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingOneAsEnum_InvalidOptionStrictOn() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As A = 1'BIND:"Dim a As A = 1" End Sub Enum A Zero End Enum End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As A = 1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As A = 1') Declarators: IVariableDeclaratorOperation (Symbol: a As Program.A) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= 1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.A, Constant: 1, IsInvalid, IsImplicit) (Syntax: '1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1, IsInvalid) (Syntax: '1') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Integer' to 'Program.A'. Dim a As A = 1'BIND:"Dim a As A = 1" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingIntAsEnum() Dim source = <![CDATA[ Module Program Sub M1() Dim i As Integer = 0 Dim a As A = i'BIND:"Dim a As A = i" End Sub Enum A Zero End Enum End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As A = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As A = i') Declarators: IVariableDeclaratorOperation (Symbol: a As Program.A) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.A, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingIntAsEnum_InvalidOptionStrictOn() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim i As Integer = 0 Dim a As A = i'BIND:"Dim a As A = i" End Sub Enum A Zero End Enum End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As A = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As A = i') Declarators: IVariableDeclaratorOperation (Symbol: a As Program.A) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.A, IsInvalid, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32, IsInvalid) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Integer' to 'Program.A'. Dim a As A = i'BIND:"Dim a As A = i" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_InvalidStatement_NoIdentifier() Dim source = <![CDATA[ Option Strict On Module Program Enum A Zero End Enum Sub M1() Dim a As A ='BIND:"Dim a As A =" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As A =') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As A =') Declarators: IVariableDeclaratorOperation (Symbol: a As Program.A) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '=') IInvalidOperation (OperationKind.Invalid, Type: null, IsInvalid) (Syntax: '') Children(0) ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30201: Expression expected. Dim a As A ='BIND:"Dim a As A =" ~ ]]>.Value ' We don't verify the symbols here, as the semantic model says that there is no conversion. VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_InvalidStatement_InvalidIdentifier() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim a As Integer = b + c'BIND:"Dim a As Integer = b + c" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Integer = b + c') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Integer = b + c') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Int32) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= b + c') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int32, IsInvalid, IsImplicit) (Syntax: 'b + c') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IBinaryOperation (BinaryOperatorKind.Add, Checked) (OperationKind.Binary, Type: ?, IsInvalid) (Syntax: 'b + c') Left: IInvalidOperation (OperationKind.Invalid, Type: ?, IsInvalid) (Syntax: 'b') Children(0) Right: IInvalidOperation (OperationKind.Invalid, Type: ?, IsInvalid) (Syntax: 'c') Children(0) ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30451: 'b' is not declared. It may be inaccessible due to its protection level. Dim a As Integer = b + c'BIND:"Dim a As Integer = b + c" ~ BC30451: 'c' is not declared. It may be inaccessible due to its protection level. Dim a As Integer = b + c'BIND:"Dim a As Integer = b + c" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningEnumToUnderlyingType() Dim source = <![CDATA[ Option Strict On Module Program Enum A Zero One Two End Enum Sub M1() Dim i As Integer = A.Two'BIND:"Dim i As Integer = A.Two" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i As Integer = A.Two') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i As Integer = A.Two') Declarators: IVariableDeclaratorOperation (Symbol: i As System.Int32) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= A.Two') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int32, Constant: 2, IsImplicit) (Syntax: 'A.Two') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IFieldReferenceOperation: Program.A.Two (Static) (OperationKind.FieldReference, Type: Program.A, Constant: 2) (Syntax: 'A.Two') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningEnumToUnderlyingTypeConversion() Dim source = <![CDATA[ Option Strict On Module Program Enum A Zero One Two End Enum Sub M1() Dim i As Single = A.Two'BIND:"Dim i As Single = A.Two" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i As Single = A.Two') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i As Single = A.Two') Declarators: IVariableDeclaratorOperation (Symbol: i As System.Single) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= A.Two') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Single, Constant: 2, IsImplicit) (Syntax: 'A.Two') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IFieldReferenceOperation: Program.A.Two (Static) (OperationKind.FieldReference, Type: Program.A, Constant: 2) (Syntax: 'A.Two') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingEnumToUnderlyingTypeConversion_InvalidOptionStrictConversion() Dim source = <![CDATA[ Option Strict On Module Program Enum A As UInteger Zero One Two End Enum Sub M1() Dim i As Integer = A.Two'BIND:"Dim i As Integer = A.Two" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim i As Integer = A.Two') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'i As Integer = A.Two') Declarators: IVariableDeclaratorOperation (Symbol: i As System.Int32) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= A.Two') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int32, Constant: 2, IsInvalid, IsImplicit) (Syntax: 'A.Two') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IFieldReferenceOperation: Program.A.Two (Static) (OperationKind.FieldReference, Type: Program.A, Constant: 2, IsInvalid) (Syntax: 'A.Two') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Program.A' to 'Integer'. Dim i As Integer = A.Two'BIND:"Dim i As Integer = A.Two" ~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningConstantExpressionNarrowing() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim i As Single = 1.0'BIND:"Dim i As Single = 1.0" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i As Single = 1.0') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i As Single = 1.0') Declarators: IVariableDeclaratorOperation (Symbol: i As System.Single) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= 1.0') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Single, Constant: 1, IsImplicit) (Syntax: '1.0') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Double, Constant: 1) (Syntax: '1.0') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingBooleanConversion() Dim source = <![CDATA[ Module Program Sub M1() Dim b As Boolean = False Dim s As String = b'BIND:"Dim s As String = b" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim s As String = b') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 's As String = b') Declarators: IVariableDeclaratorOperation (Symbol: s As System.String) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= b') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, IsImplicit) (Syntax: 'b') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: b (OperationKind.LocalReference, Type: System.Boolean) (Syntax: 'b') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingBooleanConversion_InvalidOptionStrictOn() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim b As Boolean = False Dim s As String = b'BIND:"Dim s As String = b" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim s As String = b') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 's As String = b') Declarators: IVariableDeclaratorOperation (Symbol: s As System.String) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= b') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, IsInvalid, IsImplicit) (Syntax: 'b') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: b (OperationKind.LocalReference, Type: System.Boolean, IsInvalid) (Syntax: 'b') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Boolean' to 'String'. Dim s As String = b'BIND:"Dim s As String = b" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningClassToBaseClass() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim c2 As C2 = New C2 Dim c1 As C1 = c2'BIND:"Dim c1 As C1 = c2" End Sub Class C1 End Class Class C2 Inherits C1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1 As C1 = c2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1 As C1 = c2') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Program.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c2') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.C1, IsImplicit) (Syntax: 'c2') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2 (OperationKind.LocalReference, Type: Program.C2) (Syntax: 'c2') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningClassToBaseClass_InvalidNoConversion() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim c2 As C2 = New C2 Dim c1 As C1 = c2'BIND:"Dim c1 As C1 = c2" End Sub Class C1 End Class Class C2 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim c1 As C1 = c2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'c1 As C1 = c2') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Program.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= c2') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.C1, IsInvalid, IsImplicit) (Syntax: 'c2') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2 (OperationKind.LocalReference, Type: Program.C2, IsInvalid) (Syntax: 'c2') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30311: Value of type 'Program.C2' cannot be converted to 'Program.C1'. Dim c1 As C1 = c2'BIND:"Dim c1 As C1 = c2" ~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningClassToInterface() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim c1 As C1 = New C1 Dim i1 As I1 = c1'BIND:"Dim i1 As I1 = c1" End Sub Interface I1 End Interface Class C1 Implements I1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i1 As I1 = c1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i1 As I1 = c1') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Program.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.I1, IsImplicit) (Syntax: 'c1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c1 (OperationKind.LocalReference, Type: Program.C1) (Syntax: 'c1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningClassToInterface_InvalidNoImplementation() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim c1 As C1 = New C1 Dim i1 As I1 = c1'BIND:"Dim i1 As I1 = c1" End Sub Interface I1 End Interface Class C1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim i1 As I1 = c1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'i1 As I1 = c1') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Program.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= c1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.I1, IsInvalid, IsImplicit) (Syntax: 'c1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c1 (OperationKind.LocalReference, Type: Program.C1, IsInvalid) (Syntax: 'c1') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Program.C1' to 'Program.I1'. Dim i1 As I1 = c1'BIND:"Dim i1 As I1 = c1" ~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_NarrowingClassToInterface_OptionStrictOff() Dim source = <![CDATA[ Module Program Sub M1() Dim c1 As C1 = New C1 Dim i1 As I1 = c1'BIND:"Dim i1 As I1 = c1" End Sub Interface I1 End Interface Class C1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i1 As I1 = c1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i1 As I1 = c1') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Program.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.I1, IsImplicit) (Syntax: 'c1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c1 (OperationKind.LocalReference, Type: Program.C1) (Syntax: 'c1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningInterfaceToObject() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim i As I1 = Nothing Dim o As Object = i'BIND:"Dim o As Object = i" End Sub Interface I1 End Interface End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim o As Object = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'o As Object = i') Declarators: IVariableDeclaratorOperation (Symbol: o As System.Object) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'o') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Object, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: Program.I1) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningVarianceConversion() Dim source = <![CDATA[ Option Strict On Imports System.Collections.Generic Module Program Sub M1() Dim i2List As IList(Of I2) = Nothing Dim i1List As IEnumerable(Of I1) = i2List'BIND:"Dim i1List As IEnumerable(Of I1) = i2List" End Sub Interface I1 End Interface Interface I2 Inherits I1 End Interface End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i1List ... 1) = i2List') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i1List As I ... 1) = i2List') Declarators: IVariableDeclaratorOperation (Symbol: i1List As System.Collections.Generic.IEnumerable(Of Program.I1)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1List') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i2List') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Collections.Generic.IEnumerable(Of Program.I1), IsImplicit) (Syntax: 'i2List') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i2List (OperationKind.LocalReference, Type: System.Collections.Generic.IList(Of Program.I2)) (Syntax: 'i2List') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action(Of Integer) = Sub(i As Integer)'BIND:"Dim a As Action(Of Integer) = Sub(i As Integer)" End Sub End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ac ... End Sub') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Action ... End Sub') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Sub(i As ... End Sub') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action(Of System.Int32), IsImplicit) (Syntax: 'Sub(i As In ... End Sub') Target: IAnonymousFunctionOperation (Symbol: Sub (i As System.Int32)) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Sub(i As In ... End Sub') IBlockOperation (2 statements) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Sub(i As In ... End Sub') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'End Sub') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'End Sub') ReturnedValue: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate_JustInitializerReturnsOnlyLambda() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action(Of Integer) = Sub(i As Integer)'BIND:"Sub(i As Integer)" End Sub End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IAnonymousFunctionOperation (Symbol: Sub (i As System.Int32)) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Sub(i As In ... End Sub') IBlockOperation (2 statements) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Sub(i As In ... End Sub') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'End Sub') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'End Sub') ReturnedValue: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of MultiLineLambdaExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate_RelaxationOfArguments() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action(Of Integer) = Sub()'BIND:"Dim a As Action(Of Integer) = Sub()" End Sub End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ac ... End Sub') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Action ... End Sub') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Sub()'BIN ... End Sub') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action(Of System.Int32), IsImplicit) (Syntax: 'Sub()'BIND: ... End Sub') Target: IAnonymousFunctionOperation (Symbol: Sub ()) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Sub()'BIND: ... End Sub') IBlockOperation (2 statements) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Sub()'BIND: ... End Sub') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'End Sub') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'End Sub') ReturnedValue: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate_RelaxationOfArguments_InvalidConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action = Sub(i As Integer)'BIND:"Dim a As Action = Sub(i As Integer)" End Sub End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Ac ... End Sub') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Action ... End Sub') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= Sub(i As ... End Sub') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action, IsInvalid, IsImplicit) (Syntax: 'Sub(i As In ... End Sub') Target: IAnonymousFunctionOperation (Symbol: Sub (i As System.Int32)) (OperationKind.AnonymousFunction, Type: null, IsInvalid) (Syntax: 'Sub(i As In ... End Sub') IBlockOperation (2 statements) (OperationKind.Block, Type: null, IsInvalid, IsImplicit) (Syntax: 'Sub(i As In ... End Sub') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsInvalid, IsImplicit) (Syntax: 'End Sub') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsInvalid, IsImplicit) (Syntax: 'End Sub') ReturnedValue: null ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC36670: Nested sub does not have a signature that is compatible with delegate 'Action'. Dim a As Action = Sub(i As Integer)'BIND:"Dim a As Action = Sub(i As Integer)" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate_ReturnConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Func(Of Long) = Function() As Integer'BIND:"Dim a As Func(Of Long) = Function() As Integer" Return 1 End Function End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Fu ... nd Function') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Func(O ... nd Function') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Func(Of System.Int64)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Function( ... nd Function') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Func(Of System.Int64), IsImplicit) (Syntax: 'Function() ... nd Function') Target: IAnonymousFunctionOperation (Symbol: Function () As System.Int32) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function() ... nd Function') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function() ... nd Function') Locals: Local_1: <anonymous local> As System.Int32 IReturnOperation (OperationKind.Return, Type: null) (Syntax: 'Return 1') ReturnedValue: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'End Function') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'End Function') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Int32, IsImplicit) (Syntax: 'End Function') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate_RelaxationOfReturn() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action(Of Integer) = Function() As Integer'BIND:"Dim a As Action(Of Integer) = Function() As Integer" Return 1 End Function End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ac ... nd Function') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Action ... nd Function') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Function( ... nd Function') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action(Of System.Int32), IsImplicit) (Syntax: 'Function() ... nd Function') Target: IAnonymousFunctionOperation (Symbol: Function () As System.Int32) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function() ... nd Function') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function() ... nd Function') Locals: Local_1: <anonymous local> As System.Int32 IReturnOperation (OperationKind.Return, Type: null) (Syntax: 'Return 1') ReturnedValue: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'End Function') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'End Function') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Int32, IsImplicit) (Syntax: 'End Function') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToDelegate_RelaxationOfReturn_InvalidConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Func(Of Integer) = Sub()'BIND:"Dim a As Func(Of Integer) = Sub()" End Sub End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Fu ... End Sub') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Func(O ... End Sub') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Func(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= Sub()'BIN ... End Sub') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Func(Of System.Int32), IsInvalid, IsImplicit) (Syntax: 'Sub()'BIND: ... End Sub') Target: IAnonymousFunctionOperation (Symbol: Sub ()) (OperationKind.AnonymousFunction, Type: null, IsInvalid) (Syntax: 'Sub()'BIND: ... End Sub') IBlockOperation (2 statements) (OperationKind.Block, Type: null, IsInvalid, IsImplicit) (Syntax: 'Sub()'BIND: ... End Sub') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsInvalid, IsImplicit) (Syntax: 'End Sub') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsInvalid, IsImplicit) (Syntax: 'End Sub') ReturnedValue: null ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC36670: Nested sub does not have a signature that is compatible with delegate 'Func(Of Integer)'. Dim a As Func(Of Integer) = Sub()'BIND:"Dim a As Func(Of Integer) = Sub()" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate() Dim source = <![CDATA[ Imports System Module Program Sub M1() Dim a As Action = AddressOf M2'BIND:"Dim a As Action = AddressOf M2" End Sub Sub M2() End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ac ... ddressOf M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Action ... ddressOf M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= AddressOf M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action, IsImplicit) (Syntax: 'AddressOf M2') Target: IMethodReferenceOperation: Sub Program.M2() (Static) (OperationKind.MethodReference, Type: null) (Syntax: 'AddressOf M2') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_RelaxationArguments() Dim source = <![CDATA[ Imports System Module Program Sub M1() Dim a As Action(Of Integer) = AddressOf M2'BIND:"Dim a As Action(Of Integer) = AddressOf M2" End Sub Sub M2() End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ac ... ddressOf M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Action ... ddressOf M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= AddressOf M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action(Of System.Int32), IsImplicit) (Syntax: 'AddressOf M2') Target: IMethodReferenceOperation: Sub Program.M2() (Static) (OperationKind.MethodReference, Type: null) (Syntax: 'AddressOf M2') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_RelaxationArguments_InvalidConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action = AddressOf M2'BIND:"Dim a As Action = AddressOf M2" End Sub Sub M2(i As Integer) End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Ac ... ddressOf M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Action ... ddressOf M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= AddressOf M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action, IsInvalid, IsImplicit) (Syntax: 'AddressOf M2') Target: IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'AddressOf M2') Children(1): IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'M2') Children(1): IInstanceReferenceOperation (ReferenceKind: ContainingTypeInstance) (OperationKind.InstanceReference, Type: Program, IsInvalid, IsImplicit) (Syntax: 'M2') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC31143: Method 'Public Sub M2(i As Integer)' does not have a signature compatible with delegate 'Delegate Sub Action()'. Dim a As Action = AddressOf M2'BIND:"Dim a As Action = AddressOf M2" ~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_RelaxationArguments_NonImplicitReceiver_InvalidConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim c1 As New C1 Dim a As Action = AddressOf c1.M2'BIND:"Dim a As Action = AddressOf c1.M2" End Sub Class C1 Sub M2(i As Integer) End Sub End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Ac ... essOf c1.M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Action ... essOf c1.M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= AddressOf c1.M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action, IsInvalid, IsImplicit) (Syntax: 'AddressOf c1.M2') Target: IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'AddressOf c1.M2') Children(1): IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'c1.M2') Children(1): IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'c1') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC31143: Method 'Public Sub M2(i As Integer)' does not have a signature compatible with delegate 'Delegate Sub Action()'. Dim a As Action = AddressOf c1.M2'BIND:"Dim a As Action = AddressOf c1.M2" ~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_RelaxationReturnType() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action = AddressOf M2'BIND:"Dim a As Action = AddressOf M2" End Sub Function M2() As Integer Return 1 End Function End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ac ... ddressOf M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Action ... ddressOf M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= AddressOf M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action, IsImplicit) (Syntax: 'AddressOf M2') Target: IMethodReferenceOperation: Function Program.M2() As System.Int32 (Static) (OperationKind.MethodReference, Type: null) (Syntax: 'AddressOf M2') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_RelaxationReturnType_JustInitializerReturnsOnlyMethodReference() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action = AddressOf M2'BIND:"AddressOf M2" End Sub Function M2() As Integer Return 1 End Function End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IMethodReferenceOperation: Function Program.M2() As System.Int32 (Static) (OperationKind.MethodReference, Type: null) (Syntax: 'AddressOf M2') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of UnaryExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_ReturnConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Func(Of Long) = AddressOf M2'BIND:"Dim a As Func(Of Long) = AddressOf M2" End Sub Function M2() As Integer Return 1 End Function End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Fu ... ddressOf M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Func(O ... ddressOf M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Func(Of System.Int64)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= AddressOf M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Func(Of System.Int64), IsImplicit) (Syntax: 'AddressOf M2') Target: IMethodReferenceOperation: Function Program.M2() As System.Int32 (Static) (OperationKind.MethodReference, Type: null) (Syntax: 'AddressOf M2') Instance Receiver: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningMethodGroupToDelegate_RelaxationReturnType_InvalidConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Func(Of Long) = AddressOf M2'BIND:"Dim a As Func(Of Long) = AddressOf M2" End Sub Sub M2() End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Fu ... ddressOf M2') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Func(O ... ddressOf M2') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Func(Of System.Int64)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= AddressOf M2') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Func(Of System.Int64), IsInvalid, IsImplicit) (Syntax: 'AddressOf M2') Target: IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'AddressOf M2') Children(1): IOperation: (OperationKind.None, Type: null, IsInvalid) (Syntax: 'M2') Children(1): IInstanceReferenceOperation (ReferenceKind: ContainingTypeInstance) (OperationKind.InstanceReference, Type: Program, IsInvalid, IsImplicit) (Syntax: 'M2') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC31143: Method 'Public Sub M2()' does not have a signature compatible with delegate 'Delegate Function Func(Of Long)() As Long'. Dim a As Func(Of Long) = AddressOf M2'BIND:"Dim a As Func(Of Long) = AddressOf M2" ~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_InvalidMethodGroupToDelegateSyntax() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Action = AddressOf'BIND:"Dim a As Action = AddressOf" End Sub Function M2() As Integer Return 1 End Function End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Ac ... = AddressOf') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Action = AddressOf') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Action) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= AddressOf') IDelegateCreationOperation (OperationKind.DelegateCreation, Type: System.Action, IsInvalid, IsImplicit) (Syntax: 'AddressOf') Target: IInvalidOperation (OperationKind.Invalid, Type: ?, IsInvalid) (Syntax: 'AddressOf') Children(1): IInvalidOperation (OperationKind.Invalid, Type: null, IsInvalid) (Syntax: '') Children(0) ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30201: Expression expected. Dim a As Action = AddressOf'BIND:"Dim a As Action = AddressOf" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToSystemArrayConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Array = New Integer(1) {}'BIND:"Dim a As Array = New Integer(1) {}" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ar ... teger(1) {}') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Array ... teger(1) {}') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Array) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= New Integer(1) {}') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Array, IsImplicit) (Syntax: 'New Integer(1) {}') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: IArrayCreationOperation (OperationKind.ArrayCreation, Type: System.Int32()) (Syntax: 'New Integer(1) {}') Dimension Sizes(1): IBinaryOperation (BinaryOperatorKind.Add, Checked) (OperationKind.Binary, Type: System.Int32, Constant: 2, IsImplicit) (Syntax: '1') Left: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1, IsImplicit) (Syntax: '1') Initializer: IArrayInitializerOperation (0 elements) (OperationKind.ArrayInitializer, Type: null) (Syntax: '{}') Element Values(0) ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToSystemArrayConversion_MultiDimensionalArray() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Array = New Integer(1)() {}'BIND:"Dim a As Array = New Integer(1)() {}" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim a As Ar ... ger(1)() {}') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'a As Array ... ger(1)() {}') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Array) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= New Integer(1)() {}') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Array, IsImplicit) (Syntax: 'New Integer(1)() {}') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: IArrayCreationOperation (OperationKind.ArrayCreation, Type: System.Int32()()) (Syntax: 'New Integer(1)() {}') Dimension Sizes(1): IBinaryOperation (BinaryOperatorKind.Add, Checked) (OperationKind.Binary, Type: System.Int32, Constant: 2, IsImplicit) (Syntax: '1') Left: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1, IsImplicit) (Syntax: '1') Initializer: IArrayInitializerOperation (0 elements) (OperationKind.ArrayInitializer, Type: null) (Syntax: '{}') Element Values(0) ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToSystemArray_InvalidNotArray() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim a As Array = New Object'BIND:"Dim a As Array = New Object" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim a As Ar ... New Object') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'a As Array = New Object') Declarators: IVariableDeclaratorOperation (Symbol: a As System.Array) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'a') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= New Object') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Array, IsInvalid, IsImplicit) (Syntax: 'New Object') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: IObjectCreationOperation (Constructor: Sub System.Object..ctor()) (OperationKind.ObjectCreation, Type: System.Object, IsInvalid) (Syntax: 'New Object') Arguments(0) Initializer: null ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Object' to 'Array'. Dim a As Array = New Object'BIND:"Dim a As Array = New Object" ~~~~~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToArray() Dim source = <![CDATA[ Option Strict On Imports System.Collections.Generic Module Program Sub M1() Dim c2List(1) As C2 Dim c1List As C1() = c2List'BIND:"Dim c1List As C1() = c2List" End Sub Class C1 End Class Class C2 Inherits C1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1List ... () = c2List') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1List As C1() = c2List') Declarators: IVariableDeclaratorOperation (Symbol: c1List As Program.C1()) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1List') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c2List') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.C1(), IsImplicit) (Syntax: 'c2List') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2List (OperationKind.LocalReference, Type: Program.C2()) (Syntax: 'c2List') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToArray_InvalidDimensionMismatch() Dim source = <![CDATA[ Option Strict On Imports System.Collections.Generic Module Program Sub M1() Dim c2List(1)() As C2 Dim c1List As C1() = c2List'BIND:"Dim c1List As C1() = c2List" End Sub Class C1 End Class Class C2 Inherits C1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim c1List ... () = c2List') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'c1List As C1() = c2List') Declarators: IVariableDeclaratorOperation (Symbol: c1List As Program.C1()) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1List') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= c2List') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.C1(), IsInvalid, IsImplicit) (Syntax: 'c2List') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2List (OperationKind.LocalReference, Type: Program.C2()(), IsInvalid) (Syntax: 'c2List') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30332: Value of type 'Program.C2()()' cannot be converted to 'Program.C1()' because 'Program.C2()' is not derived from 'Program.C1'. Dim c1List As C1() = c2List'BIND:"Dim c1List As C1() = c2List" ~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToArray_InvalidNoConversion() Dim source = <![CDATA[ Option Strict On Imports System.Collections.Generic Module Program Sub M1() Dim c2List(1) As C2 Dim c1List As C1() = c2List'BIND:"Dim c1List As C1() = c2List" End Sub Class C1 End Class Class C2 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim c1List ... () = c2List') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'c1List As C1() = c2List') Declarators: IVariableDeclaratorOperation (Symbol: c1List As Program.C1()) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1List') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= c2List') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.C1(), IsInvalid, IsImplicit) (Syntax: 'c2List') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2List (OperationKind.LocalReference, Type: Program.C2(), IsInvalid) (Syntax: 'c2List') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30332: Value of type 'Program.C2()' cannot be converted to 'Program.C1()' because 'Program.C2' is not derived from 'Program.C1'. Dim c1List As C1() = c2List'BIND:"Dim c1List As C1() = c2List" ~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToSystemIEnumerable() Dim source = <![CDATA[ Option Strict On Imports System.Collections.Generic Module Program Sub M1() Dim c2List(1) As C2 Dim c1List As IEnumerable(Of C1) = c2List'BIND:"Dim c1List As IEnumerable(Of C1) = c2List" End Sub Class C1 End Class Class C2 Inherits C1 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1List ... 1) = c2List') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1List As I ... 1) = c2List') Declarators: IVariableDeclaratorOperation (Symbol: c1List As System.Collections.Generic.IEnumerable(Of Program.C1)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1List') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c2List') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Collections.Generic.IEnumerable(Of Program.C1), IsImplicit) (Syntax: 'c2List') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2List (OperationKind.LocalReference, Type: Program.C2()) (Syntax: 'c2List') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningArrayToSystemIEnumerable_InvalidNoConversion() Dim source = <![CDATA[ Option Strict On Imports System.Collections.Generic Module Program Sub M1() Dim c2List(1) As C2 Dim c1List As IEnumerable(Of C1) = c2List'BIND:"Dim c1List As IEnumerable(Of C1) = c2List" End Sub Class C1 End Class Class C2 End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim c1List ... 1) = c2List') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'c1List As I ... 1) = c2List') Declarators: IVariableDeclaratorOperation (Symbol: c1List As System.Collections.Generic.IEnumerable(Of Program.C1)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1List') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= c2List') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Collections.Generic.IEnumerable(Of Program.C1), IsInvalid, IsImplicit) (Syntax: 'c2List') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c2List (OperationKind.LocalReference, Type: Program.C2(), IsInvalid) (Syntax: 'c2List') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC36754: 'Program.C2()' cannot be converted to 'IEnumerable(Of Program.C1)' because 'Program.C2' is not derived from 'Program.C1', as required for the 'Out' generic parameter 'T' in 'Interface IEnumerable(Of Out T)'. Dim c1List As IEnumerable(Of C1) = c2List'BIND:"Dim c1List As IEnumerable(Of C1) = c2List" ~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningStructureToInterface() Dim source = <![CDATA[ Module Program Sub M1() Dim s1 = New S1 Dim i1 As I1 = s1'BIND:"Dim i1 As I1 = s1" End Sub Interface I1 End Interface Structure S1 Implements I1 End Structure End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i1 As I1 = s1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i1 As I1 = s1') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Program.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= s1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.I1, IsImplicit) (Syntax: 's1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: s1 (OperationKind.LocalReference, Type: Program.S1) (Syntax: 's1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningStructureToValueType() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim s1 = New S1 Dim v1 As ValueType = s1'BIND:"Dim v1 As ValueType = s1" End Sub Structure S1 End Structure End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim v1 As ValueType = s1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'v1 As ValueType = s1') Declarators: IVariableDeclaratorOperation (Symbol: v1 As System.ValueType) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'v1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= s1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.ValueType, IsImplicit) (Syntax: 's1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: s1 (OperationKind.LocalReference, Type: Program.S1) (Syntax: 's1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningStructureToInterface_InvalidNoConversion() Dim source = <![CDATA[ Option Strict On Imports System Module Program Sub M1() Dim s1 = New S1 Dim i1 As I1 = s1'BIND:"Dim i1 As I1 = s1" End Sub Interface I1 End Interface Structure S1 End Structure End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim i1 As I1 = s1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'i1 As I1 = s1') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Program.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= s1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.I1, IsInvalid, IsImplicit) (Syntax: 's1') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: s1 (OperationKind.LocalReference, Type: Program.S1, IsInvalid) (Syntax: 's1') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30311: Value of type 'Program.S1' cannot be converted to 'Program.I1'. Dim i1 As I1 = s1'BIND:"Dim i1 As I1 = s1" ~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningValueToNullableValue() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim i As Integer? = 1'BIND:"Dim i As Integer? = 1" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i As Integer? = 1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i As Integer? = 1') Declarators: IVariableDeclaratorOperation (Symbol: i As System.Nullable(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= 1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Nullable(Of System.Int32), IsImplicit) (Syntax: '1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningNullableValueToNullableValue() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim i As Integer? = 1 Dim l As Long? = i'BIND:"Dim l As Long? = i" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim l As Long? = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'l As Long? = i') Declarators: IVariableDeclaratorOperation (Symbol: l As System.Nullable(Of System.Int64)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'l') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Nullable(Of System.Int64), IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Nullable(Of System.Int32)) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningValueToNullableValue_MultipleConversion() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim l As Long? = 1'BIND:"Dim l As Long? = 1" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim l As Long? = 1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'l As Long? = 1') Declarators: IVariableDeclaratorOperation (Symbol: l As System.Nullable(Of System.Int64)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'l') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= 1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Nullable(Of System.Int64), IsImplicit) (Syntax: '1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningNullableValueToImplementedInterface() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim s1 As S1? = Nothing Dim i1 As I1 = s1'BIND:"Dim i1 As I1 = s1" End Sub Interface I1 End Interface Structure S1 Implements I1 End Structure End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i1 As I1 = s1') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i1 As I1 = s1') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Program.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= s1') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Program.I1, IsImplicit) (Syntax: 's1') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: s1 (OperationKind.LocalReference, Type: System.Nullable(Of Program.S1)) (Syntax: 's1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningCharArrayToString() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim s1 As String = New Char(1) {}'BIND:"Dim s1 As String = New Char(1) {}" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim s1 As S ... Char(1) {}') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 's1 As Strin ... Char(1) {}') Declarators: IVariableDeclaratorOperation (Symbol: s1 As System.String) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= New Char(1) {}') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, IsImplicit) (Syntax: 'New Char(1) {}') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IArrayCreationOperation (OperationKind.ArrayCreation, Type: System.Char()) (Syntax: 'New Char(1) {}') Dimension Sizes(1): IBinaryOperation (BinaryOperatorKind.Add, Checked) (OperationKind.Binary, Type: System.Int32, Constant: 2, IsImplicit) (Syntax: '1') Left: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1) (Syntax: '1') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 1, IsImplicit) (Syntax: '1') Initializer: IArrayInitializerOperation (0 elements) (OperationKind.ArrayInitializer, Type: null) (Syntax: '{}') Element Values(0) ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningCharToStringConversion() Dim source = <![CDATA[ Option Strict On Module Program Sub M1() Dim s1 As String = "a"c'BIND:"Dim s1 As String = "a"c" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim s1 As String = "a"c') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 's1 As String = "a"c') Declarators: IVariableDeclaratorOperation (Symbol: s1 As System.String) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= "a"c') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.String, Constant: "a", IsImplicit) (Syntax: '"a"c') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Char, Constant: a) (Syntax: '"a"c') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTransitiveConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1() Dim c3 As New C3 Dim c1 As C1 = c3'BIND:"Dim c1 As C1 = c3" End Sub Class C1 End Class Class C2 Inherits C1 End Class Class C3 Inherits C2 End Class End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1 As C1 = c3') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1 As C1 = c3') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Module1.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= c3') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Module1.C1, IsImplicit) (Syntax: 'c3') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: c3 (OperationKind.LocalReference, Type: Module1.C3) (Syntax: 'c3') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTypeParameterConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1(Of T As {C2, New})() Dim c1 As C1 = New T'BIND:"Dim c1 As C1 = New T" End Sub Class C1 End Class Class C2 Inherits C1 End Class End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1 As C1 = New T') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1 As C1 = New T') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Module1.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= New T') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Module1.C1, IsImplicit) (Syntax: 'New T') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ITypeParameterObjectCreationOperation (OperationKind.TypeParameterObjectCreation, Type: T) (Syntax: 'New T') Initializer: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTypeParameterConversion_InvalidNoConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1(Of T As {Class, New})() Dim c1 As C1 = New T'BIND:"Dim c1 As C1 = New T" End Sub Class C1 End Class Class C2 Inherits C1 End Class End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim c1 As C1 = New T') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'c1 As C1 = New T') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Module1.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= New T') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Module1.C1, IsInvalid, IsImplicit) (Syntax: 'New T') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ITypeParameterObjectCreationOperation (OperationKind.TypeParameterObjectCreation, Type: T, IsInvalid) (Syntax: 'New T') Initializer: null ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30311: Value of type 'T' cannot be converted to 'Module1.C1'. Dim c1 As C1 = New T'BIND:"Dim c1 As C1 = New T" ~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTypeParameterConversion_ToInterface() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1(Of T As {C1, New})() Dim i1 As I1 = New T'BIND:"Dim i1 As I1 = New T" End Sub Interface I1 End Interface Class C1 Implements I1 End Class End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim i1 As I1 = New T') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'i1 As I1 = New T') Declarators: IVariableDeclaratorOperation (Symbol: i1 As Module1.I1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'i1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= New T') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Module1.I1, IsImplicit) (Syntax: 'New T') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ITypeParameterObjectCreationOperation (OperationKind.TypeParameterObjectCreation, Type: T) (Syntax: 'New T') Initializer: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTypeParameterToTypeParameterConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1(Of T, U As {T, New})() Dim t1 As T = New U'BIND:"Dim t1 As T = New U" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t1 As T = New U') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't1 As T = New U') Declarators: IVariableDeclaratorOperation (Symbol: t1 As T) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= New U') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: T, IsImplicit) (Syntax: 'New U') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ITypeParameterObjectCreationOperation (OperationKind.TypeParameterObjectCreation, Type: U) (Syntax: 'New U') Initializer: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTypeParameterToTypeParameterConversion_InvalidNoConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1(Of T, U As New)() Dim t1 As T = New U'BIND:"Dim t1 As T = New U" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim t1 As T = New U') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 't1 As T = New U') Declarators: IVariableDeclaratorOperation (Symbol: t1 As T) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= New U') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: T, IsInvalid, IsImplicit) (Syntax: 'New U') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ITypeParameterObjectCreationOperation (OperationKind.TypeParameterObjectCreation, Type: U, IsInvalid) (Syntax: 'New U') Initializer: null ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30311: Value of type 'U' cannot be converted to 'T'. Dim t1 As T = New U'BIND:"Dim t1 As T = New U" ~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningTypeParameterFromNothing() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1(Of T)() Dim t1 As T = Nothing'BIND:"Dim t1 As T = Nothing" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim t1 As T = Nothing') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 't1 As T = Nothing') Declarators: IVariableDeclaratorOperation (Symbol: t1 As T) (OperationKind.VariableDeclarator, Type: null) (Syntax: 't1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Nothing') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: T, IsImplicit) (Syntax: 'Nothing') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: null, Constant: null) (Syntax: 'Nothing') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningConstantConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1() Const i As Integer = 1 Const l As Long = i'BIND:"Const l As Long = i" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Const l As Long = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'l As Long = i') Declarators: IVariableDeclaratorOperation (Symbol: l As System.Int64) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'l') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int64, Constant: 1, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32, Constant: 1) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC42099: Unused local constant: 'l'. Const l As Long = i'BIND:"Const l As Long = i" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningConstantExpressionConversion_InvalidConstantTooLarge() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1() Const i As Integer = 10000 Const s As SByte = i'BIND:"Const s As SByte = i" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Const s As SByte = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 's As SByte = i') Declarators: IVariableDeclaratorOperation (Symbol: s As System.SByte) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.SByte, IsInvalid, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32, Constant: 10000, IsInvalid) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30439: Constant expression not representable in type 'SByte'. Const s As SByte = i'BIND:"Const s As SByte = i" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningConstantExpressionConversion_InvalidNonConstant() Dim source = <![CDATA[ Option Strict On Module Module1 Sub M1() Dim i As Integer = 1 Const s As SByte = i'BIND:"Const s As SByte = i" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Const s As SByte = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 's As SByte = i') Declarators: IVariableDeclaratorOperation (Symbol: s As System.SByte) (OperationKind.VariableDeclarator, Type: null) (Syntax: 's') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= i') IInvalidOperation (OperationKind.Invalid, Type: ?, IsInvalid, IsImplicit) (Syntax: 'i') Children(1): IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.SByte, IsInvalid, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32, IsInvalid) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30059: Constant expression is required. Const s As SByte = i'BIND:"Const s As SByte = i" ~ BC30512: Option Strict On disallows implicit conversions from 'Integer' to 'SByte'. Const s As SByte = i'BIND:"Const s As SByte = i" ~ ]]>.Value Dim verifier = New ExpectedSymbolVerifier(operationSelector:= Function(operation As IOperation) As IConversionOperation Dim initializer As IVariableInitializerOperation = DirectCast(operation, IVariableDeclarationGroupOperation).Declarations.Single().Initializer Dim initializerValue As IOperation = initializer.Value Return DirectCast(initializerValue, IInvalidOperation).Children.Cast(Of IConversionOperation).Single() End Function) ' TODO: We're not comparing types because the semantic model doesn't return the correct ConvertedType for this expression. See ' https://github.com/dotnet/roslyn/issues/20523 'VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, 'additionalOperationTreeVerifier:=AddressOf verifier.Verify) VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToExpressionTree() Dim source = <![CDATA[ Option Strict On Imports System Imports System.Linq.Expressions Module Module1 Sub M1() Dim expr As Expression(Of Func(Of Integer, Boolean)) = Function(num) num < 5'BIND:"Dim expr As Expression(Of Func(Of Integer, Boolean)) = Function(num) num < 5" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim expr As ... um) num < 5') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'expr As Exp ... um) num < 5') Declarators: IVariableDeclaratorOperation (Symbol: expr As System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'expr') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= Function(num) num < 5') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean)), IsImplicit) (Syntax: 'Function(num) num < 5') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IAnonymousFunctionOperation (Symbol: Function (num As System.Int32) As System.Boolean) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function(num) num < 5') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function(num) num < 5') Locals: Local_1: <anonymous local> As System.Boolean IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'num < 5') ReturnedValue: IBinaryOperation (BinaryOperatorKind.LessThan, Checked) (OperationKind.Binary, Type: System.Boolean) (Syntax: 'num < 5') Left: IParameterReferenceOperation: num (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'num') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 5) (Syntax: '5') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'Function(num) num < 5') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'Function(num) num < 5') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Boolean, IsImplicit) (Syntax: 'Function(num) num < 5') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningLambdaToExpressionTree_InvalidLambda() Dim source = <![CDATA[ Option Strict On Imports System Imports System.Linq.Expressions Module Module1 Sub M1() Dim expr As Expression(Of Func(Of Integer, Boolean)) = Function(num) num'BIND:"Dim expr As Expression(Of Func(Of Integer, Boolean)) = Function(num) num" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim expr As ... on(num) num') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'expr As Exp ... on(num) num') Declarators: IVariableDeclaratorOperation (Symbol: expr As System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'expr') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= Function(num) num') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean)), IsInvalid, IsImplicit) (Syntax: 'Function(num) num') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IAnonymousFunctionOperation (Symbol: Function (num As System.Int32) As System.Boolean) (OperationKind.AnonymousFunction, Type: null, IsInvalid) (Syntax: 'Function(num) num') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsInvalid, IsImplicit) (Syntax: 'Function(num) num') Locals: Local_1: <anonymous local> As System.Boolean IReturnOperation (OperationKind.Return, Type: null, IsInvalid, IsImplicit) (Syntax: 'num') ReturnedValue: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Boolean, IsInvalid, IsImplicit) (Syntax: 'num') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IParameterReferenceOperation: num (OperationKind.ParameterReference, Type: System.Int32, IsInvalid) (Syntax: 'num') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsInvalid, IsImplicit) (Syntax: 'Function(num) num') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsInvalid, IsImplicit) (Syntax: 'Function(num) num') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Boolean, IsInvalid, IsImplicit) (Syntax: 'Function(num) num') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Integer' to 'Boolean'. Dim expr As Expression(Of Func(Of Integer, Boolean)) = Function(num) num'BIND:"Dim expr As Expression(Of Func(Of Integer, Boolean)) = Function(num) num" ~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningReturnTypeConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Function M1() As Long Dim i As Integer = 1 Return i'BIND:"Return i" End Function End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IReturnOperation (OperationKind.Return, Type: null) (Syntax: 'Return i') ReturnedValue: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int64, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of ReturnStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningReturnTypeConversion_InvalidConversion() Dim source = <![CDATA[ Option Strict On Module Module1 Function M1() As SByte Dim i As Integer = 1 Return i'BIND:"Return i" End Function End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IReturnOperation (OperationKind.Return, Type: null, IsInvalid) (Syntax: 'Return i') ReturnedValue: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.SByte, IsInvalid, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32, IsInvalid) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30512: Option Strict On disallows implicit conversions from 'Integer' to 'SByte'. Return i'BIND:"Return i" ~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of ReturnStatementSyntax)(source, expectedOperationTree, expectedDiagnostics, additionalOperationTreeVerifier:=AddressOf New ExpectedSymbolVerifier().Verify) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningInterpolatedStringToIFormattable() Dim source = <![CDATA[ Imports System Module Program Sub M1() Dim formattable As IFormattable = $"{"Hello world!"}"'BIND:"Dim formattable As IFormattable = $"{"Hello world!"}"" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim formatt ... o world!"}"') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'formattable ... o world!"}"') Declarators: IVariableDeclaratorOperation (Symbol: formattable As System.IFormattable) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'formattable') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= $"{"Hello world!"}"') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.IFormattable, IsImplicit) (Syntax: '$"{"Hello world!"}"') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IInterpolatedStringOperation (OperationKind.InterpolatedString, Type: System.String) (Syntax: '$"{"Hello world!"}"') Parts(1): IInterpolationOperation (OperationKind.Interpolation, Type: null) (Syntax: '{"Hello world!"}') Expression: ILiteralOperation (OperationKind.Literal, Type: System.String, Constant: "Hello world!") (Syntax: '"Hello world!"') Alignment: null FormatString: null ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningUserConversion() Dim source = <![CDATA[ Module Program Sub M1(args As String()) Dim i As Integer = 1 Dim c1 As C1 = i'BIND:"Dim c1 As C1 = i" End Sub Class C1 Public Shared Widening Operator CType(ByVal i As Integer) As C1 Return New C1 End Operator End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1 As C1 = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1 As C1 = i') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Program.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function Program.C1.op_Implicit(i As System.Int32) As Program.C1) (OperationKind.Conversion, Type: Program.C1, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function Program.C1.op_Implicit(i As System.Int32) As Program.C1) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningUserConversionMultiStepConversion() Dim source = <![CDATA[ Module Program Sub M1(args As String()) Dim i As Integer = 1 Dim c1 As C1 = i'BIND:"Dim c1 As C1 = i" End Sub Class C1 Public Shared Widening Operator CType(ByVal i As Long) As C1 Return New C1 End Operator End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c1 As C1 = i') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c1 As C1 = i') Declarators: IVariableDeclaratorOperation (Symbol: c1 As Program.C1) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c1') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= i') IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function Program.C1.op_Implicit(i As System.Int64) As Program.C1) (OperationKind.Conversion, Type: Program.C1, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function Program.C1.op_Implicit(i As System.Int64) As Program.C1) Operand: ILocalReferenceOperation: i (OperationKind.LocalReference, Type: System.Int32) (Syntax: 'i') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningUserConversionImplicitAndExplicitConversion() Dim source = <![CDATA[ Module Program Sub M1(args As String()) Dim c1 As New C1 Dim c2 As C2 = CType(c1, Integer)'BIND:"Dim c2 As C2 = CType(c1, Integer)" End Sub Class C1 Public Shared Widening Operator CType(ByVal i As C1) As Integer Return 1 End Operator End Class Class C2 Public Shared Widening Operator CType(ByVal l As Long) As C2 Return New C2 End Operator End Class End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim c2 As C ... 1, Integer)') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'c2 As C2 = ... 1, Integer)') Declarators: IVariableDeclaratorOperation (Symbol: c2 As Program.C2) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'c2') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= CType(c1, Integer)') IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function Program.C2.op_Implicit(l As System.Int64) As Program.C2) (OperationKind.Conversion, Type: Program.C2, IsImplicit) (Syntax: 'CType(c1, Integer)') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function Program.C2.op_Implicit(l As System.Int64) As Program.C2) Operand: IConversionOperation (TryCast: False, Unchecked) (OperatorMethod: Function Program.C1.op_Implicit(i As Program.C1) As System.Int32) (OperationKind.Conversion, Type: System.Int32) (Syntax: 'CType(c1, Integer)') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: True) (MethodSymbol: Function Program.C1.op_Implicit(i As Program.C1) As System.Int32) Operand: ILocalReferenceOperation: c1 (OperationKind.LocalReference, Type: Program.C1) (Syntax: 'c1') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningDelegateTypeConversion() Dim source = <![CDATA[ Option Strict On Imports System Module M1 Sub Method1() Dim objectAction As Action(Of Object) = New Action(Of Object)(Sub(o As Object) Console.WriteLine(o)) Dim stringAction As Action(Of String) = objectAction'BIND:"Dim stringAction As Action(Of String) = objectAction" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null) (Syntax: 'Dim stringA ... bjectAction') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null) (Syntax: 'stringActio ... bjectAction') Declarators: IVariableDeclaratorOperation (Symbol: stringAction As System.Action(Of System.String)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'stringAction') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= objectAction') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Action(Of System.String), IsImplicit) (Syntax: 'objectAction') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: True, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: objectAction (OperationKind.LocalReference, Type: System.Action(Of System.Object)) (Syntax: 'objectAction') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub ConversionExpression_Implicit_WideningDelegateTypeConversion_InvalidConversion() Dim source = <![CDATA[ Option Strict On Imports System Module M1 Sub Method1() Dim objectAction As Action(Of Object) = New Action(Of Object)(Sub(o As Object) Console.WriteLine(o)) Dim integerAction As Action(Of Integer) = objectAction'BIND:"Dim integerAction As Action(Of Integer) = objectAction" End Sub End Module]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableDeclarationGroupOperation (1 declarations) (OperationKind.VariableDeclarationGroup, Type: null, IsInvalid) (Syntax: 'Dim integer ... bjectAction') IVariableDeclarationOperation (1 declarators) (OperationKind.VariableDeclaration, Type: null, IsInvalid) (Syntax: 'integerActi ... bjectAction') Declarators: IVariableDeclaratorOperation (Symbol: integerAction As System.Action(Of System.Int32)) (OperationKind.VariableDeclarator, Type: null) (Syntax: 'integerAction') Initializer: null Initializer: IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= objectAction') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Action(Of System.Int32), IsInvalid, IsImplicit) (Syntax: 'objectAction') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILocalReferenceOperation: objectAction (OperationKind.LocalReference, Type: System.Action(Of System.Object), IsInvalid) (Syntax: 'objectAction') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC36755: 'Action(Of Object)' cannot be converted to 'Action(Of Integer)' because 'Integer' is not derived from 'Object', as required for the 'In' generic parameter 'T' in 'Delegate Sub Action(Of In T)(obj As T)'. Dim integerAction As Action(Of Integer) = objectAction'BIND:"Dim integerAction As Action(Of Integer) = objectAction" ~~~~~~~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of LocalDeclarationStatementSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub Conversion_CType_ParenthesizedExpressionTree() Dim source = <![CDATA[ Imports System Imports System.Linq.Expressions Public Class C Public Sub M1() Dim a = CType(((Function(ByVal i) i < 5)), Expression(Of Func(Of Integer, Boolean)))'BIND:"CType(((Function(ByVal i) i < 5)), Expression(Of Func(Of Integer, Boolean)))" End Sub End Class]]>.Value Dim expectedOperationTree = <![CDATA[ IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (Syntax: 'CType(((Fun ... Boolean)))') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: null) (Syntax: '((Function( ... i) i < 5))') Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: null) (Syntax: '(Function(B ... l i) i < 5)') Operand: IAnonymousFunctionOperation (Symbol: Function (i As System.Int32) As System.Boolean) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function(ByVal i) i < 5') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Locals: Local_1: <anonymous local> As System.Boolean IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'i < 5') ReturnedValue: IBinaryOperation (BinaryOperatorKind.LessThan, Checked) (OperationKind.Binary, Type: System.Boolean) (Syntax: 'i < 5') Left: IParameterReferenceOperation: i (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'i') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 5) (Syntax: '5') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Boolean, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of CTypeExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub Conversion_DirectCast_ParenthesizedExpressionTree() Dim source = <![CDATA[ Imports System Imports System.Linq.Expressions Public Class C Public Sub M1() Dim a = DirectCast(((Function(ByVal i) i < 5)), Expression(Of Func(Of Integer, Boolean)))'BIND:"DirectCast(((Function(ByVal i) i < 5)), Expression(Of Func(Of Integer, Boolean)))" End Sub End Class]]>.Value Dim expectedOperationTree = <![CDATA[ IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (Syntax: 'DirectCast( ... Boolean)))') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: null) (Syntax: '((Function( ... i) i < 5))') Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: null) (Syntax: '(Function(B ... l i) i < 5)') Operand: IAnonymousFunctionOperation (Symbol: Function (i As System.Int32) As System.Boolean) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function(ByVal i) i < 5') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Locals: Local_1: <anonymous local> As System.Boolean IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'i < 5') ReturnedValue: IBinaryOperation (BinaryOperatorKind.LessThan, Checked) (OperationKind.Binary, Type: System.Boolean) (Syntax: 'i < 5') Left: IParameterReferenceOperation: i (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'i') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 5) (Syntax: '5') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Boolean, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of DirectCastExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub Conversion_TryCast_ParenthesizedExpressionTree() Dim source = <![CDATA[ Imports System Imports System.Linq.Expressions Public Class C Public Sub M1() Dim a = TryCast(((Function(ByVal i) i < 5)), Expression(Of Func(Of Integer, Boolean)))'BIND:"TryCast(((Function(ByVal i) i < 5)), Expression(Of Func(Of Integer, Boolean)))" End Sub End Class]]>.Value Dim expectedOperationTree = <![CDATA[ IConversionOperation (TryCast: True, Unchecked) (OperationKind.Conversion, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (Syntax: 'TryCast(((F ... Boolean)))') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: null) (Syntax: '((Function( ... i) i < 5))') Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: null) (Syntax: '(Function(B ... l i) i < 5)') Operand: IAnonymousFunctionOperation (Symbol: Function (i As System.Int32) As System.Boolean) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function(ByVal i) i < 5') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Locals: Local_1: <anonymous local> As System.Boolean IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'i < 5') ReturnedValue: IBinaryOperation (BinaryOperatorKind.LessThan, Checked) (OperationKind.Binary, Type: System.Boolean) (Syntax: 'i < 5') Left: IParameterReferenceOperation: i (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'i') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 5) (Syntax: '5') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Boolean, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of TryCastExpressionSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation)> <Fact()> Public Sub Conversion_Implicit_ParenthesizedExpressionTree() Dim source = <![CDATA[ Imports System Imports System.Linq.Expressions Public Class C Public Sub M1() Dim a As Expression(Of Func(Of Integer, Boolean)) = ((Function(ByVal i) i < 5))'BIND:"= ((Function(ByVal i) i < 5))" End Sub End Class]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null) (Syntax: '= ((Functio ... i) i < 5))') IParenthesizedOperation (OperationKind.Parenthesized, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (Syntax: '((Function( ... i) i < 5))') Operand: IParenthesizedOperation (OperationKind.Parenthesized, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean))) (Syntax: '(Function(B ... l i) i < 5)') Operand: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Linq.Expressions.Expression(Of System.Func(Of System.Int32, System.Boolean)), IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: IAnonymousFunctionOperation (Symbol: Function (i As System.Int32) As System.Boolean) (OperationKind.AnonymousFunction, Type: null) (Syntax: 'Function(ByVal i) i < 5') IBlockOperation (3 statements, 1 locals) (OperationKind.Block, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Locals: Local_1: <anonymous local> As System.Boolean IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'i < 5') ReturnedValue: IBinaryOperation (BinaryOperatorKind.LessThan, Checked) (OperationKind.Binary, Type: System.Boolean) (Syntax: 'i < 5') Left: IParameterReferenceOperation: i (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'i') Right: ILiteralOperation (OperationKind.Literal, Type: System.Int32, Constant: 5) (Syntax: '5') ILabeledOperation (Label: exit) (OperationKind.Labeled, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') Statement: null IReturnOperation (OperationKind.Return, Type: null, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ReturnedValue: ILocalReferenceOperation: (OperationKind.LocalReference, Type: System.Boolean, IsImplicit) (Syntax: 'Function(ByVal i) i < 5') ]]>.Value Dim expectedDiagnostics = String.Empty VerifyOperationTreeAndDiagnosticsForTest(Of EqualsValueSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub #End Region <CompilerTrait(CompilerFeature.IOperation)> <Fact> <WorkItem(23203, "https://github.com/dotnet/roslyn/issues/23203")> Public Sub ConversionExpression_IntegerOverflow() Dim source = <![CDATA[ Imports System Module Module1 Class C1 Shared Widening Operator CType(x As Byte) As C1 Return Nothing End Operator End Class Sub Main() Dim z1 As C1 = &H7FFFFFFFL 'BIND:"= &H7FFFFFFFL" End Sub End Module ]]>.Value Dim expectedOperationTree = <![CDATA[ IVariableInitializerOperation (OperationKind.VariableInitializer, Type: null, IsInvalid) (Syntax: '= &H7FFFFFFFL') IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: Module1.C1, IsInvalid, IsImplicit) (Syntax: '&H7FFFFFFFL') Conversion: CommonConversion (Exists: False, IsIdentity: False, IsNumeric: False, IsReference: False, IsUserDefined: False) (MethodSymbol: null) Operand: ILiteralOperation (OperationKind.Literal, Type: System.Int64, Constant: 2147483647, IsInvalid) (Syntax: '&H7FFFFFFFL') ]]>.Value Dim expectedDiagnostics = <![CDATA[ BC30439: Constant expression not representable in type 'Byte'. Dim z1 As C1 = &H7FFFFFFFL 'BIND:"= &H7FFFFFFFL" ~~~~~~~~~~~ ]]>.Value VerifyOperationTreeAndDiagnosticsForTest(Of EqualsValueSyntax)(source, expectedOperationTree, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation, CompilerFeature.Dataflow)> <Fact()> Public Sub ConversionFlow_01() Dim source = <![CDATA[ Imports System Public Class C Public Sub M1(i As Integer, l As Long) 'BIND:"Public Sub M1(i As Integer, l As Long)" l = i End Sub End Class]]>.Value Dim expectedDiagnostics = String.Empty Dim expectedFlowGraph = <![CDATA[ Block[B0] - Entry Statements (0) Next (Regular) Block[B1] Block[B1] - Block Predecessors: [B0] Statements (1) IExpressionStatementOperation (OperationKind.ExpressionStatement, Type: null) (Syntax: 'l = i') Expression: ISimpleAssignmentOperation (OperationKind.SimpleAssignment, Type: System.Int64, IsImplicit) (Syntax: 'l = i') Left: IParameterReferenceOperation: l (OperationKind.ParameterReference, Type: System.Int64) (Syntax: 'l') Right: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int64, IsImplicit) (Syntax: 'i') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) (WideningNumeric) Operand: IParameterReferenceOperation: i (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'i') Next (Regular) Block[B2] Block[B2] - Exit Predecessors: [B1] Statements (0) ]]>.Value VerifyFlowGraphAndDiagnosticsForTest(Of MethodBlockSyntax)(source, expectedFlowGraph, expectedDiagnostics) End Sub <CompilerTrait(CompilerFeature.IOperation, CompilerFeature.Dataflow)> <Fact()> Public Sub ConversionFlow_02() Dim source = <![CDATA[ Imports System Public Class C Public Sub M1(i As Integer, b As Boolean, l As Long, m As Long) 'BIND:"Public Sub M1(i As Integer, b As Boolean, l As Long, m As Long)" i = CType(If(b,l,m), Integer) End Sub End Class]]>.Value Dim expectedDiagnostics = String.Empty Dim expectedFlowGraph = <![CDATA[ Block[B0] - Entry Statements (0) Next (Regular) Block[B1] Entering: {R1} .locals {R1} { CaptureIds: [0] [1] Block[B1] - Block Predecessors: [B0] Statements (1) IFlowCaptureOperation: 0 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: 'i') Value: IParameterReferenceOperation: i (OperationKind.ParameterReference, Type: System.Int32) (Syntax: 'i') Jump if False (Regular) to Block[B3] IParameterReferenceOperation: b (OperationKind.ParameterReference, Type: System.Boolean) (Syntax: 'b') Next (Regular) Block[B2] Block[B2] - Block Predecessors: [B1] Statements (1) IFlowCaptureOperation: 1 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: 'l') Value: IParameterReferenceOperation: l (OperationKind.ParameterReference, Type: System.Int64) (Syntax: 'l') Next (Regular) Block[B4] Block[B3] - Block Predecessors: [B1] Statements (1) IFlowCaptureOperation: 1 (OperationKind.FlowCapture, Type: null, IsImplicit) (Syntax: 'm') Value: IParameterReferenceOperation: m (OperationKind.ParameterReference, Type: System.Int64) (Syntax: 'm') Next (Regular) Block[B4] Block[B4] - Block Predecessors: [B2] [B3] Statements (1) IExpressionStatementOperation (OperationKind.ExpressionStatement, Type: null) (Syntax: 'i = CType(I ... ), Integer)') Expression: ISimpleAssignmentOperation (OperationKind.SimpleAssignment, Type: System.Int32, IsImplicit) (Syntax: 'i = CType(I ... ), Integer)') Left: IFlowCaptureReferenceOperation: 0 (OperationKind.FlowCaptureReference, Type: System.Int32, IsImplicit) (Syntax: 'i') Right: IConversionOperation (TryCast: False, Unchecked) (OperationKind.Conversion, Type: System.Int32) (Syntax: 'CType(If(b, ... ), Integer)') Conversion: CommonConversion (Exists: True, IsIdentity: False, IsNumeric: True, IsReference: False, IsUserDefined: False) (MethodSymbol: null) (NarrowingNumeric) Operand: IFlowCaptureReferenceOperation: 1 (OperationKind.FlowCaptureReference, Type: System.Int64, IsImplicit) (Syntax: 'If(b,l,m)') Next (Regular) Block[B5] Leaving: {R1} } Block[B5] - Exit Predecessors: [B4] Statements (0) ]]>.Value VerifyFlowGraphAndDiagnosticsForTest(Of MethodBlockSyntax)(source, expectedFlowGraph, expectedDiagnostics) End Sub Private Class ExpectedSymbolVerifier Public Shared Function ConversionOrDelegateChildSelector(conv As IOperation) As IOperation If (conv.Kind = OperationKind.Conversion) Then Return DirectCast(conv, IConversionOperation).Operand Else Return DirectCast(conv, IDelegateCreationOperation).Target End If End Function Private ReadOnly _operationSelector As Func(Of IOperation, IConversionOperation) Private ReadOnly _operationChildSelector As Func(Of IOperation, IOperation) Private ReadOnly _syntaxSelector As Func(Of SyntaxNode, SyntaxNode) Public Sub New(Optional operationSelector As Func(Of IOperation, IConversionOperation) = Nothing, Optional operationChildSelector As Func(Of IOperation, IOperation) = Nothing, Optional syntaxSelector As Func(Of SyntaxNode, SyntaxNode) = Nothing) _operationSelector = operationSelector _operationChildSelector = If(operationChildSelector, AddressOf ConversionOrDelegateChildSelector) _syntaxSelector = syntaxSelector End Sub Public Sub Verify(operation As IOperation, compilation As Compilation, syntaxNode As SyntaxNode) Dim finalSyntax = GetAndInvokeSyntaxSelector(syntaxNode) Dim semanticModel = compilation.GetSemanticModel(finalSyntax.SyntaxTree) Dim typeInfo = semanticModel.GetTypeInfo(finalSyntax) Dim conversion = GetAndInvokeOperationSelector(operation) Assert.Equal(conversion.Type, typeInfo.ConvertedType) Assert.Equal(_operationChildSelector(conversion).Type, typeInfo.Type) End Sub Private Function GetAndInvokeSyntaxSelector(syntax As SyntaxNode) As SyntaxNode If _syntaxSelector IsNot Nothing Then Return _syntaxSelector(syntax) Else Select Case syntax.Kind() Case SyntaxKind.LocalDeclarationStatement Return DirectCast(syntax, LocalDeclarationStatementSyntax).Declarators.Single().Initializer.Value Case SyntaxKind.ReturnStatement Return DirectCast(syntax, ReturnStatementSyntax).Expression Case Else Throw New ArgumentException($"Cannot handle syntax of type {syntax.GetType()}") End Select End If End Function Private Function GetAndInvokeOperationSelector(operation As IOperation) As IOperation If _operationSelector IsNot Nothing Then Return _operationSelector(operation) Else Select Case operation.Kind Case OperationKind.VariableDeclarationGroup Return DirectCast(operation, IVariableDeclarationGroupOperation).Declarations.Single().Initializer.Value Case OperationKind.Return Return DirectCast(operation, IReturnOperation).ReturnedValue Case Else Throw New ArgumentException($"Cannot handle operation of type {operation.GetType()}") End Select End If End Function End Class End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Workspaces/VisualBasic/Portable/CodeGeneration/MethodGenerator.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.CodeGeneration Imports Microsoft.CodeAnalysis.CodeGeneration.CodeGenerationHelpers Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.CodeGeneration Friend Class MethodGenerator Friend Shared Function AddMethodTo(destination As NamespaceBlockSyntax, method As IMethodSymbol, options As CodeGenerationOptions, availableIndices As IList(Of Boolean)) As NamespaceBlockSyntax Dim declaration = GenerateMethodDeclaration(method, CodeGenerationDestination.Namespace, options) Dim members = Insert(destination.Members, declaration, options, availableIndices, after:=AddressOf LastMethod) Return destination.WithMembers(SyntaxFactory.List(members)) End Function Friend Shared Function AddMethodTo(destination As CompilationUnitSyntax, method As IMethodSymbol, options As CodeGenerationOptions, availableIndices As IList(Of Boolean)) As CompilationUnitSyntax Dim declaration = GenerateMethodDeclaration(method, CodeGenerationDestination.Namespace, options) Dim members = Insert(destination.Members, declaration, options, availableIndices, after:=AddressOf LastMethod) Return destination.WithMembers(SyntaxFactory.List(members)) End Function Friend Shared Function AddMethodTo(destination As TypeBlockSyntax, method As IMethodSymbol, options As CodeGenerationOptions, availableIndices As IList(Of Boolean)) As TypeBlockSyntax Dim methodDeclaration = GenerateMethodDeclaration(method, GetDestination(destination), options) Dim members = Insert(destination.Members, methodDeclaration, options, availableIndices, after:=AddressOf LastMethod) Return FixTerminators(destination.WithMembers(members)) End Function Public Shared Function GenerateMethodDeclaration(method As IMethodSymbol, destination As CodeGenerationDestination, options As CodeGenerationOptions) As StatementSyntax Dim reusableSyntax = GetReuseableSyntaxNodeForSymbol(Of DeclarationStatementSyntax)(method, options) If reusableSyntax IsNot Nothing Then Return reusableSyntax.GetDeclarationBlockFromBegin() End If Dim declaration = GenerateMethodDeclarationWorker(method, destination, options) Return AddAnnotationsTo(method, AddFormatterAndCodeGeneratorAnnotationsTo( ConditionallyAddDocumentationCommentTo(declaration, method, options))) End Function Private Shared Function GenerateMethodDeclarationWorker(method As IMethodSymbol, destination As CodeGenerationDestination, options As CodeGenerationOptions) As StatementSyntax Dim isSub = method.ReturnType.SpecialType = SpecialType.System_Void Dim kind = If(isSub, SyntaxKind.SubStatement, SyntaxKind.FunctionStatement) Dim keyword = If(isSub, SyntaxKind.SubKeyword, SyntaxKind.FunctionKeyword) Dim asClauseOpt = GenerateAsClause(method, isSub, options) Dim implementsClauseOpt = GenerateImplementsClause(method.ExplicitInterfaceImplementations.FirstOrDefault()) Dim handlesClauseOpt = GenerateHandlesClause(CodeGenerationMethodInfo.GetHandlesExpressions(method)) Dim begin = SyntaxFactory.MethodStatement(kind, subOrFunctionKeyword:=SyntaxFactory.Token(keyword), identifier:=method.Name.ToIdentifierToken). WithAttributeLists(AttributeGenerator.GenerateAttributeBlocks(method.GetAttributes(), options)). WithModifiers(GenerateModifiers(method, destination, options)). WithTypeParameterList(GenerateTypeParameterList(method)). WithParameterList(ParameterGenerator.GenerateParameterList(method.Parameters, options)). WithAsClause(asClauseOpt). WithImplementsClause(implementsClauseOpt). WithHandlesClause(handlesClauseOpt) Dim hasNoBody = Not options.GenerateMethodBodies OrElse method.IsAbstract OrElse destination = CodeGenerationDestination.InterfaceType If hasNoBody Then Return begin End If Dim endConstruct = If(isSub, SyntaxFactory.EndSubStatement(), SyntaxFactory.EndFunctionStatement()) Return SyntaxFactory.MethodBlock( If(isSub, SyntaxKind.SubBlock, SyntaxKind.FunctionBlock), begin, statements:=StatementGenerator.GenerateStatements(method), endSubOrFunctionStatement:=endConstruct) End Function Private Shared Function GenerateAsClause(method As IMethodSymbol, isSub As Boolean, options As CodeGenerationOptions) As SimpleAsClauseSyntax If isSub Then Return Nothing End If Return SyntaxFactory.SimpleAsClause( AttributeGenerator.GenerateAttributeBlocks(method.GetReturnTypeAttributes(), options), method.ReturnType.GenerateTypeSyntax()) End Function Private Shared Function GenerateHandlesClause(expressions As IList(Of SyntaxNode)) As HandlesClauseSyntax Dim memberAccessExpressions = expressions.OfType(Of MemberAccessExpressionSyntax).ToList() Dim items = From def In memberAccessExpressions Let expr1 = def.Expression Where expr1 IsNot Nothing Let expr2 = If(TypeOf expr1 Is ParenthesizedExpressionSyntax, DirectCast(expr1, ParenthesizedExpressionSyntax).Expression, expr1) Let children = expr2.ChildNodesAndTokens() Where children.Count = 1 AndAlso children(0).IsToken Let token = children(0).AsToken() Where token.Kind = SyntaxKind.IdentifierToken OrElse token.Kind = SyntaxKind.MyBaseKeyword OrElse token.Kind = SyntaxKind.MyClassKeyword OrElse token.Kind = SyntaxKind.MeKeyword Where TypeOf def.Name Is IdentifierNameSyntax Let identifier = def.Name.Identifier.ValueText.ToIdentifierName() Select SyntaxFactory.HandlesClauseItem(If(token.Kind = SyntaxKind.IdentifierToken, DirectCast(SyntaxFactory.WithEventsEventContainer(token.ValueText.ToIdentifierToken()), EventContainerSyntax), SyntaxFactory.KeywordEventContainer(token)), identifier) Dim array = items.ToArray() Return If(array.Length = 0, Nothing, SyntaxFactory.HandlesClause(array)) End Function Private Overloads Shared Function GenerateTypeParameterList(method As IMethodSymbol) As TypeParameterListSyntax Return TypeParameterGenerator.GenerateTypeParameterList(method.TypeParameters) End Function Private Shared Function GenerateModifiers(method As IMethodSymbol, destination As CodeGenerationDestination, options As CodeGenerationOptions) As SyntaxTokenList Dim result As ArrayBuilder(Of SyntaxToken) = Nothing Using x = ArrayBuilder(Of SyntaxToken).GetInstance(result) If destination <> CodeGenerationDestination.InterfaceType Then AddAccessibilityModifiers(method.DeclaredAccessibility, result, destination, options, Accessibility.Public) If method.IsAbstract Then result.Add(SyntaxFactory.Token(SyntaxKind.MustOverrideKeyword)) End If If method.IsSealed Then result.Add(SyntaxFactory.Token(SyntaxKind.NotOverridableKeyword)) End If If method.IsVirtual Then result.Add(SyntaxFactory.Token(SyntaxKind.OverridableKeyword)) End If If method.IsOverride Then result.Add(SyntaxFactory.Token(SyntaxKind.OverridesKeyword)) End If If method.IsStatic AndAlso destination <> CodeGenerationDestination.ModuleType Then result.Add(SyntaxFactory.Token(SyntaxKind.SharedKeyword)) End If If CodeGenerationMethodInfo.GetIsNew(method) Then result.Add(SyntaxFactory.Token(SyntaxKind.ShadowsKeyword)) End If If CodeGenerationMethodInfo.GetIsAsyncMethod(method) Then result.Add(SyntaxFactory.Token(SyntaxKind.AsyncKeyword)) End If End If Return SyntaxFactory.TokenList(result) End Using 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.CodeGeneration Imports Microsoft.CodeAnalysis.CodeGeneration.CodeGenerationHelpers Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.CodeGeneration Friend Class MethodGenerator Friend Shared Function AddMethodTo(destination As NamespaceBlockSyntax, method As IMethodSymbol, options As CodeGenerationOptions, availableIndices As IList(Of Boolean)) As NamespaceBlockSyntax Dim declaration = GenerateMethodDeclaration(method, CodeGenerationDestination.Namespace, options) Dim members = Insert(destination.Members, declaration, options, availableIndices, after:=AddressOf LastMethod) Return destination.WithMembers(SyntaxFactory.List(members)) End Function Friend Shared Function AddMethodTo(destination As CompilationUnitSyntax, method As IMethodSymbol, options As CodeGenerationOptions, availableIndices As IList(Of Boolean)) As CompilationUnitSyntax Dim declaration = GenerateMethodDeclaration(method, CodeGenerationDestination.Namespace, options) Dim members = Insert(destination.Members, declaration, options, availableIndices, after:=AddressOf LastMethod) Return destination.WithMembers(SyntaxFactory.List(members)) End Function Friend Shared Function AddMethodTo(destination As TypeBlockSyntax, method As IMethodSymbol, options As CodeGenerationOptions, availableIndices As IList(Of Boolean)) As TypeBlockSyntax Dim methodDeclaration = GenerateMethodDeclaration(method, GetDestination(destination), options) Dim members = Insert(destination.Members, methodDeclaration, options, availableIndices, after:=AddressOf LastMethod) Return FixTerminators(destination.WithMembers(members)) End Function Public Shared Function GenerateMethodDeclaration(method As IMethodSymbol, destination As CodeGenerationDestination, options As CodeGenerationOptions) As StatementSyntax Dim reusableSyntax = GetReuseableSyntaxNodeForSymbol(Of DeclarationStatementSyntax)(method, options) If reusableSyntax IsNot Nothing Then Return reusableSyntax.GetDeclarationBlockFromBegin() End If Dim declaration = GenerateMethodDeclarationWorker(method, destination, options) Return AddAnnotationsTo(method, AddFormatterAndCodeGeneratorAnnotationsTo( ConditionallyAddDocumentationCommentTo(declaration, method, options))) End Function Private Shared Function GenerateMethodDeclarationWorker(method As IMethodSymbol, destination As CodeGenerationDestination, options As CodeGenerationOptions) As StatementSyntax Dim isSub = method.ReturnType.SpecialType = SpecialType.System_Void Dim kind = If(isSub, SyntaxKind.SubStatement, SyntaxKind.FunctionStatement) Dim keyword = If(isSub, SyntaxKind.SubKeyword, SyntaxKind.FunctionKeyword) Dim asClauseOpt = GenerateAsClause(method, isSub, options) Dim implementsClauseOpt = GenerateImplementsClause(method.ExplicitInterfaceImplementations.FirstOrDefault()) Dim handlesClauseOpt = GenerateHandlesClause(CodeGenerationMethodInfo.GetHandlesExpressions(method)) Dim begin = SyntaxFactory.MethodStatement(kind, subOrFunctionKeyword:=SyntaxFactory.Token(keyword), identifier:=method.Name.ToIdentifierToken). WithAttributeLists(AttributeGenerator.GenerateAttributeBlocks(method.GetAttributes(), options)). WithModifiers(GenerateModifiers(method, destination, options)). WithTypeParameterList(GenerateTypeParameterList(method)). WithParameterList(ParameterGenerator.GenerateParameterList(method.Parameters, options)). WithAsClause(asClauseOpt). WithImplementsClause(implementsClauseOpt). WithHandlesClause(handlesClauseOpt) Dim hasNoBody = Not options.GenerateMethodBodies OrElse method.IsAbstract OrElse destination = CodeGenerationDestination.InterfaceType If hasNoBody Then Return begin End If Dim endConstruct = If(isSub, SyntaxFactory.EndSubStatement(), SyntaxFactory.EndFunctionStatement()) Return SyntaxFactory.MethodBlock( If(isSub, SyntaxKind.SubBlock, SyntaxKind.FunctionBlock), begin, statements:=StatementGenerator.GenerateStatements(method), endSubOrFunctionStatement:=endConstruct) End Function Private Shared Function GenerateAsClause(method As IMethodSymbol, isSub As Boolean, options As CodeGenerationOptions) As SimpleAsClauseSyntax If isSub Then Return Nothing End If Return SyntaxFactory.SimpleAsClause( AttributeGenerator.GenerateAttributeBlocks(method.GetReturnTypeAttributes(), options), method.ReturnType.GenerateTypeSyntax()) End Function Private Shared Function GenerateHandlesClause(expressions As IList(Of SyntaxNode)) As HandlesClauseSyntax Dim memberAccessExpressions = expressions.OfType(Of MemberAccessExpressionSyntax).ToList() Dim items = From def In memberAccessExpressions Let expr1 = def.Expression Where expr1 IsNot Nothing Let expr2 = If(TypeOf expr1 Is ParenthesizedExpressionSyntax, DirectCast(expr1, ParenthesizedExpressionSyntax).Expression, expr1) Let children = expr2.ChildNodesAndTokens() Where children.Count = 1 AndAlso children(0).IsToken Let token = children(0).AsToken() Where token.Kind = SyntaxKind.IdentifierToken OrElse token.Kind = SyntaxKind.MyBaseKeyword OrElse token.Kind = SyntaxKind.MyClassKeyword OrElse token.Kind = SyntaxKind.MeKeyword Where TypeOf def.Name Is IdentifierNameSyntax Let identifier = def.Name.Identifier.ValueText.ToIdentifierName() Select SyntaxFactory.HandlesClauseItem(If(token.Kind = SyntaxKind.IdentifierToken, DirectCast(SyntaxFactory.WithEventsEventContainer(token.ValueText.ToIdentifierToken()), EventContainerSyntax), SyntaxFactory.KeywordEventContainer(token)), identifier) Dim array = items.ToArray() Return If(array.Length = 0, Nothing, SyntaxFactory.HandlesClause(array)) End Function Private Overloads Shared Function GenerateTypeParameterList(method As IMethodSymbol) As TypeParameterListSyntax Return TypeParameterGenerator.GenerateTypeParameterList(method.TypeParameters) End Function Private Shared Function GenerateModifiers(method As IMethodSymbol, destination As CodeGenerationDestination, options As CodeGenerationOptions) As SyntaxTokenList Dim result As ArrayBuilder(Of SyntaxToken) = Nothing Using x = ArrayBuilder(Of SyntaxToken).GetInstance(result) If destination <> CodeGenerationDestination.InterfaceType Then AddAccessibilityModifiers(method.DeclaredAccessibility, result, destination, options, Accessibility.Public) If method.IsAbstract Then result.Add(SyntaxFactory.Token(SyntaxKind.MustOverrideKeyword)) End If If method.IsSealed Then result.Add(SyntaxFactory.Token(SyntaxKind.NotOverridableKeyword)) End If If method.IsVirtual Then result.Add(SyntaxFactory.Token(SyntaxKind.OverridableKeyword)) End If If method.IsOverride Then result.Add(SyntaxFactory.Token(SyntaxKind.OverridesKeyword)) End If If method.IsStatic AndAlso destination <> CodeGenerationDestination.ModuleType Then result.Add(SyntaxFactory.Token(SyntaxKind.SharedKeyword)) End If If CodeGenerationMethodInfo.GetIsNew(method) Then result.Add(SyntaxFactory.Token(SyntaxKind.ShadowsKeyword)) End If If CodeGenerationMethodInfo.GetIsAsyncMethod(method) Then result.Add(SyntaxFactory.Token(SyntaxKind.AsyncKeyword)) End If End If Return SyntaxFactory.TokenList(result) End Using End Function End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/CSharp/Test/Emit/PDB/CheckSumTest.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.Text; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.PDB { public class CheckSumTest : CSharpTestBase { private static CSharpCompilation CreateCompilationWithChecksums(string source, string filePath, string baseDirectory) { return CSharpCompilation.Create( GetUniqueName(), new[] { Parse(source, filePath) }, new[] { MscorlibRef }, TestOptions.DebugDll.WithSourceReferenceResolver(new SourceFileResolver(ImmutableArray.Create<string>(), baseDirectory))); } [Fact] public void ChecksumAlgorithms() { var source1 = "public class C1 { public C1() { } }"; var source256 = "public class C256 { public C256() { } }"; var tree1 = SyntaxFactory.ParseSyntaxTree(StringText.From(source1, Encoding.UTF8, SourceHashAlgorithm.Sha1), path: "sha1.cs"); var tree256 = SyntaxFactory.ParseSyntaxTree(StringText.From(source256, Encoding.UTF8, SourceHashAlgorithm.Sha256), path: "sha256.cs"); var compilation = CreateCompilation(new[] { tree1, tree256 }); compilation.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""sha1.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""8E-37-F3-94-ED-18-24-3F-35-EC-1B-70-25-29-42-1C-B0-84-9B-C8"" /> <file id=""2"" name=""sha256.cs"" language=""C#"" checksumAlgorithm=""SHA256"" checksum=""83-31-5B-52-08-2D-68-54-14-88-0E-E3-3A-5E-B7-83-86-53-83-B4-5A-3F-36-9E-5F-1B-60-33-27-0A-8A-EC"" /> </files> <methods> <method containingType=""C1"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""19"" endLine=""1"" endColumn=""30"" document=""1"" /> <entry offset=""0x6"" startLine=""1"" startColumn=""33"" endLine=""1"" endColumn=""34"" document=""1"" /> </sequencePoints> </method> <method containingType=""C256"" name="".ctor""> <customDebugInfo> <forward declaringType=""C1"" methodName="".ctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""21"" endLine=""1"" endColumn=""34"" document=""2"" /> <entry offset=""0x6"" startLine=""1"" startColumn=""37"" endLine=""1"" endColumn=""38"" document=""2"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void CheckSumPragmaClashesSameTree() { var text = @" class C { #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // same #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // different case in Hex numerics, but otherwise same #pragma checksum ""bogus.cs"" ""{406ea660-64cf-4C82-B6F0-42D48172A799}"" ""AB007f1d23d9"" // different case in path, so not a clash #pragma checksum ""bogUs.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A788}"" ""ab007f1d23d9"" // whitespace in path, so not a clash #pragma checksum ""bogUs.cs "" ""{406EA660-64CF-4C82-B6F0-42D48172A788}"" ""ab007f1d23d9"" #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // and now a clash in Guid #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A798}"" ""ab007f1d23d9"" // and now a clash in CheckSum #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d8"" static void Main(string[] args) { } } "; CompileAndVerify(text, options: TestOptions.DebugExe). VerifyDiagnostics( // (20,1): warning CS1697: Different checksum values given for 'bogus1.cs' // #pragma checksum "bogus1.cs" "{406EA660-64CF-4C82-B6F0-42D48172A798}" "ab007f1d23d9" Diagnostic(ErrorCode.WRN_ConflictingChecksum, @"#pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A798}"" ""ab007f1d23d9""").WithArguments("bogus1.cs"), // (22,1): warning CS1697: Different checksum values given for 'bogus1.cs' // #pragma checksum "bogus1.cs" "{406EA660-64CF-4C82-B6F0-42D48172A799}" "ab007f1d23d8" Diagnostic(ErrorCode.WRN_ConflictingChecksum, @"#pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d8""").WithArguments("bogus1.cs")); } [Fact] public void CheckSumPragmaClashesDifferentLength() { var text = @" class C { #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23"" #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" """" #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // odd length, parsing warning, ignored by emit. #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d"" // bad Guid, parsing warning, ignored by emit. #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A79}"" ""ab007f1d23d9"" static void Main(string[] args) { } } "; CompileAndVerify(text). VerifyDiagnostics( // (11,71): warning CS1695: Invalid #pragma checksum syntax; should be #pragma checksum "filename" "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" "XXXX..." // #pragma checksum "bogus1.cs" "{406EA660-64CF-4C82-B6F0-42D48172A799}" "ab007f1d23d" Diagnostic(ErrorCode.WRN_IllegalPPChecksum, @"""ab007f1d23d"""), // (14,30): warning CS1695: Invalid #pragma checksum syntax; should be #pragma checksum "filename" "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" "XXXX..." // #pragma checksum "bogus1.cs" "{406EA660-64CF-4C82-B6F0-42D48172A79}" "ab007f1d23d9" Diagnostic(ErrorCode.WRN_IllegalPPChecksum, @"""{406EA660-64CF-4C82-B6F0-42D48172A79}"""), // (6,1): warning CS1697: Different checksum values given for 'bogus1.cs' // #pragma checksum "bogus1.cs" "{406EA660-64CF-4C82-B6F0-42D48172A799}" "ab007f1d23" Diagnostic(ErrorCode.WRN_ConflictingChecksum, @"#pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23""").WithArguments("bogus1.cs"), // (7,1): warning CS1697: Different checksum values given for 'bogus1.cs' // #pragma checksum "bogus1.cs" "{406EA660-64CF-4C82-B6F0-42D48172A799}" "" Diagnostic(ErrorCode.WRN_ConflictingChecksum, @"#pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" """"").WithArguments("bogus1.cs")); } [Fact] public void CheckSumPragmaClashesDifferentTrees() { var text1 = @" class C { #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // same #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" static void Main(string[] args) { } } "; var text2 = @" class C1 { #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // same #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // different #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23"" } "; CompileAndVerify(new string[] { text1, text2 }). VerifyDiagnostics( // (11,1): warning CS1697: Different checksum values given for 'bogus.cs' // #pragma checksum "bogus.cs" "{406EA660-64CF-4C82-B6F0-42D48172A799}" "ab007f1d23" Diagnostic(ErrorCode.WRN_ConflictingChecksum, @"#pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23""").WithArguments("bogus.cs")); } [Fact] [WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")] public void TestPartialClassFieldInitializers() { var text1 = WithWindowsLineBreaks(@" public partial class C { int x = 1; } #pragma checksum ""UNUSED.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" #pragma checksum ""USED1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" "); var text2 = WithWindowsLineBreaks(@" public partial class C { #pragma checksum ""USED2.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" int y = 1; static void Main() { #line 112 ""USED1.cs"" C c = new C(); #line 112 ""USED2.cs"" C c1 = new C(); #line default } } "); var compilation = CreateCompilation(new[] { Parse(text1, "a.cs"), Parse(text2, "b.cs") }); compilation.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name=""a.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""F0-C4-23-63-A5-89-B9-29-AF-94-07-85-2F-3A-40-D3-70-14-8F-9B"" /> <file id=""2"" name=""b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""C0-51-F0-6F-D3-ED-44-A2-11-4D-03-70-89-20-A6-05-11-62-14-BE"" /> <file id=""3"" name=""USED1.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D9"" /> <file id=""4"" name=""USED2.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D9"" /> <file id=""5"" name=""UNUSED.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D9"" /> </files> <methods> <method containingType=""C"" name=""Main""> <sequencePoints> <entry offset=""0x0"" startLine=""112"" startColumn=""9"" endLine=""112"" endColumn=""23"" document=""3"" /> <entry offset=""0x6"" startLine=""112"" startColumn=""9"" endLine=""112"" endColumn=""24"" document=""4"" /> <entry offset=""0xc"" startLine=""19"" startColumn=""5"" endLine=""19"" endColumn=""6"" document=""2"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.PortablePdb); } [WorkItem(729235, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/729235")] [ConditionalFact(typeof(WindowsOnly))] public void NormalizedPath_Tree() { var source = @" class C { void M() { } } "; var comp = CreateCompilationWithChecksums(source, "b.cs", @"b:\base"); // Verify the value of name attribute in file element. comp.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name=""b:\base\b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""05-25-26-AE-53-A0-54-46-AC-A6-1D-8A-3B-1E-3F-C3-43-39-FB-59"" /> </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"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [ConditionalFact(typeof(WindowsOnly))] [WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")] public void NoResolver() { var comp = CSharpCompilation.Create( GetUniqueName(), new[] { Parse(@" #pragma checksum ""a\..\a.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d5"" #line 10 ""a\..\a.cs"" class C { void M() { } } ", @"C:\a\..\b.cs") }, new[] { MscorlibRef }, TestOptions.DebugDll.WithSourceReferenceResolver(null)); // Verify the value of name attribute in file element. comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""C:\a\..\b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""36-39-3C-83-56-97-F2-F0-60-95-A4-A0-32-C6-32-C7-B2-4B-16-92"" /> <file id=""2"" name=""a\..\a.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D5"" /> </files> <methods> <method containingType=""C"" name=""M""> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""20"" endLine=""10"" endColumn=""21"" document=""2"" /> <entry offset=""0x1"" startLine=""10"" startColumn=""22"" endLine=""10"" endColumn=""23"" document=""2"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.PortablePdb); } [WorkItem(729235, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/729235")] [ConditionalFact(typeof(WindowsOnly))] public void NormalizedPath_LineDirective() { var source = @" class C { void M() { M(); #line 1 ""line.cs"" M(); #line 2 ""./line.cs"" M(); #line 3 "".\line.cs"" M(); #line 4 ""q\..\line.cs"" M(); #line 5 ""q:\absolute\file.cs"" M(); } } "; var comp = CreateCompilationWithChecksums(source, "b.cs", @"b:\base"); // Verify the fact that there's a single file element for "line.cs" and it has an absolute path. // Verify the fact that the path that was already absolute wasn't affected by the base directory. comp.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name=""b:\base\b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""B6-C3-C8-D1-2D-F4-BD-FA-F7-25-AC-F8-17-E1-83-BE-CC-9B-40-84"" /> <file id=""2"" name=""b:\base\line.cs"" language=""C#"" /> <file id=""3"" name=""q:\absolute\file.cs"" 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"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""13"" document=""1"" /> <entry offset=""0x8"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""2"" /> <entry offset=""0xf"" startLine=""2"" startColumn=""9"" endLine=""2"" endColumn=""13"" document=""2"" /> <entry offset=""0x16"" startLine=""3"" startColumn=""9"" endLine=""3"" endColumn=""13"" document=""2"" /> <entry offset=""0x1d"" startLine=""4"" startColumn=""9"" endLine=""4"" endColumn=""13"" document=""2"" /> <entry offset=""0x24"" startLine=""5"" startColumn=""9"" endLine=""5"" endColumn=""13"" document=""3"" /> <entry offset=""0x2b"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""3"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(729235, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/729235")] [ConditionalFact(typeof(WindowsOnly))] public void NormalizedPath_ChecksumDirective() { var source = @" class C { #pragma checksum ""a.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d5"" #pragma checksum ""./b.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d6"" #pragma checksum "".\c.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d7"" #pragma checksum ""q\..\d.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d8"" #pragma checksum ""b:\base\e.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" void M() { M(); #line 1 ""a.cs"" M(); #line 1 ""b.cs"" M(); #line 1 ""c.cs"" M(); #line 1 ""d.cs"" M(); #line 1 ""e.cs"" M(); } } "; var comp = CreateCompilationWithChecksums(source, "file.cs", @"b:\base"); comp.VerifyDiagnostics(); // Verify the fact that all pragmas are referenced, even though the paths differ before normalization. comp.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name=""b:\base\file.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""2B-34-42-7D-32-E5-0A-24-3D-01-43-BF-42-FB-38-57-62-60-8B-14"" /> <file id=""2"" name=""b:\base\a.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D5"" /> <file id=""3"" name=""b:\base\b.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D6"" /> <file id=""4"" name=""b:\base\c.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D7"" /> <file id=""5"" name=""b:\base\d.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D8"" /> <file id=""6"" name=""b:\base\e.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D9"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </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=""13"" document=""1"" /> <entry offset=""0x8"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""2"" /> <entry offset=""0xf"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""3"" /> <entry offset=""0x16"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""4"" /> <entry offset=""0x1d"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""5"" /> <entry offset=""0x24"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""6"" /> <entry offset=""0x2b"" startLine=""2"" startColumn=""5"" endLine=""2"" endColumn=""6"" document=""6"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(729235, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/729235")] [ConditionalFact(typeof(WindowsOnly))] public void NormalizedPath_NoBaseDirectory() { var source = @" class C { #pragma checksum ""a.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d5"" void M() { M(); #line 1 ""a.cs"" M(); #line 1 ""./a.cs"" M(); #line 1 ""b.cs"" M(); } } "; var comp = CreateCompilationWithChecksums(source, "file.cs", null); comp.VerifyDiagnostics(); // Verify nothing blew up. comp.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name=""file.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""9B-81-4F-A7-E1-1F-D2-45-8B-00-F3-82-65-DF-E4-BF-A1-3A-3B-29"" /> <file id=""2"" name=""a.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D5"" /> <file id=""3"" name=""./a.cs"" language=""C#"" /> <file id=""4"" name=""b.cs"" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </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=""13"" document=""1"" /> <entry offset=""0x8"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""2"" /> <entry offset=""0xf"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""3"" /> <entry offset=""0x16"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""4"" /> <entry offset=""0x1d"" startLine=""2"" startColumn=""5"" endLine=""2"" endColumn=""6"" document=""4"" /> </sequencePoints> </method> </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.Collections.Immutable; using System.Text; using Microsoft.CodeAnalysis.CSharp.Test.Utilities; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.CSharp.UnitTests.PDB { public class CheckSumTest : CSharpTestBase { private static CSharpCompilation CreateCompilationWithChecksums(string source, string filePath, string baseDirectory) { return CSharpCompilation.Create( GetUniqueName(), new[] { Parse(source, filePath) }, new[] { MscorlibRef }, TestOptions.DebugDll.WithSourceReferenceResolver(new SourceFileResolver(ImmutableArray.Create<string>(), baseDirectory))); } [Fact] public void ChecksumAlgorithms() { var source1 = "public class C1 { public C1() { } }"; var source256 = "public class C256 { public C256() { } }"; var tree1 = SyntaxFactory.ParseSyntaxTree(StringText.From(source1, Encoding.UTF8, SourceHashAlgorithm.Sha1), path: "sha1.cs"); var tree256 = SyntaxFactory.ParseSyntaxTree(StringText.From(source256, Encoding.UTF8, SourceHashAlgorithm.Sha256), path: "sha256.cs"); var compilation = CreateCompilation(new[] { tree1, tree256 }); compilation.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""sha1.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""8E-37-F3-94-ED-18-24-3F-35-EC-1B-70-25-29-42-1C-B0-84-9B-C8"" /> <file id=""2"" name=""sha256.cs"" language=""C#"" checksumAlgorithm=""SHA256"" checksum=""83-31-5B-52-08-2D-68-54-14-88-0E-E3-3A-5E-B7-83-86-53-83-B4-5A-3F-36-9E-5F-1B-60-33-27-0A-8A-EC"" /> </files> <methods> <method containingType=""C1"" name="".ctor""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""19"" endLine=""1"" endColumn=""30"" document=""1"" /> <entry offset=""0x6"" startLine=""1"" startColumn=""33"" endLine=""1"" endColumn=""34"" document=""1"" /> </sequencePoints> </method> <method containingType=""C256"" name="".ctor""> <customDebugInfo> <forward declaringType=""C1"" methodName="".ctor"" /> </customDebugInfo> <sequencePoints> <entry offset=""0x0"" startLine=""1"" startColumn=""21"" endLine=""1"" endColumn=""34"" document=""2"" /> <entry offset=""0x6"" startLine=""1"" startColumn=""37"" endLine=""1"" endColumn=""38"" document=""2"" /> </sequencePoints> </method> </methods> </symbols>"); } [Fact] public void CheckSumPragmaClashesSameTree() { var text = @" class C { #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // same #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // different case in Hex numerics, but otherwise same #pragma checksum ""bogus.cs"" ""{406ea660-64cf-4C82-B6F0-42D48172A799}"" ""AB007f1d23d9"" // different case in path, so not a clash #pragma checksum ""bogUs.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A788}"" ""ab007f1d23d9"" // whitespace in path, so not a clash #pragma checksum ""bogUs.cs "" ""{406EA660-64CF-4C82-B6F0-42D48172A788}"" ""ab007f1d23d9"" #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // and now a clash in Guid #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A798}"" ""ab007f1d23d9"" // and now a clash in CheckSum #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d8"" static void Main(string[] args) { } } "; CompileAndVerify(text, options: TestOptions.DebugExe). VerifyDiagnostics( // (20,1): warning CS1697: Different checksum values given for 'bogus1.cs' // #pragma checksum "bogus1.cs" "{406EA660-64CF-4C82-B6F0-42D48172A798}" "ab007f1d23d9" Diagnostic(ErrorCode.WRN_ConflictingChecksum, @"#pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A798}"" ""ab007f1d23d9""").WithArguments("bogus1.cs"), // (22,1): warning CS1697: Different checksum values given for 'bogus1.cs' // #pragma checksum "bogus1.cs" "{406EA660-64CF-4C82-B6F0-42D48172A799}" "ab007f1d23d8" Diagnostic(ErrorCode.WRN_ConflictingChecksum, @"#pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d8""").WithArguments("bogus1.cs")); } [Fact] public void CheckSumPragmaClashesDifferentLength() { var text = @" class C { #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23"" #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" """" #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // odd length, parsing warning, ignored by emit. #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d"" // bad Guid, parsing warning, ignored by emit. #pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A79}"" ""ab007f1d23d9"" static void Main(string[] args) { } } "; CompileAndVerify(text). VerifyDiagnostics( // (11,71): warning CS1695: Invalid #pragma checksum syntax; should be #pragma checksum "filename" "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" "XXXX..." // #pragma checksum "bogus1.cs" "{406EA660-64CF-4C82-B6F0-42D48172A799}" "ab007f1d23d" Diagnostic(ErrorCode.WRN_IllegalPPChecksum, @"""ab007f1d23d"""), // (14,30): warning CS1695: Invalid #pragma checksum syntax; should be #pragma checksum "filename" "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}" "XXXX..." // #pragma checksum "bogus1.cs" "{406EA660-64CF-4C82-B6F0-42D48172A79}" "ab007f1d23d9" Diagnostic(ErrorCode.WRN_IllegalPPChecksum, @"""{406EA660-64CF-4C82-B6F0-42D48172A79}"""), // (6,1): warning CS1697: Different checksum values given for 'bogus1.cs' // #pragma checksum "bogus1.cs" "{406EA660-64CF-4C82-B6F0-42D48172A799}" "ab007f1d23" Diagnostic(ErrorCode.WRN_ConflictingChecksum, @"#pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23""").WithArguments("bogus1.cs"), // (7,1): warning CS1697: Different checksum values given for 'bogus1.cs' // #pragma checksum "bogus1.cs" "{406EA660-64CF-4C82-B6F0-42D48172A799}" "" Diagnostic(ErrorCode.WRN_ConflictingChecksum, @"#pragma checksum ""bogus1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" """"").WithArguments("bogus1.cs")); } [Fact] public void CheckSumPragmaClashesDifferentTrees() { var text1 = @" class C { #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // same #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" static void Main(string[] args) { } } "; var text2 = @" class C1 { #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // same #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" // different #pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23"" } "; CompileAndVerify(new string[] { text1, text2 }). VerifyDiagnostics( // (11,1): warning CS1697: Different checksum values given for 'bogus.cs' // #pragma checksum "bogus.cs" "{406EA660-64CF-4C82-B6F0-42D48172A799}" "ab007f1d23" Diagnostic(ErrorCode.WRN_ConflictingChecksum, @"#pragma checksum ""bogus.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23""").WithArguments("bogus.cs")); } [Fact] [WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")] public void TestPartialClassFieldInitializers() { var text1 = WithWindowsLineBreaks(@" public partial class C { int x = 1; } #pragma checksum ""UNUSED.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" #pragma checksum ""USED1.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" "); var text2 = WithWindowsLineBreaks(@" public partial class C { #pragma checksum ""USED2.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" int y = 1; static void Main() { #line 112 ""USED1.cs"" C c = new C(); #line 112 ""USED2.cs"" C c1 = new C(); #line default } } "); var compilation = CreateCompilation(new[] { Parse(text1, "a.cs"), Parse(text2, "b.cs") }); compilation.VerifyPdb("C.Main", @" <symbols> <files> <file id=""1"" name=""a.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""F0-C4-23-63-A5-89-B9-29-AF-94-07-85-2F-3A-40-D3-70-14-8F-9B"" /> <file id=""2"" name=""b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""C0-51-F0-6F-D3-ED-44-A2-11-4D-03-70-89-20-A6-05-11-62-14-BE"" /> <file id=""3"" name=""USED1.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D9"" /> <file id=""4"" name=""USED2.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D9"" /> <file id=""5"" name=""UNUSED.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D9"" /> </files> <methods> <method containingType=""C"" name=""Main""> <sequencePoints> <entry offset=""0x0"" startLine=""112"" startColumn=""9"" endLine=""112"" endColumn=""23"" document=""3"" /> <entry offset=""0x6"" startLine=""112"" startColumn=""9"" endLine=""112"" endColumn=""24"" document=""4"" /> <entry offset=""0xc"" startLine=""19"" startColumn=""5"" endLine=""19"" endColumn=""6"" document=""2"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.PortablePdb); } [WorkItem(729235, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/729235")] [ConditionalFact(typeof(WindowsOnly))] public void NormalizedPath_Tree() { var source = @" class C { void M() { } } "; var comp = CreateCompilationWithChecksums(source, "b.cs", @"b:\base"); // Verify the value of name attribute in file element. comp.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name=""b:\base\b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""05-25-26-AE-53-A0-54-46-AC-A6-1D-8A-3B-1E-3F-C3-43-39-FB-59"" /> </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"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""1"" /> </sequencePoints> </method> </methods> </symbols>"); } [ConditionalFact(typeof(WindowsOnly))] [WorkItem(50611, "https://github.com/dotnet/roslyn/issues/50611")] public void NoResolver() { var comp = CSharpCompilation.Create( GetUniqueName(), new[] { Parse(@" #pragma checksum ""a\..\a.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d5"" #line 10 ""a\..\a.cs"" class C { void M() { } } ", @"C:\a\..\b.cs") }, new[] { MscorlibRef }, TestOptions.DebugDll.WithSourceReferenceResolver(null)); // Verify the value of name attribute in file element. comp.VerifyPdb(@" <symbols> <files> <file id=""1"" name=""C:\a\..\b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""36-39-3C-83-56-97-F2-F0-60-95-A4-A0-32-C6-32-C7-B2-4B-16-92"" /> <file id=""2"" name=""a\..\a.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D5"" /> </files> <methods> <method containingType=""C"" name=""M""> <sequencePoints> <entry offset=""0x0"" startLine=""10"" startColumn=""20"" endLine=""10"" endColumn=""21"" document=""2"" /> <entry offset=""0x1"" startLine=""10"" startColumn=""22"" endLine=""10"" endColumn=""23"" document=""2"" /> </sequencePoints> </method> </methods> </symbols>", format: DebugInformationFormat.PortablePdb); } [WorkItem(729235, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/729235")] [ConditionalFact(typeof(WindowsOnly))] public void NormalizedPath_LineDirective() { var source = @" class C { void M() { M(); #line 1 ""line.cs"" M(); #line 2 ""./line.cs"" M(); #line 3 "".\line.cs"" M(); #line 4 ""q\..\line.cs"" M(); #line 5 ""q:\absolute\file.cs"" M(); } } "; var comp = CreateCompilationWithChecksums(source, "b.cs", @"b:\base"); // Verify the fact that there's a single file element for "line.cs" and it has an absolute path. // Verify the fact that the path that was already absolute wasn't affected by the base directory. comp.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name=""b:\base\b.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""B6-C3-C8-D1-2D-F4-BD-FA-F7-25-AC-F8-17-E1-83-BE-CC-9B-40-84"" /> <file id=""2"" name=""b:\base\line.cs"" language=""C#"" /> <file id=""3"" name=""q:\absolute\file.cs"" 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"" startLine=""6"" startColumn=""9"" endLine=""6"" endColumn=""13"" document=""1"" /> <entry offset=""0x8"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""2"" /> <entry offset=""0xf"" startLine=""2"" startColumn=""9"" endLine=""2"" endColumn=""13"" document=""2"" /> <entry offset=""0x16"" startLine=""3"" startColumn=""9"" endLine=""3"" endColumn=""13"" document=""2"" /> <entry offset=""0x1d"" startLine=""4"" startColumn=""9"" endLine=""4"" endColumn=""13"" document=""2"" /> <entry offset=""0x24"" startLine=""5"" startColumn=""9"" endLine=""5"" endColumn=""13"" document=""3"" /> <entry offset=""0x2b"" startLine=""6"" startColumn=""5"" endLine=""6"" endColumn=""6"" document=""3"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(729235, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/729235")] [ConditionalFact(typeof(WindowsOnly))] public void NormalizedPath_ChecksumDirective() { var source = @" class C { #pragma checksum ""a.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d5"" #pragma checksum ""./b.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d6"" #pragma checksum "".\c.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d7"" #pragma checksum ""q\..\d.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d8"" #pragma checksum ""b:\base\e.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d9"" void M() { M(); #line 1 ""a.cs"" M(); #line 1 ""b.cs"" M(); #line 1 ""c.cs"" M(); #line 1 ""d.cs"" M(); #line 1 ""e.cs"" M(); } } "; var comp = CreateCompilationWithChecksums(source, "file.cs", @"b:\base"); comp.VerifyDiagnostics(); // Verify the fact that all pragmas are referenced, even though the paths differ before normalization. comp.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name=""b:\base\file.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""2B-34-42-7D-32-E5-0A-24-3D-01-43-BF-42-FB-38-57-62-60-8B-14"" /> <file id=""2"" name=""b:\base\a.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D5"" /> <file id=""3"" name=""b:\base\b.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D6"" /> <file id=""4"" name=""b:\base\c.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D7"" /> <file id=""5"" name=""b:\base\d.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D8"" /> <file id=""6"" name=""b:\base\e.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D9"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </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=""13"" document=""1"" /> <entry offset=""0x8"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""2"" /> <entry offset=""0xf"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""3"" /> <entry offset=""0x16"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""4"" /> <entry offset=""0x1d"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""5"" /> <entry offset=""0x24"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""6"" /> <entry offset=""0x2b"" startLine=""2"" startColumn=""5"" endLine=""2"" endColumn=""6"" document=""6"" /> </sequencePoints> </method> </methods> </symbols>"); } [WorkItem(729235, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/729235")] [ConditionalFact(typeof(WindowsOnly))] public void NormalizedPath_NoBaseDirectory() { var source = @" class C { #pragma checksum ""a.cs"" ""{406EA660-64CF-4C82-B6F0-42D48172A799}"" ""ab007f1d23d5"" void M() { M(); #line 1 ""a.cs"" M(); #line 1 ""./a.cs"" M(); #line 1 ""b.cs"" M(); } } "; var comp = CreateCompilationWithChecksums(source, "file.cs", null); comp.VerifyDiagnostics(); // Verify nothing blew up. comp.VerifyPdb("C.M", @" <symbols> <files> <file id=""1"" name=""file.cs"" language=""C#"" checksumAlgorithm=""SHA1"" checksum=""9B-81-4F-A7-E1-1F-D2-45-8B-00-F3-82-65-DF-E4-BF-A1-3A-3B-29"" /> <file id=""2"" name=""a.cs"" language=""C#"" checksumAlgorithm=""406ea660-64cf-4c82-b6f0-42d48172a799"" checksum=""AB-00-7F-1D-23-D5"" /> <file id=""3"" name=""./a.cs"" language=""C#"" /> <file id=""4"" name=""b.cs"" language=""C#"" /> </files> <methods> <method containingType=""C"" name=""M""> <customDebugInfo> <using> <namespace usingCount=""0"" /> </using> </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=""13"" document=""1"" /> <entry offset=""0x8"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""2"" /> <entry offset=""0xf"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""3"" /> <entry offset=""0x16"" startLine=""1"" startColumn=""9"" endLine=""1"" endColumn=""13"" document=""4"" /> <entry offset=""0x1d"" startLine=""2"" startColumn=""5"" endLine=""2"" endColumn=""6"" document=""4"" /> </sequencePoints> </method> </methods> </symbols>"); } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/EditorFeatures/CSharpTest/GenerateFromMembers/GenerateConstructorFromMembers/GenerateConstructorFromMembersTests.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.CodeStyle; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.CodeStyle; using Microsoft.CodeAnalysis.CSharp.GenerateConstructorFromMembers; using Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CodeRefactorings; using Microsoft.CodeAnalysis.Editor.UnitTests.Diagnostics.NamingStyles; using Microsoft.CodeAnalysis.PickMembers; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.GenerateConstructorFromMembers { public class GenerateConstructorFromMembersTests : AbstractCSharpCodeActionTest { protected override CodeRefactoringProvider CreateCodeRefactoringProvider(Workspace workspace, TestParameters parameters) => new CSharpGenerateConstructorFromMembersCodeRefactoringProvider((IPickMembersService)parameters.fixProviderData); private readonly NamingStylesTestOptionSets options = new NamingStylesTestOptionSets(LanguageNames.CSharp); [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSingleField() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a;|] }", @"using System.Collections.Generic; class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSingleFieldWithCodeStyle() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a;|] }", @"using System.Collections.Generic; class Z { int a; public Z(int a{|Navigation:)|} => this.a = a; }", options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedConstructors, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestUseExpressionBodyWhenOnSingleLine_AndIsSingleLine() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a;|] }", @"using System.Collections.Generic; class Z { int a; public Z(int a{|Navigation:)|} => this.a = a; }", options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedConstructors, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestUseExpressionBodyWhenOnSingleLine_AndIsNotSingleLine() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a; int b;|] }", @"using System.Collections.Generic; class Z { int a; int b; public Z(int a, int b{|Navigation:)|} { this.a = a; this.b = b; } }", options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedConstructors, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultipleFields() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a; string b;|] }", @"using System.Collections.Generic; class Z { int a; string b; public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultipleFields_VerticalSelection() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z {[| int a; string b;|] }", @"using System.Collections.Generic; class Z { int a; string b; public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultipleFields_VerticalSelectionUpToExcludedField() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { int a;[| string b; string c;|] }", @"using System.Collections.Generic; class Z { int a; string b; string c; public Z(string b, string c{|Navigation:)|} { this.b = b; this.c = c; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultipleFields_VerticalSelectionUpToMethod() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { void Foo() { }[| int a; string b;|] }", @"using System.Collections.Generic; class Z { void Foo() { } int a; string b; public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultipleFields_SelectionIncludingClassOpeningBrace() { await TestMissingAsync( @"using System.Collections.Generic; class Z [|{ int a; string b;|] }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSecondField() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { int a; [|string b;|] public Z(int a) { this.a = a; } }", @"using System.Collections.Generic; class Z { int a; string b; public Z(int a) { this.a = a; } public Z(string b{|Navigation:)|} { this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestFieldAssigningConstructor() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a; string b;|] public Z(int a) { this.a = a; } }", @"using System.Collections.Generic; class Z { int a; string b; public Z(int a) { this.a = a; } public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestFieldAssigningConstructor2() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a; string b;|] public Z(int a) { this.a = a; } }", @"using System.Collections.Generic; class Z { int a; string b; public Z(int a) { this.a = a; } public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestDelegatingConstructor() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a; string b;|] public Z(int a) { this.a = a; } }", @"using System.Collections.Generic; class Z { int a; string b; public Z(int a) { this.a = a; } public Z(int a, string b{|Navigation:)|} : this(a) { this.b = b; } }", index: 1); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestDelegatingConstructorWithNullabilityDifferences() { // For this test we have a problem: the existing constructor has different nullability than // the underlying field. We will still offer to use the delegating constructor even though it has a nullability issue // the user can then easily fix. If they don't want that, they can also just use the first option. await TestInRegularAndScriptAsync( @"#nullable enable using System.Collections.Generic; class Z { [|string? a; int b;|] public Z(string a) { this.a = a; } }", @"#nullable enable using System.Collections.Generic; class Z { string? a; int b; public Z(string a) { this.a = a; } public Z(string? a, int b{|Navigation:)|} : this(a) { this.b = b; } }", index: 1); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMissingWithExistingConstructor() { await TestMissingInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a; string b;|] public Z(int a) { this.a = a; } public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultipleProperties() { await TestInRegularAndScriptAsync( @"class Z { [|public int A { get; private set; } public string B { get; private set; }|] }", @"class Z { public Z(int a, string b{|Navigation:)|} { A = a; B = b; } public int A { get; private set; } public string B { get; private set; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultiplePropertiesWithQualification() { await TestInRegularAndScriptAsync( @"class Z { [|public int A { get; private set; } public string B { get; private set; }|] }", @"class Z { public Z(int a, string b{|Navigation:)|} { this.A = a; this.B = b; } public int A { get; private set; } public string B { get; private set; } }", options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestStruct() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; struct S { [|int i;|] }", @"using System.Collections.Generic; struct S { int i; public S(int i{|Navigation:)|} { this.i = i; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestStructInitializingAutoProperty() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; struct S { [|int i { get; set; }|] }", @"using System.Collections.Generic; struct S { public S(int i{|Navigation:)|} { this.i = i; } int i { get; set; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestStructNotInitializingAutoProperty() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; struct S { [|int i { get => f; set => f = value; }|] int j { get; set; } }", @"using System.Collections.Generic; struct S { public S(int i{|Navigation:)|} : this() { this.i = i; } int i { get => f; set => f = value; } int j { get; set; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestStruct2() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; struct S { int i { get; set; } [|int y;|] }", @"using System.Collections.Generic; struct S { int i { get; set; } int y; public S(int y{|Navigation:)|} : this() { this.y = y; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestStruct3() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; struct S { [|int i { get; set; }|] int y; }", @"using System.Collections.Generic; struct S { int i { get; set; } int y; public S(int i{|Navigation:)|} : this() { this.i = i; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestGenericType() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Program<T> { [|int i;|] }", @"using System.Collections.Generic; class Program<T> { int i; public Program(int i{|Navigation:)|} { this.i = i; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSmartTagText1() { await TestSmartTagTextAsync( @"using System.Collections.Generic; class Program { [|bool b; HashSet<string> s;|] }", string.Format(FeaturesResources.Generate_constructor_0_1, "Program", "bool, HashSet<string>")); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSmartTagText2() { await TestSmartTagTextAsync( @"using System.Collections.Generic; class Program { [|bool b; HashSet<string> s;|] public Program(bool b) { this.b = b; } }", string.Format(FeaturesResources.Generate_field_assigning_constructor_0_1, "Program", "bool, HashSet<string>")); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSmartTagText3() { await TestSmartTagTextAsync( @"using System.Collections.Generic; class Program { [|bool b; HashSet<string> s;|] public Program(bool b) { this.b = b; } }", string.Format(FeaturesResources.Generate_delegating_constructor_0_1, "Program", "bool, HashSet<string>"), index: 1); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestContextualKeywordName() { await TestInRegularAndScriptAsync( @"class Program { [|int yield;|] }", @"class Program { int yield; public Program(int yield{|Navigation:)|} { this.yield = yield; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestGenerateConstructorNotOfferedForDuplicate() { await TestMissingInRegularAndScriptAsync( @"using System; class X { public X(string v) { } static void Test() { new X(new [|string|]()); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task Tuple() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|(int, string) a;|] }", @"using System.Collections.Generic; class Z { (int, string) a; public Z((int, string) a{|Navigation:)|} { this.a = a; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task NullableReferenceType() { await TestInRegularAndScriptAsync( @"#nullable enable class Z { [|string? a;|] }", @"#nullable enable class Z { string? a; public Z(string? a{|Navigation:)|} { this.a = a; } }"); } [WorkItem(14219, "https://github.com/dotnet/roslyn/issues/14219")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestUnderscoreInName1() { await TestInRegularAndScriptAsync( @"class Program { [|int _field;|] }", @"class Program { int _field; public Program(int field{|Navigation:)|} { _field = field; } }"); } [WorkItem(14219, "https://github.com/dotnet/roslyn/issues/14219")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestUnderscoreInName_PreferThis() { await TestInRegularAndScriptAsync( @"class Program { [|int _field;|] }", @"class Program { int _field; public Program(int field{|Navigation:)|} { this._field = field; } }", options: Option(CodeStyleOptions2.QualifyFieldAccess, CodeStyleOptions2.TrueWithSuggestionEnforcement)); } [WorkItem(13944, "https://github.com/dotnet/roslyn/issues/13944")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestGetter_Only_Auto_Props() { await TestInRegularAndScriptAsync( @"abstract class Contribution { [|public string Title { get; } public int Number { get; }|] }", @"abstract class Contribution { protected Contribution(string title, int number{|Navigation:)|} { Title = title; Number = number; } public string Title { get; } public int Number { get; } }", options: Option(CodeStyleOptions2.QualifyFieldAccess, CodeStyleOptions2.TrueWithSuggestionEnforcement)); } [WorkItem(13944, "https://github.com/dotnet/roslyn/issues/13944")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAbstract_Getter_Only_Auto_Props() { await TestMissingInRegularAndScriptAsync( @"abstract class Contribution { [|public abstract string Title { get; } public int Number { get; }|] }", new TestParameters(options: Option(CodeStyleOptions2.QualifyFieldAccess, CodeStyleOptions2.TrueWithSuggestionEnforcement))); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSingleFieldWithDialog() { await TestWithPickMembersDialogAsync( @"using System.Collections.Generic; class Z { int a; [||] }", @"using System.Collections.Generic; class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }", chosenSymbols: new[] { "a" }); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSingleFieldWithDialog2() { await TestWithPickMembersDialogAsync( @"using System.Collections.Generic; class [||]Z { int a; }", @"using System.Collections.Generic; class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }", chosenSymbols: new[] { "a" }); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMissingOnClassAttributes() { await TestMissingInRegularAndScriptAsync( @"using System.Collections.Generic; [X][||] class Z { int a; }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPickNoFieldWithDialog() { await TestWithPickMembersDialogAsync( @"using System.Collections.Generic; class Z { int a; [||] }", @"using System.Collections.Generic; class Z { int a; public Z({|Navigation:)|} { } }", chosenSymbols: new string[] { }); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestReorderFieldsWithDialog() { await TestWithPickMembersDialogAsync( @"using System.Collections.Generic; class Z { int a; string b; [||] }", @"using System.Collections.Generic; class Z { int a; string b; public Z(string b, int a{|Navigation:)|} { this.b = b; this.a = a; } }", chosenSymbols: new string[] { "b", "a" }); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAddNullChecks1() { await TestWithPickMembersDialogAsync( @" using System; using System.Collections.Generic; class Z { int a; string b; [||] }", @" using System; using System.Collections.Generic; class Z { int a; string b; public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b ?? throw new ArgumentNullException(nameof(b)); } }", chosenSymbols: new string[] { "a", "b" }, optionsCallback: options => options[0].Value = true); } [WorkItem(41428, "https://github.com/dotnet/roslyn/issues/41428")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAddNullChecksWithNullableReferenceType() { await TestWithPickMembersDialogAsync( @" using System; using System.Collections.Generic; #nullable enable class Z { int a; string b; string? c; [||] }", @" using System; using System.Collections.Generic; #nullable enable class Z { int a; string b; string? c; public Z(int a, string b, string? c{|Navigation:)|} { this.a = a; this.b = b ?? throw new ArgumentNullException(nameof(b)); this.c = c; } }", chosenSymbols: new string[] { "a", "b", "c" }, optionsCallback: options => options[0].Value = true); } [WorkItem(41428, "https://github.com/dotnet/roslyn/issues/41428")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAddNullChecksWithNullableReferenceTypeForGenerics() { await TestWithPickMembersDialogAsync( @" using System; using System.Collections.Generic; #nullable enable class Z<T> where T : class { int a; string b; T? c; [||] }", @" using System; using System.Collections.Generic; #nullable enable class Z<T> where T : class { int a; string b; T? c; public Z(int a, string b, T? c{|Navigation:)|} { this.a = a; this.b = b ?? throw new ArgumentNullException(nameof(b)); this.c = c; } }", chosenSymbols: new string[] { "a", "b", "c" }, optionsCallback: options => options[0].Value = true); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAddNullChecks2() { await TestWithPickMembersDialogAsync( @" using System; using System.Collections.Generic; class Z { int a; string b; [||] }", @" using System; using System.Collections.Generic; class Z { int a; string b; public Z(int a, string b{|Navigation:)|} { if (b is null) { throw new ArgumentNullException(nameof(b)); } this.a = a; this.b = b; } }", chosenSymbols: new string[] { "a", "b" }, optionsCallback: options => options[0].Value = true, parameters: new TestParameters(options: Option(CSharpCodeStyleOptions.PreferThrowExpression, CodeStyleOptions2.FalseWithSilentEnforcement))); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAddNullChecks3() { await TestWithPickMembersDialogAsync( @" using System; using System.Collections.Generic; class Z { int a; int? b; [||] }", @" using System; using System.Collections.Generic; class Z { int a; int? b; public Z(int a, int? b{|Navigation:)|} { this.a = a; this.b = b; } }", chosenSymbols: new string[] { "a", "b" }, optionsCallback: options => options[0].Value = true, parameters: new TestParameters(options: Option(CSharpCodeStyleOptions.PreferThrowExpression, CodeStyleOptions2.FalseWithSilentEnforcement))); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAddNullChecks_CSharp6() { await TestWithPickMembersDialogAsync( @" using System; using System.Collections.Generic; class Z { int a; string b; [||] }", @" using System; using System.Collections.Generic; class Z { int a; string b; public Z(int a, string b{|Navigation:)|} { if (b == null) { throw new ArgumentNullException(nameof(b)); } this.a = a; this.b = b; } }", chosenSymbols: new string[] { "a", "b" }, optionsCallback: options => options[0].Value = true, parameters: new TestParameters( parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6), options: Option(CSharpCodeStyleOptions.PreferThrowExpression, CodeStyleOptions2.FalseWithSilentEnforcement))); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMissingOnMember1() { await TestMissingInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { int a; string b; [||]public void M() { } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMissingOnMember2() { await TestMissingInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { int a; string b; public void M() { }[||] public void N() { } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMissingOnMember3() { await TestMissingInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { int a; string b; public void M() { [||] } public void N() { } }"); } [WorkItem(21067, "https://github.com/dotnet/roslyn/pull/21067")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestFinalCaretPosition() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a;|] }", @"using System.Collections.Generic; class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] [WorkItem(20595, "https://github.com/dotnet/roslyn/issues/20595")] public async Task ProtectedConstructorShouldBeGeneratedForAbstractClass() { await TestInRegularAndScriptAsync( @"abstract class C { [|public int Prop { get; set; }|] }", @"abstract class C { protected C(int prop{|Navigation:)|} { Prop = prop; } public int Prop { get; set; } }", options: Option(CodeStyleOptions2.QualifyFieldAccess, CodeStyleOptions2.TrueWithSuggestionEnforcement)); } [WorkItem(17643, "https://github.com/dotnet/roslyn/issues/17643")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestWithDialogNoBackingField() { await TestWithPickMembersDialogAsync( @" class Program { public int F { get; set; } [||] }", @" class Program { public int F { get; set; } public Program(int f{|Navigation:)|} { F = f; } }", chosenSymbols: null); } [WorkItem(25690, "https://github.com/dotnet/roslyn/issues/25690")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestWithDialogNoIndexer() { await TestWithPickMembersDialogAsync( @" class Program { public int P { get => 0; set { } } public int this[int index] { get => 0; set { } } [||] }", @" class Program { public int P { get => 0; set { } } public int this[int index] { get => 0; set { } } public Program(int p{|Navigation:)|} { P = p; } }", chosenSymbols: null); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateEqualsAndGetHashCode)] public async Task TestWithDialogSetterOnlyProperty() { await TestWithPickMembersDialogAsync( @" class Program { public int P { get => 0; set { } } public int S { set { } } [||] }", @" class Program { public int P { get => 0; set { } } public int S { set { } } public Program(int p, int s{|Navigation:)|} { P = p; S = s; } }", chosenSymbols: null); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelection() { await TestInRegularAndScriptAsync( @"class Z { int [|a|]; }", @"class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelection2() { await TestInRegularAndScriptAsync( @"class Z { int [|a|]bcdefg; }", @"class Z { int abcdefg; public Z(int abcdefg{|Navigation:)|} { this.abcdefg = abcdefg; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelection3() { await TestInRegularAndScriptAsync( @"class Z { int abcdef[|g|]; }", @"class Z { int abcdefg; public Z(int abcdefg{|Navigation:)|} { this.abcdefg = abcdefg; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelectionBeforeIdentifier() { await TestInRegularAndScript1Async( @"class Z { int [||]a; }", @"class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelectionAfterIdentifier() { await TestInRegularAndScript1Async( @"class Z { int a[||]; }", @"class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelectionIdentifierNotSelected() { await TestMissingAsync( @"class Z { in[|t|] a; }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelectionIdentifierNotSelected2() { await TestMissingAsync( @"class Z { int a [|= 3|]; }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultiplePartialFieldSelection() { await TestInRegularAndScriptAsync( @"class Z { int [|a; int b|]; }", @"class Z { int a; int b; public Z(int a, int b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultiplePartialFieldSelection2() { await TestInRegularAndScriptAsync( @"class Z { int [|a = 2; int|] b; }", @"class Z { int a = 2; int b; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultiplePartialFieldSelection3_1() { await TestInRegularAndScriptAsync( @"class Z { int [|a|] = 2, b = 3; }", @"class Z { int a = 2, b = 3; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultiplePartialFieldSelection3_2() { await TestInRegularAndScriptAsync( @"class Z { int [|a = 2, b|] = 3; }", @"class Z { int a = 2, b = 3; public Z(int a, int b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultiplePartialFieldSelection4() { await TestMissingAsync( @"class Z { int a = [|2|], b = 3; }"); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestNoFieldNamingStyle() { await TestInRegularAndScriptAsync( @"class Z { int [|a|] = 2; }", @"class Z { int a = 2; public Z(int p_a{|Navigation:)|} { a = p_a; } }", options: options.ParameterNamesAreCamelCaseWithPUnderscorePrefix); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestCommonFieldNamingStyle() { await TestInRegularAndScriptAsync( @"class Z { int [|s_a|] = 2; }", @"class Z { int s_a = 2; public Z(int p_a{|Navigation:)|} { s_a = p_a; } }", options: options.ParameterNamesAreCamelCaseWithPUnderscorePrefix); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSpecifiedNamingStyle() { await TestInRegularAndScriptAsync( @"class Z { int [|field_a|] = 2; }", @"class Z { int field_a = 2; public Z(int p_a_End{|Navigation:)|} { field_a = p_a_End; } }", options: options.MergeStyles(options.FieldNamesAreCamelCaseWithFieldUnderscorePrefix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix)); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSpecifiedAndCommonFieldNamingStyle() { await TestInRegularAndScriptAsync( @"class Z { int [|field_s_a|] = 2; }", @"class Z { int field_s_a = 2; public Z(int p_a_End{|Navigation:)|} { field_s_a = p_a_End; } }", options: options.MergeStyles(options.FieldNamesAreCamelCaseWithFieldUnderscorePrefix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix)); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSpecifiedAndCommonFieldNamingStyle2() { await TestInRegularAndScriptAsync( @"class Z { int [|s_field_a|] = 2; }", @"class Z { int s_field_a = 2; public Z(int p_a_End{|Navigation:)|} { s_field_a = p_a_End; } }", options: options.MergeStyles(options.FieldNamesAreCamelCaseWithFieldUnderscorePrefix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix)); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestBaseNameEmpty() { await TestMissingAsync( @"class Z { int [|field__End|] = 2; }", new TestParameters(options: options.MergeStyles(options.FieldNamesAreCamelCaseWithFieldUnderscorePrefixAndUnderscoreEndSuffix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefix))); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSomeBaseNamesEmpty() { await TestInRegularAndScriptAsync( @"class Z { int [|s_field_a = 2; int field__End |]= 3; }", @"class Z { int s_field_a = 2; int field__End = 3; public Z(int p_a{|Navigation:)|} { s_field_a = p_a; } }", options: options.MergeStyles(options.FieldNamesAreCamelCaseWithFieldUnderscorePrefixAndUnderscoreEndSuffix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefix)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] [WorkItem(45808, "https://github.com/dotnet/roslyn/issues/45808")] public async Task TestUnsafeField() { await TestInRegularAndScriptAsync( @" class Z { [|unsafe int* a;|] }", @" class Z { unsafe int* a; public unsafe Z(int* a{|Navigation:)|} { this.a = a; } }", compilationOptions: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, allowUnsafe: true)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] [WorkItem(45808, "https://github.com/dotnet/roslyn/issues/45808")] public async Task TestUnsafeFieldInUnsafeClass() { await TestInRegularAndScriptAsync( @" unsafe class Z { [|int* a;|] }", @" unsafe class Z { int* a; public Z(int* a{|Navigation:)|} { this.a = a; } }", compilationOptions: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, allowUnsafe: true)); } [WorkItem(53467, "https://github.com/dotnet/roslyn/issues/53467")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMissingWhenTypeNotInCompilation() { await TestMissingAsync( @" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1""> <Document> using System; using System.Collections.Generic; #nullable enable <![CDATA[ class Z<T> where T : class ]]> { int a; string b; T? c; [||] } </Document> </Project> </Workspace>"); } } }
// 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.CodeStyle; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.CodeStyle; using Microsoft.CodeAnalysis.CSharp.GenerateConstructorFromMembers; using Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CodeRefactorings; using Microsoft.CodeAnalysis.Editor.UnitTests.Diagnostics.NamingStyles; using Microsoft.CodeAnalysis.PickMembers; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.GenerateConstructorFromMembers { public class GenerateConstructorFromMembersTests : AbstractCSharpCodeActionTest { protected override CodeRefactoringProvider CreateCodeRefactoringProvider(Workspace workspace, TestParameters parameters) => new CSharpGenerateConstructorFromMembersCodeRefactoringProvider((IPickMembersService)parameters.fixProviderData); private readonly NamingStylesTestOptionSets options = new NamingStylesTestOptionSets(LanguageNames.CSharp); [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSingleField() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a;|] }", @"using System.Collections.Generic; class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSingleFieldWithCodeStyle() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a;|] }", @"using System.Collections.Generic; class Z { int a; public Z(int a{|Navigation:)|} => this.a = a; }", options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedConstructors, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestUseExpressionBodyWhenOnSingleLine_AndIsSingleLine() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a;|] }", @"using System.Collections.Generic; class Z { int a; public Z(int a{|Navigation:)|} => this.a = a; }", options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedConstructors, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestUseExpressionBodyWhenOnSingleLine_AndIsNotSingleLine() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a; int b;|] }", @"using System.Collections.Generic; class Z { int a; int b; public Z(int a, int b{|Navigation:)|} { this.a = a; this.b = b; } }", options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedConstructors, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultipleFields() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a; string b;|] }", @"using System.Collections.Generic; class Z { int a; string b; public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultipleFields_VerticalSelection() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z {[| int a; string b;|] }", @"using System.Collections.Generic; class Z { int a; string b; public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultipleFields_VerticalSelectionUpToExcludedField() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { int a;[| string b; string c;|] }", @"using System.Collections.Generic; class Z { int a; string b; string c; public Z(string b, string c{|Navigation:)|} { this.b = b; this.c = c; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultipleFields_VerticalSelectionUpToMethod() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { void Foo() { }[| int a; string b;|] }", @"using System.Collections.Generic; class Z { void Foo() { } int a; string b; public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultipleFields_SelectionIncludingClassOpeningBrace() { await TestMissingAsync( @"using System.Collections.Generic; class Z [|{ int a; string b;|] }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSecondField() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { int a; [|string b;|] public Z(int a) { this.a = a; } }", @"using System.Collections.Generic; class Z { int a; string b; public Z(int a) { this.a = a; } public Z(string b{|Navigation:)|} { this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestFieldAssigningConstructor() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a; string b;|] public Z(int a) { this.a = a; } }", @"using System.Collections.Generic; class Z { int a; string b; public Z(int a) { this.a = a; } public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestFieldAssigningConstructor2() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a; string b;|] public Z(int a) { this.a = a; } }", @"using System.Collections.Generic; class Z { int a; string b; public Z(int a) { this.a = a; } public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestDelegatingConstructor() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a; string b;|] public Z(int a) { this.a = a; } }", @"using System.Collections.Generic; class Z { int a; string b; public Z(int a) { this.a = a; } public Z(int a, string b{|Navigation:)|} : this(a) { this.b = b; } }", index: 1); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestDelegatingConstructorWithNullabilityDifferences() { // For this test we have a problem: the existing constructor has different nullability than // the underlying field. We will still offer to use the delegating constructor even though it has a nullability issue // the user can then easily fix. If they don't want that, they can also just use the first option. await TestInRegularAndScriptAsync( @"#nullable enable using System.Collections.Generic; class Z { [|string? a; int b;|] public Z(string a) { this.a = a; } }", @"#nullable enable using System.Collections.Generic; class Z { string? a; int b; public Z(string a) { this.a = a; } public Z(string? a, int b{|Navigation:)|} : this(a) { this.b = b; } }", index: 1); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMissingWithExistingConstructor() { await TestMissingInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a; string b;|] public Z(int a) { this.a = a; } public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultipleProperties() { await TestInRegularAndScriptAsync( @"class Z { [|public int A { get; private set; } public string B { get; private set; }|] }", @"class Z { public Z(int a, string b{|Navigation:)|} { A = a; B = b; } public int A { get; private set; } public string B { get; private set; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultiplePropertiesWithQualification() { await TestInRegularAndScriptAsync( @"class Z { [|public int A { get; private set; } public string B { get; private set; }|] }", @"class Z { public Z(int a, string b{|Navigation:)|} { this.A = a; this.B = b; } public int A { get; private set; } public string B { get; private set; } }", options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestStruct() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; struct S { [|int i;|] }", @"using System.Collections.Generic; struct S { int i; public S(int i{|Navigation:)|} { this.i = i; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestStructInitializingAutoProperty() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; struct S { [|int i { get; set; }|] }", @"using System.Collections.Generic; struct S { public S(int i{|Navigation:)|} { this.i = i; } int i { get; set; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestStructNotInitializingAutoProperty() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; struct S { [|int i { get => f; set => f = value; }|] int j { get; set; } }", @"using System.Collections.Generic; struct S { public S(int i{|Navigation:)|} : this() { this.i = i; } int i { get => f; set => f = value; } int j { get; set; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestStruct2() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; struct S { int i { get; set; } [|int y;|] }", @"using System.Collections.Generic; struct S { int i { get; set; } int y; public S(int y{|Navigation:)|} : this() { this.y = y; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestStruct3() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; struct S { [|int i { get; set; }|] int y; }", @"using System.Collections.Generic; struct S { int i { get; set; } int y; public S(int i{|Navigation:)|} : this() { this.i = i; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestGenericType() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Program<T> { [|int i;|] }", @"using System.Collections.Generic; class Program<T> { int i; public Program(int i{|Navigation:)|} { this.i = i; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSmartTagText1() { await TestSmartTagTextAsync( @"using System.Collections.Generic; class Program { [|bool b; HashSet<string> s;|] }", string.Format(FeaturesResources.Generate_constructor_0_1, "Program", "bool, HashSet<string>")); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSmartTagText2() { await TestSmartTagTextAsync( @"using System.Collections.Generic; class Program { [|bool b; HashSet<string> s;|] public Program(bool b) { this.b = b; } }", string.Format(FeaturesResources.Generate_field_assigning_constructor_0_1, "Program", "bool, HashSet<string>")); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSmartTagText3() { await TestSmartTagTextAsync( @"using System.Collections.Generic; class Program { [|bool b; HashSet<string> s;|] public Program(bool b) { this.b = b; } }", string.Format(FeaturesResources.Generate_delegating_constructor_0_1, "Program", "bool, HashSet<string>"), index: 1); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestContextualKeywordName() { await TestInRegularAndScriptAsync( @"class Program { [|int yield;|] }", @"class Program { int yield; public Program(int yield{|Navigation:)|} { this.yield = yield; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestGenerateConstructorNotOfferedForDuplicate() { await TestMissingInRegularAndScriptAsync( @"using System; class X { public X(string v) { } static void Test() { new X(new [|string|]()); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task Tuple() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|(int, string) a;|] }", @"using System.Collections.Generic; class Z { (int, string) a; public Z((int, string) a{|Navigation:)|} { this.a = a; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task NullableReferenceType() { await TestInRegularAndScriptAsync( @"#nullable enable class Z { [|string? a;|] }", @"#nullable enable class Z { string? a; public Z(string? a{|Navigation:)|} { this.a = a; } }"); } [WorkItem(14219, "https://github.com/dotnet/roslyn/issues/14219")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestUnderscoreInName1() { await TestInRegularAndScriptAsync( @"class Program { [|int _field;|] }", @"class Program { int _field; public Program(int field{|Navigation:)|} { _field = field; } }"); } [WorkItem(14219, "https://github.com/dotnet/roslyn/issues/14219")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestUnderscoreInName_PreferThis() { await TestInRegularAndScriptAsync( @"class Program { [|int _field;|] }", @"class Program { int _field; public Program(int field{|Navigation:)|} { this._field = field; } }", options: Option(CodeStyleOptions2.QualifyFieldAccess, CodeStyleOptions2.TrueWithSuggestionEnforcement)); } [WorkItem(13944, "https://github.com/dotnet/roslyn/issues/13944")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestGetter_Only_Auto_Props() { await TestInRegularAndScriptAsync( @"abstract class Contribution { [|public string Title { get; } public int Number { get; }|] }", @"abstract class Contribution { protected Contribution(string title, int number{|Navigation:)|} { Title = title; Number = number; } public string Title { get; } public int Number { get; } }", options: Option(CodeStyleOptions2.QualifyFieldAccess, CodeStyleOptions2.TrueWithSuggestionEnforcement)); } [WorkItem(13944, "https://github.com/dotnet/roslyn/issues/13944")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAbstract_Getter_Only_Auto_Props() { await TestMissingInRegularAndScriptAsync( @"abstract class Contribution { [|public abstract string Title { get; } public int Number { get; }|] }", new TestParameters(options: Option(CodeStyleOptions2.QualifyFieldAccess, CodeStyleOptions2.TrueWithSuggestionEnforcement))); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSingleFieldWithDialog() { await TestWithPickMembersDialogAsync( @"using System.Collections.Generic; class Z { int a; [||] }", @"using System.Collections.Generic; class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }", chosenSymbols: new[] { "a" }); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSingleFieldWithDialog2() { await TestWithPickMembersDialogAsync( @"using System.Collections.Generic; class [||]Z { int a; }", @"using System.Collections.Generic; class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }", chosenSymbols: new[] { "a" }); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMissingOnClassAttributes() { await TestMissingInRegularAndScriptAsync( @"using System.Collections.Generic; [X][||] class Z { int a; }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPickNoFieldWithDialog() { await TestWithPickMembersDialogAsync( @"using System.Collections.Generic; class Z { int a; [||] }", @"using System.Collections.Generic; class Z { int a; public Z({|Navigation:)|} { } }", chosenSymbols: new string[] { }); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestReorderFieldsWithDialog() { await TestWithPickMembersDialogAsync( @"using System.Collections.Generic; class Z { int a; string b; [||] }", @"using System.Collections.Generic; class Z { int a; string b; public Z(string b, int a{|Navigation:)|} { this.b = b; this.a = a; } }", chosenSymbols: new string[] { "b", "a" }); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAddNullChecks1() { await TestWithPickMembersDialogAsync( @" using System; using System.Collections.Generic; class Z { int a; string b; [||] }", @" using System; using System.Collections.Generic; class Z { int a; string b; public Z(int a, string b{|Navigation:)|} { this.a = a; this.b = b ?? throw new ArgumentNullException(nameof(b)); } }", chosenSymbols: new string[] { "a", "b" }, optionsCallback: options => options[0].Value = true); } [WorkItem(41428, "https://github.com/dotnet/roslyn/issues/41428")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAddNullChecksWithNullableReferenceType() { await TestWithPickMembersDialogAsync( @" using System; using System.Collections.Generic; #nullable enable class Z { int a; string b; string? c; [||] }", @" using System; using System.Collections.Generic; #nullable enable class Z { int a; string b; string? c; public Z(int a, string b, string? c{|Navigation:)|} { this.a = a; this.b = b ?? throw new ArgumentNullException(nameof(b)); this.c = c; } }", chosenSymbols: new string[] { "a", "b", "c" }, optionsCallback: options => options[0].Value = true); } [WorkItem(41428, "https://github.com/dotnet/roslyn/issues/41428")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAddNullChecksWithNullableReferenceTypeForGenerics() { await TestWithPickMembersDialogAsync( @" using System; using System.Collections.Generic; #nullable enable class Z<T> where T : class { int a; string b; T? c; [||] }", @" using System; using System.Collections.Generic; #nullable enable class Z<T> where T : class { int a; string b; T? c; public Z(int a, string b, T? c{|Navigation:)|} { this.a = a; this.b = b ?? throw new ArgumentNullException(nameof(b)); this.c = c; } }", chosenSymbols: new string[] { "a", "b", "c" }, optionsCallback: options => options[0].Value = true); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAddNullChecks2() { await TestWithPickMembersDialogAsync( @" using System; using System.Collections.Generic; class Z { int a; string b; [||] }", @" using System; using System.Collections.Generic; class Z { int a; string b; public Z(int a, string b{|Navigation:)|} { if (b is null) { throw new ArgumentNullException(nameof(b)); } this.a = a; this.b = b; } }", chosenSymbols: new string[] { "a", "b" }, optionsCallback: options => options[0].Value = true, parameters: new TestParameters(options: Option(CSharpCodeStyleOptions.PreferThrowExpression, CodeStyleOptions2.FalseWithSilentEnforcement))); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAddNullChecks3() { await TestWithPickMembersDialogAsync( @" using System; using System.Collections.Generic; class Z { int a; int? b; [||] }", @" using System; using System.Collections.Generic; class Z { int a; int? b; public Z(int a, int? b{|Navigation:)|} { this.a = a; this.b = b; } }", chosenSymbols: new string[] { "a", "b" }, optionsCallback: options => options[0].Value = true, parameters: new TestParameters(options: Option(CSharpCodeStyleOptions.PreferThrowExpression, CodeStyleOptions2.FalseWithSilentEnforcement))); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestAddNullChecks_CSharp6() { await TestWithPickMembersDialogAsync( @" using System; using System.Collections.Generic; class Z { int a; string b; [||] }", @" using System; using System.Collections.Generic; class Z { int a; string b; public Z(int a, string b{|Navigation:)|} { if (b == null) { throw new ArgumentNullException(nameof(b)); } this.a = a; this.b = b; } }", chosenSymbols: new string[] { "a", "b" }, optionsCallback: options => options[0].Value = true, parameters: new TestParameters( parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp6), options: Option(CSharpCodeStyleOptions.PreferThrowExpression, CodeStyleOptions2.FalseWithSilentEnforcement))); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMissingOnMember1() { await TestMissingInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { int a; string b; [||]public void M() { } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMissingOnMember2() { await TestMissingInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { int a; string b; public void M() { }[||] public void N() { } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMissingOnMember3() { await TestMissingInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { int a; string b; public void M() { [||] } public void N() { } }"); } [WorkItem(21067, "https://github.com/dotnet/roslyn/pull/21067")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestFinalCaretPosition() { await TestInRegularAndScriptAsync( @"using System.Collections.Generic; class Z { [|int a;|] }", @"using System.Collections.Generic; class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] [WorkItem(20595, "https://github.com/dotnet/roslyn/issues/20595")] public async Task ProtectedConstructorShouldBeGeneratedForAbstractClass() { await TestInRegularAndScriptAsync( @"abstract class C { [|public int Prop { get; set; }|] }", @"abstract class C { protected C(int prop{|Navigation:)|} { Prop = prop; } public int Prop { get; set; } }", options: Option(CodeStyleOptions2.QualifyFieldAccess, CodeStyleOptions2.TrueWithSuggestionEnforcement)); } [WorkItem(17643, "https://github.com/dotnet/roslyn/issues/17643")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestWithDialogNoBackingField() { await TestWithPickMembersDialogAsync( @" class Program { public int F { get; set; } [||] }", @" class Program { public int F { get; set; } public Program(int f{|Navigation:)|} { F = f; } }", chosenSymbols: null); } [WorkItem(25690, "https://github.com/dotnet/roslyn/issues/25690")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestWithDialogNoIndexer() { await TestWithPickMembersDialogAsync( @" class Program { public int P { get => 0; set { } } public int this[int index] { get => 0; set { } } [||] }", @" class Program { public int P { get => 0; set { } } public int this[int index] { get => 0; set { } } public Program(int p{|Navigation:)|} { P = p; } }", chosenSymbols: null); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateEqualsAndGetHashCode)] public async Task TestWithDialogSetterOnlyProperty() { await TestWithPickMembersDialogAsync( @" class Program { public int P { get => 0; set { } } public int S { set { } } [||] }", @" class Program { public int P { get => 0; set { } } public int S { set { } } public Program(int p, int s{|Navigation:)|} { P = p; S = s; } }", chosenSymbols: null); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelection() { await TestInRegularAndScriptAsync( @"class Z { int [|a|]; }", @"class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelection2() { await TestInRegularAndScriptAsync( @"class Z { int [|a|]bcdefg; }", @"class Z { int abcdefg; public Z(int abcdefg{|Navigation:)|} { this.abcdefg = abcdefg; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelection3() { await TestInRegularAndScriptAsync( @"class Z { int abcdef[|g|]; }", @"class Z { int abcdefg; public Z(int abcdefg{|Navigation:)|} { this.abcdefg = abcdefg; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelectionBeforeIdentifier() { await TestInRegularAndScript1Async( @"class Z { int [||]a; }", @"class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelectionAfterIdentifier() { await TestInRegularAndScript1Async( @"class Z { int a[||]; }", @"class Z { int a; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelectionIdentifierNotSelected() { await TestMissingAsync( @"class Z { in[|t|] a; }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestPartialFieldSelectionIdentifierNotSelected2() { await TestMissingAsync( @"class Z { int a [|= 3|]; }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultiplePartialFieldSelection() { await TestInRegularAndScriptAsync( @"class Z { int [|a; int b|]; }", @"class Z { int a; int b; public Z(int a, int b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultiplePartialFieldSelection2() { await TestInRegularAndScriptAsync( @"class Z { int [|a = 2; int|] b; }", @"class Z { int a = 2; int b; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultiplePartialFieldSelection3_1() { await TestInRegularAndScriptAsync( @"class Z { int [|a|] = 2, b = 3; }", @"class Z { int a = 2, b = 3; public Z(int a{|Navigation:)|} { this.a = a; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultiplePartialFieldSelection3_2() { await TestInRegularAndScriptAsync( @"class Z { int [|a = 2, b|] = 3; }", @"class Z { int a = 2, b = 3; public Z(int a, int b{|Navigation:)|} { this.a = a; this.b = b; } }"); } [WorkItem(33601, "https://github.com/dotnet/roslyn/issues/33601")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMultiplePartialFieldSelection4() { await TestMissingAsync( @"class Z { int a = [|2|], b = 3; }"); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestNoFieldNamingStyle() { await TestInRegularAndScriptAsync( @"class Z { int [|a|] = 2; }", @"class Z { int a = 2; public Z(int p_a{|Navigation:)|} { a = p_a; } }", options: options.ParameterNamesAreCamelCaseWithPUnderscorePrefix); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestCommonFieldNamingStyle() { await TestInRegularAndScriptAsync( @"class Z { int [|s_a|] = 2; }", @"class Z { int s_a = 2; public Z(int p_a{|Navigation:)|} { s_a = p_a; } }", options: options.ParameterNamesAreCamelCaseWithPUnderscorePrefix); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSpecifiedNamingStyle() { await TestInRegularAndScriptAsync( @"class Z { int [|field_a|] = 2; }", @"class Z { int field_a = 2; public Z(int p_a_End{|Navigation:)|} { field_a = p_a_End; } }", options: options.MergeStyles(options.FieldNamesAreCamelCaseWithFieldUnderscorePrefix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix)); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSpecifiedAndCommonFieldNamingStyle() { await TestInRegularAndScriptAsync( @"class Z { int [|field_s_a|] = 2; }", @"class Z { int field_s_a = 2; public Z(int p_a_End{|Navigation:)|} { field_s_a = p_a_End; } }", options: options.MergeStyles(options.FieldNamesAreCamelCaseWithFieldUnderscorePrefix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix)); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSpecifiedAndCommonFieldNamingStyle2() { await TestInRegularAndScriptAsync( @"class Z { int [|s_field_a|] = 2; }", @"class Z { int s_field_a = 2; public Z(int p_a_End{|Navigation:)|} { s_field_a = p_a_End; } }", options: options.MergeStyles(options.FieldNamesAreCamelCaseWithFieldUnderscorePrefix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefixAndUnderscoreEndSuffix)); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestBaseNameEmpty() { await TestMissingAsync( @"class Z { int [|field__End|] = 2; }", new TestParameters(options: options.MergeStyles(options.FieldNamesAreCamelCaseWithFieldUnderscorePrefixAndUnderscoreEndSuffix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefix))); } [WorkItem(36741, "https://github.com/dotnet/roslyn/issues/36741")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestSomeBaseNamesEmpty() { await TestInRegularAndScriptAsync( @"class Z { int [|s_field_a = 2; int field__End |]= 3; }", @"class Z { int s_field_a = 2; int field__End = 3; public Z(int p_a{|Navigation:)|} { s_field_a = p_a; } }", options: options.MergeStyles(options.FieldNamesAreCamelCaseWithFieldUnderscorePrefixAndUnderscoreEndSuffix, options.ParameterNamesAreCamelCaseWithPUnderscorePrefix)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] [WorkItem(45808, "https://github.com/dotnet/roslyn/issues/45808")] public async Task TestUnsafeField() { await TestInRegularAndScriptAsync( @" class Z { [|unsafe int* a;|] }", @" class Z { unsafe int* a; public unsafe Z(int* a{|Navigation:)|} { this.a = a; } }", compilationOptions: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, allowUnsafe: true)); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] [WorkItem(45808, "https://github.com/dotnet/roslyn/issues/45808")] public async Task TestUnsafeFieldInUnsafeClass() { await TestInRegularAndScriptAsync( @" unsafe class Z { [|int* a;|] }", @" unsafe class Z { int* a; public Z(int* a{|Navigation:)|} { this.a = a; } }", compilationOptions: new CSharpCompilationOptions(OutputKind.DynamicallyLinkedLibrary, allowUnsafe: true)); } [WorkItem(53467, "https://github.com/dotnet/roslyn/issues/53467")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateConstructorFromMembers)] public async Task TestMissingWhenTypeNotInCompilation() { await TestMissingAsync( @" <Workspace> <Project Language=""C#"" AssemblyName=""Assembly1""> <Document> using System; using System.Collections.Generic; #nullable enable <![CDATA[ class Z<T> where T : class ]]> { int a; string b; T? c; [||] } </Document> </Project> </Workspace>"); } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/VisualStudio/Core/Def/Implementation/ProjectSystem/RuleSets/VisualStudioRuleSetManager.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.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Shared.TestHooks; using Roslyn.Utilities; namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem { internal sealed partial class VisualStudioRuleSetManager : IWorkspaceService { private readonly IThreadingContext _threadingContext; private readonly FileChangeWatcher _fileChangeWatcher; private readonly IAsynchronousOperationListener _listener; private readonly ReferenceCountedDisposableCache<string, RuleSetFile> _ruleSetFileMap = new(); public VisualStudioRuleSetManager( IThreadingContext threadingContext, FileChangeWatcher fileChangeWatcher, IAsynchronousOperationListener listener) { _threadingContext = threadingContext; _fileChangeWatcher = fileChangeWatcher; _listener = listener; } public IReferenceCountedDisposable<ICacheEntry<string, IRuleSetFile>> GetOrCreateRuleSet(string ruleSetFileFullPath) { var cacheEntry = _ruleSetFileMap.GetOrCreate(ruleSetFileFullPath, static (ruleSetFileFullPath, self) => new RuleSetFile(ruleSetFileFullPath, self), this); // Call InitializeFileTracking outside the lock inside ReferenceCountedDisposableCache, so we don't have requests // for other files blocking behind the initialization of this one. RuleSetFile itself will ensure InitializeFileTracking is locked as appropriate. cacheEntry.Target.Value.InitializeFileTracking(_fileChangeWatcher); return cacheEntry; } private void StopTrackingRuleSetFile(RuleSetFile ruleSetFile) { // We can arrive here in one of two situations: // // 1. The underlying RuleSetFile was disposed by all consumers, and we can try cleaning up our weak reference. This is purely an optimization // to avoid the key/value pair being unnecessarily held. // 2. The RuleSetFile was modified, and we want to get rid of our cache now. Anybody still holding onto the values will dispose at their leaisure, // but it won't really matter anyways since the Dispose() that cleans up file trackers is already done. // // In either case, we can just be lazy and remove the key/value pair. It's possible in the mean time that the rule set had already been removed // (perhaps by a file change), and we're removing a live instance. This is fine, as this doesn't affect correctness: we consider this to be a cache // and if two callers got different copies that's fine. We *could* fetch the item out of the dictionary, check if the item is strong and then compare, // but that seems overkill. _ruleSetFileMap.Evict(ruleSetFile.FilePath); } } }
// 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.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Host; using Microsoft.CodeAnalysis.Shared.TestHooks; using Roslyn.Utilities; namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem { internal sealed partial class VisualStudioRuleSetManager : IWorkspaceService { private readonly IThreadingContext _threadingContext; private readonly FileChangeWatcher _fileChangeWatcher; private readonly IAsynchronousOperationListener _listener; private readonly ReferenceCountedDisposableCache<string, RuleSetFile> _ruleSetFileMap = new(); public VisualStudioRuleSetManager( IThreadingContext threadingContext, FileChangeWatcher fileChangeWatcher, IAsynchronousOperationListener listener) { _threadingContext = threadingContext; _fileChangeWatcher = fileChangeWatcher; _listener = listener; } public IReferenceCountedDisposable<ICacheEntry<string, IRuleSetFile>> GetOrCreateRuleSet(string ruleSetFileFullPath) { var cacheEntry = _ruleSetFileMap.GetOrCreate(ruleSetFileFullPath, static (ruleSetFileFullPath, self) => new RuleSetFile(ruleSetFileFullPath, self), this); // Call InitializeFileTracking outside the lock inside ReferenceCountedDisposableCache, so we don't have requests // for other files blocking behind the initialization of this one. RuleSetFile itself will ensure InitializeFileTracking is locked as appropriate. cacheEntry.Target.Value.InitializeFileTracking(_fileChangeWatcher); return cacheEntry; } private void StopTrackingRuleSetFile(RuleSetFile ruleSetFile) { // We can arrive here in one of two situations: // // 1. The underlying RuleSetFile was disposed by all consumers, and we can try cleaning up our weak reference. This is purely an optimization // to avoid the key/value pair being unnecessarily held. // 2. The RuleSetFile was modified, and we want to get rid of our cache now. Anybody still holding onto the values will dispose at their leaisure, // but it won't really matter anyways since the Dispose() that cleans up file trackers is already done. // // In either case, we can just be lazy and remove the key/value pair. It's possible in the mean time that the rule set had already been removed // (perhaps by a file change), and we're removing a live instance. This is fine, as this doesn't affect correctness: we consider this to be a cache // and if two callers got different copies that's fine. We *could* fetch the item out of the dictionary, check if the item is strong and then compare, // but that seems overkill. _ruleSetFileMap.Evict(ruleSetFile.FilePath); } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/EditorFeatures/VisualBasicTest/KeywordHighlighting/XmlCommentHighligherTests.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.Editor.VisualBasic.KeywordHighlighting Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.KeywordHighlighting Public Class XmlCommentHighlighterTests Inherits AbstractVisualBasicKeywordHighlighterTests Friend Overrides Function GetHighlighterType() As Type Return GetType(XmlCommentHighlighter) End Function <Fact, Trait(Traits.Feature, Traits.Features.KeywordHighlighting)> Public Async Function TestXmlLiteralSample3_1() As Task Await TestAsync(<Text><![CDATA[ Class C Sub M() Dim q = <?xml version="1.0"?> <contact> {|Cursor:[|<!--|]|} who is this guy? [|-->|] <name>Bill Chiles</name> <phone type="home">555-555-5555</phone> <birthyear><%= DateTime.Today.Year - 100 %></birthyear> <![CDATA[Be wary of this guy!]]>]]<![CDATA[> </contact> End Sub End Class]]></Text>) End Function <Fact, Trait(Traits.Feature, Traits.Features.KeywordHighlighting)> Public Async Function TestXmlLiteralSample3_2() As Task Await TestAsync(<Text><![CDATA[ Class C Sub M() Dim q = <?xml version="1.0"?> <contact> [|<!--|] who is this guy? {|Cursor:[|-->|]|} <name>Bill Chiles</name> <phone type="home">555-555-5555</phone> <birthyear><%= DateTime.Today.Year - 100 %></birthyear> <![CDATA[Be wary of this guy!]]>]]<![CDATA[> </contact> End Sub End Class]]></Text>) End Function <Fact, Trait(Traits.Feature, Traits.Features.KeywordHighlighting)> Public Async Function TestXmlLiteralSample3_3() As Task Await TestAsync(<Text><![CDATA[ Class C Sub M() Dim q = <?xml version="1.0"?> <contact> <!-- {|Cursor:who is this guy?|} --> <name>Bill Chiles</name> <phone type="home">555-555-5555</phone> <birthyear><%= DateTime.Today.Year - 100 %></birthyear> <![CDATA[Be wary of this guy!]]>]]<![CDATA[> </contact> End Sub End Class]]></Text>) 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.Editor.VisualBasic.KeywordHighlighting Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.KeywordHighlighting Public Class XmlCommentHighlighterTests Inherits AbstractVisualBasicKeywordHighlighterTests Friend Overrides Function GetHighlighterType() As Type Return GetType(XmlCommentHighlighter) End Function <Fact, Trait(Traits.Feature, Traits.Features.KeywordHighlighting)> Public Async Function TestXmlLiteralSample3_1() As Task Await TestAsync(<Text><![CDATA[ Class C Sub M() Dim q = <?xml version="1.0"?> <contact> {|Cursor:[|<!--|]|} who is this guy? [|-->|] <name>Bill Chiles</name> <phone type="home">555-555-5555</phone> <birthyear><%= DateTime.Today.Year - 100 %></birthyear> <![CDATA[Be wary of this guy!]]>]]<![CDATA[> </contact> End Sub End Class]]></Text>) End Function <Fact, Trait(Traits.Feature, Traits.Features.KeywordHighlighting)> Public Async Function TestXmlLiteralSample3_2() As Task Await TestAsync(<Text><![CDATA[ Class C Sub M() Dim q = <?xml version="1.0"?> <contact> [|<!--|] who is this guy? {|Cursor:[|-->|]|} <name>Bill Chiles</name> <phone type="home">555-555-5555</phone> <birthyear><%= DateTime.Today.Year - 100 %></birthyear> <![CDATA[Be wary of this guy!]]>]]<![CDATA[> </contact> End Sub End Class]]></Text>) End Function <Fact, Trait(Traits.Feature, Traits.Features.KeywordHighlighting)> Public Async Function TestXmlLiteralSample3_3() As Task Await TestAsync(<Text><![CDATA[ Class C Sub M() Dim q = <?xml version="1.0"?> <contact> <!-- {|Cursor:who is this guy?|} --> <name>Bill Chiles</name> <phone type="home">555-555-5555</phone> <birthyear><%= DateTime.Today.Year - 100 %></birthyear> <![CDATA[Be wary of this guy!]]>]]<![CDATA[> </contact> End Sub End Class]]></Text>) End Function End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Analyzers/VisualBasic/Tests/OrderModifiers/OrderModifiersTests.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.OrderModifiers Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.OrderModifiers Public Class OrderModifiersTests Inherits AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider) Return (New VisualBasicOrderModifiersDiagnosticAnalyzer(), New VisualBasicOrderModifiersCodeFixProvider()) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestClass() As Task Await TestInRegularAndScript1Async( "[|friend|] protected class C end class ", "protected friend class C end class ") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> public async Function TestStruct() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "[|friend|] protected structure C end structure", "protected friend structure C end structure") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestInterface() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "[|friend|] protected interface C end interface", "protected friend interface C end interface") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestEnum() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "[|friend|] protected enum C end enum", "protected friend enum C end enum") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestDelegate() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "[|friend|] protected delegate sub D()", "protected friend delegate sub D()") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestMethodStatement() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|mustoverride|] protected sub M() end class", "class C protected mustoverride sub M() end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestMethodBlock() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|friend|] protected sub M() end sub end class", "class C protected friend sub M() end sub end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestField() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|friend|] protected dim a as integer end class", "class C protected friend dim a as integer end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestConstructor() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|friend|] protected sub new() end sub end class", "class C protected friend sub new() end sub end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestPropertyStatement() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|readonly|] protected property P as integer end class", "class C protected readonly property P as integer end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestPropertyBlock() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|readonly|] protected property P as integer get end get end property end class", "class C protected readonly property P as integer get end get end property end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestAccessor() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C public property P as integer [|friend|] protected get end get end property end class ", "class C public property P as integer protected friend get end get end property end class ") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestPropertyEvent() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|friend|] protected custom event E as Action end event end class", "class C protected friend custom event E as Action end event end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestFieldEvent() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|friend|] protected event E as Action end class", "class C protected friend event E as Action end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestOperator() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|shared|] public operator +(c1 as integer, c2 as integer) as integer end operator end class ", "class C public shared operator +(c1 as integer, c2 as integer) as integer end operator end class ") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestConversionOperator() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|shared|] public widening operator CType(x as integer) as boolean end operator end class", "class C public shared widening operator CType(x as integer) as boolean end operator end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestFixAll1() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "{|FixAllInDocument:friend|} protected class C friend protected class Nested end class end class", "protected friend class C protected friend class Nested end class end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestFixAll2() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "friend protected class C {|FixAllInDocument:friend|} protected class Nested end class end class ", "protected friend class C protected friend class Nested end class end class ") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestTrivia1() As Threading.Tasks.Task Await TestInRegularAndScript1Async( " ''' Doc comment [|friend|] protected class C end class ", " ''' Doc comment protected friend class C end class ") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestTrivia3() As Task Await TestInRegularAndScript1Async( " #if true [|friend|] protected class C end class #end if ", " #if true protected friend class C end class #end if ") 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.OrderModifiers Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.OrderModifiers Public Class OrderModifiersTests Inherits AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest Friend Overrides Function CreateDiagnosticProviderAndFixer(workspace As Workspace) As (DiagnosticAnalyzer, CodeFixProvider) Return (New VisualBasicOrderModifiersDiagnosticAnalyzer(), New VisualBasicOrderModifiersCodeFixProvider()) End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestClass() As Task Await TestInRegularAndScript1Async( "[|friend|] protected class C end class ", "protected friend class C end class ") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> public async Function TestStruct() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "[|friend|] protected structure C end structure", "protected friend structure C end structure") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestInterface() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "[|friend|] protected interface C end interface", "protected friend interface C end interface") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestEnum() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "[|friend|] protected enum C end enum", "protected friend enum C end enum") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestDelegate() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "[|friend|] protected delegate sub D()", "protected friend delegate sub D()") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestMethodStatement() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|mustoverride|] protected sub M() end class", "class C protected mustoverride sub M() end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestMethodBlock() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|friend|] protected sub M() end sub end class", "class C protected friend sub M() end sub end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestField() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|friend|] protected dim a as integer end class", "class C protected friend dim a as integer end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestConstructor() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|friend|] protected sub new() end sub end class", "class C protected friend sub new() end sub end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestPropertyStatement() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|readonly|] protected property P as integer end class", "class C protected readonly property P as integer end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestPropertyBlock() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|readonly|] protected property P as integer get end get end property end class", "class C protected readonly property P as integer get end get end property end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestAccessor() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C public property P as integer [|friend|] protected get end get end property end class ", "class C public property P as integer protected friend get end get end property end class ") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestPropertyEvent() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|friend|] protected custom event E as Action end event end class", "class C protected friend custom event E as Action end event end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestFieldEvent() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|friend|] protected event E as Action end class", "class C protected friend event E as Action end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestOperator() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|shared|] public operator +(c1 as integer, c2 as integer) as integer end operator end class ", "class C public shared operator +(c1 as integer, c2 as integer) as integer end operator end class ") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestConversionOperator() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "class C [|shared|] public widening operator CType(x as integer) as boolean end operator end class", "class C public shared widening operator CType(x as integer) as boolean end operator end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestFixAll1() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "{|FixAllInDocument:friend|} protected class C friend protected class Nested end class end class", "protected friend class C protected friend class Nested end class end class") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestFixAll2() As Threading.Tasks.Task Await TestInRegularAndScript1Async( "friend protected class C {|FixAllInDocument:friend|} protected class Nested end class end class ", "protected friend class C protected friend class Nested end class end class ") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestTrivia1() As Threading.Tasks.Task Await TestInRegularAndScript1Async( " ''' Doc comment [|friend|] protected class C end class ", " ''' Doc comment protected friend class C end class ") End Function <Fact, Trait(Traits.Feature, Traits.Features.CodeActionsOrderModifiers)> Public Async Function TestTrivia3() As Task Await TestInRegularAndScript1Async( " #if true [|friend|] protected class C end class #end if ", " #if true protected friend class C end class #end if ") End Function End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/Core/Portable/Completion/Providers/ImportCompletionProvider/IImportCompletionCacheService.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.Host; namespace Microsoft.CodeAnalysis.Completion.Providers.ImportCompletion { internal interface IImportCompletionCacheService<TProject, TPortableExecutable> : IWorkspaceService { // PE references are keyed on assembly path. IDictionary<string, TPortableExecutable> PEItemsCache { get; } IDictionary<ProjectId, TProject> ProjectItemsCache { get; } } }
// 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.Host; namespace Microsoft.CodeAnalysis.Completion.Providers.ImportCompletion { internal interface IImportCompletionCacheService<TProject, TPortableExecutable> : IWorkspaceService { // PE references are keyed on assembly path. IDictionary<string, TPortableExecutable> PEItemsCache { get; } IDictionary<ProjectId, TProject> ProjectItemsCache { get; } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/CSharp/Portable/Symbols/PublicModel/AliasSymbol.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 Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel { internal sealed class AliasSymbol : Symbol, IAliasSymbol { private readonly Symbols.AliasSymbol _underlying; public AliasSymbol(Symbols.AliasSymbol underlying) { RoslynDebug.Assert(underlying is object); _underlying = underlying; } internal override CSharp.Symbol UnderlyingSymbol => _underlying; INamespaceOrTypeSymbol IAliasSymbol.Target { get { return _underlying.Target.GetPublicSymbol(); } } #region ISymbol Members protected override void Accept(SymbolVisitor visitor) { visitor.VisitAlias(this); } protected override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor) where TResult : default { return visitor.VisitAlias(this); } #endregion } }
// 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 Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel { internal sealed class AliasSymbol : Symbol, IAliasSymbol { private readonly Symbols.AliasSymbol _underlying; public AliasSymbol(Symbols.AliasSymbol underlying) { RoslynDebug.Assert(underlying is object); _underlying = underlying; } internal override CSharp.Symbol UnderlyingSymbol => _underlying; INamespaceOrTypeSymbol IAliasSymbol.Target { get { return _underlying.Target.GetPublicSymbol(); } } #region ISymbol Members protected override void Accept(SymbolVisitor visitor) { visitor.VisitAlias(this); } protected override TResult? Accept<TResult>(SymbolVisitor<TResult> visitor) where TResult : default { return visitor.VisitAlias(this); } #endregion } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/Core/Portable/CodeFixes/Suppression/NestedSuppressionCodeAction.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.CodeAnalysis.CodeActions; namespace Microsoft.CodeAnalysis.CodeFixes.Suppression { internal abstract class NestedSuppressionCodeAction : CodeAction { protected NestedSuppressionCodeAction(string title) => Title = title; // Put suppressions at the end of everything. internal override CodeActionPriority Priority => CodeActionPriority.Lowest; public sealed override string Title { get; } protected abstract string DiagnosticIdForEquivalenceKey { get; } public override string EquivalenceKey => Title + DiagnosticIdForEquivalenceKey; public static bool IsEquivalenceKeyForGlobalSuppression(string equivalenceKey) => equivalenceKey.StartsWith(FeaturesResources.in_Suppression_File); public static bool IsEquivalenceKeyForPragmaWarning(string equivalenceKey) => equivalenceKey.StartsWith(FeaturesResources.in_Source); public static bool IsEquivalenceKeyForRemoveSuppression(string equivalenceKey) => equivalenceKey.StartsWith(FeaturesResources.Remove_Suppression); public static bool IsEquivalenceKeyForLocalSuppression(string equivalenceKey) => equivalenceKey.StartsWith(FeaturesResources.in_Source_attribute); } }
// 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.CodeAnalysis.CodeActions; namespace Microsoft.CodeAnalysis.CodeFixes.Suppression { internal abstract class NestedSuppressionCodeAction : CodeAction { protected NestedSuppressionCodeAction(string title) => Title = title; // Put suppressions at the end of everything. internal override CodeActionPriority Priority => CodeActionPriority.Lowest; public sealed override string Title { get; } protected abstract string DiagnosticIdForEquivalenceKey { get; } public override string EquivalenceKey => Title + DiagnosticIdForEquivalenceKey; public static bool IsEquivalenceKeyForGlobalSuppression(string equivalenceKey) => equivalenceKey.StartsWith(FeaturesResources.in_Suppression_File); public static bool IsEquivalenceKeyForPragmaWarning(string equivalenceKey) => equivalenceKey.StartsWith(FeaturesResources.in_Source); public static bool IsEquivalenceKeyForRemoveSuppression(string equivalenceKey) => equivalenceKey.StartsWith(FeaturesResources.Remove_Suppression); public static bool IsEquivalenceKeyForLocalSuppression(string equivalenceKey) => equivalenceKey.StartsWith(FeaturesResources.in_Source_attribute); } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Workspaces/Remote/Core/Serialization/RoslynJsonConverter.SolutionIdConverters.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.Diagnostics; using Microsoft.CodeAnalysis.Text; using Newtonsoft.Json; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Remote { internal partial class AggregateJsonConverter : JsonConverter { private abstract class WorkspaceIdJsonConverter<T> : BaseJsonConverter<T> { protected static (Guid, string)? ReadFromJsonObject(JsonReader reader) { if (reader.TokenType == JsonToken.Null) { return null; } Contract.ThrowIfFalse(reader.TokenType == JsonToken.StartObject); var (id, debugName) = ReadIdAndName(reader); Contract.ThrowIfFalse(reader.Read()); Contract.ThrowIfFalse(reader.TokenType == JsonToken.EndObject); return (id, debugName); } protected static void WriteToJsonObject(JsonWriter writer, Guid id, string debugName) { writer.WriteStartObject(); WriteIdAndName(writer, id, debugName); writer.WriteEndObject(); } protected static (Guid, string) ReadIdAndName(JsonReader reader) { var id = new Guid(ReadProperty<string>(reader)); var debugName = ReadProperty<string>(reader); return (id, debugName); } protected static void WriteIdAndName(JsonWriter writer, Guid id, string debugName) { writer.WritePropertyName(nameof(id)); writer.WriteValue(id); writer.WritePropertyName(nameof(debugName)); writer.WriteValue(debugName); } } private class SolutionIdJsonConverter : WorkspaceIdJsonConverter<SolutionId> { protected override SolutionId ReadValue(JsonReader reader, JsonSerializer serializer) { (Guid id, string debugName)? tuple = ReadFromJsonObject(reader); return tuple == null ? null : SolutionId.CreateFromSerialized(tuple.Value.id, tuple.Value.debugName); } protected override void WriteValue(JsonWriter writer, SolutionId solutionId, JsonSerializer serializer) => WriteToJsonObject(writer, solutionId.Id, solutionId.DebugName); } private class ProjectIdJsonConverter : WorkspaceIdJsonConverter<ProjectId> { protected override ProjectId ReadValue(JsonReader reader, JsonSerializer serializer) { (Guid id, string debugName)? tuple = ReadFromJsonObject(reader); return tuple == null ? null : ProjectId.CreateFromSerialized(tuple.Value.id, tuple.Value.debugName); } protected override void WriteValue(JsonWriter writer, ProjectId projectId, JsonSerializer serializer) => WriteToJsonObject(writer, projectId.Id, projectId.DebugName); } private class DocumentIdJsonConverter : WorkspaceIdJsonConverter<DocumentId> { protected override DocumentId ReadValue(JsonReader reader, JsonSerializer serializer) { if (reader.TokenType == JsonToken.Null) { return null; } Contract.ThrowIfFalse(reader.TokenType == JsonToken.StartObject); var projectId = ReadProperty<ProjectId>(reader, serializer); var (id, debugName) = ReadIdAndName(reader); Contract.ThrowIfFalse(reader.Read()); Contract.ThrowIfFalse(reader.TokenType == JsonToken.EndObject); return DocumentId.CreateFromSerialized(projectId, id, debugName); } protected override void WriteValue(JsonWriter writer, DocumentId documentId, JsonSerializer serializer) { writer.WriteStartObject(); writer.WritePropertyName("projectId"); serializer.Serialize(writer, documentId.ProjectId); WriteIdAndName(writer, documentId.Id, documentId.DebugName); writer.WriteEndObject(); } } } }
// 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.Diagnostics; using Microsoft.CodeAnalysis.Text; using Newtonsoft.Json; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Remote { internal partial class AggregateJsonConverter : JsonConverter { private abstract class WorkspaceIdJsonConverter<T> : BaseJsonConverter<T> { protected static (Guid, string)? ReadFromJsonObject(JsonReader reader) { if (reader.TokenType == JsonToken.Null) { return null; } Contract.ThrowIfFalse(reader.TokenType == JsonToken.StartObject); var (id, debugName) = ReadIdAndName(reader); Contract.ThrowIfFalse(reader.Read()); Contract.ThrowIfFalse(reader.TokenType == JsonToken.EndObject); return (id, debugName); } protected static void WriteToJsonObject(JsonWriter writer, Guid id, string debugName) { writer.WriteStartObject(); WriteIdAndName(writer, id, debugName); writer.WriteEndObject(); } protected static (Guid, string) ReadIdAndName(JsonReader reader) { var id = new Guid(ReadProperty<string>(reader)); var debugName = ReadProperty<string>(reader); return (id, debugName); } protected static void WriteIdAndName(JsonWriter writer, Guid id, string debugName) { writer.WritePropertyName(nameof(id)); writer.WriteValue(id); writer.WritePropertyName(nameof(debugName)); writer.WriteValue(debugName); } } private class SolutionIdJsonConverter : WorkspaceIdJsonConverter<SolutionId> { protected override SolutionId ReadValue(JsonReader reader, JsonSerializer serializer) { (Guid id, string debugName)? tuple = ReadFromJsonObject(reader); return tuple == null ? null : SolutionId.CreateFromSerialized(tuple.Value.id, tuple.Value.debugName); } protected override void WriteValue(JsonWriter writer, SolutionId solutionId, JsonSerializer serializer) => WriteToJsonObject(writer, solutionId.Id, solutionId.DebugName); } private class ProjectIdJsonConverter : WorkspaceIdJsonConverter<ProjectId> { protected override ProjectId ReadValue(JsonReader reader, JsonSerializer serializer) { (Guid id, string debugName)? tuple = ReadFromJsonObject(reader); return tuple == null ? null : ProjectId.CreateFromSerialized(tuple.Value.id, tuple.Value.debugName); } protected override void WriteValue(JsonWriter writer, ProjectId projectId, JsonSerializer serializer) => WriteToJsonObject(writer, projectId.Id, projectId.DebugName); } private class DocumentIdJsonConverter : WorkspaceIdJsonConverter<DocumentId> { protected override DocumentId ReadValue(JsonReader reader, JsonSerializer serializer) { if (reader.TokenType == JsonToken.Null) { return null; } Contract.ThrowIfFalse(reader.TokenType == JsonToken.StartObject); var projectId = ReadProperty<ProjectId>(reader, serializer); var (id, debugName) = ReadIdAndName(reader); Contract.ThrowIfFalse(reader.Read()); Contract.ThrowIfFalse(reader.TokenType == JsonToken.EndObject); return DocumentId.CreateFromSerialized(projectId, id, debugName); } protected override void WriteValue(JsonWriter writer, DocumentId documentId, JsonSerializer serializer) { writer.WriteStartObject(); writer.WritePropertyName("projectId"); serializer.Serialize(writer, documentId.ProjectId); WriteIdAndName(writer, documentId.Id, documentId.DebugName); writer.WriteEndObject(); } } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Scripting/CSharpTest/InteractiveSessionTests.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.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Scripting; using Microsoft.CodeAnalysis.Scripting.Hosting; using Microsoft.CodeAnalysis.Scripting.Test; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; using Basic.Reference.Assemblies; namespace Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests { using static TestCompilationFactory; public class HostModel { public readonly int Goo; } public class InteractiveSessionTests : TestBase { internal static readonly Assembly HostAssembly = typeof(InteractiveSessionTests).GetTypeInfo().Assembly; #region Namespaces, Types [Fact(Skip = "https://github.com/dotnet/roslyn/issues/17869")] public void CompilationChain_NestedTypesClass() { var script = CSharpScript.Create(@" static string outerStr = null; public static void Goo(string str) { outerStr = str; } class InnerClass { public string innerStr = null; public void Goo() { Goo(""test""); innerStr = outerStr; } } ").ContinueWith(@" InnerClass iC = new InnerClass(); iC.Goo(); ").ContinueWith(@" System.Console.WriteLine(iC.innerStr); "); ScriptingTestHelpers.RunScriptWithOutput(script, "test"); } [Fact(Skip = "https://github.com/dotnet/roslyn/issues/17869")] public void CompilationChain_NestedTypesStruct() { var script = CSharpScript.Create(@" static string outerStr = null; public static void Goo(string str) { outerStr = str; } struct InnerStruct { public string innerStr; public void Goo() { Goo(""test""); innerStr = outerStr; } } ").ContinueWith(@" InnerStruct iS = new InnerStruct(); iS.Goo(); ").ContinueWith(@" System.Console.WriteLine(iS.innerStr); "); ScriptingTestHelpers.RunScriptWithOutput(script, "test"); } [Fact] public async Task CompilationChain_InterfaceTypes() { var script = CSharpScript.Create(@" interface I1 { int Goo();} class InnerClass : I1 { public int Goo() { return 1; } }").ContinueWith(@" I1 iC = new InnerClass(); ").ContinueWith(@" iC.Goo() "); Assert.Equal(1, await script.EvaluateAsync()); } [Fact] public void ScriptMemberAccessFromNestedClass() { var script = CSharpScript.Create(@" object field; object Property { get; set; } void Method() { } ").ContinueWith(@" class C { public void Goo() { object f = field; object p = Property; Method(); } } "); ScriptingTestHelpers.AssertCompilationError(script, // (6,20): error CS0120: An object reference is required for the non-static field, method, or property 'field' Diagnostic(ErrorCode.ERR_ObjectRequired, "field").WithArguments("field"), // (7,20): error CS0120: An object reference is required for the non-static field, method, or property 'Property' Diagnostic(ErrorCode.ERR_ObjectRequired, "Property").WithArguments("Property"), // (8,9): error CS0120: An object reference is required for the non-static field, method, or property 'Method()' Diagnostic(ErrorCode.ERR_ObjectRequired, "Method").WithArguments("Method()")); } #region Anonymous Types [Fact] public void AnonymousTypes_TopLevel_MultipleSubmissions() { var script = CSharpScript.Create(@" var a = new { f = 1 }; ").ContinueWith(@" var b = new { g = 1 }; ").ContinueWith<Array>(@" var c = new { f = 1 }; var d = new { g = 1 }; new object[] { new[] { a, c }, new[] { b, d } } "); var result = script.EvaluateAsync().Result; Assert.Equal(2, result.Length); Assert.Equal(2, ((Array)result.GetValue(0)).Length); Assert.Equal(2, ((Array)result.GetValue(1)).Length); } [Fact] public void AnonymousTypes_TopLevel_MultipleSubmissions2() { var script = CSharpScript.Create(@" var a = new { f = 1 }; ").ContinueWith(@" var b = new { g = 1 }; ").ContinueWith(@" var c = new { f = 1 }; var d = new { g = 1 }; object.ReferenceEquals(a.GetType(), c.GetType()).ToString() + "" "" + object.ReferenceEquals(a.GetType(), b.GetType()).ToString() + "" "" + object.ReferenceEquals(b.GetType(), d.GetType()).ToString() "); Assert.Equal("True False True", script.EvaluateAsync().Result.ToString()); } [WorkItem(543863, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543863")] [Fact] public void AnonymousTypes_Redefinition() { var script = CSharpScript.Create(@" var x = new { Goo = ""goo"" }; ").ContinueWith(@" var x = new { Goo = ""goo"" }; ").ContinueWith(@" x.Goo "); var result = script.EvaluateAsync().Result; Assert.Equal("goo", result); } [Fact] public void AnonymousTypes_TopLevel_Empty() { var script = CSharpScript.Create(@" var a = new { }; ").ContinueWith(@" var b = new { }; ").ContinueWith<Array>(@" var c = new { }; var d = new { }; new object[] { new[] { a, c }, new[] { b, d } } "); var result = script.EvaluateAsync().Result; Assert.Equal(2, result.Length); Assert.Equal(2, ((Array)result.GetValue(0)).Length); Assert.Equal(2, ((Array)result.GetValue(1)).Length); } #endregion #region Dynamic [Fact] public void Dynamic_Expando() { var options = ScriptOptions.Default. AddReferences( typeof(Microsoft.CSharp.RuntimeBinder.RuntimeBinderException).GetTypeInfo().Assembly, typeof(System.Dynamic.ExpandoObject).GetTypeInfo().Assembly). AddImports( "System.Dynamic"); var script = CSharpScript.Create(@" dynamic expando = new ExpandoObject(); ", options).ContinueWith(@" expando.goo = 1; ").ContinueWith(@" expando.goo "); Assert.Equal(1, script.EvaluateAsync().Result); } #endregion [Fact] public void Enums() { var script = CSharpScript.Create(@" public enum Enum1 { A, B, C } Enum1 E = Enum1.C; E "); var e = script.EvaluateAsync().Result; Assert.True(e.GetType().GetTypeInfo().IsEnum, "Expected enum"); Assert.Equal(typeof(int), Enum.GetUnderlyingType(e.GetType())); } #endregion #region Attributes [Fact] public void PInvoke() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [DllImport(""goo"", EntryPoint = ""bar"", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode, ExactSpelling = true, PreserveSig = true, SetLastError = true, BestFitMapping = true, ThrowOnUnmappableChar = true)] public static extern void M(); class C { } typeof(C) "; Type c = CSharpScript.EvaluateAsync<Type>(source).Result; var m = c.DeclaringType.GetTypeInfo().GetDeclaredMethod("M"); Assert.Equal(MethodImplAttributes.PreserveSig, m.MethodImplementationFlags); // Reflection synthesizes DllImportAttribute var dllImport = (DllImportAttribute)m.GetCustomAttributes(typeof(DllImportAttribute), inherit: false).Single(); Assert.True(dllImport.BestFitMapping); Assert.Equal(CallingConvention.Cdecl, dllImport.CallingConvention); Assert.Equal(CharSet.Unicode, dllImport.CharSet); Assert.True(dllImport.ExactSpelling); Assert.True(dllImport.SetLastError); Assert.True(dllImport.PreserveSig); Assert.True(dllImport.ThrowOnUnmappableChar); Assert.Equal("bar", dllImport.EntryPoint); Assert.Equal("goo", dllImport.Value); } #endregion // extension methods - must be private, can be top level #region Modifiers and Visibility [Fact] public void PrivateTopLevel() { var script = CSharpScript.Create<int>(@" private int goo() { return 1; } private static int bar() { return 10; } private static int f = 100; goo() + bar() + f "); Assert.Equal(111, script.EvaluateAsync().Result); script = script.ContinueWith<int>(@" goo() + bar() + f "); Assert.Equal(111, script.EvaluateAsync().Result); script = script.ContinueWith<int>(@" class C { public static int baz() { return bar() + f; } } C.baz() "); Assert.Equal(110, script.EvaluateAsync().Result); } [Fact] public void NestedVisibility() { var script = CSharpScript.Create(@" private class C { internal class D { internal static int goo() { return 1; } } private class E { internal static int goo() { return 1; } } public class F { internal protected static int goo() { return 1; } } internal protected class G { internal static int goo() { return 1; } } } "); Assert.Equal(1, script.ContinueWith<int>("C.D.goo()").EvaluateAsync().Result); Assert.Equal(1, script.ContinueWith<int>("C.F.goo()").EvaluateAsync().Result); Assert.Equal(1, script.ContinueWith<int>("C.G.goo()").EvaluateAsync().Result); ScriptingTestHelpers.AssertCompilationError(script.ContinueWith<int>(@"C.E.goo()"), // error CS0122: 'C.E' is inaccessible due to its protection level Diagnostic(ErrorCode.ERR_BadAccess, "E").WithArguments("C.E")); } [Fact] public void Fields_Visibility() { var script = CSharpScript.Create(@" private int i = 2; // test comment; public int j = 2; protected int k = 2; internal protected int l = 2; internal int pi = 2; ").ContinueWith(@" i = i + i; j = j + j; k = k + k; l = l + l; ").ContinueWith(@" pi = i + j + k + l; "); Assert.Equal(4, script.ContinueWith<int>("i").EvaluateAsync().Result); Assert.Equal(4, script.ContinueWith<int>("j").EvaluateAsync().Result); Assert.Equal(4, script.ContinueWith<int>("k").EvaluateAsync().Result); Assert.Equal(4, script.ContinueWith<int>("l").EvaluateAsync().Result); Assert.Equal(16, script.ContinueWith<int>("pi").EvaluateAsync().Result); } [WorkItem(100639, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/100639")] [Fact] public void ExternDestructor() { var script = CSharpScript.Create( @"class C { extern ~C(); }"); Assert.Null(script.EvaluateAsync().Result); } #endregion #region Chaining [Fact] public void CompilationChain_BasicFields() { var script = CSharpScript.Create("var x = 1;").ContinueWith("x"); Assert.Equal(1, script.EvaluateAsync().Result); } [Fact] public void CompilationChain_GlobalNamespaceAndUsings() { var result = CSharpScript.Create("using InteractiveFixtures.C;", ScriptOptions.Default.AddReferences(HostAssembly)). ContinueWith("using InteractiveFixtures.C;"). ContinueWith("System.Environment.ProcessorCount"). EvaluateAsync().Result; Assert.Equal(Environment.ProcessorCount, result); } [Fact] public void CompilationChain_CurrentSubmissionUsings() { var s0 = CSharpScript.RunAsync("", ScriptOptions.Default.AddReferences(HostAssembly)); var state = s0. ContinueWith("class X { public int goo() { return 1; } }"). ContinueWith("class X { public int goo() { return 1; } }"). ContinueWith("using InteractiveFixtures.A;"). ContinueWith("new X().goo()"); Assert.Equal(1, state.Result.ReturnValue); state = s0. ContinueWith("class X { public int goo() { return 1; } }"). ContinueWith(@" using InteractiveFixtures.A; new X().goo() "); Assert.Equal(1, state.Result.ReturnValue); } [Fact] public void CompilationChain_UsingDuplicates() { var script = CSharpScript.Create(@" using System; using System; ").ContinueWith(@" using System; using System; ").ContinueWith(@" Environment.ProcessorCount "); Assert.Equal(Environment.ProcessorCount, script.EvaluateAsync().Result); } [Fact] public void CompilationChain_GlobalImports() { var options = ScriptOptions.Default.AddImports("System"); var state = CSharpScript.RunAsync("Environment.ProcessorCount", options); Assert.Equal(Environment.ProcessorCount, state.Result.ReturnValue); state = state.ContinueWith("Environment.ProcessorCount"); Assert.Equal(Environment.ProcessorCount, state.Result.ReturnValue); } [Fact] public void CompilationChain_Accessibility() { // Submissions have internal and protected access to one another. var state1 = CSharpScript.RunAsync("internal class C1 { } protected int X; 1"); var compilation1 = state1.Result.Script.GetCompilation(); compilation1.VerifyDiagnostics( // (1,39): warning CS0628: 'X': new protected member declared in sealed type // internal class C1 { } protected int X; 1 Diagnostic(ErrorCode.WRN_ProtectedInSealed, "X").WithArguments("X").WithLocation(1, 39) ); Assert.Equal(1, state1.Result.ReturnValue); var state2 = state1.ContinueWith("internal class C2 : C1 { } 2"); var compilation2 = state2.Result.Script.GetCompilation(); compilation2.VerifyDiagnostics(); Assert.Equal(2, state2.Result.ReturnValue); var c2C2 = (INamedTypeSymbol)lookupMember(compilation2, "Submission#1", "C2"); var c2C1 = c2C2.BaseType; var c2X = lookupMember(compilation1, "Submission#0", "X"); Assert.True(compilation2.IsSymbolAccessibleWithin(c2C1, c2C2)); Assert.True(compilation2.IsSymbolAccessibleWithin(c2C2, c2C1)); Assert.True(compilation2.IsSymbolAccessibleWithin(c2X, c2C2)); // access not enforced among submission symbols var state3 = state2.ContinueWith("private class C3 : C2 { } 3"); var compilation3 = state3.Result.Script.GetCompilation(); compilation3.VerifyDiagnostics(); Assert.Equal(3, state3.Result.ReturnValue); var c3C3 = (INamedTypeSymbol)lookupMember(compilation3, "Submission#2", "C3"); var c3C1 = c3C3.BaseType; Assert.Throws<ArgumentException>(() => compilation2.IsSymbolAccessibleWithin(c3C3, c3C1)); Assert.True(compilation3.IsSymbolAccessibleWithin(c3C3, c3C1)); INamedTypeSymbol lookupType(Compilation c, string name) { return c.GlobalNamespace.GetMembers(name).Single() as INamedTypeSymbol; } ISymbol lookupMember(Compilation c, string typeName, string memberName) { return lookupType(c, typeName).GetMembers(memberName).Single(); } } [Fact] public void CompilationChain_SubmissionSlotResize() { var state = CSharpScript.RunAsync(""); for (int i = 0; i < 17; i++) { state = state.ContinueWith(@"public int i = 1;"); } ScriptingTestHelpers.ContinueRunScriptWithOutput(state, @"System.Console.WriteLine(i);", "1"); } [Fact] public void CompilationChain_UsingNotHidingPreviousSubmission() { int result1 = CSharpScript.Create("using System;"). ContinueWith("int Environment = 1;"). ContinueWith<int>("Environment"). EvaluateAsync().Result; Assert.Equal(1, result1); int result2 = CSharpScript.Create("int Environment = 1;"). ContinueWith("using System;"). ContinueWith<int>("Environment"). EvaluateAsync().Result; Assert.Equal(1, result2); } [Fact] public void CompilationChain_DefinitionHidesGlobal() { var result = CSharpScript.Create("int System = 1;"). ContinueWith("System"). EvaluateAsync().Result; Assert.Equal(1, result); } public class C1 { public readonly int System = 1; public readonly int Environment = 2; } /// <summary> /// Symbol declaration in host object model hides global definition. /// </summary> [Fact] public void CompilationChain_HostObjectMembersHidesGlobal() { var result = CSharpScript.RunAsync("System", globals: new C1()). Result.ReturnValue; Assert.Equal(1, result); } [Fact] public void CompilationChain_UsingNotHidingHostObjectMembers() { var result = CSharpScript.RunAsync("using System;", globals: new C1()). ContinueWith("Environment"). Result.ReturnValue; Assert.Equal(2, result); } [Fact] public void CompilationChain_DefinitionHidesHostObjectMembers() { var result = CSharpScript.RunAsync("int System = 2;", globals: new C1()). ContinueWith("System"). Result.ReturnValue; Assert.Equal(2, result); } [Fact] public void Submissions_ExecutionOrder1() { var s0 = CSharpScript.Create("int x = 1;"); var s1 = s0.ContinueWith("int y = 2;"); var s2 = s1.ContinueWith<int>("x + y"); Assert.Equal(3, s2.EvaluateAsync().Result); Assert.Null(s1.EvaluateAsync().Result); Assert.Null(s0.EvaluateAsync().Result); Assert.Equal(3, s2.EvaluateAsync().Result); Assert.Null(s1.EvaluateAsync().Result); Assert.Null(s0.EvaluateAsync().Result); Assert.Equal(3, s2.EvaluateAsync().Result); Assert.Equal(3, s2.EvaluateAsync().Result); } [Fact] public async Task Submissions_ExecutionOrder2() { var s0 = await CSharpScript.RunAsync("int x = 1;"); Assert.Throws<CompilationErrorException>(() => s0.ContinueWithAsync("invalid$syntax").Result); var s1 = await s0.ContinueWithAsync("x = 2; x = 10"); Assert.Throws<CompilationErrorException>(() => s1.ContinueWithAsync("invalid$syntax").Result); Assert.Throws<CompilationErrorException>(() => s1.ContinueWithAsync("x = undefined_symbol").Result); var s2 = await s1.ContinueWithAsync("int y = 2;"); Assert.Null(s2.ReturnValue); var s3 = await s2.ContinueWithAsync("x + y"); Assert.Equal(12, s3.ReturnValue); } public class HostObjectWithOverrides { public override bool Equals(object obj) => true; public override int GetHashCode() => 1234567; public override string ToString() => "HostObjectToString impl"; } [Fact] public async Task ObjectOverrides1() { var state0 = await CSharpScript.RunAsync("", globals: new HostObjectWithOverrides()); var state1 = await state0.ContinueWithAsync<bool>("Equals(null)"); Assert.True(state1.ReturnValue); var state2 = await state1.ContinueWithAsync<int>("GetHashCode()"); Assert.Equal(1234567, state2.ReturnValue); var state3 = await state2.ContinueWithAsync<string>("ToString()"); Assert.Equal("HostObjectToString impl", state3.ReturnValue); } [Fact] public async Task ObjectOverrides2() { var state0 = await CSharpScript.RunAsync("", globals: new object()); var state1 = await state0.ContinueWithAsync<bool>(@" object x = 1; object y = x; ReferenceEquals(x, y)"); Assert.True(state1.ReturnValue); var state2 = await state1.ContinueWithAsync<string>("ToString()"); Assert.Equal("System.Object", state2.ReturnValue); var state3 = await state2.ContinueWithAsync<bool>("Equals(null)"); Assert.False(state3.ReturnValue); } [Fact] public void ObjectOverrides3() { var state0 = CSharpScript.RunAsync(""); var src1 = @" Equals(null); GetHashCode(); ToString(); ReferenceEquals(null, null);"; ScriptingTestHelpers.AssertCompilationError(state0, src1, // (2,1): error CS0103: The name 'Equals' does not exist in the current context Diagnostic(ErrorCode.ERR_NameNotInContext, "Equals").WithArguments("Equals"), // (3,1): error CS0103: The name 'GetHashCode' does not exist in the current context Diagnostic(ErrorCode.ERR_NameNotInContext, "GetHashCode").WithArguments("GetHashCode"), // (4,1): error CS0103: The name 'ToString' does not exist in the current context Diagnostic(ErrorCode.ERR_NameNotInContext, "ToString").WithArguments("ToString"), // (5,1): error CS0103: The name 'ReferenceEquals' does not exist in the current context Diagnostic(ErrorCode.ERR_NameNotInContext, "ReferenceEquals").WithArguments("ReferenceEquals")); var src2 = @" public override string ToString() { return null; } "; ScriptingTestHelpers.AssertCompilationError(state0, src2, // (1,24): error CS0115: 'ToString()': no suitable method found to override Diagnostic(ErrorCode.ERR_OverrideNotExpected, "ToString").WithArguments("ToString()")); } #endregion #region Generics [Fact, WorkItem(201759, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/201759")] public void CompilationChain_GenericTypes() { var script = CSharpScript.Create(@" class InnerClass<T> { public int method(int value) { return value + 1; } public int field = 2; }").ContinueWith(@" InnerClass<int> iC = new InnerClass<int>(); ").ContinueWith(@" iC.method(iC.field) "); Assert.Equal(3, script.EvaluateAsync().Result); } [WorkItem(529243, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529243")] [Fact] public void RecursiveBaseType() { CSharpScript.EvaluateAsync(@" class A<T> { } class B<T> : A<B<B<T>>> { } "); } [WorkItem(5378, "DevDiv_Projects/Roslyn")] [Fact] public void CompilationChain_GenericMethods() { var s0 = CSharpScript.Create(@" public int goo<T, R>(T arg) { return 1; } public static T bar<T>(T i) { return i; } "); Assert.Equal(1, s0.ContinueWith(@"goo<int, int>(1)").EvaluateAsync().Result); Assert.Equal(5, s0.ContinueWith(@"bar(5)").EvaluateAsync().Result); } /// <summary> /// Tests that we emit ldftn and ldvirtftn instructions correctly. /// </summary> [Fact] public void CompilationChain_Ldftn() { var state = CSharpScript.RunAsync(@" public class C { public static int f() { return 1; } public int g() { return 10; } public virtual int h() { return 100; } public static int gf<T>() { return 2; } public int gg<T>() { return 20; } public virtual int gh<T>() { return 200; } } "); state = state.ContinueWith(@" new System.Func<int>(C.f)() + new System.Func<int>(new C().g)() + new System.Func<int>(new C().h)()" ); Assert.Equal(111, state.Result.ReturnValue); state = state.ContinueWith(@" new System.Func<int>(C.gf<int>)() + new System.Func<int>(new C().gg<object>)() + new System.Func<int>(new C().gh<bool>)() "); Assert.Equal(222, state.Result.ReturnValue); } /// <summary> /// Tests that we emit ldftn and ldvirtftn instructions correctly. /// </summary> [Fact] public void CompilationChain_Ldftn_GenericType() { var state = CSharpScript.RunAsync(@" public class C<S> { public static int f() { return 1; } public int g() { return 10; } public virtual int h() { return 100; } public static int gf<T>() { return 2; } public int gg<T>() { return 20; } public virtual int gh<T>() { return 200; } } "); state = state.ContinueWith(@" new System.Func<int>(C<byte>.f)() + new System.Func<int>(new C<byte>().g)() + new System.Func<int>(new C<byte>().h)() "); Assert.Equal(111, state.Result.ReturnValue); state = state.ContinueWith(@" new System.Func<int>(C<byte>.gf<int>)() + new System.Func<int>(new C<byte>().gg<object>)() + new System.Func<int>(new C<byte>().gh<bool>)() "); Assert.Equal(222, state.Result.ReturnValue); } #endregion #region Statements and Expressions [Fact] public void IfStatement() { var result = CSharpScript.EvaluateAsync<int>(@" using static System.Console; int x; if (true) { x = 5; } else { x = 6; } x ").Result; Assert.Equal(5, result); } [Fact] public void ExprStmtParenthesesUsedToOverrideDefaultEval() { Assert.Equal(18, CSharpScript.EvaluateAsync<int>("(4 + 5) * 2").Result); Assert.Equal(1, CSharpScript.EvaluateAsync<long>("6 / (2 * 3)").Result); } [WorkItem(5397, "DevDiv_Projects/Roslyn")] [Fact] public void TopLevelLambda() { var s = CSharpScript.RunAsync(@" using System; delegate void TestDelegate(string s); "); s = s.ContinueWith(@" TestDelegate testDelB = delegate (string s) { Console.WriteLine(s); }; "); ScriptingTestHelpers.ContinueRunScriptWithOutput(s, @"testDelB(""hello"");", "hello"); } [Fact] public void Closure() { var f = CSharpScript.EvaluateAsync<Func<int, int>>(@" int Goo(int arg) { return arg + 1; } System.Func<int, int> f = (arg) => { return Goo(arg); }; f ").Result; Assert.Equal(3, f(2)); } [Fact] public void Closure2() { var result = CSharpScript.EvaluateAsync<List<string>>(@" #r ""System.Core"" using System; using System.Linq; using System.Collections.Generic; List<string> result = new List<string>(); string s = ""hello""; Enumerable.ToList(Enumerable.Range(1, 2)).ForEach(x => result.Add(s)); result ").Result; AssertEx.Equal(new[] { "hello", "hello" }, result); } [Fact] public void UseDelegateMixStaticAndDynamic() { var f = CSharpScript.RunAsync("using System;"). ContinueWith("int Sqr(int x) {return x*x;}"). ContinueWith<Func<int, int>>("new Func<int,int>(Sqr)").Result.ReturnValue; Assert.Equal(4, f(2)); } [WorkItem(9229, "DevDiv_Projects/Roslyn")] [Fact] public void Arrays() { var s = CSharpScript.RunAsync(@" int[] arr_1 = { 1, 2, 3 }; int[] arr_2 = new int[] { 1, 2, 3 }; int[] arr_3 = new int[5]; ").ContinueWith(@" arr_2[0] = 5; "); Assert.Equal(3, s.ContinueWith(@"arr_1[2]").Result.ReturnValue); Assert.Equal(5, s.ContinueWith(@"arr_2[0]").Result.ReturnValue); Assert.Equal(0, s.ContinueWith(@"arr_3[0]").Result.ReturnValue); } [Fact] public void FieldInitializers() { var result = CSharpScript.EvaluateAsync<List<int>>(@" using System.Collections.Generic; static List<int> result = new List<int>(); int b = 2; int a; int x = 1, y = b; static int g = 1; static int f = g + 1; a = x + y; result.Add(a); int z = 4 + f; result.Add(z); result.Add(a * z); result ").Result; Assert.Equal(3, result.Count); Assert.Equal(3, result[0]); Assert.Equal(6, result[1]); Assert.Equal(18, result[2]); } [Fact] public void FieldInitializersWithBlocks() { var result = CSharpScript.EvaluateAsync<List<int>>(@" using System.Collections.Generic; static List<int> result = new List<int>(); const int constant = 1; { int x = constant; result.Add(x); } int field = 2; { int x = field; result.Add(x); } result.Add(constant); result.Add(field); result ").Result; Assert.Equal(4, result.Count); Assert.Equal(1, result[0]); Assert.Equal(2, result[1]); Assert.Equal(1, result[2]); Assert.Equal(2, result[3]); } [Fact] public void TestInteractiveClosures() { var result = CSharpScript.RunAsync(@" using System.Collections.Generic; static List<int> result = new List<int>();"). ContinueWith("int x = 1;"). ContinueWith("System.Func<int> f = () => x++;"). ContinueWith("result.Add(f());"). ContinueWith("result.Add(x);"). ContinueWith<List<int>>("result").Result.ReturnValue; Assert.Equal(2, result.Count); Assert.Equal(1, result[0]); Assert.Equal(2, result[1]); } [Fact] public void ExtensionMethods() { var options = ScriptOptions.Default.AddReferences( typeof(Enumerable).GetTypeInfo().Assembly); var result = CSharpScript.EvaluateAsync<int>(@" using System.Linq; string[] fruit = { ""banana"", ""orange"", ""lime"", ""apple"", ""kiwi"" }; fruit.Skip(1).Where(s => s.Length > 4).Count()", options).Result; Assert.Equal(2, result); } [Fact] public void ImplicitlyTypedFields() { var result = CSharpScript.EvaluateAsync<object[]>(@" var x = 1; var y = x; var z = goo(x); string goo(int a) { return null; } int goo(string a) { return 0; } new object[] { x, y, z } ").Result; AssertEx.Equal(new object[] { 1, 1, null }, result); } /// <summary> /// Name of PrivateImplementationDetails type needs to be unique across submissions. /// The compiler should suffix it with a MVID of the current submission module so we should be fine. /// </summary> [WorkItem(949559, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/949559")] [WorkItem(540237, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540237")] [WorkItem(9229, "DevDiv_Projects/Roslyn")] [WorkItem(2721, "https://github.com/dotnet/roslyn/issues/2721")] [Fact] public async Task PrivateImplementationDetailsType() { var result1 = await CSharpScript.EvaluateAsync<int[]>("new int[] { 1,2,3,4 }"); AssertEx.Equal(new[] { 1, 2, 3, 4 }, result1); var result2 = await CSharpScript.EvaluateAsync<int[]>("new int[] { 1,2,3,4,5 }"); AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, result2); var s1 = await CSharpScript.RunAsync<int[]>("new int[] { 1,2,3,4,5,6 }"); AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6 }, s1.ReturnValue); var s2 = await s1.ContinueWithAsync<int[]>("new int[] { 1,2,3,4,5,6,7 }"); AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7 }, s2.ReturnValue); var s3 = await s2.ContinueWithAsync<int[]>("new int[] { 1,2,3,4,5,6,7,8 }"); AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, s3.ReturnValue); } [Fact] public void NoAwait() { // No await. The return value is Task<int> rather than int. var result = CSharpScript.EvaluateAsync("System.Threading.Tasks.Task.FromResult(1)").Result; Assert.Equal(1, ((Task<int>)result).Result); } /// <summary> /// 'await' expression at top-level. /// </summary> [Fact] public void Await() { Assert.Equal(2, CSharpScript.EvaluateAsync("await System.Threading.Tasks.Task.FromResult(2)").Result); } /// <summary> /// 'await' in sub-expression. /// </summary> [Fact] public void AwaitSubExpression() { Assert.Equal(3, CSharpScript.EvaluateAsync<int>("0 + await System.Threading.Tasks.Task.FromResult(3)").Result); } [Fact] public void AwaitVoid() { var task = CSharpScript.EvaluateAsync<object>("await System.Threading.Tasks.Task.Run(() => { })"); Assert.Null(task.Result); Assert.Equal(TaskStatus.RanToCompletion, task.Status); } /// <summary> /// 'await' in lambda should be ignored. /// </summary> [Fact] public async Task AwaitInLambda() { var s0 = await CSharpScript.RunAsync(@" using System; using System.Threading.Tasks; static T F<T>(Func<Task<T>> f) { return f().Result; } static T G<T>(T t, Func<T, Task<T>> f) { return f(t).Result; }"); var s1 = await s0.ContinueWithAsync("F(async () => await Task.FromResult(4))"); Assert.Equal(4, s1.ReturnValue); var s2 = await s1.ContinueWithAsync("G(5, async x => await Task.FromResult(x))"); Assert.Equal(5, s2.ReturnValue); } [Fact] public void AwaitChain1() { var options = ScriptOptions.Default. AddReferences(typeof(Task).GetTypeInfo().Assembly). AddImports("System.Threading.Tasks"); var state = CSharpScript.RunAsync("int i = 0;", options). ContinueWith("await Task.Delay(1); i++;"). ContinueWith("await Task.Delay(1); i++;"). ContinueWith("await Task.Delay(1); i++;"). ContinueWith("i"). Result; Assert.Equal(3, state.ReturnValue); } [Fact] public void AwaitChain2() { var options = ScriptOptions.Default. AddReferences(typeof(Task).GetTypeInfo().Assembly). AddImports("System.Threading.Tasks"); var state = CSharpScript.Create("int i = 0;", options). ContinueWith("await Task.Delay(1); i++;"). ContinueWith("await Task.Delay(1); i++;"). RunAsync(). ContinueWith("await Task.Delay(1); i++;"). ContinueWith("i"). Result; Assert.Equal(3, state.ReturnValue); } [Fact, WorkItem(39548, "https://github.com/dotnet/roslyn/issues/39548")] public async Task PatternVariableDeclaration() { var state = await CSharpScript.RunAsync("var x = (false, 4);"); state = await state.ContinueWithAsync("x is (false, var y)"); Assert.Equal(true, state.ReturnValue); } [Fact, WorkItem(42368, "https://github.com/dotnet/roslyn/issues/42368")] public async Task CSharp9PatternForms() { var options = ScriptOptions.Default.WithLanguageVersion(MessageID.IDS_FeatureAndPattern.RequiredVersion()); var state = await CSharpScript.RunAsync("object x = 1;", options: options); state = await state.ContinueWithAsync("x is long or int", options: options); Assert.Equal(true, state.ReturnValue); state = await state.ContinueWithAsync("x is int and < 10", options: options); Assert.Equal(true, state.ReturnValue); state = await state.ContinueWithAsync("x is (long or < 10L)", options: options); Assert.Equal(false, state.ReturnValue); state = await state.ContinueWithAsync("x is not > 100", options: options); Assert.Equal(true, state.ReturnValue); } #endregion #region References [Fact(Skip = "https://github.com/dotnet/roslyn/issues/53391")] [WorkItem(15860, "https://github.com/dotnet/roslyn/issues/53391")] public void ReferenceDirective_FileWithDependencies() { var file1 = Temp.CreateFile(); var file2 = Temp.CreateFile(); var lib1 = CreateCSharpCompilationWithCorlib(@" public interface I { int F(); }"); lib1.Emit(file1.Path); var lib2 = CreateCSharpCompilation(@" public class C : I { public int F() => 1; }", new MetadataReference[] { NetStandard13.SystemRuntime, lib1.ToMetadataReference() }); lib2.Emit(file2.Path); object result = CSharpScript.EvaluateAsync($@" #r ""{file1.Path}"" #r ""{file2.Path}"" new C() ").Result; Assert.NotNull(result); } [ConditionalFact(typeof(WindowsOnly)), WorkItem(15860, "https://github.com/dotnet/roslyn/issues/15860")] public void ReferenceDirective_RelativeToBaseParent() { var file = Temp.CreateFile(); var lib = CreateCSharpCompilationWithCorlib("public class C {}"); lib.Emit(file.Path); string dir = Path.Combine(Path.GetDirectoryName(file.Path), "subdir"); string libFileName = Path.GetFileName(file.Path); string scriptPath = Path.Combine(dir, "a.csx"); var script = CSharpScript.Create( $@"#r ""{Path.Combine("..", libFileName)}""", ScriptOptions.Default.WithFilePath(scriptPath)); script.GetCompilation().VerifyDiagnostics(); } [ConditionalFact(typeof(WindowsOnly)), WorkItem(15860, "https://github.com/dotnet/roslyn/issues/15860")] public void ReferenceDirective_RelativeToBaseRoot() { var file = Temp.CreateFile(); var lib = CreateCSharpCompilationWithCorlib("public class C {}"); lib.Emit(file.Path); string root = Path.GetPathRoot(file.Path); string unrooted = file.Path.Substring(root.Length); string dir = Path.Combine(root, "goo", "bar", "baz"); string scriptPath = Path.Combine(dir, "a.csx"); var script = CSharpScript.Create( $@"#r ""\{unrooted}""", ScriptOptions.Default.WithFilePath(scriptPath)); script.GetCompilation().VerifyDiagnostics(); } [Fact] public void ExtensionPriority1() { string mainName = "Main_" + Guid.NewGuid(); string libName = "Lib_" + Guid.NewGuid(); var libExe = CreateCSharpCompilationWithCorlib(@"public class C { public string F = ""exe""; }", libName); var libDll = CreateCSharpCompilationWithCorlib(@"public class C { public string F = ""dll""; }", libName); var libWinmd = CreateCSharpCompilationWithCorlib(@"public class C { public string F = ""winmd""; }", libName); var main = CreateCSharpCompilation( @"public static class M { public static readonly C X = new C(); }", new MetadataReference[] { NetStandard13.SystemRuntime, libExe.ToMetadataReference() }, mainName); var exeImage = libExe.EmitToArray(); var dllImage = libDll.EmitToArray(); var winmdImage = libWinmd.EmitToArray(); var mainImage = main.EmitToArray(); var dir = Temp.CreateDirectory(); var fileMain = dir.CreateFile(mainName + ".dll").WriteAllBytes(mainImage); dir.CreateFile(libName + ".exe").WriteAllBytes(exeImage); dir.CreateFile(libName + ".winmd").WriteAllBytes(winmdImage); var r2 = CSharpScript.Create($@"#r ""{fileMain.Path}""").ContinueWith($@"M.X.F").RunAsync().Result.ReturnValue; Assert.Equal("exe", r2); } [Fact] public void ExtensionPriority2() { string mainName = "Main_" + Guid.NewGuid(); string libName = "Lib_" + Guid.NewGuid(); var libExe = CreateCSharpCompilationWithCorlib(@"public class C { public string F = ""exe""; }", libName); var libDll = CreateCSharpCompilationWithCorlib(@"public class C { public string F = ""dll""; }", libName); var libWinmd = CreateCSharpCompilationWithCorlib(@"public class C { public string F = ""winmd""; }", libName); var main = CreateCSharpCompilation( @"public static class M { public static readonly C X = new C(); }", new MetadataReference[] { NetStandard13.SystemRuntime, libExe.ToMetadataReference() }, mainName); var exeImage = libExe.EmitToArray(); var dllImage = libDll.EmitToArray(); var winmdImage = libWinmd.EmitToArray(); var mainImage = main.EmitToArray(); var dir = Temp.CreateDirectory(); var fileMain = dir.CreateFile(mainName + ".dll").WriteAllBytes(mainImage); dir.CreateFile(libName + ".exe").WriteAllBytes(exeImage); dir.CreateFile(libName + ".dll").WriteAllBytes(dllImage); dir.CreateFile(libName + ".winmd").WriteAllBytes(winmdImage); var r2 = CSharpScript.Create($@"#r ""{fileMain.Path}""").ContinueWith($@"M.X.F").RunAsync().Result.ReturnValue; Assert.Equal("dll", r2); } [Fact(Skip = "https://github.com/dotnet/roslyn/issues/6015")] public void UsingExternalAliasesForHiding() { string source = @" namespace N { public class C { } } public class D { } public class E { } "; var libRef = CreateCSharpCompilationWithCorlib(source, "lib").EmitToImageReference(); var script = CSharpScript.Create(@"new C()", ScriptOptions.Default.WithReferences(libRef.WithAliases(new[] { "Hidden" })).WithImports("Hidden::N")); script.Compile().Verify(); } #endregion #region UsingDeclarations [Fact] public void UsingAlias() { object result = CSharpScript.EvaluateAsync(@" using D = System.Collections.Generic.Dictionary<string, int>; D d = new D(); d ").Result; Assert.True(result is Dictionary<string, int>, "Expected Dictionary<string, int>"); } [WorkItem(9229, "DevDiv_Projects/Roslyn")] [Fact] public void Usings1() { var options = ScriptOptions.Default. AddImports("System", "System.Linq"). AddReferences(typeof(Enumerable).GetTypeInfo().Assembly); object result = CSharpScript.EvaluateAsync("new int[] { 1, 2, 3 }.First()", options).Result; Assert.Equal(1, result); } [WorkItem(9229, "DevDiv_Projects/Roslyn")] [Fact] public void Usings2() { var options = ScriptOptions.Default. AddImports("System", "System.Linq"). AddReferences(typeof(Enumerable).GetTypeInfo().Assembly); var s1 = CSharpScript.RunAsync("new int[] { 1, 2, 3 }.First()", options); Assert.Equal(1, s1.Result.ReturnValue); var s2 = s1.ContinueWith("new List<int>()", options.AddImports("System.Collections.Generic")); Assert.IsType<List<int>>(s2.Result.ReturnValue); } [Fact] public void AddNamespaces_Errors() { // no immediate error, error is reported if the namespace can't be found when compiling: var options = ScriptOptions.Default.AddImports("?1", "?2"); ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("1", options), // error CS0246: The type or namespace name '?1' could not be found (are you missing a using directive or an assembly reference?) Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound).WithArguments("?1"), // error CS0246: The type or namespace name '?2' could not be found (are you missing a using directive or an assembly reference?) Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound).WithArguments("?2")); options = ScriptOptions.Default.AddImports(""); ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("1", options), // error CS7088: Invalid 'Usings' value: ''. Diagnostic(ErrorCode.ERR_BadCompilationOptionValue).WithArguments("Usings", "")); options = ScriptOptions.Default.AddImports(".abc"); ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("1", options), // error CS7088: Invalid 'Usings' value: '.abc'. Diagnostic(ErrorCode.ERR_BadCompilationOptionValue).WithArguments("Usings", ".abc")); options = ScriptOptions.Default.AddImports("a\0bc"); ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("1", options), // error CS7088: Invalid 'Usings' value: '.abc'. Diagnostic(ErrorCode.ERR_BadCompilationOptionValue).WithArguments("Usings", "a\0bc")); } #endregion #region Host Object Binding and Conversions public class C<T> { } [Fact] public void Submission_HostConversions() { Assert.Equal(2, CSharpScript.EvaluateAsync<int>("1+1").Result); Assert.Null(CSharpScript.EvaluateAsync<string>("null").Result); try { CSharpScript.RunAsync<C<int>>("null"); Assert.True(false, "Expected an exception"); } catch (CompilationErrorException e) { // error CS0400: The type or namespace name 'Microsoft.CodeAnalysis.CSharp.UnitTests.Symbols.Source.InteractiveSessionTests+C`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], Roslyn.Compilers.CSharp.Emit.UnitTests, Version=42.42.42.42, Culture=neutral, PublicKeyToken=fc793a00266884fb' could not be found in the global namespace (are you missing an assembly reference?) Assert.Equal(ErrorCode.ERR_GlobalSingleTypeNameNotFound, (ErrorCode)e.Diagnostics.Single().Code); // Can't use Verify() because the version number of the test dll is different in the build lab. } var options = ScriptOptions.Default.AddReferences(HostAssembly); var cint = CSharpScript.EvaluateAsync<C<int>>("null", options).Result; Assert.Null(cint); Assert.Null(CSharpScript.EvaluateAsync<int?>("null", options).Result); try { CSharpScript.RunAsync<int>("null"); Assert.True(false, "Expected an exception"); } catch (CompilationErrorException e) { e.Diagnostics.Verify( // (1,1): error CS0037: Cannot convert null to 'int' because it is a non-nullable value type // null Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int")); } try { CSharpScript.RunAsync<string>("1+1"); Assert.True(false, "Expected an exception"); } catch (CompilationErrorException e) { e.Diagnostics.Verify( // (1,1): error CS0029: Cannot implicitly convert type 'int' to 'string' // 1+1 Diagnostic(ErrorCode.ERR_NoImplicitConv, "1+1").WithArguments("int", "string")); } } [Fact] public void Submission_HostVarianceConversions() { var value = CSharpScript.EvaluateAsync<IEnumerable<Exception>>(@" using System; using System.Collections.Generic; new List<ArgumentException>() ").Result; Assert.Null(value.FirstOrDefault()); } public class B { public int x = 1, w = 4; } public class C : B, I { public static readonly int StaticField = 123; public int Y => 2; public string N { get; set; } = "2"; public int Z() => 3; public override int GetHashCode() => 123; } public interface I { string N { get; set; } int Z(); } private class PrivateClass : I { public string N { get; set; } = null; public int Z() => 3; } public class M<T> { private int F() => 3; public T G() => default(T); } [Fact] public void HostObjectBinding_PublicClassMembers() { var c = new C(); var s0 = CSharpScript.RunAsync<int>("x + Y + Z()", globals: c); Assert.Equal(6, s0.Result.ReturnValue); var s1 = s0.ContinueWith<int>("x"); Assert.Equal(1, s1.Result.ReturnValue); var s2 = s1.ContinueWith<int>("int x = 20;"); var s3 = s2.ContinueWith<int>("x"); Assert.Equal(20, s3.Result.ReturnValue); } [Fact] public void HostObjectBinding_PublicGenericClassMembers() { var m = new M<string>(); var result = CSharpScript.EvaluateAsync<string>("G()", globals: m); Assert.Null(result.Result); } [Fact] public async Task HostObjectBinding_Interface() { var c = new C(); var s0 = await CSharpScript.RunAsync<int>("Z()", globals: c, globalsType: typeof(I)); Assert.Equal(3, s0.ReturnValue); ScriptingTestHelpers.AssertCompilationError(s0, @"x + Y", // The name '{0}' does not exist in the current context Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x"), Diagnostic(ErrorCode.ERR_NameNotInContext, "Y").WithArguments("Y")); var s1 = await s0.ContinueWithAsync<string>("N"); Assert.Equal("2", s1.ReturnValue); } [Fact] public void HostObjectBinding_PrivateClass() { var c = new PrivateClass(); ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("Z()", globals: c), // (1,1): error CS0122: '<Fully Qualified Name of PrivateClass>.Z()' is inaccessible due to its protection level Diagnostic(ErrorCode.ERR_BadAccess, "Z").WithArguments(typeof(PrivateClass).FullName.Replace("+", ".") + ".Z()")); } [Fact] public void HostObjectBinding_PrivateMembers() { object c = new M<int>(); ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("Z()", globals: c), // (1,1): error CS0103: The name 'z' does not exist in the current context Diagnostic(ErrorCode.ERR_NameNotInContext, "Z").WithArguments("Z")); } [Fact] public void HostObjectBinding_PrivateClassImplementingPublicInterface() { var c = new PrivateClass(); var result = CSharpScript.EvaluateAsync<int>("Z()", globals: c, globalsType: typeof(I)); Assert.Equal(3, result.Result); } [Fact] public void HostObjectBinding_StaticMembers() { var s0 = CSharpScript.RunAsync("static int goo = StaticField;", globals: new C()); var s1 = s0.ContinueWith("static int bar { get { return goo; } }"); var s2 = s1.ContinueWith("class C { public static int baz() { return bar; } }"); var s3 = s2.ContinueWith("C.baz()"); Assert.Equal(123, s3.Result.ReturnValue); } public class D { public int goo(int a) { return 0; } } /// <summary> /// Host object members don't form a method group with submission members. /// </summary> [Fact] public void HostObjectBinding_Overloads() { var s0 = CSharpScript.RunAsync("int goo(double a) { return 2; }", globals: new D()); var s1 = s0.ContinueWith("goo(1)"); Assert.Equal(2, s1.Result.ReturnValue); var s2 = s1.ContinueWith("goo(1.0)"); Assert.Equal(2, s2.Result.ReturnValue); } [Fact] public void HostObjectInRootNamespace() { var obj = new InteractiveFixtures_TopLevelHostObject { X = 1, Y = 2, Z = 3 }; var r0 = CSharpScript.EvaluateAsync<int>("X + Y + Z", globals: obj); Assert.Equal(6, r0.Result); obj = new InteractiveFixtures_TopLevelHostObject { X = 1, Y = 2, Z = 3 }; var r1 = CSharpScript.EvaluateAsync<int>("X", globals: obj); Assert.Equal(1, r1.Result); } [ConditionalFact(typeof(WindowsDesktopOnly), Reason = "https://github.com/dotnet/roslyn/issues/30303")] public void HostObjectAssemblyReference1() { var scriptCompilation = CSharpScript.Create( "nameof(Microsoft.CodeAnalysis.Scripting)", ScriptOptions.Default.WithMetadataResolver(TestRuntimeMetadataReferenceResolver.Instance), globalsType: typeof(CommandLineScriptGlobals)).GetCompilation(); scriptCompilation.VerifyDiagnostics( // (1,8): error CS0234: The type or namespace name 'CodeAnalysis' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) // nameof(Microsoft.CodeAnalysis.Scripting) Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "Microsoft.CodeAnalysis").WithArguments("CodeAnalysis", "Microsoft").WithLocation(1, 8)); string corAssemblyName = typeof(object).GetTypeInfo().Assembly.GetName().Name; string hostObjectAssemblyName = scriptCompilation.ScriptCompilationInfo.GlobalsType.GetTypeInfo().Assembly.GetName().Name; // The host adds // 1) a reference to typeof(object).Assembly // 2) a reference to GlobalsType with alias <host> applied recursively. // References returned from ResolveMissingAssembly have <implicit> alias. foreach (var (assembly, aliases) in scriptCompilation.GetBoundReferenceManager().GetReferencedAssemblyAliases()) { string name = assembly.Identity.Name; switch (name) { case "Microsoft.CodeAnalysis.CSharp.Scripting": case "Microsoft.CodeAnalysis.CSharp": // assemblies not referenced Assert.False(true); break; case "Microsoft.CodeAnalysis": case "System.Collections.Immutable": // Microsoft.CodeAnalysis.Scripting contains host object and is thus referenced recursively with <host> alias. // The script doesn't reference the assemblies explicitly. AssertEx.SetEqual(new[] { "<implicit>", "<host>" }, aliases); break; default: if (name == corAssemblyName) { // Host object depends on System.Object, thus <host> is applied on CorLib. AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); } else if (name == hostObjectAssemblyName) { // Host object is only referenced by the host and thus the assembly is hidden behind <host> alias. AssertEx.SetEqual(new[] { "<host>" }, aliases); } break; } } } [ConditionalFact(typeof(ClrOnly), Reason = "https://github.com/dotnet/roslyn/issues/30303")] public void HostObjectAssemblyReference2() { var scriptCompilation = CSharpScript.Create( "typeof(Microsoft.CodeAnalysis.Scripting.Script)", options: ScriptOptions.Default. WithMetadataResolver(TestRuntimeMetadataReferenceResolver.Instance). WithReferences(typeof(CSharpScript).GetTypeInfo().Assembly), globalsType: typeof(CommandLineScriptGlobals)).GetCompilation(); scriptCompilation.VerifyDiagnostics(); string corAssemblyName = typeof(object).GetTypeInfo().Assembly.GetName().Name; string hostObjectAssemblyName = scriptCompilation.ScriptCompilationInfo.GlobalsType.GetTypeInfo().Assembly.GetName().Name; // The host adds // 1) a reference to typeof(object).Assembly // 2) a reference to GlobalsType with alias <host> applied recursively. // References returned from ResolveMissingAssembly have <implicit> alias. foreach (var (assembly, aliases) in scriptCompilation.GetBoundReferenceManager().GetReferencedAssemblyAliases()) { string name = assembly.Identity.Name; switch (name) { case "Microsoft.CodeAnalysis.CSharp.Scripting": // we have an explicit reference to CSharpScript assembly: AssertEx.SetEqual(Array.Empty<string>(), aliases); break; case "Microsoft.CodeAnalysis.CSharp": // The script has a recursive reference to Microsoft.CodeAnalysis.CSharp.Scripting, which references these assemblies. // The script doesn't reference the assembly explicitly. AssertEx.SetEqual(new[] { "<implicit>", "global" }, aliases); break; case "Microsoft.CodeAnalysis": case "System.Collections.Immutable": // The script has a recursive reference to Microsoft.CodeAnalysis.CSharp.Scripting, which references these assemblies. // Microsoft.CodeAnalysis.Scripting contains host object and is thus referenced recursively with <host> alias. // The script doesn't reference the assemblies explicitly. AssertEx.SetEqual(new[] { "<implicit>", "<host>", "global" }, aliases); break; default: if (name == corAssemblyName) { // Host object depends on System.Object, thus <host> is applied on CorLib. AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); } else if (name == hostObjectAssemblyName) { // Host object is defined in an assembly that CSharpScript depends on. // CSharpScript assembly was references (recursively) hence host object assembly is // available to the script (global alias). AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); } break; } } } [ConditionalFact(typeof(ClrOnly), Reason = "https://github.com/dotnet/roslyn/issues/30303")] public void HostObjectAssemblyReference3() { string source = $@" #r ""{typeof(CSharpScript).GetTypeInfo().Assembly.ManifestModule.FullyQualifiedName}"" typeof(Microsoft.CodeAnalysis.Scripting.Script) "; var scriptCompilation = CSharpScript.Create( source, ScriptOptions.Default.WithMetadataResolver(TestRuntimeMetadataReferenceResolver.Instance), globalsType: typeof(CommandLineScriptGlobals)).GetCompilation(); scriptCompilation.VerifyDiagnostics(); string corAssemblyName = typeof(object).GetTypeInfo().Assembly.GetName().Name; string hostObjectAssemblyName = scriptCompilation.ScriptCompilationInfo.GlobalsType.GetTypeInfo().Assembly.GetName().Name; // The host adds // 1) a reference to typeof(object).Assembly // 2) a reference to GlobalsType with alias <host> applied recursively. // References returned from ResolveMissingAssembly have <implicit> alias. foreach (var (assembly, aliases) in scriptCompilation.GetBoundReferenceManager().GetReferencedAssemblyAliases()) { string name = assembly.Identity.Name; switch (name) { case "Microsoft.CodeAnalysis.CSharp.Scripting": // we have an explicit reference to CSharpScript assembly: AssertEx.SetEqual(Array.Empty<string>(), aliases); break; case "Microsoft.CodeAnalysis.CSharp": // The script has a recursive reference to Microsoft.CodeAnalysis.CSharp.Scripting, which references these assemblies. // The script doesn't reference the assembly explicitly. AssertEx.SetEqual(new[] { "<implicit>", "global" }, aliases); break; case "Microsoft.CodeAnalysis": case "System.Collections.Immutable": // The script has a recursive reference to Microsoft.CodeAnalysis.CSharp.Scripting, which references these assemblies. // Microsoft.CodeAnalysis.Scripting contains host object and is thus referenced recursively with <host> alias. // The script doesn't reference the assemblies explicitly. AssertEx.SetEqual(new[] { "<implicit>", "<host>", "global" }, aliases); break; default: if (name == corAssemblyName) { // Host object depends on System.Object, thus <host> is applied on CorLib. AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); } else if (name == hostObjectAssemblyName) { // Host object is defined in an assembly that CSharpScript depends on. // CSharpScript assembly was references (recursively) hence host object assembly is // available to the script (global alias). AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); } break; } } } public class E { public bool TryGetValue(out object obj) { obj = new object(); return true; } } [Fact] [WorkItem(39565, "https://github.com/dotnet/roslyn/issues/39565")] public async Task MethodCallWithImplicitReceiverAndOutVar() { var code = @" if(TryGetValue(out var result)){ _ = result; } return true; "; var result = await CSharpScript.EvaluateAsync<bool>(code, globalsType: typeof(E), globals: new E()); Assert.True(result); } public class F { public bool Value = true; } [Fact] public void StaticMethodCannotAccessGlobalInstance() { var code = @" static bool M() { return Value; } return M(); "; var script = CSharpScript.Create<bool>(code, globalsType: typeof(F)); ScriptingTestHelpers.AssertCompilationError(() => script.RunAsync(new F()).Wait(), // (4,9): error CS0120: An object reference is required for the non-static field, method, or property 'InteractiveSessionTests.F.Value' // return Value; Diagnostic(ErrorCode.ERR_ObjectRequired, "Value").WithArguments("Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests.InteractiveSessionTests.F.Value").WithLocation(4, 9)); } [Fact] [WorkItem(39581, "https://github.com/dotnet/roslyn/issues/39581")] public void StaticLocalFunctionCannotAccessGlobalInstance() { var code = @" bool M() { return Inner(); static bool Inner() { return Value; } } return M(); "; var script = CSharpScript.Create<bool>(code, globalsType: typeof(F)); ScriptingTestHelpers.AssertCompilationError(() => script.RunAsync(new F()).Wait(), // (7,10): error CS0120: An object reference is required for the non-static field, method, or property 'InteractiveSessionTests.F.Value' // return Value; Diagnostic(ErrorCode.ERR_ObjectRequired, "Value").WithArguments("Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests.InteractiveSessionTests.F.Value").WithLocation(7, 10)); } [Fact] public async Task LocalFunctionCanAccessGlobalInstance() { var code = @" bool M() { return Inner(); bool Inner() { return Value; } } return M(); "; var result = await CSharpScript.EvaluateAsync<bool>(code, globalsType: typeof(F), globals: new F()); Assert.True(result); } #endregion #region Exceptions [Fact] [WorkItem(6580, "https://github.com/dotnet/roslyn/issues/6580")] [WorkItem(10883, "https://github.com/dotnet/roslyn/issues/10883")] public async Task PreservingDeclarationsOnException1() { var s0 = CSharpScript.Create(@" int i = 10; throw new System.Exception(""Bang!""); int j = 2; "); var s1 = s0.ContinueWith(@" int F() => i + j; "); var state1 = await s1.RunAsync(catchException: e => true); Assert.Equal("Bang!", state1.Exception.Message); var state2 = await state1.ContinueWithAsync<int>("F()"); Assert.Equal(10, state2.ReturnValue); } [Fact] [WorkItem(6580, "https://github.com/dotnet/roslyn/issues/6580")] [WorkItem(10883, "https://github.com/dotnet/roslyn/issues/10883")] public async Task PreservingDeclarationsOnException2() { var s0 = CSharpScript.Create(@" int i = 100; "); var s1 = s0.ContinueWith(@" int j = 20; throw new System.Exception(""Bang!""); int k = 3; "); var s2 = s1.ContinueWith(@" int F() => i + j + k; "); var state2 = await s2.RunAsync(catchException: e => true); Assert.Equal("Bang!", state2.Exception.Message); var state3 = await state2.ContinueWithAsync<int>("F()"); Assert.Equal(120, state3.ReturnValue); } [Fact] [WorkItem(6580, "https://github.com/dotnet/roslyn/issues/6580")] [WorkItem(10883, "https://github.com/dotnet/roslyn/issues/10883")] public async Task PreservingDeclarationsOnException3() { var s0 = CSharpScript.Create(@" int i = 1000; "); var s1 = s0.ContinueWith(@" int j = 200; throw new System.Exception(""Bang!""); int k = 30; "); var s2 = s1.ContinueWith(@" int l = 4; "); var s3 = s2.ContinueWith(@" int F() => i + j + k + l; "); var state3 = await s3.RunAsync(catchException: e => true); Assert.Equal("Bang!", state3.Exception.Message); var state4 = await state3.ContinueWithAsync<int>("F()"); Assert.Equal(1200, state4.ReturnValue); } [Fact] [WorkItem(6580, "https://github.com/dotnet/roslyn/issues/6580")] [WorkItem(10883, "https://github.com/dotnet/roslyn/issues/10883")] public async Task PreservingDeclarationsOnException4() { var state0 = await CSharpScript.RunAsync(@" int i = 1000; "); var state1 = await state0.ContinueWithAsync(@" int j = 200; throw new System.Exception(""Bang 1!""); int k = 30; ", catchException: e => true); Assert.Equal("Bang 1!", state1.Exception.Message); var state2 = await state1.ContinueWithAsync<int>(@" int l = 4; throw new System.Exception(""Bang 2!""); 1 ", catchException: e => true); Assert.Equal("Bang 2!", state2.Exception.Message); var state4 = await state2.ContinueWithAsync(@" i + j + k + l "); Assert.Equal(1204, state4.ReturnValue); } [Fact] public async Task PreservingDeclarationsOnCancellation1() { var cancellationSource = new CancellationTokenSource(); var globals = new StrongBox<CancellationTokenSource>(); globals.Value = cancellationSource; var s0 = CSharpScript.Create(@" int i = 1000; ", globalsType: globals.GetType()); var s1 = s0.ContinueWith(@" int j = 200; Value.Cancel(); int k = 30; "); // cancellation exception is thrown just before we start evaluating s2: var s2 = s1.ContinueWith(@" int l = 4; "); var s3 = s2.ContinueWith(@" int F() => i + j + k + l; "); var state3 = await s3.RunAsync(globals, catchException: e => true, cancellationToken: cancellationSource.Token); Assert.IsType<OperationCanceledException>(state3.Exception); var state4 = await state3.ContinueWithAsync<int>("F()"); Assert.Equal(1230, state4.ReturnValue); } [Fact] public async Task PreservingDeclarationsOnCancellation2() { var cancellationSource = new CancellationTokenSource(); var globals = new StrongBox<CancellationTokenSource>(); globals.Value = cancellationSource; var s0 = CSharpScript.Create(@" int i = 1000; ", globalsType: globals.GetType()); var s1 = s0.ContinueWith(@" int j = 200; int k = 30; "); var s2 = s1.ContinueWith(@" int l = 4; Value.Cancel(); "); // cancellation exception is thrown just before we start evaluating s3: var s3 = s2.ContinueWith(@" int F() => i + j + k + l; "); var state3 = await s3.RunAsync(globals, catchException: e => true, cancellationToken: cancellationSource.Token); Assert.IsType<OperationCanceledException>(state3.Exception); var state4 = await state3.ContinueWithAsync<int>("F()"); Assert.Equal(1234, state4.ReturnValue); } [Fact] public async Task PreservingDeclarationsOnCancellation3() { var cancellationSource = new CancellationTokenSource(); var globals = new StrongBox<CancellationTokenSource>(); globals.Value = cancellationSource; var s0 = CSharpScript.Create(@" int i = 1000; ", globalsType: globals.GetType()); var s1 = s0.ContinueWith(@" int j = 200; Value.Cancel(); int k = 30; "); // cancellation exception is thrown just before we start evaluating s2: var s2 = s1.ContinueWith(@" int l = 4; "); var s3 = s2.ContinueWith(@" int F() => i + j + k + l; "); await Assert.ThrowsAsync<OperationCanceledException>(() => s3.RunAsync(globals, catchException: e => !(e is OperationCanceledException), cancellationToken: cancellationSource.Token)); } #endregion #region Local Functions [Fact] public void LocalFunction_PreviousSubmissionAndGlobal() { var result = CSharpScript.RunAsync( @"int InInitialSubmission() { return LocalFunction(); int LocalFunction() => Y; }", globals: new C()). ContinueWith( @"var lambda = new System.Func<int>(() => { return LocalFunction(); int LocalFunction() => Y + InInitialSubmission(); }); lambda.Invoke()"). Result.ReturnValue; Assert.Equal(4, result); } #endregion } }
// 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.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.Scripting; using Microsoft.CodeAnalysis.Scripting.Hosting; using Microsoft.CodeAnalysis.Scripting.Test; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; using Basic.Reference.Assemblies; namespace Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests { using static TestCompilationFactory; public class HostModel { public readonly int Goo; } public class InteractiveSessionTests : TestBase { internal static readonly Assembly HostAssembly = typeof(InteractiveSessionTests).GetTypeInfo().Assembly; #region Namespaces, Types [Fact(Skip = "https://github.com/dotnet/roslyn/issues/17869")] public void CompilationChain_NestedTypesClass() { var script = CSharpScript.Create(@" static string outerStr = null; public static void Goo(string str) { outerStr = str; } class InnerClass { public string innerStr = null; public void Goo() { Goo(""test""); innerStr = outerStr; } } ").ContinueWith(@" InnerClass iC = new InnerClass(); iC.Goo(); ").ContinueWith(@" System.Console.WriteLine(iC.innerStr); "); ScriptingTestHelpers.RunScriptWithOutput(script, "test"); } [Fact(Skip = "https://github.com/dotnet/roslyn/issues/17869")] public void CompilationChain_NestedTypesStruct() { var script = CSharpScript.Create(@" static string outerStr = null; public static void Goo(string str) { outerStr = str; } struct InnerStruct { public string innerStr; public void Goo() { Goo(""test""); innerStr = outerStr; } } ").ContinueWith(@" InnerStruct iS = new InnerStruct(); iS.Goo(); ").ContinueWith(@" System.Console.WriteLine(iS.innerStr); "); ScriptingTestHelpers.RunScriptWithOutput(script, "test"); } [Fact] public async Task CompilationChain_InterfaceTypes() { var script = CSharpScript.Create(@" interface I1 { int Goo();} class InnerClass : I1 { public int Goo() { return 1; } }").ContinueWith(@" I1 iC = new InnerClass(); ").ContinueWith(@" iC.Goo() "); Assert.Equal(1, await script.EvaluateAsync()); } [Fact] public void ScriptMemberAccessFromNestedClass() { var script = CSharpScript.Create(@" object field; object Property { get; set; } void Method() { } ").ContinueWith(@" class C { public void Goo() { object f = field; object p = Property; Method(); } } "); ScriptingTestHelpers.AssertCompilationError(script, // (6,20): error CS0120: An object reference is required for the non-static field, method, or property 'field' Diagnostic(ErrorCode.ERR_ObjectRequired, "field").WithArguments("field"), // (7,20): error CS0120: An object reference is required for the non-static field, method, or property 'Property' Diagnostic(ErrorCode.ERR_ObjectRequired, "Property").WithArguments("Property"), // (8,9): error CS0120: An object reference is required for the non-static field, method, or property 'Method()' Diagnostic(ErrorCode.ERR_ObjectRequired, "Method").WithArguments("Method()")); } #region Anonymous Types [Fact] public void AnonymousTypes_TopLevel_MultipleSubmissions() { var script = CSharpScript.Create(@" var a = new { f = 1 }; ").ContinueWith(@" var b = new { g = 1 }; ").ContinueWith<Array>(@" var c = new { f = 1 }; var d = new { g = 1 }; new object[] { new[] { a, c }, new[] { b, d } } "); var result = script.EvaluateAsync().Result; Assert.Equal(2, result.Length); Assert.Equal(2, ((Array)result.GetValue(0)).Length); Assert.Equal(2, ((Array)result.GetValue(1)).Length); } [Fact] public void AnonymousTypes_TopLevel_MultipleSubmissions2() { var script = CSharpScript.Create(@" var a = new { f = 1 }; ").ContinueWith(@" var b = new { g = 1 }; ").ContinueWith(@" var c = new { f = 1 }; var d = new { g = 1 }; object.ReferenceEquals(a.GetType(), c.GetType()).ToString() + "" "" + object.ReferenceEquals(a.GetType(), b.GetType()).ToString() + "" "" + object.ReferenceEquals(b.GetType(), d.GetType()).ToString() "); Assert.Equal("True False True", script.EvaluateAsync().Result.ToString()); } [WorkItem(543863, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543863")] [Fact] public void AnonymousTypes_Redefinition() { var script = CSharpScript.Create(@" var x = new { Goo = ""goo"" }; ").ContinueWith(@" var x = new { Goo = ""goo"" }; ").ContinueWith(@" x.Goo "); var result = script.EvaluateAsync().Result; Assert.Equal("goo", result); } [Fact] public void AnonymousTypes_TopLevel_Empty() { var script = CSharpScript.Create(@" var a = new { }; ").ContinueWith(@" var b = new { }; ").ContinueWith<Array>(@" var c = new { }; var d = new { }; new object[] { new[] { a, c }, new[] { b, d } } "); var result = script.EvaluateAsync().Result; Assert.Equal(2, result.Length); Assert.Equal(2, ((Array)result.GetValue(0)).Length); Assert.Equal(2, ((Array)result.GetValue(1)).Length); } #endregion #region Dynamic [Fact] public void Dynamic_Expando() { var options = ScriptOptions.Default. AddReferences( typeof(Microsoft.CSharp.RuntimeBinder.RuntimeBinderException).GetTypeInfo().Assembly, typeof(System.Dynamic.ExpandoObject).GetTypeInfo().Assembly). AddImports( "System.Dynamic"); var script = CSharpScript.Create(@" dynamic expando = new ExpandoObject(); ", options).ContinueWith(@" expando.goo = 1; ").ContinueWith(@" expando.goo "); Assert.Equal(1, script.EvaluateAsync().Result); } #endregion [Fact] public void Enums() { var script = CSharpScript.Create(@" public enum Enum1 { A, B, C } Enum1 E = Enum1.C; E "); var e = script.EvaluateAsync().Result; Assert.True(e.GetType().GetTypeInfo().IsEnum, "Expected enum"); Assert.Equal(typeof(int), Enum.GetUnderlyingType(e.GetType())); } #endregion #region Attributes [Fact] public void PInvoke() { var source = @" using System.Runtime.CompilerServices; using System.Runtime.InteropServices; [DllImport(""goo"", EntryPoint = ""bar"", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode, ExactSpelling = true, PreserveSig = true, SetLastError = true, BestFitMapping = true, ThrowOnUnmappableChar = true)] public static extern void M(); class C { } typeof(C) "; Type c = CSharpScript.EvaluateAsync<Type>(source).Result; var m = c.DeclaringType.GetTypeInfo().GetDeclaredMethod("M"); Assert.Equal(MethodImplAttributes.PreserveSig, m.MethodImplementationFlags); // Reflection synthesizes DllImportAttribute var dllImport = (DllImportAttribute)m.GetCustomAttributes(typeof(DllImportAttribute), inherit: false).Single(); Assert.True(dllImport.BestFitMapping); Assert.Equal(CallingConvention.Cdecl, dllImport.CallingConvention); Assert.Equal(CharSet.Unicode, dllImport.CharSet); Assert.True(dllImport.ExactSpelling); Assert.True(dllImport.SetLastError); Assert.True(dllImport.PreserveSig); Assert.True(dllImport.ThrowOnUnmappableChar); Assert.Equal("bar", dllImport.EntryPoint); Assert.Equal("goo", dllImport.Value); } #endregion // extension methods - must be private, can be top level #region Modifiers and Visibility [Fact] public void PrivateTopLevel() { var script = CSharpScript.Create<int>(@" private int goo() { return 1; } private static int bar() { return 10; } private static int f = 100; goo() + bar() + f "); Assert.Equal(111, script.EvaluateAsync().Result); script = script.ContinueWith<int>(@" goo() + bar() + f "); Assert.Equal(111, script.EvaluateAsync().Result); script = script.ContinueWith<int>(@" class C { public static int baz() { return bar() + f; } } C.baz() "); Assert.Equal(110, script.EvaluateAsync().Result); } [Fact] public void NestedVisibility() { var script = CSharpScript.Create(@" private class C { internal class D { internal static int goo() { return 1; } } private class E { internal static int goo() { return 1; } } public class F { internal protected static int goo() { return 1; } } internal protected class G { internal static int goo() { return 1; } } } "); Assert.Equal(1, script.ContinueWith<int>("C.D.goo()").EvaluateAsync().Result); Assert.Equal(1, script.ContinueWith<int>("C.F.goo()").EvaluateAsync().Result); Assert.Equal(1, script.ContinueWith<int>("C.G.goo()").EvaluateAsync().Result); ScriptingTestHelpers.AssertCompilationError(script.ContinueWith<int>(@"C.E.goo()"), // error CS0122: 'C.E' is inaccessible due to its protection level Diagnostic(ErrorCode.ERR_BadAccess, "E").WithArguments("C.E")); } [Fact] public void Fields_Visibility() { var script = CSharpScript.Create(@" private int i = 2; // test comment; public int j = 2; protected int k = 2; internal protected int l = 2; internal int pi = 2; ").ContinueWith(@" i = i + i; j = j + j; k = k + k; l = l + l; ").ContinueWith(@" pi = i + j + k + l; "); Assert.Equal(4, script.ContinueWith<int>("i").EvaluateAsync().Result); Assert.Equal(4, script.ContinueWith<int>("j").EvaluateAsync().Result); Assert.Equal(4, script.ContinueWith<int>("k").EvaluateAsync().Result); Assert.Equal(4, script.ContinueWith<int>("l").EvaluateAsync().Result); Assert.Equal(16, script.ContinueWith<int>("pi").EvaluateAsync().Result); } [WorkItem(100639, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/100639")] [Fact] public void ExternDestructor() { var script = CSharpScript.Create( @"class C { extern ~C(); }"); Assert.Null(script.EvaluateAsync().Result); } #endregion #region Chaining [Fact] public void CompilationChain_BasicFields() { var script = CSharpScript.Create("var x = 1;").ContinueWith("x"); Assert.Equal(1, script.EvaluateAsync().Result); } [Fact] public void CompilationChain_GlobalNamespaceAndUsings() { var result = CSharpScript.Create("using InteractiveFixtures.C;", ScriptOptions.Default.AddReferences(HostAssembly)). ContinueWith("using InteractiveFixtures.C;"). ContinueWith("System.Environment.ProcessorCount"). EvaluateAsync().Result; Assert.Equal(Environment.ProcessorCount, result); } [Fact] public void CompilationChain_CurrentSubmissionUsings() { var s0 = CSharpScript.RunAsync("", ScriptOptions.Default.AddReferences(HostAssembly)); var state = s0. ContinueWith("class X { public int goo() { return 1; } }"). ContinueWith("class X { public int goo() { return 1; } }"). ContinueWith("using InteractiveFixtures.A;"). ContinueWith("new X().goo()"); Assert.Equal(1, state.Result.ReturnValue); state = s0. ContinueWith("class X { public int goo() { return 1; } }"). ContinueWith(@" using InteractiveFixtures.A; new X().goo() "); Assert.Equal(1, state.Result.ReturnValue); } [Fact] public void CompilationChain_UsingDuplicates() { var script = CSharpScript.Create(@" using System; using System; ").ContinueWith(@" using System; using System; ").ContinueWith(@" Environment.ProcessorCount "); Assert.Equal(Environment.ProcessorCount, script.EvaluateAsync().Result); } [Fact] public void CompilationChain_GlobalImports() { var options = ScriptOptions.Default.AddImports("System"); var state = CSharpScript.RunAsync("Environment.ProcessorCount", options); Assert.Equal(Environment.ProcessorCount, state.Result.ReturnValue); state = state.ContinueWith("Environment.ProcessorCount"); Assert.Equal(Environment.ProcessorCount, state.Result.ReturnValue); } [Fact] public void CompilationChain_Accessibility() { // Submissions have internal and protected access to one another. var state1 = CSharpScript.RunAsync("internal class C1 { } protected int X; 1"); var compilation1 = state1.Result.Script.GetCompilation(); compilation1.VerifyDiagnostics( // (1,39): warning CS0628: 'X': new protected member declared in sealed type // internal class C1 { } protected int X; 1 Diagnostic(ErrorCode.WRN_ProtectedInSealed, "X").WithArguments("X").WithLocation(1, 39) ); Assert.Equal(1, state1.Result.ReturnValue); var state2 = state1.ContinueWith("internal class C2 : C1 { } 2"); var compilation2 = state2.Result.Script.GetCompilation(); compilation2.VerifyDiagnostics(); Assert.Equal(2, state2.Result.ReturnValue); var c2C2 = (INamedTypeSymbol)lookupMember(compilation2, "Submission#1", "C2"); var c2C1 = c2C2.BaseType; var c2X = lookupMember(compilation1, "Submission#0", "X"); Assert.True(compilation2.IsSymbolAccessibleWithin(c2C1, c2C2)); Assert.True(compilation2.IsSymbolAccessibleWithin(c2C2, c2C1)); Assert.True(compilation2.IsSymbolAccessibleWithin(c2X, c2C2)); // access not enforced among submission symbols var state3 = state2.ContinueWith("private class C3 : C2 { } 3"); var compilation3 = state3.Result.Script.GetCompilation(); compilation3.VerifyDiagnostics(); Assert.Equal(3, state3.Result.ReturnValue); var c3C3 = (INamedTypeSymbol)lookupMember(compilation3, "Submission#2", "C3"); var c3C1 = c3C3.BaseType; Assert.Throws<ArgumentException>(() => compilation2.IsSymbolAccessibleWithin(c3C3, c3C1)); Assert.True(compilation3.IsSymbolAccessibleWithin(c3C3, c3C1)); INamedTypeSymbol lookupType(Compilation c, string name) { return c.GlobalNamespace.GetMembers(name).Single() as INamedTypeSymbol; } ISymbol lookupMember(Compilation c, string typeName, string memberName) { return lookupType(c, typeName).GetMembers(memberName).Single(); } } [Fact] public void CompilationChain_SubmissionSlotResize() { var state = CSharpScript.RunAsync(""); for (int i = 0; i < 17; i++) { state = state.ContinueWith(@"public int i = 1;"); } ScriptingTestHelpers.ContinueRunScriptWithOutput(state, @"System.Console.WriteLine(i);", "1"); } [Fact] public void CompilationChain_UsingNotHidingPreviousSubmission() { int result1 = CSharpScript.Create("using System;"). ContinueWith("int Environment = 1;"). ContinueWith<int>("Environment"). EvaluateAsync().Result; Assert.Equal(1, result1); int result2 = CSharpScript.Create("int Environment = 1;"). ContinueWith("using System;"). ContinueWith<int>("Environment"). EvaluateAsync().Result; Assert.Equal(1, result2); } [Fact] public void CompilationChain_DefinitionHidesGlobal() { var result = CSharpScript.Create("int System = 1;"). ContinueWith("System"). EvaluateAsync().Result; Assert.Equal(1, result); } public class C1 { public readonly int System = 1; public readonly int Environment = 2; } /// <summary> /// Symbol declaration in host object model hides global definition. /// </summary> [Fact] public void CompilationChain_HostObjectMembersHidesGlobal() { var result = CSharpScript.RunAsync("System", globals: new C1()). Result.ReturnValue; Assert.Equal(1, result); } [Fact] public void CompilationChain_UsingNotHidingHostObjectMembers() { var result = CSharpScript.RunAsync("using System;", globals: new C1()). ContinueWith("Environment"). Result.ReturnValue; Assert.Equal(2, result); } [Fact] public void CompilationChain_DefinitionHidesHostObjectMembers() { var result = CSharpScript.RunAsync("int System = 2;", globals: new C1()). ContinueWith("System"). Result.ReturnValue; Assert.Equal(2, result); } [Fact] public void Submissions_ExecutionOrder1() { var s0 = CSharpScript.Create("int x = 1;"); var s1 = s0.ContinueWith("int y = 2;"); var s2 = s1.ContinueWith<int>("x + y"); Assert.Equal(3, s2.EvaluateAsync().Result); Assert.Null(s1.EvaluateAsync().Result); Assert.Null(s0.EvaluateAsync().Result); Assert.Equal(3, s2.EvaluateAsync().Result); Assert.Null(s1.EvaluateAsync().Result); Assert.Null(s0.EvaluateAsync().Result); Assert.Equal(3, s2.EvaluateAsync().Result); Assert.Equal(3, s2.EvaluateAsync().Result); } [Fact] public async Task Submissions_ExecutionOrder2() { var s0 = await CSharpScript.RunAsync("int x = 1;"); Assert.Throws<CompilationErrorException>(() => s0.ContinueWithAsync("invalid$syntax").Result); var s1 = await s0.ContinueWithAsync("x = 2; x = 10"); Assert.Throws<CompilationErrorException>(() => s1.ContinueWithAsync("invalid$syntax").Result); Assert.Throws<CompilationErrorException>(() => s1.ContinueWithAsync("x = undefined_symbol").Result); var s2 = await s1.ContinueWithAsync("int y = 2;"); Assert.Null(s2.ReturnValue); var s3 = await s2.ContinueWithAsync("x + y"); Assert.Equal(12, s3.ReturnValue); } public class HostObjectWithOverrides { public override bool Equals(object obj) => true; public override int GetHashCode() => 1234567; public override string ToString() => "HostObjectToString impl"; } [Fact] public async Task ObjectOverrides1() { var state0 = await CSharpScript.RunAsync("", globals: new HostObjectWithOverrides()); var state1 = await state0.ContinueWithAsync<bool>("Equals(null)"); Assert.True(state1.ReturnValue); var state2 = await state1.ContinueWithAsync<int>("GetHashCode()"); Assert.Equal(1234567, state2.ReturnValue); var state3 = await state2.ContinueWithAsync<string>("ToString()"); Assert.Equal("HostObjectToString impl", state3.ReturnValue); } [Fact] public async Task ObjectOverrides2() { var state0 = await CSharpScript.RunAsync("", globals: new object()); var state1 = await state0.ContinueWithAsync<bool>(@" object x = 1; object y = x; ReferenceEquals(x, y)"); Assert.True(state1.ReturnValue); var state2 = await state1.ContinueWithAsync<string>("ToString()"); Assert.Equal("System.Object", state2.ReturnValue); var state3 = await state2.ContinueWithAsync<bool>("Equals(null)"); Assert.False(state3.ReturnValue); } [Fact] public void ObjectOverrides3() { var state0 = CSharpScript.RunAsync(""); var src1 = @" Equals(null); GetHashCode(); ToString(); ReferenceEquals(null, null);"; ScriptingTestHelpers.AssertCompilationError(state0, src1, // (2,1): error CS0103: The name 'Equals' does not exist in the current context Diagnostic(ErrorCode.ERR_NameNotInContext, "Equals").WithArguments("Equals"), // (3,1): error CS0103: The name 'GetHashCode' does not exist in the current context Diagnostic(ErrorCode.ERR_NameNotInContext, "GetHashCode").WithArguments("GetHashCode"), // (4,1): error CS0103: The name 'ToString' does not exist in the current context Diagnostic(ErrorCode.ERR_NameNotInContext, "ToString").WithArguments("ToString"), // (5,1): error CS0103: The name 'ReferenceEquals' does not exist in the current context Diagnostic(ErrorCode.ERR_NameNotInContext, "ReferenceEquals").WithArguments("ReferenceEquals")); var src2 = @" public override string ToString() { return null; } "; ScriptingTestHelpers.AssertCompilationError(state0, src2, // (1,24): error CS0115: 'ToString()': no suitable method found to override Diagnostic(ErrorCode.ERR_OverrideNotExpected, "ToString").WithArguments("ToString()")); } #endregion #region Generics [Fact, WorkItem(201759, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/201759")] public void CompilationChain_GenericTypes() { var script = CSharpScript.Create(@" class InnerClass<T> { public int method(int value) { return value + 1; } public int field = 2; }").ContinueWith(@" InnerClass<int> iC = new InnerClass<int>(); ").ContinueWith(@" iC.method(iC.field) "); Assert.Equal(3, script.EvaluateAsync().Result); } [WorkItem(529243, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/529243")] [Fact] public void RecursiveBaseType() { CSharpScript.EvaluateAsync(@" class A<T> { } class B<T> : A<B<B<T>>> { } "); } [WorkItem(5378, "DevDiv_Projects/Roslyn")] [Fact] public void CompilationChain_GenericMethods() { var s0 = CSharpScript.Create(@" public int goo<T, R>(T arg) { return 1; } public static T bar<T>(T i) { return i; } "); Assert.Equal(1, s0.ContinueWith(@"goo<int, int>(1)").EvaluateAsync().Result); Assert.Equal(5, s0.ContinueWith(@"bar(5)").EvaluateAsync().Result); } /// <summary> /// Tests that we emit ldftn and ldvirtftn instructions correctly. /// </summary> [Fact] public void CompilationChain_Ldftn() { var state = CSharpScript.RunAsync(@" public class C { public static int f() { return 1; } public int g() { return 10; } public virtual int h() { return 100; } public static int gf<T>() { return 2; } public int gg<T>() { return 20; } public virtual int gh<T>() { return 200; } } "); state = state.ContinueWith(@" new System.Func<int>(C.f)() + new System.Func<int>(new C().g)() + new System.Func<int>(new C().h)()" ); Assert.Equal(111, state.Result.ReturnValue); state = state.ContinueWith(@" new System.Func<int>(C.gf<int>)() + new System.Func<int>(new C().gg<object>)() + new System.Func<int>(new C().gh<bool>)() "); Assert.Equal(222, state.Result.ReturnValue); } /// <summary> /// Tests that we emit ldftn and ldvirtftn instructions correctly. /// </summary> [Fact] public void CompilationChain_Ldftn_GenericType() { var state = CSharpScript.RunAsync(@" public class C<S> { public static int f() { return 1; } public int g() { return 10; } public virtual int h() { return 100; } public static int gf<T>() { return 2; } public int gg<T>() { return 20; } public virtual int gh<T>() { return 200; } } "); state = state.ContinueWith(@" new System.Func<int>(C<byte>.f)() + new System.Func<int>(new C<byte>().g)() + new System.Func<int>(new C<byte>().h)() "); Assert.Equal(111, state.Result.ReturnValue); state = state.ContinueWith(@" new System.Func<int>(C<byte>.gf<int>)() + new System.Func<int>(new C<byte>().gg<object>)() + new System.Func<int>(new C<byte>().gh<bool>)() "); Assert.Equal(222, state.Result.ReturnValue); } #endregion #region Statements and Expressions [Fact] public void IfStatement() { var result = CSharpScript.EvaluateAsync<int>(@" using static System.Console; int x; if (true) { x = 5; } else { x = 6; } x ").Result; Assert.Equal(5, result); } [Fact] public void ExprStmtParenthesesUsedToOverrideDefaultEval() { Assert.Equal(18, CSharpScript.EvaluateAsync<int>("(4 + 5) * 2").Result); Assert.Equal(1, CSharpScript.EvaluateAsync<long>("6 / (2 * 3)").Result); } [WorkItem(5397, "DevDiv_Projects/Roslyn")] [Fact] public void TopLevelLambda() { var s = CSharpScript.RunAsync(@" using System; delegate void TestDelegate(string s); "); s = s.ContinueWith(@" TestDelegate testDelB = delegate (string s) { Console.WriteLine(s); }; "); ScriptingTestHelpers.ContinueRunScriptWithOutput(s, @"testDelB(""hello"");", "hello"); } [Fact] public void Closure() { var f = CSharpScript.EvaluateAsync<Func<int, int>>(@" int Goo(int arg) { return arg + 1; } System.Func<int, int> f = (arg) => { return Goo(arg); }; f ").Result; Assert.Equal(3, f(2)); } [Fact] public void Closure2() { var result = CSharpScript.EvaluateAsync<List<string>>(@" #r ""System.Core"" using System; using System.Linq; using System.Collections.Generic; List<string> result = new List<string>(); string s = ""hello""; Enumerable.ToList(Enumerable.Range(1, 2)).ForEach(x => result.Add(s)); result ").Result; AssertEx.Equal(new[] { "hello", "hello" }, result); } [Fact] public void UseDelegateMixStaticAndDynamic() { var f = CSharpScript.RunAsync("using System;"). ContinueWith("int Sqr(int x) {return x*x;}"). ContinueWith<Func<int, int>>("new Func<int,int>(Sqr)").Result.ReturnValue; Assert.Equal(4, f(2)); } [WorkItem(9229, "DevDiv_Projects/Roslyn")] [Fact] public void Arrays() { var s = CSharpScript.RunAsync(@" int[] arr_1 = { 1, 2, 3 }; int[] arr_2 = new int[] { 1, 2, 3 }; int[] arr_3 = new int[5]; ").ContinueWith(@" arr_2[0] = 5; "); Assert.Equal(3, s.ContinueWith(@"arr_1[2]").Result.ReturnValue); Assert.Equal(5, s.ContinueWith(@"arr_2[0]").Result.ReturnValue); Assert.Equal(0, s.ContinueWith(@"arr_3[0]").Result.ReturnValue); } [Fact] public void FieldInitializers() { var result = CSharpScript.EvaluateAsync<List<int>>(@" using System.Collections.Generic; static List<int> result = new List<int>(); int b = 2; int a; int x = 1, y = b; static int g = 1; static int f = g + 1; a = x + y; result.Add(a); int z = 4 + f; result.Add(z); result.Add(a * z); result ").Result; Assert.Equal(3, result.Count); Assert.Equal(3, result[0]); Assert.Equal(6, result[1]); Assert.Equal(18, result[2]); } [Fact] public void FieldInitializersWithBlocks() { var result = CSharpScript.EvaluateAsync<List<int>>(@" using System.Collections.Generic; static List<int> result = new List<int>(); const int constant = 1; { int x = constant; result.Add(x); } int field = 2; { int x = field; result.Add(x); } result.Add(constant); result.Add(field); result ").Result; Assert.Equal(4, result.Count); Assert.Equal(1, result[0]); Assert.Equal(2, result[1]); Assert.Equal(1, result[2]); Assert.Equal(2, result[3]); } [Fact] public void TestInteractiveClosures() { var result = CSharpScript.RunAsync(@" using System.Collections.Generic; static List<int> result = new List<int>();"). ContinueWith("int x = 1;"). ContinueWith("System.Func<int> f = () => x++;"). ContinueWith("result.Add(f());"). ContinueWith("result.Add(x);"). ContinueWith<List<int>>("result").Result.ReturnValue; Assert.Equal(2, result.Count); Assert.Equal(1, result[0]); Assert.Equal(2, result[1]); } [Fact] public void ExtensionMethods() { var options = ScriptOptions.Default.AddReferences( typeof(Enumerable).GetTypeInfo().Assembly); var result = CSharpScript.EvaluateAsync<int>(@" using System.Linq; string[] fruit = { ""banana"", ""orange"", ""lime"", ""apple"", ""kiwi"" }; fruit.Skip(1).Where(s => s.Length > 4).Count()", options).Result; Assert.Equal(2, result); } [Fact] public void ImplicitlyTypedFields() { var result = CSharpScript.EvaluateAsync<object[]>(@" var x = 1; var y = x; var z = goo(x); string goo(int a) { return null; } int goo(string a) { return 0; } new object[] { x, y, z } ").Result; AssertEx.Equal(new object[] { 1, 1, null }, result); } /// <summary> /// Name of PrivateImplementationDetails type needs to be unique across submissions. /// The compiler should suffix it with a MVID of the current submission module so we should be fine. /// </summary> [WorkItem(949559, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/949559")] [WorkItem(540237, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/540237")] [WorkItem(9229, "DevDiv_Projects/Roslyn")] [WorkItem(2721, "https://github.com/dotnet/roslyn/issues/2721")] [Fact] public async Task PrivateImplementationDetailsType() { var result1 = await CSharpScript.EvaluateAsync<int[]>("new int[] { 1,2,3,4 }"); AssertEx.Equal(new[] { 1, 2, 3, 4 }, result1); var result2 = await CSharpScript.EvaluateAsync<int[]>("new int[] { 1,2,3,4,5 }"); AssertEx.Equal(new[] { 1, 2, 3, 4, 5 }, result2); var s1 = await CSharpScript.RunAsync<int[]>("new int[] { 1,2,3,4,5,6 }"); AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6 }, s1.ReturnValue); var s2 = await s1.ContinueWithAsync<int[]>("new int[] { 1,2,3,4,5,6,7 }"); AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7 }, s2.ReturnValue); var s3 = await s2.ContinueWithAsync<int[]>("new int[] { 1,2,3,4,5,6,7,8 }"); AssertEx.Equal(new[] { 1, 2, 3, 4, 5, 6, 7, 8 }, s3.ReturnValue); } [Fact] public void NoAwait() { // No await. The return value is Task<int> rather than int. var result = CSharpScript.EvaluateAsync("System.Threading.Tasks.Task.FromResult(1)").Result; Assert.Equal(1, ((Task<int>)result).Result); } /// <summary> /// 'await' expression at top-level. /// </summary> [Fact] public void Await() { Assert.Equal(2, CSharpScript.EvaluateAsync("await System.Threading.Tasks.Task.FromResult(2)").Result); } /// <summary> /// 'await' in sub-expression. /// </summary> [Fact] public void AwaitSubExpression() { Assert.Equal(3, CSharpScript.EvaluateAsync<int>("0 + await System.Threading.Tasks.Task.FromResult(3)").Result); } [Fact] public void AwaitVoid() { var task = CSharpScript.EvaluateAsync<object>("await System.Threading.Tasks.Task.Run(() => { })"); Assert.Null(task.Result); Assert.Equal(TaskStatus.RanToCompletion, task.Status); } /// <summary> /// 'await' in lambda should be ignored. /// </summary> [Fact] public async Task AwaitInLambda() { var s0 = await CSharpScript.RunAsync(@" using System; using System.Threading.Tasks; static T F<T>(Func<Task<T>> f) { return f().Result; } static T G<T>(T t, Func<T, Task<T>> f) { return f(t).Result; }"); var s1 = await s0.ContinueWithAsync("F(async () => await Task.FromResult(4))"); Assert.Equal(4, s1.ReturnValue); var s2 = await s1.ContinueWithAsync("G(5, async x => await Task.FromResult(x))"); Assert.Equal(5, s2.ReturnValue); } [Fact] public void AwaitChain1() { var options = ScriptOptions.Default. AddReferences(typeof(Task).GetTypeInfo().Assembly). AddImports("System.Threading.Tasks"); var state = CSharpScript.RunAsync("int i = 0;", options). ContinueWith("await Task.Delay(1); i++;"). ContinueWith("await Task.Delay(1); i++;"). ContinueWith("await Task.Delay(1); i++;"). ContinueWith("i"). Result; Assert.Equal(3, state.ReturnValue); } [Fact] public void AwaitChain2() { var options = ScriptOptions.Default. AddReferences(typeof(Task).GetTypeInfo().Assembly). AddImports("System.Threading.Tasks"); var state = CSharpScript.Create("int i = 0;", options). ContinueWith("await Task.Delay(1); i++;"). ContinueWith("await Task.Delay(1); i++;"). RunAsync(). ContinueWith("await Task.Delay(1); i++;"). ContinueWith("i"). Result; Assert.Equal(3, state.ReturnValue); } [Fact, WorkItem(39548, "https://github.com/dotnet/roslyn/issues/39548")] public async Task PatternVariableDeclaration() { var state = await CSharpScript.RunAsync("var x = (false, 4);"); state = await state.ContinueWithAsync("x is (false, var y)"); Assert.Equal(true, state.ReturnValue); } [Fact, WorkItem(42368, "https://github.com/dotnet/roslyn/issues/42368")] public async Task CSharp9PatternForms() { var options = ScriptOptions.Default.WithLanguageVersion(MessageID.IDS_FeatureAndPattern.RequiredVersion()); var state = await CSharpScript.RunAsync("object x = 1;", options: options); state = await state.ContinueWithAsync("x is long or int", options: options); Assert.Equal(true, state.ReturnValue); state = await state.ContinueWithAsync("x is int and < 10", options: options); Assert.Equal(true, state.ReturnValue); state = await state.ContinueWithAsync("x is (long or < 10L)", options: options); Assert.Equal(false, state.ReturnValue); state = await state.ContinueWithAsync("x is not > 100", options: options); Assert.Equal(true, state.ReturnValue); } #endregion #region References [Fact(Skip = "https://github.com/dotnet/roslyn/issues/53391")] [WorkItem(15860, "https://github.com/dotnet/roslyn/issues/53391")] public void ReferenceDirective_FileWithDependencies() { var file1 = Temp.CreateFile(); var file2 = Temp.CreateFile(); var lib1 = CreateCSharpCompilationWithCorlib(@" public interface I { int F(); }"); lib1.Emit(file1.Path); var lib2 = CreateCSharpCompilation(@" public class C : I { public int F() => 1; }", new MetadataReference[] { NetStandard13.SystemRuntime, lib1.ToMetadataReference() }); lib2.Emit(file2.Path); object result = CSharpScript.EvaluateAsync($@" #r ""{file1.Path}"" #r ""{file2.Path}"" new C() ").Result; Assert.NotNull(result); } [ConditionalFact(typeof(WindowsOnly)), WorkItem(15860, "https://github.com/dotnet/roslyn/issues/15860")] public void ReferenceDirective_RelativeToBaseParent() { var file = Temp.CreateFile(); var lib = CreateCSharpCompilationWithCorlib("public class C {}"); lib.Emit(file.Path); string dir = Path.Combine(Path.GetDirectoryName(file.Path), "subdir"); string libFileName = Path.GetFileName(file.Path); string scriptPath = Path.Combine(dir, "a.csx"); var script = CSharpScript.Create( $@"#r ""{Path.Combine("..", libFileName)}""", ScriptOptions.Default.WithFilePath(scriptPath)); script.GetCompilation().VerifyDiagnostics(); } [ConditionalFact(typeof(WindowsOnly)), WorkItem(15860, "https://github.com/dotnet/roslyn/issues/15860")] public void ReferenceDirective_RelativeToBaseRoot() { var file = Temp.CreateFile(); var lib = CreateCSharpCompilationWithCorlib("public class C {}"); lib.Emit(file.Path); string root = Path.GetPathRoot(file.Path); string unrooted = file.Path.Substring(root.Length); string dir = Path.Combine(root, "goo", "bar", "baz"); string scriptPath = Path.Combine(dir, "a.csx"); var script = CSharpScript.Create( $@"#r ""\{unrooted}""", ScriptOptions.Default.WithFilePath(scriptPath)); script.GetCompilation().VerifyDiagnostics(); } [Fact] public void ExtensionPriority1() { string mainName = "Main_" + Guid.NewGuid(); string libName = "Lib_" + Guid.NewGuid(); var libExe = CreateCSharpCompilationWithCorlib(@"public class C { public string F = ""exe""; }", libName); var libDll = CreateCSharpCompilationWithCorlib(@"public class C { public string F = ""dll""; }", libName); var libWinmd = CreateCSharpCompilationWithCorlib(@"public class C { public string F = ""winmd""; }", libName); var main = CreateCSharpCompilation( @"public static class M { public static readonly C X = new C(); }", new MetadataReference[] { NetStandard13.SystemRuntime, libExe.ToMetadataReference() }, mainName); var exeImage = libExe.EmitToArray(); var dllImage = libDll.EmitToArray(); var winmdImage = libWinmd.EmitToArray(); var mainImage = main.EmitToArray(); var dir = Temp.CreateDirectory(); var fileMain = dir.CreateFile(mainName + ".dll").WriteAllBytes(mainImage); dir.CreateFile(libName + ".exe").WriteAllBytes(exeImage); dir.CreateFile(libName + ".winmd").WriteAllBytes(winmdImage); var r2 = CSharpScript.Create($@"#r ""{fileMain.Path}""").ContinueWith($@"M.X.F").RunAsync().Result.ReturnValue; Assert.Equal("exe", r2); } [Fact] public void ExtensionPriority2() { string mainName = "Main_" + Guid.NewGuid(); string libName = "Lib_" + Guid.NewGuid(); var libExe = CreateCSharpCompilationWithCorlib(@"public class C { public string F = ""exe""; }", libName); var libDll = CreateCSharpCompilationWithCorlib(@"public class C { public string F = ""dll""; }", libName); var libWinmd = CreateCSharpCompilationWithCorlib(@"public class C { public string F = ""winmd""; }", libName); var main = CreateCSharpCompilation( @"public static class M { public static readonly C X = new C(); }", new MetadataReference[] { NetStandard13.SystemRuntime, libExe.ToMetadataReference() }, mainName); var exeImage = libExe.EmitToArray(); var dllImage = libDll.EmitToArray(); var winmdImage = libWinmd.EmitToArray(); var mainImage = main.EmitToArray(); var dir = Temp.CreateDirectory(); var fileMain = dir.CreateFile(mainName + ".dll").WriteAllBytes(mainImage); dir.CreateFile(libName + ".exe").WriteAllBytes(exeImage); dir.CreateFile(libName + ".dll").WriteAllBytes(dllImage); dir.CreateFile(libName + ".winmd").WriteAllBytes(winmdImage); var r2 = CSharpScript.Create($@"#r ""{fileMain.Path}""").ContinueWith($@"M.X.F").RunAsync().Result.ReturnValue; Assert.Equal("dll", r2); } [Fact(Skip = "https://github.com/dotnet/roslyn/issues/6015")] public void UsingExternalAliasesForHiding() { string source = @" namespace N { public class C { } } public class D { } public class E { } "; var libRef = CreateCSharpCompilationWithCorlib(source, "lib").EmitToImageReference(); var script = CSharpScript.Create(@"new C()", ScriptOptions.Default.WithReferences(libRef.WithAliases(new[] { "Hidden" })).WithImports("Hidden::N")); script.Compile().Verify(); } #endregion #region UsingDeclarations [Fact] public void UsingAlias() { object result = CSharpScript.EvaluateAsync(@" using D = System.Collections.Generic.Dictionary<string, int>; D d = new D(); d ").Result; Assert.True(result is Dictionary<string, int>, "Expected Dictionary<string, int>"); } [WorkItem(9229, "DevDiv_Projects/Roslyn")] [Fact] public void Usings1() { var options = ScriptOptions.Default. AddImports("System", "System.Linq"). AddReferences(typeof(Enumerable).GetTypeInfo().Assembly); object result = CSharpScript.EvaluateAsync("new int[] { 1, 2, 3 }.First()", options).Result; Assert.Equal(1, result); } [WorkItem(9229, "DevDiv_Projects/Roslyn")] [Fact] public void Usings2() { var options = ScriptOptions.Default. AddImports("System", "System.Linq"). AddReferences(typeof(Enumerable).GetTypeInfo().Assembly); var s1 = CSharpScript.RunAsync("new int[] { 1, 2, 3 }.First()", options); Assert.Equal(1, s1.Result.ReturnValue); var s2 = s1.ContinueWith("new List<int>()", options.AddImports("System.Collections.Generic")); Assert.IsType<List<int>>(s2.Result.ReturnValue); } [Fact] public void AddNamespaces_Errors() { // no immediate error, error is reported if the namespace can't be found when compiling: var options = ScriptOptions.Default.AddImports("?1", "?2"); ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("1", options), // error CS0246: The type or namespace name '?1' could not be found (are you missing a using directive or an assembly reference?) Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound).WithArguments("?1"), // error CS0246: The type or namespace name '?2' could not be found (are you missing a using directive or an assembly reference?) Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound).WithArguments("?2")); options = ScriptOptions.Default.AddImports(""); ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("1", options), // error CS7088: Invalid 'Usings' value: ''. Diagnostic(ErrorCode.ERR_BadCompilationOptionValue).WithArguments("Usings", "")); options = ScriptOptions.Default.AddImports(".abc"); ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("1", options), // error CS7088: Invalid 'Usings' value: '.abc'. Diagnostic(ErrorCode.ERR_BadCompilationOptionValue).WithArguments("Usings", ".abc")); options = ScriptOptions.Default.AddImports("a\0bc"); ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("1", options), // error CS7088: Invalid 'Usings' value: '.abc'. Diagnostic(ErrorCode.ERR_BadCompilationOptionValue).WithArguments("Usings", "a\0bc")); } #endregion #region Host Object Binding and Conversions public class C<T> { } [Fact] public void Submission_HostConversions() { Assert.Equal(2, CSharpScript.EvaluateAsync<int>("1+1").Result); Assert.Null(CSharpScript.EvaluateAsync<string>("null").Result); try { CSharpScript.RunAsync<C<int>>("null"); Assert.True(false, "Expected an exception"); } catch (CompilationErrorException e) { // error CS0400: The type or namespace name 'Microsoft.CodeAnalysis.CSharp.UnitTests.Symbols.Source.InteractiveSessionTests+C`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], Roslyn.Compilers.CSharp.Emit.UnitTests, Version=42.42.42.42, Culture=neutral, PublicKeyToken=fc793a00266884fb' could not be found in the global namespace (are you missing an assembly reference?) Assert.Equal(ErrorCode.ERR_GlobalSingleTypeNameNotFound, (ErrorCode)e.Diagnostics.Single().Code); // Can't use Verify() because the version number of the test dll is different in the build lab. } var options = ScriptOptions.Default.AddReferences(HostAssembly); var cint = CSharpScript.EvaluateAsync<C<int>>("null", options).Result; Assert.Null(cint); Assert.Null(CSharpScript.EvaluateAsync<int?>("null", options).Result); try { CSharpScript.RunAsync<int>("null"); Assert.True(false, "Expected an exception"); } catch (CompilationErrorException e) { e.Diagnostics.Verify( // (1,1): error CS0037: Cannot convert null to 'int' because it is a non-nullable value type // null Diagnostic(ErrorCode.ERR_ValueCantBeNull, "null").WithArguments("int")); } try { CSharpScript.RunAsync<string>("1+1"); Assert.True(false, "Expected an exception"); } catch (CompilationErrorException e) { e.Diagnostics.Verify( // (1,1): error CS0029: Cannot implicitly convert type 'int' to 'string' // 1+1 Diagnostic(ErrorCode.ERR_NoImplicitConv, "1+1").WithArguments("int", "string")); } } [Fact] public void Submission_HostVarianceConversions() { var value = CSharpScript.EvaluateAsync<IEnumerable<Exception>>(@" using System; using System.Collections.Generic; new List<ArgumentException>() ").Result; Assert.Null(value.FirstOrDefault()); } public class B { public int x = 1, w = 4; } public class C : B, I { public static readonly int StaticField = 123; public int Y => 2; public string N { get; set; } = "2"; public int Z() => 3; public override int GetHashCode() => 123; } public interface I { string N { get; set; } int Z(); } private class PrivateClass : I { public string N { get; set; } = null; public int Z() => 3; } public class M<T> { private int F() => 3; public T G() => default(T); } [Fact] public void HostObjectBinding_PublicClassMembers() { var c = new C(); var s0 = CSharpScript.RunAsync<int>("x + Y + Z()", globals: c); Assert.Equal(6, s0.Result.ReturnValue); var s1 = s0.ContinueWith<int>("x"); Assert.Equal(1, s1.Result.ReturnValue); var s2 = s1.ContinueWith<int>("int x = 20;"); var s3 = s2.ContinueWith<int>("x"); Assert.Equal(20, s3.Result.ReturnValue); } [Fact] public void HostObjectBinding_PublicGenericClassMembers() { var m = new M<string>(); var result = CSharpScript.EvaluateAsync<string>("G()", globals: m); Assert.Null(result.Result); } [Fact] public async Task HostObjectBinding_Interface() { var c = new C(); var s0 = await CSharpScript.RunAsync<int>("Z()", globals: c, globalsType: typeof(I)); Assert.Equal(3, s0.ReturnValue); ScriptingTestHelpers.AssertCompilationError(s0, @"x + Y", // The name '{0}' does not exist in the current context Diagnostic(ErrorCode.ERR_NameNotInContext, "x").WithArguments("x"), Diagnostic(ErrorCode.ERR_NameNotInContext, "Y").WithArguments("Y")); var s1 = await s0.ContinueWithAsync<string>("N"); Assert.Equal("2", s1.ReturnValue); } [Fact] public void HostObjectBinding_PrivateClass() { var c = new PrivateClass(); ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("Z()", globals: c), // (1,1): error CS0122: '<Fully Qualified Name of PrivateClass>.Z()' is inaccessible due to its protection level Diagnostic(ErrorCode.ERR_BadAccess, "Z").WithArguments(typeof(PrivateClass).FullName.Replace("+", ".") + ".Z()")); } [Fact] public void HostObjectBinding_PrivateMembers() { object c = new M<int>(); ScriptingTestHelpers.AssertCompilationError(() => CSharpScript.EvaluateAsync("Z()", globals: c), // (1,1): error CS0103: The name 'z' does not exist in the current context Diagnostic(ErrorCode.ERR_NameNotInContext, "Z").WithArguments("Z")); } [Fact] public void HostObjectBinding_PrivateClassImplementingPublicInterface() { var c = new PrivateClass(); var result = CSharpScript.EvaluateAsync<int>("Z()", globals: c, globalsType: typeof(I)); Assert.Equal(3, result.Result); } [Fact] public void HostObjectBinding_StaticMembers() { var s0 = CSharpScript.RunAsync("static int goo = StaticField;", globals: new C()); var s1 = s0.ContinueWith("static int bar { get { return goo; } }"); var s2 = s1.ContinueWith("class C { public static int baz() { return bar; } }"); var s3 = s2.ContinueWith("C.baz()"); Assert.Equal(123, s3.Result.ReturnValue); } public class D { public int goo(int a) { return 0; } } /// <summary> /// Host object members don't form a method group with submission members. /// </summary> [Fact] public void HostObjectBinding_Overloads() { var s0 = CSharpScript.RunAsync("int goo(double a) { return 2; }", globals: new D()); var s1 = s0.ContinueWith("goo(1)"); Assert.Equal(2, s1.Result.ReturnValue); var s2 = s1.ContinueWith("goo(1.0)"); Assert.Equal(2, s2.Result.ReturnValue); } [Fact] public void HostObjectInRootNamespace() { var obj = new InteractiveFixtures_TopLevelHostObject { X = 1, Y = 2, Z = 3 }; var r0 = CSharpScript.EvaluateAsync<int>("X + Y + Z", globals: obj); Assert.Equal(6, r0.Result); obj = new InteractiveFixtures_TopLevelHostObject { X = 1, Y = 2, Z = 3 }; var r1 = CSharpScript.EvaluateAsync<int>("X", globals: obj); Assert.Equal(1, r1.Result); } [ConditionalFact(typeof(WindowsDesktopOnly), Reason = "https://github.com/dotnet/roslyn/issues/30303")] public void HostObjectAssemblyReference1() { var scriptCompilation = CSharpScript.Create( "nameof(Microsoft.CodeAnalysis.Scripting)", ScriptOptions.Default.WithMetadataResolver(TestRuntimeMetadataReferenceResolver.Instance), globalsType: typeof(CommandLineScriptGlobals)).GetCompilation(); scriptCompilation.VerifyDiagnostics( // (1,8): error CS0234: The type or namespace name 'CodeAnalysis' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) // nameof(Microsoft.CodeAnalysis.Scripting) Diagnostic(ErrorCode.ERR_DottedTypeNameNotFoundInNS, "Microsoft.CodeAnalysis").WithArguments("CodeAnalysis", "Microsoft").WithLocation(1, 8)); string corAssemblyName = typeof(object).GetTypeInfo().Assembly.GetName().Name; string hostObjectAssemblyName = scriptCompilation.ScriptCompilationInfo.GlobalsType.GetTypeInfo().Assembly.GetName().Name; // The host adds // 1) a reference to typeof(object).Assembly // 2) a reference to GlobalsType with alias <host> applied recursively. // References returned from ResolveMissingAssembly have <implicit> alias. foreach (var (assembly, aliases) in scriptCompilation.GetBoundReferenceManager().GetReferencedAssemblyAliases()) { string name = assembly.Identity.Name; switch (name) { case "Microsoft.CodeAnalysis.CSharp.Scripting": case "Microsoft.CodeAnalysis.CSharp": // assemblies not referenced Assert.False(true); break; case "Microsoft.CodeAnalysis": case "System.Collections.Immutable": // Microsoft.CodeAnalysis.Scripting contains host object and is thus referenced recursively with <host> alias. // The script doesn't reference the assemblies explicitly. AssertEx.SetEqual(new[] { "<implicit>", "<host>" }, aliases); break; default: if (name == corAssemblyName) { // Host object depends on System.Object, thus <host> is applied on CorLib. AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); } else if (name == hostObjectAssemblyName) { // Host object is only referenced by the host and thus the assembly is hidden behind <host> alias. AssertEx.SetEqual(new[] { "<host>" }, aliases); } break; } } } [ConditionalFact(typeof(ClrOnly), Reason = "https://github.com/dotnet/roslyn/issues/30303")] public void HostObjectAssemblyReference2() { var scriptCompilation = CSharpScript.Create( "typeof(Microsoft.CodeAnalysis.Scripting.Script)", options: ScriptOptions.Default. WithMetadataResolver(TestRuntimeMetadataReferenceResolver.Instance). WithReferences(typeof(CSharpScript).GetTypeInfo().Assembly), globalsType: typeof(CommandLineScriptGlobals)).GetCompilation(); scriptCompilation.VerifyDiagnostics(); string corAssemblyName = typeof(object).GetTypeInfo().Assembly.GetName().Name; string hostObjectAssemblyName = scriptCompilation.ScriptCompilationInfo.GlobalsType.GetTypeInfo().Assembly.GetName().Name; // The host adds // 1) a reference to typeof(object).Assembly // 2) a reference to GlobalsType with alias <host> applied recursively. // References returned from ResolveMissingAssembly have <implicit> alias. foreach (var (assembly, aliases) in scriptCompilation.GetBoundReferenceManager().GetReferencedAssemblyAliases()) { string name = assembly.Identity.Name; switch (name) { case "Microsoft.CodeAnalysis.CSharp.Scripting": // we have an explicit reference to CSharpScript assembly: AssertEx.SetEqual(Array.Empty<string>(), aliases); break; case "Microsoft.CodeAnalysis.CSharp": // The script has a recursive reference to Microsoft.CodeAnalysis.CSharp.Scripting, which references these assemblies. // The script doesn't reference the assembly explicitly. AssertEx.SetEqual(new[] { "<implicit>", "global" }, aliases); break; case "Microsoft.CodeAnalysis": case "System.Collections.Immutable": // The script has a recursive reference to Microsoft.CodeAnalysis.CSharp.Scripting, which references these assemblies. // Microsoft.CodeAnalysis.Scripting contains host object and is thus referenced recursively with <host> alias. // The script doesn't reference the assemblies explicitly. AssertEx.SetEqual(new[] { "<implicit>", "<host>", "global" }, aliases); break; default: if (name == corAssemblyName) { // Host object depends on System.Object, thus <host> is applied on CorLib. AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); } else if (name == hostObjectAssemblyName) { // Host object is defined in an assembly that CSharpScript depends on. // CSharpScript assembly was references (recursively) hence host object assembly is // available to the script (global alias). AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); } break; } } } [ConditionalFact(typeof(ClrOnly), Reason = "https://github.com/dotnet/roslyn/issues/30303")] public void HostObjectAssemblyReference3() { string source = $@" #r ""{typeof(CSharpScript).GetTypeInfo().Assembly.ManifestModule.FullyQualifiedName}"" typeof(Microsoft.CodeAnalysis.Scripting.Script) "; var scriptCompilation = CSharpScript.Create( source, ScriptOptions.Default.WithMetadataResolver(TestRuntimeMetadataReferenceResolver.Instance), globalsType: typeof(CommandLineScriptGlobals)).GetCompilation(); scriptCompilation.VerifyDiagnostics(); string corAssemblyName = typeof(object).GetTypeInfo().Assembly.GetName().Name; string hostObjectAssemblyName = scriptCompilation.ScriptCompilationInfo.GlobalsType.GetTypeInfo().Assembly.GetName().Name; // The host adds // 1) a reference to typeof(object).Assembly // 2) a reference to GlobalsType with alias <host> applied recursively. // References returned from ResolveMissingAssembly have <implicit> alias. foreach (var (assembly, aliases) in scriptCompilation.GetBoundReferenceManager().GetReferencedAssemblyAliases()) { string name = assembly.Identity.Name; switch (name) { case "Microsoft.CodeAnalysis.CSharp.Scripting": // we have an explicit reference to CSharpScript assembly: AssertEx.SetEqual(Array.Empty<string>(), aliases); break; case "Microsoft.CodeAnalysis.CSharp": // The script has a recursive reference to Microsoft.CodeAnalysis.CSharp.Scripting, which references these assemblies. // The script doesn't reference the assembly explicitly. AssertEx.SetEqual(new[] { "<implicit>", "global" }, aliases); break; case "Microsoft.CodeAnalysis": case "System.Collections.Immutable": // The script has a recursive reference to Microsoft.CodeAnalysis.CSharp.Scripting, which references these assemblies. // Microsoft.CodeAnalysis.Scripting contains host object and is thus referenced recursively with <host> alias. // The script doesn't reference the assemblies explicitly. AssertEx.SetEqual(new[] { "<implicit>", "<host>", "global" }, aliases); break; default: if (name == corAssemblyName) { // Host object depends on System.Object, thus <host> is applied on CorLib. AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); } else if (name == hostObjectAssemblyName) { // Host object is defined in an assembly that CSharpScript depends on. // CSharpScript assembly was references (recursively) hence host object assembly is // available to the script (global alias). AssertEx.SetEqual(new[] { "<host>", "global" }, aliases); } break; } } } public class E { public bool TryGetValue(out object obj) { obj = new object(); return true; } } [Fact] [WorkItem(39565, "https://github.com/dotnet/roslyn/issues/39565")] public async Task MethodCallWithImplicitReceiverAndOutVar() { var code = @" if(TryGetValue(out var result)){ _ = result; } return true; "; var result = await CSharpScript.EvaluateAsync<bool>(code, globalsType: typeof(E), globals: new E()); Assert.True(result); } public class F { public bool Value = true; } [Fact] public void StaticMethodCannotAccessGlobalInstance() { var code = @" static bool M() { return Value; } return M(); "; var script = CSharpScript.Create<bool>(code, globalsType: typeof(F)); ScriptingTestHelpers.AssertCompilationError(() => script.RunAsync(new F()).Wait(), // (4,9): error CS0120: An object reference is required for the non-static field, method, or property 'InteractiveSessionTests.F.Value' // return Value; Diagnostic(ErrorCode.ERR_ObjectRequired, "Value").WithArguments("Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests.InteractiveSessionTests.F.Value").WithLocation(4, 9)); } [Fact] [WorkItem(39581, "https://github.com/dotnet/roslyn/issues/39581")] public void StaticLocalFunctionCannotAccessGlobalInstance() { var code = @" bool M() { return Inner(); static bool Inner() { return Value; } } return M(); "; var script = CSharpScript.Create<bool>(code, globalsType: typeof(F)); ScriptingTestHelpers.AssertCompilationError(() => script.RunAsync(new F()).Wait(), // (7,10): error CS0120: An object reference is required for the non-static field, method, or property 'InteractiveSessionTests.F.Value' // return Value; Diagnostic(ErrorCode.ERR_ObjectRequired, "Value").WithArguments("Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests.InteractiveSessionTests.F.Value").WithLocation(7, 10)); } [Fact] public async Task LocalFunctionCanAccessGlobalInstance() { var code = @" bool M() { return Inner(); bool Inner() { return Value; } } return M(); "; var result = await CSharpScript.EvaluateAsync<bool>(code, globalsType: typeof(F), globals: new F()); Assert.True(result); } #endregion #region Exceptions [Fact] [WorkItem(6580, "https://github.com/dotnet/roslyn/issues/6580")] [WorkItem(10883, "https://github.com/dotnet/roslyn/issues/10883")] public async Task PreservingDeclarationsOnException1() { var s0 = CSharpScript.Create(@" int i = 10; throw new System.Exception(""Bang!""); int j = 2; "); var s1 = s0.ContinueWith(@" int F() => i + j; "); var state1 = await s1.RunAsync(catchException: e => true); Assert.Equal("Bang!", state1.Exception.Message); var state2 = await state1.ContinueWithAsync<int>("F()"); Assert.Equal(10, state2.ReturnValue); } [Fact] [WorkItem(6580, "https://github.com/dotnet/roslyn/issues/6580")] [WorkItem(10883, "https://github.com/dotnet/roslyn/issues/10883")] public async Task PreservingDeclarationsOnException2() { var s0 = CSharpScript.Create(@" int i = 100; "); var s1 = s0.ContinueWith(@" int j = 20; throw new System.Exception(""Bang!""); int k = 3; "); var s2 = s1.ContinueWith(@" int F() => i + j + k; "); var state2 = await s2.RunAsync(catchException: e => true); Assert.Equal("Bang!", state2.Exception.Message); var state3 = await state2.ContinueWithAsync<int>("F()"); Assert.Equal(120, state3.ReturnValue); } [Fact] [WorkItem(6580, "https://github.com/dotnet/roslyn/issues/6580")] [WorkItem(10883, "https://github.com/dotnet/roslyn/issues/10883")] public async Task PreservingDeclarationsOnException3() { var s0 = CSharpScript.Create(@" int i = 1000; "); var s1 = s0.ContinueWith(@" int j = 200; throw new System.Exception(""Bang!""); int k = 30; "); var s2 = s1.ContinueWith(@" int l = 4; "); var s3 = s2.ContinueWith(@" int F() => i + j + k + l; "); var state3 = await s3.RunAsync(catchException: e => true); Assert.Equal("Bang!", state3.Exception.Message); var state4 = await state3.ContinueWithAsync<int>("F()"); Assert.Equal(1200, state4.ReturnValue); } [Fact] [WorkItem(6580, "https://github.com/dotnet/roslyn/issues/6580")] [WorkItem(10883, "https://github.com/dotnet/roslyn/issues/10883")] public async Task PreservingDeclarationsOnException4() { var state0 = await CSharpScript.RunAsync(@" int i = 1000; "); var state1 = await state0.ContinueWithAsync(@" int j = 200; throw new System.Exception(""Bang 1!""); int k = 30; ", catchException: e => true); Assert.Equal("Bang 1!", state1.Exception.Message); var state2 = await state1.ContinueWithAsync<int>(@" int l = 4; throw new System.Exception(""Bang 2!""); 1 ", catchException: e => true); Assert.Equal("Bang 2!", state2.Exception.Message); var state4 = await state2.ContinueWithAsync(@" i + j + k + l "); Assert.Equal(1204, state4.ReturnValue); } [Fact] public async Task PreservingDeclarationsOnCancellation1() { var cancellationSource = new CancellationTokenSource(); var globals = new StrongBox<CancellationTokenSource>(); globals.Value = cancellationSource; var s0 = CSharpScript.Create(@" int i = 1000; ", globalsType: globals.GetType()); var s1 = s0.ContinueWith(@" int j = 200; Value.Cancel(); int k = 30; "); // cancellation exception is thrown just before we start evaluating s2: var s2 = s1.ContinueWith(@" int l = 4; "); var s3 = s2.ContinueWith(@" int F() => i + j + k + l; "); var state3 = await s3.RunAsync(globals, catchException: e => true, cancellationToken: cancellationSource.Token); Assert.IsType<OperationCanceledException>(state3.Exception); var state4 = await state3.ContinueWithAsync<int>("F()"); Assert.Equal(1230, state4.ReturnValue); } [Fact] public async Task PreservingDeclarationsOnCancellation2() { var cancellationSource = new CancellationTokenSource(); var globals = new StrongBox<CancellationTokenSource>(); globals.Value = cancellationSource; var s0 = CSharpScript.Create(@" int i = 1000; ", globalsType: globals.GetType()); var s1 = s0.ContinueWith(@" int j = 200; int k = 30; "); var s2 = s1.ContinueWith(@" int l = 4; Value.Cancel(); "); // cancellation exception is thrown just before we start evaluating s3: var s3 = s2.ContinueWith(@" int F() => i + j + k + l; "); var state3 = await s3.RunAsync(globals, catchException: e => true, cancellationToken: cancellationSource.Token); Assert.IsType<OperationCanceledException>(state3.Exception); var state4 = await state3.ContinueWithAsync<int>("F()"); Assert.Equal(1234, state4.ReturnValue); } [Fact] public async Task PreservingDeclarationsOnCancellation3() { var cancellationSource = new CancellationTokenSource(); var globals = new StrongBox<CancellationTokenSource>(); globals.Value = cancellationSource; var s0 = CSharpScript.Create(@" int i = 1000; ", globalsType: globals.GetType()); var s1 = s0.ContinueWith(@" int j = 200; Value.Cancel(); int k = 30; "); // cancellation exception is thrown just before we start evaluating s2: var s2 = s1.ContinueWith(@" int l = 4; "); var s3 = s2.ContinueWith(@" int F() => i + j + k + l; "); await Assert.ThrowsAsync<OperationCanceledException>(() => s3.RunAsync(globals, catchException: e => !(e is OperationCanceledException), cancellationToken: cancellationSource.Token)); } #endregion #region Local Functions [Fact] public void LocalFunction_PreviousSubmissionAndGlobal() { var result = CSharpScript.RunAsync( @"int InInitialSubmission() { return LocalFunction(); int LocalFunction() => Y; }", globals: new C()). ContinueWith( @"var lambda = new System.Func<int>(() => { return LocalFunction(); int LocalFunction() => Y + InInitialSubmission(); }); lambda.Invoke()"). Result.ReturnValue; Assert.Equal(4, result); } #endregion } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/CSharp/Portable/UnsealClass/CSharpUnsealClassCodeFixProvider.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.Composition; using System.Diagnostics.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.UnsealClass; namespace Microsoft.CodeAnalysis.CSharp.UnsealClass { [ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.UnsealClass), Shared] internal sealed class CSharpUnsealClassCodeFixProvider : AbstractUnsealClassCodeFixProvider { private const string CS0509 = nameof(CS0509); // 'D': cannot derive from sealed type 'C' [ImportingConstructor] [SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification = "Used in test code: https://github.com/dotnet/roslyn/issues/42814")] public CSharpUnsealClassCodeFixProvider() { } public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(CS0509); protected override string TitleFormat => CSharpFeaturesResources.Unseal_class_0; } }
// 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.Composition; using System.Diagnostics.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.UnsealClass; namespace Microsoft.CodeAnalysis.CSharp.UnsealClass { [ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.UnsealClass), Shared] internal sealed class CSharpUnsealClassCodeFixProvider : AbstractUnsealClassCodeFixProvider { private const string CS0509 = nameof(CS0509); // 'D': cannot derive from sealed type 'C' [ImportingConstructor] [SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification = "Used in test code: https://github.com/dotnet/roslyn/issues/42814")] public CSharpUnsealClassCodeFixProvider() { } public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(CS0509); protected override string TitleFormat => CSharpFeaturesResources.Unseal_class_0; } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Workspaces/Core/Portable/FindSymbols/FindReferences/Finders/OperatorSymbolReferenceFinder.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.LanguageServices; using Microsoft.CodeAnalysis.Shared.Extensions; namespace Microsoft.CodeAnalysis.FindSymbols.Finders { internal class OperatorSymbolReferenceFinder : AbstractMethodOrPropertyOrEventSymbolReferenceFinder<IMethodSymbol> { protected override bool CanFind(IMethodSymbol symbol) => symbol.MethodKind == MethodKind.UserDefinedOperator; protected override async Task<ImmutableArray<Document>> DetermineDocumentsToSearchAsync( IMethodSymbol symbol, Project project, IImmutableSet<Document>? documents, FindReferencesSearchOptions options, CancellationToken cancellationToken) { var op = symbol.GetPredefinedOperator(); var documentsWithOp = await FindDocumentsAsync(project, documents, op, cancellationToken).ConfigureAwait(false); var documentsWithGlobalAttributes = await FindDocumentsWithGlobalAttributesAsync(project, documents, cancellationToken).ConfigureAwait(false); return documentsWithOp.Concat(documentsWithGlobalAttributes); } protected override async ValueTask<ImmutableArray<FinderLocation>> FindReferencesInDocumentAsync( IMethodSymbol symbol, Document document, SemanticModel semanticModel, FindReferencesSearchOptions options, CancellationToken cancellationToken) { var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); var op = symbol.GetPredefinedOperator(); var opReferences = await FindReferencesInDocumentAsync(symbol, document, semanticModel, t => IsPotentialReference(syntaxFacts, op, t), cancellationToken).ConfigureAwait(false); var suppressionReferences = await FindReferencesInDocumentInsideGlobalSuppressionsAsync(document, semanticModel, symbol, cancellationToken).ConfigureAwait(false); return opReferences.Concat(suppressionReferences); } private static bool IsPotentialReference( ISyntaxFactsService syntaxFacts, PredefinedOperator op, SyntaxToken token) { return syntaxFacts.TryGetPredefinedOperator(token, out var actualOperator) && actualOperator == op; } } }
// 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.LanguageServices; using Microsoft.CodeAnalysis.Shared.Extensions; namespace Microsoft.CodeAnalysis.FindSymbols.Finders { internal class OperatorSymbolReferenceFinder : AbstractMethodOrPropertyOrEventSymbolReferenceFinder<IMethodSymbol> { protected override bool CanFind(IMethodSymbol symbol) => symbol.MethodKind == MethodKind.UserDefinedOperator; protected override async Task<ImmutableArray<Document>> DetermineDocumentsToSearchAsync( IMethodSymbol symbol, Project project, IImmutableSet<Document>? documents, FindReferencesSearchOptions options, CancellationToken cancellationToken) { var op = symbol.GetPredefinedOperator(); var documentsWithOp = await FindDocumentsAsync(project, documents, op, cancellationToken).ConfigureAwait(false); var documentsWithGlobalAttributes = await FindDocumentsWithGlobalAttributesAsync(project, documents, cancellationToken).ConfigureAwait(false); return documentsWithOp.Concat(documentsWithGlobalAttributes); } protected override async ValueTask<ImmutableArray<FinderLocation>> FindReferencesInDocumentAsync( IMethodSymbol symbol, Document document, SemanticModel semanticModel, FindReferencesSearchOptions options, CancellationToken cancellationToken) { var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); var op = symbol.GetPredefinedOperator(); var opReferences = await FindReferencesInDocumentAsync(symbol, document, semanticModel, t => IsPotentialReference(syntaxFacts, op, t), cancellationToken).ConfigureAwait(false); var suppressionReferences = await FindReferencesInDocumentInsideGlobalSuppressionsAsync(document, semanticModel, symbol, cancellationToken).ConfigureAwait(false); return opReferences.Concat(suppressionReferences); } private static bool IsPotentialReference( ISyntaxFactsService syntaxFacts, PredefinedOperator op, SyntaxToken token) { return syntaxFacts.TryGetPredefinedOperator(token, out var actualOperator) && actualOperator == op; } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Analyzers/VisualBasic/Analyzers/ValidateFormatString/VisualBasicValidateFormatStringDiagnosticAnalyzer.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.LanguageServices Imports Microsoft.CodeAnalysis.ValidateFormatString Imports Microsoft.CodeAnalysis.VisualBasic.LanguageServices Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.ValidateFormatString <DiagnosticAnalyzer(LanguageNames.VisualBasic)> Friend Class VisualBasicValidateFormatStringDiagnosticAnalyzer Inherits AbstractValidateFormatStringDiagnosticAnalyzer(Of SyntaxKind) Protected Overrides Function GetSyntaxFacts() As ISyntaxFacts Return VisualBasicSyntaxFacts.Instance End Function Protected Overrides Function TryGetMatchingNamedArgument( arguments As SeparatedSyntaxList(Of SyntaxNode), searchArgumentName As String) As SyntaxNode For Each argument In arguments Dim simpleArgumentSyntax = TryCast(argument, SimpleArgumentSyntax) If Not simpleArgumentSyntax Is Nothing AndAlso simpleArgumentSyntax.NameColonEquals?.Name.Identifier.ValueText.Equals(searchArgumentName) Then Return argument End If Next Return Nothing End Function Protected Overrides Function GetArgumentExpression(syntaxNode As SyntaxNode) As SyntaxNode Return DirectCast(syntaxNode, ArgumentSyntax).GetArgumentExpression 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.Diagnostics Imports Microsoft.CodeAnalysis.LanguageServices Imports Microsoft.CodeAnalysis.ValidateFormatString Imports Microsoft.CodeAnalysis.VisualBasic.LanguageServices Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.ValidateFormatString <DiagnosticAnalyzer(LanguageNames.VisualBasic)> Friend Class VisualBasicValidateFormatStringDiagnosticAnalyzer Inherits AbstractValidateFormatStringDiagnosticAnalyzer(Of SyntaxKind) Protected Overrides Function GetSyntaxFacts() As ISyntaxFacts Return VisualBasicSyntaxFacts.Instance End Function Protected Overrides Function TryGetMatchingNamedArgument( arguments As SeparatedSyntaxList(Of SyntaxNode), searchArgumentName As String) As SyntaxNode For Each argument In arguments Dim simpleArgumentSyntax = TryCast(argument, SimpleArgumentSyntax) If Not simpleArgumentSyntax Is Nothing AndAlso simpleArgumentSyntax.NameColonEquals?.Name.Identifier.ValueText.Equals(searchArgumentName) Then Return argument End If Next Return Nothing End Function Protected Overrides Function GetArgumentExpression(syntaxNode As SyntaxNode) As SyntaxNode Return DirectCast(syntaxNode, ArgumentSyntax).GetArgumentExpression End Function End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/EditorFeatures/VisualBasicTest/BraceMatching/VisualBasicBraceMatcherTests.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.Editor.UnitTests.BraceMatching Imports Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.BraceMatching Public Class VisualBasicBraceMatcherTests Inherits AbstractBraceMatcherTests Protected Overrides Function CreateWorkspaceFromCode(code As String, options As ParseOptions) As TestWorkspace Return TestWorkspace.CreateVisualBasic(code) End Function Private Async Function TestInClassAsync(code As String, expectedCode As String) As Task Await TestAsync( "Class C" & vbCrLf & code & vbCrLf & "End Class", "Class C" & vbCrLf & expectedCode & vbCrLf & "End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestEmptyFile() As Task Dim code = "$$" Dim expected = "" Await TestAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAtFirstPositionInFile() As Task Dim code = "$$Class C" & vbCrLf & vbCrLf & "End Class" Dim expected = "Class C" & vbCrLf & vbCrLf & "End Class" Await TestAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAtLastPositionInFile() As Task Dim code = "Class C" & vbCrLf & vbCrLf & "End Class$$" Dim expected = "Class C" & vbCrLf & vbCrLf & "End Class" Await TestAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestCurlyBrace1() As Task Dim code = "Dim l As New List(Of Integer) From $${}" Dim expected = "Dim l As New List(Of Integer) From {[|}|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestCurlyBrace2() As Task Dim code = "Dim l As New List(Of Integer) From {$$}" Dim expected = "Dim l As New List(Of Integer) From {[|}|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestCurlyBrace3() As Task Dim code = "Dim l As New List(Of Integer) From {$$ }" Dim expected = "Dim l As New List(Of Integer) From { [|}|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestCurlyBrace4() As Task Dim code = "Dim l As New List(Of Integer) From { $$}" Dim expected = "Dim l As New List(Of Integer) From [|{|] }" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestCurlyBrace5() As Task Dim code = "Dim l As New List(Of Integer) From { }$$" Dim expected = "Dim l As New List(Of Integer) From [|{|] }" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestCurlyBrace6() As Task Dim code = "Dim l As New List(Of Integer) From {}$$" Dim expected = "Dim l As New List(Of Integer) From [|{|]}" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen1() As Task Dim code = "Dim l As New List$$(Of Func(Of Integer))" Dim expected = "Dim l As New List(Of Func(Of Integer)[|)|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen2() As Task Dim code = "Dim l As New List($$Of Func(Of Integer))" Dim expected = "Dim l As New List(Of Func(Of Integer)[|)|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen3() As Task Dim code = "Dim l As New List(Of Func$$(Of Integer))" Dim expected = "Dim l As New List(Of Func(Of Integer[|)|])" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen4() As Task Dim code = "Dim l As New List(Of Func($$Of Integer))" Dim expected = "Dim l As New List(Of Func(Of Integer[|)|])" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen5() As Task Dim code = "Dim l As New List(Of Func(Of Integer$$))" Dim expected = "Dim l As New List(Of Func[|(|]Of Integer))" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen6() As Task Dim code = "Dim l As New List(Of Func(Of Integer)$$)" Dim expected = "Dim l As New List(Of Func[|(|]Of Integer))" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen7() As Task Dim code = "Dim l As New List(Of Func(Of Integer)$$ )" Dim expected = "Dim l As New List(Of Func[|(|]Of Integer) )" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen8() As Task Dim code = "Dim l As New List(Of Func(Of Integer) $$)" Dim expected = "Dim l As New List[|(|]Of Func(Of Integer) )" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen9() As Task Dim code = "Dim l As New List(Of Func(Of Integer) )$$" Dim expected = "Dim l As New List[|(|]Of Func(Of Integer) )" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen10() As Task Dim code = "Dim l As New List(Of Func(Of Integer))$$" Dim expected = "Dim l As New List[|(|]Of Func(Of Integer))" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket1() As Task Dim code = "$$<Goo()> Dim i As Integer" Dim expected = "<Goo()[|>|] Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket2() As Task Dim code = "<$$Goo()> Dim i As Integer" Dim expected = "<Goo()[|>|] Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket3() As Task Dim code = "<Goo$$()> Dim i As Integer" Dim expected = "<Goo([|)|]> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket4() As Task Dim code = "<Goo($$)> Dim i As Integer" Dim expected = "<Goo([|)|]> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket5() As Task Dim code = "<Goo($$ )> Dim i As Integer" Dim expected = "<Goo( [|)|]> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket6() As Task Dim code = "<Goo( $$)> Dim i As Integer" Dim expected = "<Goo[|(|] )> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket7() As Task Dim code = "<Goo( )$$> Dim i As Integer" Dim expected = "<Goo[|(|] )> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket8() As Task Dim code = "<Goo()$$> Dim i As Integer" Dim expected = "<Goo[|(|])> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket9() As Task Dim code = "<Goo()$$ > Dim i As Integer" Dim expected = "<Goo[|(|]) > Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket10() As Task Dim code = "<Goo() $$> Dim i As Integer" Dim expected = "[|<|]Goo() > Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket11() As Task Dim code = "<Goo() >$$ Dim i As Integer" Dim expected = "[|<|]Goo() > Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket12() As Task Dim code = "<Goo()>$$ Dim i As Integer" Dim expected = "[|<|]Goo()> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestString1() As Task Dim code = "Dim s As String = $$""Goo""" Dim expected = "Dim s As String = ""Goo[|""|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestString2() As Task Dim code = "Dim s As String = ""$$Goo""" Dim expected = "Dim s As String = ""Goo[|""|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestString3() As Task Dim code = "Dim s As String = ""Goo$$""" Dim expected = "Dim s As String = [|""|]Goo""" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestString4() As Task Dim code = "Dim s As String = ""Goo""$$" Dim expected = "Dim s As String = [|""|]Goo""" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestString5() As Task Dim code = "Dim s As String = ""Goo$$" Dim expected = "Dim s As String = ""Goo" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString1() As Task Dim code = "Dim s = $$[||]$""Goo""" Dim expected = "Dim s = $""Goo[|""|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString2() As Task Dim code = "Dim s = $""$$Goo""" Dim expected = "Dim s = $""Goo[|""|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString3() As Task Dim code = "Dim s = $""Goo$$""" Dim expected = "Dim s = [|$""|]Goo""" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString4() As Task Dim code = "Dim s = $""Goo""$$" Dim expected = "Dim s = [|$""|]Goo""" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString5() As Task Dim code = "Dim s = $"" $${x} """ Dim expected = "Dim s = $"" {x[|}|] """ Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString6() As Task Dim code = "Dim s = $"" {$$x} """ Dim expected = "Dim s = $"" {x[|}|] """ Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString7() As Task Dim code = "Dim s = $"" {x$$} """ Dim expected = "Dim s = $"" [|{|]x} """ Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString8() As Task Dim code = "Dim s = $"" {x}$$ """ Dim expected = "Dim s = $"" [|{|]x} """ Await TestInClassAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestConditionalDirectiveWithSingleMatchingDirective() As Task Dim code = <Text>Class C Sub Test() #If$$ CHK Then #End If End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>Class C Sub Test() #If CHK Then [|#End If|] End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestConditionalDirectiveWithTwoMatchingDirectives() As Task Dim code = <Text>Class C Sub Test() #If$$ CHK Then #Else #End If End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>Class C Sub Test() #If CHK Then [|#Else|] #End If End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestConditionalDirectiveWithAllMatchingDirectives() As Task Dim code = <Text>Class C Sub Test() #If CHK Then #ElseIf RET Then #Else #End If$$ End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>Class C Sub Test() [|#If|] CHK Then #ElseIf RET Then #Else #End If End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestRegionDirective() As Task Dim code = <Text>Class C $$#Region "Public Methods" Sub Test() End Sub #End Region End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>Class C #Region "Public Methods" Sub Test() End Sub [|#End Region|] End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterleavedDirectivesInner() As Task Dim code = <Text>#Const CHK = True Module Program Sub Main(args As String()) #If CHK Then #Region$$ "Public Methods" Console.Write(5) #ElseIf RET Then Console.Write(5) #Else #End If End Sub #End Region End Module </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>#Const CHK = True Module Program Sub Main(args As String()) #If CHK Then #Region "Public Methods" Console.Write(5) #ElseIf RET Then Console.Write(5) #Else #End If End Sub [|#End Region|] End Module </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterleavedDirectivesOuter() As Task Dim code = <Text>#Const CHK = True Module Program Sub Main(args As String()) #If$$ CHK Then #Region "Public Methods" Console.Write(5) #ElseIf RET Then Console.Write(5) #Else #End If End Sub #End Region End Module </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>#Const CHK = True Module Program Sub Main(args As String()) #If CHK Then #Region "Public Methods" Console.Write(5) [|#ElseIf|] RET Then Console.Write(5) #Else #End If End Sub #End Region End Module </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestUnmatchedDirective1() As Task Dim code = <Text>Class C $$#Region "Public Methods" Sub Test() End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>Class C #Region "Public Methods" Sub Test() End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestUnmatchedDirective2() As Task Dim code = <Text> #Enable Warning$$ Class C Sub Test() End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text> #Enable Warning Class C Sub Test() End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7534, "https://github.com/dotnet/roslyn/issues/7534")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestUnmatchedIncompleteConditionalDirective() As Task Dim code = <Text> Class C Sub Test() #If$$ End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text> Class C Sub Test() [|#If|] End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7534, "https://github.com/dotnet/roslyn/issues/7534")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestUnmatchedCompleteConditionalDirective() As Task Dim code = <Text> Class C Sub Test() #If$$ CHK Then End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text> Class C Sub Test() [|#If|] CHK Then End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7534, "https://github.com/dotnet/roslyn/issues/7534")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestUnmatchedConditionalDirective() As Task Dim code = <Text> Class C Sub Test() #Else$$ End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text> Class C Sub Test() [|#Else|] End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) 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.Editor.UnitTests.BraceMatching Imports Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.BraceMatching Public Class VisualBasicBraceMatcherTests Inherits AbstractBraceMatcherTests Protected Overrides Function CreateWorkspaceFromCode(code As String, options As ParseOptions) As TestWorkspace Return TestWorkspace.CreateVisualBasic(code) End Function Private Async Function TestInClassAsync(code As String, expectedCode As String) As Task Await TestAsync( "Class C" & vbCrLf & code & vbCrLf & "End Class", "Class C" & vbCrLf & expectedCode & vbCrLf & "End Class") End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestEmptyFile() As Task Dim code = "$$" Dim expected = "" Await TestAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAtFirstPositionInFile() As Task Dim code = "$$Class C" & vbCrLf & vbCrLf & "End Class" Dim expected = "Class C" & vbCrLf & vbCrLf & "End Class" Await TestAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAtLastPositionInFile() As Task Dim code = "Class C" & vbCrLf & vbCrLf & "End Class$$" Dim expected = "Class C" & vbCrLf & vbCrLf & "End Class" Await TestAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestCurlyBrace1() As Task Dim code = "Dim l As New List(Of Integer) From $${}" Dim expected = "Dim l As New List(Of Integer) From {[|}|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestCurlyBrace2() As Task Dim code = "Dim l As New List(Of Integer) From {$$}" Dim expected = "Dim l As New List(Of Integer) From {[|}|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestCurlyBrace3() As Task Dim code = "Dim l As New List(Of Integer) From {$$ }" Dim expected = "Dim l As New List(Of Integer) From { [|}|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestCurlyBrace4() As Task Dim code = "Dim l As New List(Of Integer) From { $$}" Dim expected = "Dim l As New List(Of Integer) From [|{|] }" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestCurlyBrace5() As Task Dim code = "Dim l As New List(Of Integer) From { }$$" Dim expected = "Dim l As New List(Of Integer) From [|{|] }" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestCurlyBrace6() As Task Dim code = "Dim l As New List(Of Integer) From {}$$" Dim expected = "Dim l As New List(Of Integer) From [|{|]}" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen1() As Task Dim code = "Dim l As New List$$(Of Func(Of Integer))" Dim expected = "Dim l As New List(Of Func(Of Integer)[|)|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen2() As Task Dim code = "Dim l As New List($$Of Func(Of Integer))" Dim expected = "Dim l As New List(Of Func(Of Integer)[|)|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen3() As Task Dim code = "Dim l As New List(Of Func$$(Of Integer))" Dim expected = "Dim l As New List(Of Func(Of Integer[|)|])" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen4() As Task Dim code = "Dim l As New List(Of Func($$Of Integer))" Dim expected = "Dim l As New List(Of Func(Of Integer[|)|])" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen5() As Task Dim code = "Dim l As New List(Of Func(Of Integer$$))" Dim expected = "Dim l As New List(Of Func[|(|]Of Integer))" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen6() As Task Dim code = "Dim l As New List(Of Func(Of Integer)$$)" Dim expected = "Dim l As New List(Of Func[|(|]Of Integer))" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen7() As Task Dim code = "Dim l As New List(Of Func(Of Integer)$$ )" Dim expected = "Dim l As New List(Of Func[|(|]Of Integer) )" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen8() As Task Dim code = "Dim l As New List(Of Func(Of Integer) $$)" Dim expected = "Dim l As New List[|(|]Of Func(Of Integer) )" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen9() As Task Dim code = "Dim l As New List(Of Func(Of Integer) )$$" Dim expected = "Dim l As New List[|(|]Of Func(Of Integer) )" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestNestedParen10() As Task Dim code = "Dim l As New List(Of Func(Of Integer))$$" Dim expected = "Dim l As New List[|(|]Of Func(Of Integer))" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket1() As Task Dim code = "$$<Goo()> Dim i As Integer" Dim expected = "<Goo()[|>|] Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket2() As Task Dim code = "<$$Goo()> Dim i As Integer" Dim expected = "<Goo()[|>|] Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket3() As Task Dim code = "<Goo$$()> Dim i As Integer" Dim expected = "<Goo([|)|]> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket4() As Task Dim code = "<Goo($$)> Dim i As Integer" Dim expected = "<Goo([|)|]> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket5() As Task Dim code = "<Goo($$ )> Dim i As Integer" Dim expected = "<Goo( [|)|]> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket6() As Task Dim code = "<Goo( $$)> Dim i As Integer" Dim expected = "<Goo[|(|] )> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket7() As Task Dim code = "<Goo( )$$> Dim i As Integer" Dim expected = "<Goo[|(|] )> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket8() As Task Dim code = "<Goo()$$> Dim i As Integer" Dim expected = "<Goo[|(|])> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket9() As Task Dim code = "<Goo()$$ > Dim i As Integer" Dim expected = "<Goo[|(|]) > Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket10() As Task Dim code = "<Goo() $$> Dim i As Integer" Dim expected = "[|<|]Goo() > Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket11() As Task Dim code = "<Goo() >$$ Dim i As Integer" Dim expected = "[|<|]Goo() > Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestAngleBracket12() As Task Dim code = "<Goo()>$$ Dim i As Integer" Dim expected = "[|<|]Goo()> Dim i As Integer" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestString1() As Task Dim code = "Dim s As String = $$""Goo""" Dim expected = "Dim s As String = ""Goo[|""|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestString2() As Task Dim code = "Dim s As String = ""$$Goo""" Dim expected = "Dim s As String = ""Goo[|""|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestString3() As Task Dim code = "Dim s As String = ""Goo$$""" Dim expected = "Dim s As String = [|""|]Goo""" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestString4() As Task Dim code = "Dim s As String = ""Goo""$$" Dim expected = "Dim s As String = [|""|]Goo""" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestString5() As Task Dim code = "Dim s As String = ""Goo$$" Dim expected = "Dim s As String = ""Goo" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString1() As Task Dim code = "Dim s = $$[||]$""Goo""" Dim expected = "Dim s = $""Goo[|""|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString2() As Task Dim code = "Dim s = $""$$Goo""" Dim expected = "Dim s = $""Goo[|""|]" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString3() As Task Dim code = "Dim s = $""Goo$$""" Dim expected = "Dim s = [|$""|]Goo""" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString4() As Task Dim code = "Dim s = $""Goo""$$" Dim expected = "Dim s = [|$""|]Goo""" Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString5() As Task Dim code = "Dim s = $"" $${x} """ Dim expected = "Dim s = $"" {x[|}|] """ Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString6() As Task Dim code = "Dim s = $"" {$$x} """ Dim expected = "Dim s = $"" {x[|}|] """ Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString7() As Task Dim code = "Dim s = $"" {x$$} """ Dim expected = "Dim s = $"" [|{|]x} """ Await TestInClassAsync(code, expected) End Function <Fact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterpolatedString8() As Task Dim code = "Dim s = $"" {x}$$ """ Dim expected = "Dim s = $"" [|{|]x} """ Await TestInClassAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestConditionalDirectiveWithSingleMatchingDirective() As Task Dim code = <Text>Class C Sub Test() #If$$ CHK Then #End If End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>Class C Sub Test() #If CHK Then [|#End If|] End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestConditionalDirectiveWithTwoMatchingDirectives() As Task Dim code = <Text>Class C Sub Test() #If$$ CHK Then #Else #End If End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>Class C Sub Test() #If CHK Then [|#Else|] #End If End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestConditionalDirectiveWithAllMatchingDirectives() As Task Dim code = <Text>Class C Sub Test() #If CHK Then #ElseIf RET Then #Else #End If$$ End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>Class C Sub Test() [|#If|] CHK Then #ElseIf RET Then #Else #End If End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestRegionDirective() As Task Dim code = <Text>Class C $$#Region "Public Methods" Sub Test() End Sub #End Region End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>Class C #Region "Public Methods" Sub Test() End Sub [|#End Region|] End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterleavedDirectivesInner() As Task Dim code = <Text>#Const CHK = True Module Program Sub Main(args As String()) #If CHK Then #Region$$ "Public Methods" Console.Write(5) #ElseIf RET Then Console.Write(5) #Else #End If End Sub #End Region End Module </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>#Const CHK = True Module Program Sub Main(args As String()) #If CHK Then #Region "Public Methods" Console.Write(5) #ElseIf RET Then Console.Write(5) #Else #End If End Sub [|#End Region|] End Module </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestInterleavedDirectivesOuter() As Task Dim code = <Text>#Const CHK = True Module Program Sub Main(args As String()) #If$$ CHK Then #Region "Public Methods" Console.Write(5) #ElseIf RET Then Console.Write(5) #Else #End If End Sub #End Region End Module </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>#Const CHK = True Module Program Sub Main(args As String()) #If CHK Then #Region "Public Methods" Console.Write(5) [|#ElseIf|] RET Then Console.Write(5) #Else #End If End Sub #End Region End Module </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestUnmatchedDirective1() As Task Dim code = <Text>Class C $$#Region "Public Methods" Sub Test() End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text>Class C #Region "Public Methods" Sub Test() End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7120, "https://github.com/dotnet/roslyn/issues/7120")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestUnmatchedDirective2() As Task Dim code = <Text> #Enable Warning$$ Class C Sub Test() End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text> #Enable Warning Class C Sub Test() End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7534, "https://github.com/dotnet/roslyn/issues/7534")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestUnmatchedIncompleteConditionalDirective() As Task Dim code = <Text> Class C Sub Test() #If$$ End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text> Class C Sub Test() [|#If|] End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7534, "https://github.com/dotnet/roslyn/issues/7534")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestUnmatchedCompleteConditionalDirective() As Task Dim code = <Text> Class C Sub Test() #If$$ CHK Then End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text> Class C Sub Test() [|#If|] CHK Then End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function <WorkItem(7534, "https://github.com/dotnet/roslyn/issues/7534")> <WpfFact, Trait(Traits.Feature, Traits.Features.BraceMatching)> Public Async Function TestUnmatchedConditionalDirective() As Task Dim code = <Text> Class C Sub Test() #Else$$ End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Dim expected = <Text> Class C Sub Test() [|#Else|] End Sub End Class </Text>.Value.Replace(vbLf, vbCrLf) Await TestAsync(code, expected) End Function End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/VisualBasic/Portable/BoundTree/BoundAssignmentOperator.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.VisualBasic.Symbols Namespace Microsoft.CodeAnalysis.VisualBasic Partial Friend NotInheritable Class BoundAssignmentOperator Inherits BoundExpression Public Sub New(syntax As SyntaxNode, left As BoundExpression, right As BoundExpression, suppressObjectClone As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False) Me.New(syntax, left, leftOnTheRightOpt:=Nothing, right:=right, suppressObjectClone:=suppressObjectClone, type:=type, hasErrors:=hasErrors) End Sub Public Sub New(syntax As SyntaxNode, left As BoundExpression, right As BoundExpression, suppressObjectClone As Boolean, Optional hasErrors As Boolean = False) Me.New(syntax, left, leftOnTheRightOpt:=Nothing, right:=right, suppressObjectClone:=suppressObjectClone, hasErrors:=hasErrors) End Sub Public Sub New( syntax As SyntaxNode, left As BoundExpression, leftOnTheRightOpt As BoundCompoundAssignmentTargetPlaceholder, right As BoundExpression, suppressObjectClone As Boolean, Optional hasErrors As Boolean = False ) 'NOTE: even though in general assignment returns the value of the Right, ' the type of the operator is the type of the Left as that is the type of the location ' into which the Right is stored. ' ' Dim x as Long ' Dim y as byte = 1 ' Dim z := x := y ' if this was legal assignment of an assignment, z would have type Long ' ' properties and latebound assignments are special cased since they are semantically statements ' 'TODO: it could make sense to have BoundAssignmentStatement just for the purpose of ' binding assignments. It would make invariants for both BoundAssignmentExpression and BoundAssignmentStatement simpler. Me.New(syntax, left, leftOnTheRightOpt, right:=right, suppressObjectClone:=suppressObjectClone, type:=If(left.IsPropertyOrXmlPropertyAccess(), left.GetPropertyOrXmlProperty().ContainingAssembly.GetSpecialType(SpecialType.System_Void), If(left.IsLateBound, left.Type.ContainingAssembly.GetSpecialType(SpecialType.System_Void), left.Type)), hasErrors:=hasErrors) End Sub #If DEBUG Then Private Sub Validate() Debug.Assert(Left.Type IsNot Nothing) If Not HasErrors Then Debug.Assert(Left.IsLValue OrElse Left.IsPropertyOrXmlPropertyAccess() OrElse Left.IsLateBound) Select Case Left.Kind Case BoundKind.PropertyAccess Dim propertyAccess = DirectCast(Left, BoundPropertyAccess) Debug.Assert(propertyAccess.AccessKind = If(DirectCast(Left, BoundPropertyAccess).PropertySymbol.ReturnsByRef, PropertyAccessKind.Get, If(LeftOnTheRightOpt Is Nothing, PropertyAccessKind.Set, PropertyAccessKind.Set Or PropertyAccessKind.Get))) Debug.Assert(Type.IsVoidType()) Case BoundKind.XmlMemberAccess Debug.Assert(Left.GetAccessKind() = If(LeftOnTheRightOpt Is Nothing, PropertyAccessKind.Set, PropertyAccessKind.Set Or PropertyAccessKind.Get)) Debug.Assert(Type.IsVoidType()) Case BoundKind.LateMemberAccess Debug.Assert(Left.GetLateBoundAccessKind() = If(LeftOnTheRightOpt Is Nothing, LateBoundAccessKind.Set, LateBoundAccessKind.Set Or LateBoundAccessKind.Get)) Case BoundKind.LateInvocation Dim invocation = DirectCast(Left, BoundLateInvocation) Debug.Assert(invocation.AccessKind = If(LeftOnTheRightOpt Is Nothing, LateBoundAccessKind.Set, LateBoundAccessKind.Set Or LateBoundAccessKind.Get)) If Not invocation.ArgumentsOpt.IsDefault Then For Each arg In invocation.ArgumentsOpt Debug.Assert(Not arg.IsSupportingAssignment()) Next End If Case Else Debug.Assert(Not Left.IsLateBound) End Select Debug.Assert(Left.Type.IsSameTypeIgnoringAll(Right.Type)) End If Right.AssertRValue() Debug.Assert(Left.IsPropertyOrXmlPropertyAccess() OrElse Left.IsLateBound OrElse IsByRefPropertyGet(Left) OrElse Left.Type.IsSameTypeIgnoringAll(Type) OrElse (Type.IsVoidType() AndAlso Syntax.Kind = SyntaxKind.MidAssignmentStatement) OrElse (Left.Kind = BoundKind.FieldAccess AndAlso DirectCast(Left, BoundFieldAccess).FieldSymbol.AssociatedSymbol.Kind = SymbolKind.Property AndAlso Type.IsVoidType())) ' If LeftOnTheRightOpt is not nothing and this isn't a mid statement, then we assert the shape that IOperation is expecting ' compound expressions to have If LeftOnTheRightOpt IsNot Nothing Then ' The right node is either a BoundUserDefinedBinaryOperator or a BoundBinaryOperator, or a conversion on top of them Dim rightNode = Right If rightNode.Kind = BoundKind.Conversion Then rightNode = DirectCast(rightNode, BoundConversion).Operand If rightNode.Kind = BoundKind.UserDefinedConversion Then rightNode = DirectCast(rightNode, BoundUserDefinedConversion).Operand End If End If If rightNode.Kind <> BoundKind.MidResult Then Debug.Assert(rightNode.Kind = BoundKind.BinaryOperator OrElse rightNode.Kind = BoundKind.UserDefinedBinaryOperator) Dim leftNode As BoundNode = Nothing If rightNode.Kind = BoundKind.BinaryOperator Then leftNode = DirectCast(rightNode, BoundBinaryOperator).Left Else Dim boundUserDefinedOperator = DirectCast(rightNode, BoundUserDefinedBinaryOperator) If boundUserDefinedOperator.UnderlyingExpression.Kind = BoundKind.Call Then leftNode = boundUserDefinedOperator.Left Else leftNode = DirectCast(boundUserDefinedOperator.UnderlyingExpression, BoundBadExpression).ChildBoundNodes(0) End If End If ' The left node of the binary operation is either the same node as in LeftOnTheRightOpt, or is a conversion on top of that node If leftNode.Kind = BoundKind.Conversion Then leftNode = DirectCast(leftNode, BoundConversion).Operand If leftNode.Kind = BoundKind.UserDefinedConversion Then leftNode = DirectCast(leftNode, BoundUserDefinedConversion).Operand End If End If Debug.Assert(leftNode Is LeftOnTheRightOpt) End If End If End Sub Private Shared Function IsByRefPropertyGet(node As BoundExpression) As Boolean Dim value = TryCast(TryCast(node, BoundCall)?.Method?.AssociatedSymbol, PropertySymbol)?.ReturnsByRef Return value.HasValue AndAlso value.Value = True End Function #End If 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.VisualBasic.Symbols Namespace Microsoft.CodeAnalysis.VisualBasic Partial Friend NotInheritable Class BoundAssignmentOperator Inherits BoundExpression Public Sub New(syntax As SyntaxNode, left As BoundExpression, right As BoundExpression, suppressObjectClone As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False) Me.New(syntax, left, leftOnTheRightOpt:=Nothing, right:=right, suppressObjectClone:=suppressObjectClone, type:=type, hasErrors:=hasErrors) End Sub Public Sub New(syntax As SyntaxNode, left As BoundExpression, right As BoundExpression, suppressObjectClone As Boolean, Optional hasErrors As Boolean = False) Me.New(syntax, left, leftOnTheRightOpt:=Nothing, right:=right, suppressObjectClone:=suppressObjectClone, hasErrors:=hasErrors) End Sub Public Sub New( syntax As SyntaxNode, left As BoundExpression, leftOnTheRightOpt As BoundCompoundAssignmentTargetPlaceholder, right As BoundExpression, suppressObjectClone As Boolean, Optional hasErrors As Boolean = False ) 'NOTE: even though in general assignment returns the value of the Right, ' the type of the operator is the type of the Left as that is the type of the location ' into which the Right is stored. ' ' Dim x as Long ' Dim y as byte = 1 ' Dim z := x := y ' if this was legal assignment of an assignment, z would have type Long ' ' properties and latebound assignments are special cased since they are semantically statements ' 'TODO: it could make sense to have BoundAssignmentStatement just for the purpose of ' binding assignments. It would make invariants for both BoundAssignmentExpression and BoundAssignmentStatement simpler. Me.New(syntax, left, leftOnTheRightOpt, right:=right, suppressObjectClone:=suppressObjectClone, type:=If(left.IsPropertyOrXmlPropertyAccess(), left.GetPropertyOrXmlProperty().ContainingAssembly.GetSpecialType(SpecialType.System_Void), If(left.IsLateBound, left.Type.ContainingAssembly.GetSpecialType(SpecialType.System_Void), left.Type)), hasErrors:=hasErrors) End Sub #If DEBUG Then Private Sub Validate() Debug.Assert(Left.Type IsNot Nothing) If Not HasErrors Then Debug.Assert(Left.IsLValue OrElse Left.IsPropertyOrXmlPropertyAccess() OrElse Left.IsLateBound) Select Case Left.Kind Case BoundKind.PropertyAccess Dim propertyAccess = DirectCast(Left, BoundPropertyAccess) Debug.Assert(propertyAccess.AccessKind = If(DirectCast(Left, BoundPropertyAccess).PropertySymbol.ReturnsByRef, PropertyAccessKind.Get, If(LeftOnTheRightOpt Is Nothing, PropertyAccessKind.Set, PropertyAccessKind.Set Or PropertyAccessKind.Get))) Debug.Assert(Type.IsVoidType()) Case BoundKind.XmlMemberAccess Debug.Assert(Left.GetAccessKind() = If(LeftOnTheRightOpt Is Nothing, PropertyAccessKind.Set, PropertyAccessKind.Set Or PropertyAccessKind.Get)) Debug.Assert(Type.IsVoidType()) Case BoundKind.LateMemberAccess Debug.Assert(Left.GetLateBoundAccessKind() = If(LeftOnTheRightOpt Is Nothing, LateBoundAccessKind.Set, LateBoundAccessKind.Set Or LateBoundAccessKind.Get)) Case BoundKind.LateInvocation Dim invocation = DirectCast(Left, BoundLateInvocation) Debug.Assert(invocation.AccessKind = If(LeftOnTheRightOpt Is Nothing, LateBoundAccessKind.Set, LateBoundAccessKind.Set Or LateBoundAccessKind.Get)) If Not invocation.ArgumentsOpt.IsDefault Then For Each arg In invocation.ArgumentsOpt Debug.Assert(Not arg.IsSupportingAssignment()) Next End If Case Else Debug.Assert(Not Left.IsLateBound) End Select Debug.Assert(Left.Type.IsSameTypeIgnoringAll(Right.Type)) End If Right.AssertRValue() Debug.Assert(Left.IsPropertyOrXmlPropertyAccess() OrElse Left.IsLateBound OrElse IsByRefPropertyGet(Left) OrElse Left.Type.IsSameTypeIgnoringAll(Type) OrElse (Type.IsVoidType() AndAlso Syntax.Kind = SyntaxKind.MidAssignmentStatement) OrElse (Left.Kind = BoundKind.FieldAccess AndAlso DirectCast(Left, BoundFieldAccess).FieldSymbol.AssociatedSymbol.Kind = SymbolKind.Property AndAlso Type.IsVoidType())) ' If LeftOnTheRightOpt is not nothing and this isn't a mid statement, then we assert the shape that IOperation is expecting ' compound expressions to have If LeftOnTheRightOpt IsNot Nothing Then ' The right node is either a BoundUserDefinedBinaryOperator or a BoundBinaryOperator, or a conversion on top of them Dim rightNode = Right If rightNode.Kind = BoundKind.Conversion Then rightNode = DirectCast(rightNode, BoundConversion).Operand If rightNode.Kind = BoundKind.UserDefinedConversion Then rightNode = DirectCast(rightNode, BoundUserDefinedConversion).Operand End If End If If rightNode.Kind <> BoundKind.MidResult Then Debug.Assert(rightNode.Kind = BoundKind.BinaryOperator OrElse rightNode.Kind = BoundKind.UserDefinedBinaryOperator) Dim leftNode As BoundNode = Nothing If rightNode.Kind = BoundKind.BinaryOperator Then leftNode = DirectCast(rightNode, BoundBinaryOperator).Left Else Dim boundUserDefinedOperator = DirectCast(rightNode, BoundUserDefinedBinaryOperator) If boundUserDefinedOperator.UnderlyingExpression.Kind = BoundKind.Call Then leftNode = boundUserDefinedOperator.Left Else leftNode = DirectCast(boundUserDefinedOperator.UnderlyingExpression, BoundBadExpression).ChildBoundNodes(0) End If End If ' The left node of the binary operation is either the same node as in LeftOnTheRightOpt, or is a conversion on top of that node If leftNode.Kind = BoundKind.Conversion Then leftNode = DirectCast(leftNode, BoundConversion).Operand If leftNode.Kind = BoundKind.UserDefinedConversion Then leftNode = DirectCast(leftNode, BoundUserDefinedConversion).Operand End If End If Debug.Assert(leftNode Is LeftOnTheRightOpt) End If End If End Sub Private Shared Function IsByRefPropertyGet(node As BoundExpression) As Boolean Dim value = TryCast(TryCast(node, BoundCall)?.Method?.AssociatedSymbol, PropertySymbol)?.ReturnsByRef Return value.HasValue AndAlso value.Value = True End Function #End If End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Utilities/TextReaderWithLength.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; namespace Microsoft.CodeAnalysis.Shared.Utilities { internal abstract class TextReaderWithLength : TextReader { public TextReaderWithLength(int length) => Length = length; public int Length { get; } } }
// 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; namespace Microsoft.CodeAnalysis.Shared.Utilities { internal abstract class TextReaderWithLength : TextReader { public TextReaderWithLength(int length) => Length = length; public int Length { get; } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/VisualBasic/Portable/Completion/KeywordRecommenders/OptionStatements/InferOptionsRecommender.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.Threading Imports Microsoft.CodeAnalysis.Completion.Providers Imports Microsoft.CodeAnalysis.VisualBasic.Extensions.ContextQuery Namespace Microsoft.CodeAnalysis.VisualBasic.Completion.KeywordRecommenders.OptionStatements ''' <summary> ''' Recommends the "On" and "Off" options that come after "Option Infer" ''' </summary> Friend Class InferOptionsRecommender Inherits AbstractKeywordRecommender Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( New RecommendedKeyword("On", VBFeaturesResources.Turns_a_compiler_option_on), New RecommendedKeyword("Off", VBFeaturesResources.Turns_a_compiler_option_off)) Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) If context.FollowsEndOfStatement Then Return ImmutableArray(Of RecommendedKeyword).Empty End If Return If(context.TargetToken.IsKind(SyntaxKind.InferKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty) 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 System.Threading Imports Microsoft.CodeAnalysis.Completion.Providers Imports Microsoft.CodeAnalysis.VisualBasic.Extensions.ContextQuery Namespace Microsoft.CodeAnalysis.VisualBasic.Completion.KeywordRecommenders.OptionStatements ''' <summary> ''' Recommends the "On" and "Off" options that come after "Option Infer" ''' </summary> Friend Class InferOptionsRecommender Inherits AbstractKeywordRecommender Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create( New RecommendedKeyword("On", VBFeaturesResources.Turns_a_compiler_option_on), New RecommendedKeyword("Off", VBFeaturesResources.Turns_a_compiler_option_off)) Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, CancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) If context.FollowsEndOfStatement Then Return ImmutableArray(Of RecommendedKeyword).Empty End If Return If(context.TargetToken.IsKind(SyntaxKind.InferKeyword), s_keywords, ImmutableArray(Of RecommendedKeyword).Empty) End Function End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/VisualBasic/Portable/Completion/KeywordRecommenders/PreprocessorDirectives/ElseIfDirectiveKeywordRecommender.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.Threading Imports Microsoft.CodeAnalysis.Completion.Providers Imports Microsoft.CodeAnalysis.VisualBasic.Extensions.ContextQuery Namespace Microsoft.CodeAnalysis.VisualBasic.Completion.KeywordRecommenders.PreprocessorDirectives ''' <summary> ''' Recommends the "#ElseIf" preprocessor directive ''' </summary> Friend Class ElseIfDirectiveKeywordRecommender Inherits AbstractKeywordRecommender Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create(New RecommendedKeyword("#ElseIf", VBFeaturesResources.Introduces_a_condition_in_an_SharpIf_statement_that_is_tested_if_the_previous_conditional_test_evaluates_to_False)) Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) If context.IsPreprocessorStartContext OrElse context.IsWithinPreprocessorContext Then Dim innermostKind = context.SyntaxTree.GetInnermostIfPreprocessorKind(context.Position, cancellationToken) If innermostKind.HasValue AndAlso innermostKind.Value <> SyntaxKind.ElseDirectiveTrivia Then Return s_keywords End If End If Return ImmutableArray(Of RecommendedKeyword).Empty 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 System.Threading Imports Microsoft.CodeAnalysis.Completion.Providers Imports Microsoft.CodeAnalysis.VisualBasic.Extensions.ContextQuery Namespace Microsoft.CodeAnalysis.VisualBasic.Completion.KeywordRecommenders.PreprocessorDirectives ''' <summary> ''' Recommends the "#ElseIf" preprocessor directive ''' </summary> Friend Class ElseIfDirectiveKeywordRecommender Inherits AbstractKeywordRecommender Private Shared ReadOnly s_keywords As ImmutableArray(Of RecommendedKeyword) = ImmutableArray.Create(New RecommendedKeyword("#ElseIf", VBFeaturesResources.Introduces_a_condition_in_an_SharpIf_statement_that_is_tested_if_the_previous_conditional_test_evaluates_to_False)) Protected Overrides Function RecommendKeywords(context As VisualBasicSyntaxContext, cancellationToken As CancellationToken) As ImmutableArray(Of RecommendedKeyword) If context.IsPreprocessorStartContext OrElse context.IsWithinPreprocessorContext Then Dim innermostKind = context.SyntaxTree.GetInnermostIfPreprocessorKind(context.Position, cancellationToken) If innermostKind.HasValue AndAlso innermostKind.Value <> SyntaxKind.ElseDirectiveTrivia Then Return s_keywords End If End If Return ImmutableArray(Of RecommendedKeyword).Empty End Function End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/ExpressionEvaluator/VisualBasic/Test/ResultProvider/FormatSpecifierTests.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.ExpressionEvaluator Imports Microsoft.VisualStudio.Debugger.Clr Imports Microsoft.VisualStudio.Debugger.Evaluation Imports Xunit Namespace Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.UnitTests Public Class FormatSpecifierTests Inherits VisualBasicResultProviderTestBase <Fact> Public Sub NoQuotes_String() Dim runtime = New DkmClrRuntimeInstance(ReflectionUtilities.GetMscorlib()) Dim inspectionContext = CreateDkmInspectionContext(DkmEvaluationFlags.NoQuotes) Dim stringType = runtime.GetType(GetType(String)) ' Nothing Dim value = CreateDkmClrValue(Nothing, type:=stringType) Dim result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", "Nothing", "String", "s", editableValue:=Nothing, flags:=DkmEvaluationResultFlags.None)) ' "" value = CreateDkmClrValue(String.Empty, type:=stringType) result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", "", "String", "s", editableValue:="""""", flags:=DkmEvaluationResultFlags.RawString)) ' "'" value = CreateDkmClrValue("'", type:=stringType) result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", "'", "String", "s", editableValue:="""'""", flags:=DkmEvaluationResultFlags.RawString)) ' """" value = CreateDkmClrValue("""", type:=stringType) result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", """", "String", "s", editableValue:="""""""""", flags:=DkmEvaluationResultFlags.RawString)) ' "a" & vbCrLf & "b" & vbTab & vbVerticalTab & vbBack & "c" value = CreateDkmClrValue("a" & vbCrLf & "b" & vbTab & vbVerticalTab & vbBack & "c", type:=stringType) result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", "a" & vbCrLf & "b" & vbTab & vbVerticalTab & vbBack & "c", "String", "s", editableValue:="""a"" & vbCrLf & ""b"" & vbTab & vbVerticalTab & vbBack & ""c""", flags:=DkmEvaluationResultFlags.RawString)) ' "a" & vbNullChar & "b" value = CreateDkmClrValue("a" & vbNullChar & "b", type:=stringType) result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", "a" & vbNullChar & "b", "String", "s", editableValue:="""a"" & vbNullChar & ""b""", flags:=DkmEvaluationResultFlags.RawString)) ' " " with alias value = CreateDkmClrValue(" ", type:=stringType, [alias]:="$1", evalFlags:=DkmEvaluationResultFlags.HasObjectId) result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", " {$1}", "String", "s", editableValue:=""" """, flags:=DkmEvaluationResultFlags.RawString Or DkmEvaluationResultFlags.HasObjectId)) ' array value = CreateDkmClrValue({"1"}, type:=stringType.MakeArrayType()) result = FormatResult("a", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("a", "{Length=1}", "String()", "a", editableValue:=Nothing, flags:=DkmEvaluationResultFlags.Expandable)) Dim children = GetChildren(result) ' DkmInspectionContext should not be inherited. Verify(children, EvalResult("(0)", """1""", "String", "a(0)", editableValue:="""1""", flags:=DkmEvaluationResultFlags.RawString)) End Sub <Fact> Public Sub NoQuotes_Char() Dim runtime = New DkmClrRuntimeInstance(ReflectionUtilities.GetMscorlib()) Dim inspectionContext = CreateDkmInspectionContext(DkmEvaluationFlags.NoQuotes) Dim charType = runtime.GetType(GetType(Char)) ' 0 Dim value = CreateDkmClrValue(ChrW(0), type:=charType) Dim result = FormatResult("c", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("c", vbNullChar, "Char", "c", editableValue:="vbNullChar", flags:=DkmEvaluationResultFlags.None)) ' "'"c value = CreateDkmClrValue("'"c, type:=charType) result = FormatResult("c", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("c", "'", "Char", "c", editableValue:="""'""c", flags:=DkmEvaluationResultFlags.None)) ' """"c value = CreateDkmClrValue(""""c, type:=charType) result = FormatResult("c", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("c", """"c, "Char", "c", editableValue:="""""""""c", flags:=DkmEvaluationResultFlags.None)) ' "\"c value = CreateDkmClrValue("\"c, type:=charType) result = FormatResult("c", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("c", "\"c, "Char", "c", editableValue:="""\""c", flags:=DkmEvaluationResultFlags.None)) ' vbLf value = CreateDkmClrValue(ChrW(10), type:=charType) result = FormatResult("c", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("c", vbLf, "Char", "c", editableValue:="vbLf", flags:=DkmEvaluationResultFlags.None)) ' ChrW(&H001E) value = CreateDkmClrValue(ChrW(&H001E), type:=charType) result = FormatResult("c", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("c", New String({ChrW(&H001E)}), "Char", "c", editableValue:="ChrW(30)", flags:=DkmEvaluationResultFlags.None)) ' array value = CreateDkmClrValue({"1"c}, type:=charType.MakeArrayType()) result = FormatResult("a", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("a", "{Length=1}", "Char()", "a", editableValue:=Nothing, flags:=DkmEvaluationResultFlags.Expandable)) Dim children = GetChildren(result) ' DkmInspectionContext should not be inherited. Verify(children, EvalResult("(0)", """1""c", "Char", "a(0)", editableValue:="""1""c", flags:=DkmEvaluationResultFlags.None)) 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.ExpressionEvaluator Imports Microsoft.VisualStudio.Debugger.Clr Imports Microsoft.VisualStudio.Debugger.Evaluation Imports Xunit Namespace Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.UnitTests Public Class FormatSpecifierTests Inherits VisualBasicResultProviderTestBase <Fact> Public Sub NoQuotes_String() Dim runtime = New DkmClrRuntimeInstance(ReflectionUtilities.GetMscorlib()) Dim inspectionContext = CreateDkmInspectionContext(DkmEvaluationFlags.NoQuotes) Dim stringType = runtime.GetType(GetType(String)) ' Nothing Dim value = CreateDkmClrValue(Nothing, type:=stringType) Dim result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", "Nothing", "String", "s", editableValue:=Nothing, flags:=DkmEvaluationResultFlags.None)) ' "" value = CreateDkmClrValue(String.Empty, type:=stringType) result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", "", "String", "s", editableValue:="""""", flags:=DkmEvaluationResultFlags.RawString)) ' "'" value = CreateDkmClrValue("'", type:=stringType) result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", "'", "String", "s", editableValue:="""'""", flags:=DkmEvaluationResultFlags.RawString)) ' """" value = CreateDkmClrValue("""", type:=stringType) result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", """", "String", "s", editableValue:="""""""""", flags:=DkmEvaluationResultFlags.RawString)) ' "a" & vbCrLf & "b" & vbTab & vbVerticalTab & vbBack & "c" value = CreateDkmClrValue("a" & vbCrLf & "b" & vbTab & vbVerticalTab & vbBack & "c", type:=stringType) result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", "a" & vbCrLf & "b" & vbTab & vbVerticalTab & vbBack & "c", "String", "s", editableValue:="""a"" & vbCrLf & ""b"" & vbTab & vbVerticalTab & vbBack & ""c""", flags:=DkmEvaluationResultFlags.RawString)) ' "a" & vbNullChar & "b" value = CreateDkmClrValue("a" & vbNullChar & "b", type:=stringType) result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", "a" & vbNullChar & "b", "String", "s", editableValue:="""a"" & vbNullChar & ""b""", flags:=DkmEvaluationResultFlags.RawString)) ' " " with alias value = CreateDkmClrValue(" ", type:=stringType, [alias]:="$1", evalFlags:=DkmEvaluationResultFlags.HasObjectId) result = FormatResult("s", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("s", " {$1}", "String", "s", editableValue:=""" """, flags:=DkmEvaluationResultFlags.RawString Or DkmEvaluationResultFlags.HasObjectId)) ' array value = CreateDkmClrValue({"1"}, type:=stringType.MakeArrayType()) result = FormatResult("a", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("a", "{Length=1}", "String()", "a", editableValue:=Nothing, flags:=DkmEvaluationResultFlags.Expandable)) Dim children = GetChildren(result) ' DkmInspectionContext should not be inherited. Verify(children, EvalResult("(0)", """1""", "String", "a(0)", editableValue:="""1""", flags:=DkmEvaluationResultFlags.RawString)) End Sub <Fact> Public Sub NoQuotes_Char() Dim runtime = New DkmClrRuntimeInstance(ReflectionUtilities.GetMscorlib()) Dim inspectionContext = CreateDkmInspectionContext(DkmEvaluationFlags.NoQuotes) Dim charType = runtime.GetType(GetType(Char)) ' 0 Dim value = CreateDkmClrValue(ChrW(0), type:=charType) Dim result = FormatResult("c", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("c", vbNullChar, "Char", "c", editableValue:="vbNullChar", flags:=DkmEvaluationResultFlags.None)) ' "'"c value = CreateDkmClrValue("'"c, type:=charType) result = FormatResult("c", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("c", "'", "Char", "c", editableValue:="""'""c", flags:=DkmEvaluationResultFlags.None)) ' """"c value = CreateDkmClrValue(""""c, type:=charType) result = FormatResult("c", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("c", """"c, "Char", "c", editableValue:="""""""""c", flags:=DkmEvaluationResultFlags.None)) ' "\"c value = CreateDkmClrValue("\"c, type:=charType) result = FormatResult("c", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("c", "\"c, "Char", "c", editableValue:="""\""c", flags:=DkmEvaluationResultFlags.None)) ' vbLf value = CreateDkmClrValue(ChrW(10), type:=charType) result = FormatResult("c", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("c", vbLf, "Char", "c", editableValue:="vbLf", flags:=DkmEvaluationResultFlags.None)) ' ChrW(&H001E) value = CreateDkmClrValue(ChrW(&H001E), type:=charType) result = FormatResult("c", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("c", New String({ChrW(&H001E)}), "Char", "c", editableValue:="ChrW(30)", flags:=DkmEvaluationResultFlags.None)) ' array value = CreateDkmClrValue({"1"c}, type:=charType.MakeArrayType()) result = FormatResult("a", value, inspectionContext:=inspectionContext) Verify(result, EvalResult("a", "{Length=1}", "Char()", "a", editableValue:=Nothing, flags:=DkmEvaluationResultFlags.Expandable)) Dim children = GetChildren(result) ' DkmInspectionContext should not be inherited. Verify(children, EvalResult("(0)", """1""c", "Char", "a(0)", editableValue:="""1""c", flags:=DkmEvaluationResultFlags.None)) End Sub End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./eng/common/templates/job/job.yml
# Internal resources (telemetry, microbuild) can only be accessed from non-public projects, # and some (Microbuild) should only be applied to non-PR cases for internal builds. parameters: # Job schema parameters - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#job cancelTimeoutInMinutes: '' condition: '' container: '' continueOnError: false dependsOn: '' displayName: '' pool: '' steps: [] strategy: '' timeoutInMinutes: '' variables: [] workspace: '' # Job base template specific parameters # See schema documentation - https://github.com/dotnet/arcade/blob/master/Documentation/AzureDevOps/TemplateSchema.md artifacts: '' enableMicrobuild: false enablePublishBuildArtifacts: false enablePublishBuildAssets: false enablePublishTestResults: false enablePublishUsingPipelines: false mergeTestResults: false testRunTitle: '' testResultsFormat: '' name: '' preSteps: [] runAsPublic: false jobs: - job: ${{ parameters.name }} ${{ if ne(parameters.cancelTimeoutInMinutes, '') }}: cancelTimeoutInMinutes: ${{ parameters.cancelTimeoutInMinutes }} ${{ if ne(parameters.condition, '') }}: condition: ${{ parameters.condition }} ${{ if ne(parameters.container, '') }}: container: ${{ parameters.container }} ${{ if ne(parameters.continueOnError, '') }}: continueOnError: ${{ parameters.continueOnError }} ${{ if ne(parameters.dependsOn, '') }}: dependsOn: ${{ parameters.dependsOn }} ${{ if ne(parameters.displayName, '') }}: displayName: ${{ parameters.displayName }} ${{ if ne(parameters.pool, '') }}: pool: ${{ parameters.pool }} ${{ if ne(parameters.strategy, '') }}: strategy: ${{ parameters.strategy }} ${{ if ne(parameters.timeoutInMinutes, '') }}: timeoutInMinutes: ${{ parameters.timeoutInMinutes }} variables: - ${{ if ne(parameters.enableTelemetry, 'false') }}: - name: DOTNET_CLI_TELEMETRY_PROFILE value: '$(Build.Repository.Uri)' - ${{ if eq(parameters.enableRichCodeNavigation, 'true') }}: - name: EnableRichCodeNavigation value: 'true' - ${{ each variable in parameters.variables }}: # handle name-value variable syntax # example: # - name: [key] # value: [value] - ${{ if ne(variable.name, '') }}: - name: ${{ variable.name }} value: ${{ variable.value }} # handle variable groups - ${{ if ne(variable.group, '') }}: - group: ${{ variable.group }} # handle key-value variable syntax. # example: # - [key]: [value] - ${{ if and(eq(variable.name, ''), eq(variable.group, '')) }}: - ${{ each pair in variable }}: - name: ${{ pair.key }} value: ${{ pair.value }} # DotNet-HelixApi-Access provides 'HelixApiAccessToken' for internal builds - ${{ if and(eq(parameters.enableTelemetry, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - group: DotNet-HelixApi-Access ${{ if ne(parameters.workspace, '') }}: workspace: ${{ parameters.workspace }} steps: - ${{ if ne(parameters.preSteps, '') }}: - ${{ each preStep in parameters.preSteps }}: - ${{ preStep }} - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - ${{ if eq(parameters.enableMicrobuild, 'true') }}: - task: MicroBuildSigningPlugin@2 displayName: Install MicroBuild plugin inputs: signType: $(_SignType) zipSources: false feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json env: TeamName: $(_TeamName) continueOnError: ${{ parameters.continueOnError }} condition: and(succeeded(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT')) - task: NuGetAuthenticate@0 - ${{ if or(eq(parameters.artifacts.download, 'true'), ne(parameters.artifacts.download, '')) }}: - task: DownloadPipelineArtifact@2 inputs: buildType: current artifactName: ${{ coalesce(parameters.artifacts.download.name, 'Artifacts_$(Agent.OS)_$(_BuildConfig)') }} targetPath: ${{ coalesce(parameters.artifacts.download.path, 'artifacts') }} itemPattern: ${{ coalesce(parameters.artifacts.download.pattern, '**') }} - ${{ each step in parameters.steps }}: - ${{ step }} - ${{ if eq(parameters.enableRichCodeNavigation, true) }}: - task: RichCodeNavIndexer@0 displayName: RichCodeNav Upload inputs: languages: ${{ coalesce(parameters.richCodeNavigationLanguage, 'csharp') }} environment: ${{ coalesce(parameters.richCodeNavigationEnvironment, 'production') }} richNavLogOutputDirectory: $(Build.SourcesDirectory)/artifacts/bin continueOnError: true - ${{ if eq(parameters.enableMicrobuild, 'true') }}: - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - task: MicroBuildCleanup@1 displayName: Execute Microbuild cleanup tasks condition: and(always(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT')) continueOnError: ${{ parameters.continueOnError }} env: TeamName: $(_TeamName) - ${{ if ne(parameters.artifacts.publish, '') }}: - ${{ if or(eq(parameters.artifacts.publish.artifacts, 'true'), ne(parameters.artifacts.publish.artifacts, '')) }}: - task: CopyFiles@2 displayName: Gather binaries for publish to artifacts inputs: SourceFolder: 'artifacts/bin' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/artifacts/bin' - task: CopyFiles@2 displayName: Gather packages for publish to artifacts inputs: SourceFolder: 'artifacts/packages' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/artifacts/packages' - task: PublishBuildArtifacts@1 displayName: Publish pipeline artifacts inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)/artifacts' PublishLocation: Container ArtifactName: ${{ coalesce(parameters.artifacts.publish.artifacts.name , 'Artifacts_$(Agent.Os)_$(_BuildConfig)') }} continueOnError: true condition: always() - ${{ if or(eq(parameters.artifacts.publish.logs, 'true'), ne(parameters.artifacts.publish.logs, '')) }}: - publish: artifacts/log artifact: ${{ coalesce(parameters.artifacts.publish.logs.name, 'Logs_Build_$(Agent.Os)_$(_BuildConfig)') }} displayName: Publish logs continueOnError: true condition: always() - ${{ if or(eq(parameters.artifacts.publish.manifests, 'true'), ne(parameters.artifacts.publish.manifests, '')) }}: - ${{ if and(ne(parameters.enablePublishUsingPipelines, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - task: CopyFiles@2 displayName: Gather Asset Manifests inputs: SourceFolder: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/AssetManifest' TargetFolder: '$(Build.ArtifactStagingDirectory)/AssetManifests' continueOnError: ${{ parameters.continueOnError }} condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true')) - task: PublishBuildArtifacts@1 displayName: Push Asset Manifests inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)/AssetManifests' PublishLocation: Container ArtifactName: AssetManifests continueOnError: ${{ parameters.continueOnError }} condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true')) - ${{ if ne(parameters.enablePublishBuildArtifacts, 'false') }}: - task: PublishBuildArtifacts@1 displayName: Publish Logs inputs: PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)' PublishLocation: Container ArtifactName: ${{ coalesce(parameters.enablePublishBuildArtifacts.artifactName, '$(Agent.Os)_$(Agent.JobName)' ) }} continueOnError: true condition: always() - ${{ if or(and(eq(parameters.enablePublishTestResults, 'true'), eq(parameters.testResultsFormat, '')), eq(parameters.testResultsFormat, 'xunit')) }}: - task: PublishTestResults@2 displayName: Publish XUnit Test Results inputs: testResultsFormat: 'xUnit' testResultsFiles: '*.xml' searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)' testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-xunit mergeTestResults: ${{ parameters.mergeTestResults }} continueOnError: true condition: always() - ${{ if or(and(eq(parameters.enablePublishTestResults, 'true'), eq(parameters.testResultsFormat, '')), eq(parameters.testResultsFormat, 'vstest')) }}: - task: PublishTestResults@2 displayName: Publish TRX Test Results inputs: testResultsFormat: 'VSTest' testResultsFiles: '*.trx' searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)' testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-trx mergeTestResults: ${{ parameters.mergeTestResults }} continueOnError: true condition: always() - ${{ if and(eq(parameters.enablePublishBuildAssets, true), ne(parameters.enablePublishUsingPipelines, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - task: CopyFiles@2 displayName: Gather Asset Manifests inputs: SourceFolder: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/AssetManifest' TargetFolder: '$(Build.StagingDirectory)/AssetManifests' continueOnError: ${{ parameters.continueOnError }} condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true')) - task: PublishBuildArtifacts@1 displayName: Push Asset Manifests inputs: PathtoPublish: '$(Build.StagingDirectory)/AssetManifests' PublishLocation: Container ArtifactName: AssetManifests continueOnError: ${{ parameters.continueOnError }} condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true'))
# Internal resources (telemetry, microbuild) can only be accessed from non-public projects, # and some (Microbuild) should only be applied to non-PR cases for internal builds. parameters: # Job schema parameters - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#job cancelTimeoutInMinutes: '' condition: '' container: '' continueOnError: false dependsOn: '' displayName: '' pool: '' steps: [] strategy: '' timeoutInMinutes: '' variables: [] workspace: '' # Job base template specific parameters # See schema documentation - https://github.com/dotnet/arcade/blob/master/Documentation/AzureDevOps/TemplateSchema.md artifacts: '' enableMicrobuild: false enablePublishBuildArtifacts: false enablePublishBuildAssets: false enablePublishTestResults: false enablePublishUsingPipelines: false mergeTestResults: false testRunTitle: '' testResultsFormat: '' name: '' preSteps: [] runAsPublic: false jobs: - job: ${{ parameters.name }} ${{ if ne(parameters.cancelTimeoutInMinutes, '') }}: cancelTimeoutInMinutes: ${{ parameters.cancelTimeoutInMinutes }} ${{ if ne(parameters.condition, '') }}: condition: ${{ parameters.condition }} ${{ if ne(parameters.container, '') }}: container: ${{ parameters.container }} ${{ if ne(parameters.continueOnError, '') }}: continueOnError: ${{ parameters.continueOnError }} ${{ if ne(parameters.dependsOn, '') }}: dependsOn: ${{ parameters.dependsOn }} ${{ if ne(parameters.displayName, '') }}: displayName: ${{ parameters.displayName }} ${{ if ne(parameters.pool, '') }}: pool: ${{ parameters.pool }} ${{ if ne(parameters.strategy, '') }}: strategy: ${{ parameters.strategy }} ${{ if ne(parameters.timeoutInMinutes, '') }}: timeoutInMinutes: ${{ parameters.timeoutInMinutes }} variables: - ${{ if ne(parameters.enableTelemetry, 'false') }}: - name: DOTNET_CLI_TELEMETRY_PROFILE value: '$(Build.Repository.Uri)' - ${{ if eq(parameters.enableRichCodeNavigation, 'true') }}: - name: EnableRichCodeNavigation value: 'true' - ${{ each variable in parameters.variables }}: # handle name-value variable syntax # example: # - name: [key] # value: [value] - ${{ if ne(variable.name, '') }}: - name: ${{ variable.name }} value: ${{ variable.value }} # handle variable groups - ${{ if ne(variable.group, '') }}: - group: ${{ variable.group }} # handle key-value variable syntax. # example: # - [key]: [value] - ${{ if and(eq(variable.name, ''), eq(variable.group, '')) }}: - ${{ each pair in variable }}: - name: ${{ pair.key }} value: ${{ pair.value }} # DotNet-HelixApi-Access provides 'HelixApiAccessToken' for internal builds - ${{ if and(eq(parameters.enableTelemetry, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - group: DotNet-HelixApi-Access ${{ if ne(parameters.workspace, '') }}: workspace: ${{ parameters.workspace }} steps: - ${{ if ne(parameters.preSteps, '') }}: - ${{ each preStep in parameters.preSteps }}: - ${{ preStep }} - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - ${{ if eq(parameters.enableMicrobuild, 'true') }}: - task: MicroBuildSigningPlugin@2 displayName: Install MicroBuild plugin inputs: signType: $(_SignType) zipSources: false feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json env: TeamName: $(_TeamName) continueOnError: ${{ parameters.continueOnError }} condition: and(succeeded(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT')) - task: NuGetAuthenticate@0 - ${{ if or(eq(parameters.artifacts.download, 'true'), ne(parameters.artifacts.download, '')) }}: - task: DownloadPipelineArtifact@2 inputs: buildType: current artifactName: ${{ coalesce(parameters.artifacts.download.name, 'Artifacts_$(Agent.OS)_$(_BuildConfig)') }} targetPath: ${{ coalesce(parameters.artifacts.download.path, 'artifacts') }} itemPattern: ${{ coalesce(parameters.artifacts.download.pattern, '**') }} - ${{ each step in parameters.steps }}: - ${{ step }} - ${{ if eq(parameters.enableRichCodeNavigation, true) }}: - task: RichCodeNavIndexer@0 displayName: RichCodeNav Upload inputs: languages: ${{ coalesce(parameters.richCodeNavigationLanguage, 'csharp') }} environment: ${{ coalesce(parameters.richCodeNavigationEnvironment, 'production') }} richNavLogOutputDirectory: $(Build.SourcesDirectory)/artifacts/bin continueOnError: true - ${{ if eq(parameters.enableMicrobuild, 'true') }}: - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - task: MicroBuildCleanup@1 displayName: Execute Microbuild cleanup tasks condition: and(always(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT')) continueOnError: ${{ parameters.continueOnError }} env: TeamName: $(_TeamName) - ${{ if ne(parameters.artifacts.publish, '') }}: - ${{ if or(eq(parameters.artifacts.publish.artifacts, 'true'), ne(parameters.artifacts.publish.artifacts, '')) }}: - task: CopyFiles@2 displayName: Gather binaries for publish to artifacts inputs: SourceFolder: 'artifacts/bin' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/artifacts/bin' - task: CopyFiles@2 displayName: Gather packages for publish to artifacts inputs: SourceFolder: 'artifacts/packages' Contents: '**' TargetFolder: '$(Build.ArtifactStagingDirectory)/artifacts/packages' - task: PublishBuildArtifacts@1 displayName: Publish pipeline artifacts inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)/artifacts' PublishLocation: Container ArtifactName: ${{ coalesce(parameters.artifacts.publish.artifacts.name , 'Artifacts_$(Agent.Os)_$(_BuildConfig)') }} continueOnError: true condition: always() - ${{ if or(eq(parameters.artifacts.publish.logs, 'true'), ne(parameters.artifacts.publish.logs, '')) }}: - publish: artifacts/log artifact: ${{ coalesce(parameters.artifacts.publish.logs.name, 'Logs_Build_$(Agent.Os)_$(_BuildConfig)') }} displayName: Publish logs continueOnError: true condition: always() - ${{ if or(eq(parameters.artifacts.publish.manifests, 'true'), ne(parameters.artifacts.publish.manifests, '')) }}: - ${{ if and(ne(parameters.enablePublishUsingPipelines, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - task: CopyFiles@2 displayName: Gather Asset Manifests inputs: SourceFolder: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/AssetManifest' TargetFolder: '$(Build.ArtifactStagingDirectory)/AssetManifests' continueOnError: ${{ parameters.continueOnError }} condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true')) - task: PublishBuildArtifacts@1 displayName: Push Asset Manifests inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)/AssetManifests' PublishLocation: Container ArtifactName: AssetManifests continueOnError: ${{ parameters.continueOnError }} condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true')) - ${{ if ne(parameters.enablePublishBuildArtifacts, 'false') }}: - task: PublishBuildArtifacts@1 displayName: Publish Logs inputs: PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)' PublishLocation: Container ArtifactName: ${{ coalesce(parameters.enablePublishBuildArtifacts.artifactName, '$(Agent.Os)_$(Agent.JobName)' ) }} continueOnError: true condition: always() - ${{ if or(and(eq(parameters.enablePublishTestResults, 'true'), eq(parameters.testResultsFormat, '')), eq(parameters.testResultsFormat, 'xunit')) }}: - task: PublishTestResults@2 displayName: Publish XUnit Test Results inputs: testResultsFormat: 'xUnit' testResultsFiles: '*.xml' searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)' testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-xunit mergeTestResults: ${{ parameters.mergeTestResults }} continueOnError: true condition: always() - ${{ if or(and(eq(parameters.enablePublishTestResults, 'true'), eq(parameters.testResultsFormat, '')), eq(parameters.testResultsFormat, 'vstest')) }}: - task: PublishTestResults@2 displayName: Publish TRX Test Results inputs: testResultsFormat: 'VSTest' testResultsFiles: '*.trx' searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)' testRunTitle: ${{ coalesce(parameters.testRunTitle, parameters.name, '$(System.JobName)') }}-trx mergeTestResults: ${{ parameters.mergeTestResults }} continueOnError: true condition: always() - ${{ if and(eq(parameters.enablePublishBuildAssets, true), ne(parameters.enablePublishUsingPipelines, 'true'), eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - task: CopyFiles@2 displayName: Gather Asset Manifests inputs: SourceFolder: '$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/AssetManifest' TargetFolder: '$(Build.StagingDirectory)/AssetManifests' continueOnError: ${{ parameters.continueOnError }} condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true')) - task: PublishBuildArtifacts@1 displayName: Push Asset Manifests inputs: PathtoPublish: '$(Build.StagingDirectory)/AssetManifests' PublishLocation: Container ArtifactName: AssetManifests continueOnError: ${{ parameters.continueOnError }} condition: and(succeeded(), eq(variables['_DotNetPublishToBlobFeed'], 'true'))
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/Core/Portable/IntroduceVariable/AbstractIntroduceParameterDocumentRewriter.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.CodeAnalysis; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeActions; using Microsoft.CodeAnalysis.CodeGeneration; using Microsoft.CodeAnalysis.Editing; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.LanguageServices; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.IntroduceVariable { internal abstract partial class AbstractIntroduceParameterService<TExpressionSyntax, TInvocationExpressionSyntax, TObjectCreationExpressionSyntax, TIdentifierNameSyntax> { private class IntroduceParameterDocumentRewriter { private readonly AbstractIntroduceParameterService<TExpressionSyntax, TInvocationExpressionSyntax, TObjectCreationExpressionSyntax, TIdentifierNameSyntax> _service; private readonly Document _originalDocument; private readonly SyntaxGenerator _generator; private readonly ISyntaxFactsService _syntaxFacts; private readonly ISemanticFactsService _semanticFacts; private readonly TExpressionSyntax _expression; private readonly IMethodSymbol _methodSymbol; private readonly SyntaxNode _containerMethod; private readonly IntroduceParameterCodeActionKind _actionKind; private readonly bool _allOccurrences; public IntroduceParameterDocumentRewriter(AbstractIntroduceParameterService<TExpressionSyntax, TInvocationExpressionSyntax, TObjectCreationExpressionSyntax, TIdentifierNameSyntax> service, Document originalDocument, TExpressionSyntax expression, IMethodSymbol methodSymbol, SyntaxNode containingMethod, IntroduceParameterCodeActionKind selectedCodeAction, bool allOccurrences) { _service = service; _originalDocument = originalDocument; _generator = SyntaxGenerator.GetGenerator(originalDocument); _syntaxFacts = originalDocument.GetRequiredLanguageService<ISyntaxFactsService>(); _semanticFacts = originalDocument.GetRequiredLanguageService<ISemanticFactsService>(); _expression = expression; _methodSymbol = methodSymbol; _containerMethod = containingMethod; _actionKind = selectedCodeAction; _allOccurrences = allOccurrences; } public async Task<SyntaxNode> RewriteDocumentAsync(Compilation compilation, Document document, List<SyntaxNode> invocations, CancellationToken cancellationToken) { var insertionIndex = GetInsertionIndex(compilation); if (_actionKind is IntroduceParameterCodeActionKind.Overload or IntroduceParameterCodeActionKind.Trampoline) { return await ModifyDocumentInvocationsTrampolineOverloadAndIntroduceParameterAsync( compilation, document, invocations, insertionIndex, cancellationToken).ConfigureAwait(false); } else { return await ModifyDocumentInvocationsAndIntroduceParameterAsync( compilation, document, insertionIndex, invocations, cancellationToken).ConfigureAwait(false); } } /// <summary> /// Ties the identifiers within the expression back to their associated parameter. /// </summary> private async Task<Dictionary<TIdentifierNameSyntax, IParameterSymbol>> MapExpressionToParametersAsync(CancellationToken cancellationToken) { var nameToParameterDict = new Dictionary<TIdentifierNameSyntax, IParameterSymbol>(); var variablesInExpression = _expression.DescendantNodes().OfType<TIdentifierNameSyntax>(); var semanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); foreach (var variable in variablesInExpression) { var symbol = semanticModel.GetSymbolInfo(variable, cancellationToken).Symbol; if (symbol is IParameterSymbol parameterSymbol) { nameToParameterDict.Add(variable, parameterSymbol); } } return nameToParameterDict; } /// <summary> /// Gets the parameter name, if the expression's grandparent is a variable declarator then it just gets the /// local declarations name. Otherwise, it generates a name based on the context of the expression. /// </summary> private async Task<string> GetNewParameterNameAsync(CancellationToken cancellationToken) { if (ShouldRemoveVariableDeclaratorContainingExpression(out var varDeclName, out _)) { return varDeclName; } var semanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); var semanticFacts = _originalDocument.GetRequiredLanguageService<ISemanticFactsService>(); return semanticFacts.GenerateNameForExpression(semanticModel, _expression, capitalize: false, cancellationToken); } /// <summary> /// Determines if the expression's grandparent is a variable declarator and if so, /// returns the name /// </summary> private bool ShouldRemoveVariableDeclaratorContainingExpression([NotNullWhen(true)] out string? varDeclName, [NotNullWhen(true)] out SyntaxNode? localDeclaration) { var declarator = _expression?.Parent?.Parent; localDeclaration = null; if (!_syntaxFacts.IsVariableDeclarator(declarator)) { varDeclName = null; return false; } localDeclaration = _service.GetLocalDeclarationFromDeclarator(declarator); if (localDeclaration is null) { varDeclName = null; return false; } // TODO: handle in the future if (_syntaxFacts.GetVariablesOfLocalDeclarationStatement(localDeclaration).Count > 1) { varDeclName = null; localDeclaration = null; return false; } varDeclName = _syntaxFacts.GetIdentifierOfVariableDeclarator(declarator).ValueText; return true; } /// <summary> /// Goes through the parameters of the original method to get the location that the parameter /// and argument should be introduced. /// </summary> private int GetInsertionIndex(Compilation compilation) { var parameterList = _syntaxFacts.GetParameterList(_containerMethod); Contract.ThrowIfNull(parameterList); var insertionIndex = 0; foreach (var parameterSymbol in _methodSymbol.Parameters) { // Want to skip optional parameters, params parameters, and CancellationToken since they should be at // the end of the list. if (ShouldParameterBeSkipped(compilation, parameterSymbol)) { insertionIndex++; } } return insertionIndex; } /// <summary> /// For the trampoline case, it goes through the invocations and adds an argument which is a /// call to the extracted method. /// Introduces a new method overload or new trampoline method. /// Updates the original method site with a newly introduced parameter. /// /// ****Trampoline Example:**** /// public void M(int x, int y) /// { /// int f = [|x * y|]; /// Console.WriteLine(f); /// } /// /// public void InvokeMethod() /// { /// M(5, 6); /// } /// /// ----------------------------------------------------> /// /// public int GetF(int x, int y) // Generated method /// { /// return x * y; /// } /// /// public void M(int x, int y, int f) /// { /// Console.WriteLine(f); /// } /// /// public void InvokeMethod() /// { /// M(5, 6, GetF(5, 6)); //Fills in with call to generated method /// } /// /// ----------------------------------------------------------------------- /// ****Overload Example:**** /// public void M(int x, int y) /// { /// int f = [|x * y|]; /// Console.WriteLine(f); /// } /// /// public void InvokeMethod() /// { /// M(5, 6); /// } /// /// ----------------------------------------------------> /// /// public void M(int x, int y) // Generated overload /// { /// M(x, y, x * y) /// } /// /// public void M(int x, int y, int f) /// { /// Console.WriteLine(f); /// } /// /// public void InvokeMethod() /// { /// M(5, 6); /// } /// </summary> private async Task<SyntaxNode> ModifyDocumentInvocationsTrampolineOverloadAndIntroduceParameterAsync(Compilation compilation, Document currentDocument, List<SyntaxNode> invocations, int insertionIndex, CancellationToken cancellationToken) { var invocationSemanticModel = await currentDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); var root = await currentDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); var editor = new SyntaxEditor(root, _generator); var parameterName = await GetNewParameterNameAsync(cancellationToken).ConfigureAwait(false); var expressionParameterMap = await MapExpressionToParametersAsync(cancellationToken).ConfigureAwait(false); // Creating a new method name by concatenating the parameter name that has been upper-cased. var newMethodIdentifier = "Get" + parameterName.ToPascalCase(); var validParameters = _methodSymbol.Parameters.Intersect(expressionParameterMap.Values).ToImmutableArray(); if (_actionKind is IntroduceParameterCodeActionKind.Trampoline) { // Creating an empty map here to reuse so that we do not create a new dictionary for // every single invocation. var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>(); foreach (var invocation in invocations) { var argumentListSyntax = _syntaxFacts.GetArgumentListOfInvocationExpression(invocation); editor.ReplaceNode(argumentListSyntax, (currentArgumentListSyntax, _) => { return GenerateNewArgumentListSyntaxForTrampoline(compilation, invocationSemanticModel, parameterToArgumentMap, currentArgumentListSyntax, argumentListSyntax, invocation, validParameters, parameterName, newMethodIdentifier, insertionIndex, cancellationToken); }); } } // If you are at the original document, then also introduce the new method and introduce the parameter. if (currentDocument.Id == _originalDocument.Id) { var newMethodNode = _actionKind is IntroduceParameterCodeActionKind.Trampoline ? await ExtractMethodAsync(validParameters, newMethodIdentifier, _generator, cancellationToken).ConfigureAwait(false) : await GenerateNewMethodOverloadAsync(insertionIndex, _generator, cancellationToken).ConfigureAwait(false); editor.InsertBefore(_containerMethod, newMethodNode); await UpdateExpressionInOriginalFunctionAsync(editor, cancellationToken).ConfigureAwait(false); var parameterType = await GetTypeOfExpressionAsync(cancellationToken).ConfigureAwait(false); var parameter = _generator.ParameterDeclaration(parameterName, _generator.TypeExpression(parameterType)); editor.InsertParameter(_containerMethod, insertionIndex, parameter); } return editor.GetChangedRoot(); // Adds an argument which is an invocation of the newly created method to the callsites // of the method invocations where a parameter was added. // Example: // public void M(int x, int y) // { // int f = [|x * y|]; // Console.WriteLine(f); // } // // public void InvokeMethod() // { // M(5, 6); // } // // ----------------------------------------------------> // // public int GetF(int x, int y) // { // return x * y; // } // // public void M(int x, int y) // { // int f = x * y; // Console.WriteLine(f); // } // // public void InvokeMethod() // { // M(5, 6, GetF(5, 6)); // This is the generated invocation which is a new argument at the call site // } SyntaxNode GenerateNewArgumentListSyntaxForTrampoline(Compilation compilation, SemanticModel invocationSemanticModel, Dictionary<IParameterSymbol, int> parameterToArgumentMap, SyntaxNode currentArgumentListSyntax, SyntaxNode argumentListSyntax, SyntaxNode invocation, ImmutableArray<IParameterSymbol> validParameters, string parameterName, string newMethodIdentifier, int insertionIndex, CancellationToken cancellationToken) { var invocationArguments = _syntaxFacts.GetArgumentsOfArgumentList(argumentListSyntax); parameterToArgumentMap.Clear(); MapParameterToArgumentsAtInvocation(parameterToArgumentMap, invocationArguments, invocationSemanticModel, cancellationToken); var currentInvocationArguments = _syntaxFacts.GetArgumentsOfArgumentList(currentArgumentListSyntax); var requiredArguments = new List<SyntaxNode>(); foreach (var parameterSymbol in validParameters) { if (parameterToArgumentMap.TryGetValue(parameterSymbol, out var index)) { requiredArguments.Add(currentInvocationArguments[index]); } } var conditionalRoot = _syntaxFacts.GetRootConditionalAccessExpression(invocation); var named = ShouldArgumentBeNamed(compilation, invocationSemanticModel, invocationArguments, insertionIndex, cancellationToken); var newMethodInvocation = GenerateNewMethodInvocation(invocation, requiredArguments, newMethodIdentifier); SeparatedSyntaxList<SyntaxNode> allArguments; if (conditionalRoot is null) { allArguments = AddArgumentToArgumentList(currentInvocationArguments, newMethodInvocation, parameterName, insertionIndex, named); } else { // Conditional Access expressions are parents of invocations, so it is better to just replace the // invocation in place then rebuild the tree structure. var expressionsWithConditionalAccessors = conditionalRoot.ReplaceNode(invocation, newMethodInvocation); allArguments = AddArgumentToArgumentList(currentInvocationArguments, expressionsWithConditionalAccessors, parameterName, insertionIndex, named); } return _service.UpdateArgumentListSyntax(currentArgumentListSyntax, allArguments); } } private async Task<ITypeSymbol> GetTypeOfExpressionAsync(CancellationToken cancellationToken) { var semanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); var typeSymbol = semanticModel.GetTypeInfo(_expression, cancellationToken).ConvertedType ?? semanticModel.Compilation.ObjectType; return typeSymbol; } private SyntaxNode GenerateNewMethodInvocation(SyntaxNode invocation, List<SyntaxNode> arguments, string newMethodIdentifier) { var methodName = _generator.IdentifierName(newMethodIdentifier); var fullExpression = _syntaxFacts.GetExpressionOfInvocationExpression(invocation); if (_syntaxFacts.IsAnyMemberAccessExpression(fullExpression)) { var receiverExpression = _syntaxFacts.GetExpressionOfMemberAccessExpression(fullExpression); methodName = _generator.MemberAccessExpression(receiverExpression, newMethodIdentifier); } else if (_syntaxFacts.IsMemberBindingExpression(fullExpression)) { methodName = _generator.MemberBindingExpression(_generator.IdentifierName(newMethodIdentifier)); } return _generator.InvocationExpression(methodName, arguments); } /// <summary> /// Generates a method declaration containing a return expression of the highlighted expression. /// Example: /// public void M(int x, int y) /// { /// int f = [|x * y|]; /// } /// /// ----------------------------------------------------> /// /// public int GetF(int x, int y) /// { /// return x * y; /// } /// /// public void M(int x, int y) /// { /// int f = x * y; /// } /// </summary> private async Task<SyntaxNode> ExtractMethodAsync(ImmutableArray<IParameterSymbol> validParameters, string newMethodIdentifier, SyntaxGenerator generator, CancellationToken cancellationToken) { // Remove trivia so the expression is in a single line and does not affect the spacing of the following line var returnStatement = generator.ReturnStatement(_expression.WithoutTrivia()); var typeSymbol = await GetTypeOfExpressionAsync(cancellationToken).ConfigureAwait(false); var newMethodDeclaration = await CreateMethodDeclarationAsync(returnStatement, validParameters, newMethodIdentifier, typeSymbol, isTrampoline: true, cancellationToken).ConfigureAwait(false); return newMethodDeclaration; } /// <summary> /// Generates a method declaration containing a call to the method that introduced the parameter. /// Example: /// /// ***This is an intermediary step in which the original function has not be updated yet /// public void M(int x, int y) /// { /// int f = [|x * y|]; /// } /// /// ----------------------------------------------------> /// /// public void M(int x, int y) // Generated overload /// { /// M(x, y, x * y); /// } /// /// public void M(int x, int y) // Original function (which will be mutated in a later step) /// { /// int f = x * y; /// } /// </summary> private async Task<SyntaxNode> GenerateNewMethodOverloadAsync(int insertionIndex, SyntaxGenerator generator, CancellationToken cancellationToken) { // Need the parameters from the original function as arguments for the invocation var arguments = generator.CreateArguments(_methodSymbol.Parameters); // Remove trivia so the expression is in a single line and does not affect the spacing of the following line arguments = arguments.Insert(insertionIndex, generator.Argument(_expression.WithoutTrivia())); var memberName = _methodSymbol.IsGenericMethod ? generator.GenericName(_methodSymbol.Name, _methodSymbol.TypeArguments) : generator.IdentifierName(_methodSymbol.Name); var invocation = generator.InvocationExpression(memberName, arguments); var newStatement = _methodSymbol.ReturnsVoid ? generator.ExpressionStatement(invocation) : generator.ReturnStatement(invocation); var newMethodDeclaration = await CreateMethodDeclarationAsync(newStatement, validParameters: null, newMethodIdentifier: null, typeSymbol: null, isTrampoline: false, cancellationToken).ConfigureAwait(false); return newMethodDeclaration; } private async Task<SyntaxNode> CreateMethodDeclarationAsync(SyntaxNode newStatement, ImmutableArray<IParameterSymbol>? validParameters, string? newMethodIdentifier, ITypeSymbol? typeSymbol, bool isTrampoline, CancellationToken cancellationToken) { var codeGenerationService = _originalDocument.GetRequiredLanguageService<ICodeGenerationService>(); var options = await _originalDocument.GetOptionsAsync(cancellationToken).ConfigureAwait(false); var newMethod = isTrampoline ? CodeGenerationSymbolFactory.CreateMethodSymbol(_methodSymbol, name: newMethodIdentifier, parameters: validParameters, statements: ImmutableArray.Create(newStatement), returnType: typeSymbol) : CodeGenerationSymbolFactory.CreateMethodSymbol(_methodSymbol, statements: ImmutableArray.Create(newStatement), containingType: _methodSymbol.ContainingType); var newMethodDeclaration = codeGenerationService.CreateMethodDeclaration(newMethod, options: new CodeGenerationOptions(options: options, parseOptions: _expression.SyntaxTree.Options)); return newMethodDeclaration; } /// <summary> /// This method goes through all the invocation sites and adds a new argument with the expression to be added. /// It also introduces a parameter at the original method site. /// /// Example: /// public void M(int x, int y) /// { /// int f = [|x * y|]; /// } /// /// public void InvokeMethod() /// { /// M(5, 6); /// } /// /// ----------------------------------------------------> /// /// public void M(int x, int y, int f) // parameter gets introduced /// { /// } /// /// public void InvokeMethod() /// { /// M(5, 6, 5 * 6); // argument gets added to callsite /// } /// </summary> private async Task<SyntaxNode> ModifyDocumentInvocationsAndIntroduceParameterAsync(Compilation compilation, Document document, int insertionIndex, List<SyntaxNode> invocations, CancellationToken cancellationToken) { var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); var editor = new SyntaxEditor(root, _generator); var invocationSemanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>(); var expressionToParameterMap = await MapExpressionToParametersAsync(cancellationToken).ConfigureAwait(false); var parameterName = await GetNewParameterNameAsync(cancellationToken).ConfigureAwait(false); foreach (var invocation in invocations) { var expressionEditor = new SyntaxEditor(_expression, _generator); var argumentListSyntax = invocation is TObjectCreationExpressionSyntax ? _syntaxFacts.GetArgumentListOfObjectCreationExpression(invocation) : _syntaxFacts.GetArgumentListOfInvocationExpression(invocation); var invocationArguments = _syntaxFacts.GetArgumentsOfArgumentList(argumentListSyntax); parameterToArgumentMap.Clear(); MapParameterToArgumentsAtInvocation(parameterToArgumentMap, invocationArguments, invocationSemanticModel, cancellationToken); if (argumentListSyntax is not null) { editor.ReplaceNode(argumentListSyntax, (currentArgumentListSyntax, _) => { var updatedInvocationArguments = _syntaxFacts.GetArgumentsOfArgumentList(currentArgumentListSyntax); var updatedExpression = CreateNewArgumentExpression(expressionEditor, expressionToParameterMap, parameterToArgumentMap, updatedInvocationArguments); var named = ShouldArgumentBeNamed(compilation, invocationSemanticModel, invocationArguments, insertionIndex, cancellationToken); var allArguments = AddArgumentToArgumentList(updatedInvocationArguments, updatedExpression.WithAdditionalAnnotations(Formatter.Annotation), parameterName, insertionIndex, named); return _service.UpdateArgumentListSyntax(currentArgumentListSyntax, allArguments); }); } } // If you are at the original document, then also introduce the new method and introduce the parameter. if (document.Id == _originalDocument.Id) { await UpdateExpressionInOriginalFunctionAsync(editor, cancellationToken).ConfigureAwait(false); var parameterType = await GetTypeOfExpressionAsync(cancellationToken).ConfigureAwait(false); var parameter = _generator.ParameterDeclaration(name: parameterName, type: _generator.TypeExpression(parameterType)); editor.InsertParameter(_containerMethod, insertionIndex, parameter); } return editor.GetChangedRoot(); } /// <summary> /// This method iterates through the variables in the expression and maps the variables back to the parameter /// it is associated with. It then maps the parameter back to the argument at the invocation site and gets the /// index to retrieve the updated arguments at the invocation. /// </summary> private TExpressionSyntax CreateNewArgumentExpression(SyntaxEditor editor, Dictionary<TIdentifierNameSyntax, IParameterSymbol> mappingDictionary, Dictionary<IParameterSymbol, int> parameterToArgumentMap, SeparatedSyntaxList<SyntaxNode> updatedInvocationArguments) { foreach (var (variable, mappedParameter) in mappingDictionary) { var parameterMapped = parameterToArgumentMap.TryGetValue(mappedParameter, out var index); if (parameterMapped) { var updatedInvocationArgument = updatedInvocationArguments[index]; var argumentExpression = _syntaxFacts.GetExpressionOfArgument(updatedInvocationArgument); var parenthesizedArgumentExpression = editor.Generator.AddParentheses(argumentExpression, includeElasticTrivia: false); editor.ReplaceNode(variable, parenthesizedArgumentExpression); } else if (mappedParameter.HasExplicitDefaultValue) { var generatedExpression = _service.GenerateExpressionFromOptionalParameter(mappedParameter); var parenthesizedGeneratedExpression = editor.Generator.AddParentheses(generatedExpression, includeElasticTrivia: false); editor.ReplaceNode(variable, parenthesizedGeneratedExpression); } } return (TExpressionSyntax)editor.GetChangedRoot(); } /// <summary> /// If the parameter is optional and the invocation does not specify the parameter, then /// a named argument needs to be introduced. /// </summary> private SeparatedSyntaxList<SyntaxNode> AddArgumentToArgumentList( SeparatedSyntaxList<SyntaxNode> invocationArguments, SyntaxNode newArgumentExpression, string parameterName, int insertionIndex, bool named) { var argument = named ? _generator.Argument(parameterName, RefKind.None, newArgumentExpression) : _generator.Argument(newArgumentExpression); return invocationArguments.Insert(insertionIndex, argument); } private bool ShouldArgumentBeNamed(Compilation compilation, SemanticModel semanticModel, SeparatedSyntaxList<SyntaxNode> invocationArguments, int methodInsertionIndex, CancellationToken cancellationToken) { var invocationInsertIndex = 0; foreach (var invocationArgument in invocationArguments) { var argumentParameter = _semanticFacts.FindParameterForArgument(semanticModel, invocationArgument, cancellationToken); if (argumentParameter is not null && ShouldParameterBeSkipped(compilation, argumentParameter)) { invocationInsertIndex++; } else { break; } } return invocationInsertIndex < methodInsertionIndex; } private static bool ShouldParameterBeSkipped(Compilation compilation, IParameterSymbol parameter) => !parameter.HasExplicitDefaultValue && !parameter.IsParams && !parameter.Type.Equals(compilation.GetTypeByMetadataName(typeof(CancellationToken)?.FullName!)); private void MapParameterToArgumentsAtInvocation( Dictionary<IParameterSymbol, int> mapping, SeparatedSyntaxList<SyntaxNode> arguments, SemanticModel invocationSemanticModel, CancellationToken cancellationToken) { for (var i = 0; i < arguments.Count; i++) { var argumentParameter = _semanticFacts.FindParameterForArgument(invocationSemanticModel, arguments[i], cancellationToken); if (argumentParameter is not null) { mapping[argumentParameter] = i; } } } /// <summary> /// Gets the matches of the expression and replaces them with the identifier. /// Special case for the original matching expression, if its parent is a LocalDeclarationStatement then it can /// be removed because assigning the local dec variable to a parameter is repetitive. Does not need a rename /// annotation since the user has already named the local declaration. /// Otherwise, it needs to have a rename annotation added to it because the new parameter gets a randomly /// generated name that the user can immediately change. /// </summary> private async Task UpdateExpressionInOriginalFunctionAsync(SyntaxEditor editor, CancellationToken cancellationToken) { var generator = editor.Generator; var matches = await FindMatchesAsync(cancellationToken).ConfigureAwait(false); var parameterName = await GetNewParameterNameAsync(cancellationToken).ConfigureAwait(false); var replacement = (TIdentifierNameSyntax)generator.IdentifierName(parameterName); foreach (var match in matches) { // Special case the removal of the originating expression to either remove the local declaration // or to add a rename annotation. if (!match.Equals(_expression)) { editor.ReplaceNode(match, replacement); } else { if (ShouldRemoveVariableDeclaratorContainingExpression(out _, out var localDeclaration)) { editor.RemoveNode(localDeclaration); } else { // Found the initially selected expression. Replace it with the new name we choose, but also annotate // that name with the RenameAnnotation so a rename session is started where the user can pick their // own preferred name. replacement = (TIdentifierNameSyntax)generator.IdentifierName(generator.Identifier(parameterName) .WithAdditionalAnnotations(RenameAnnotation.Create())); editor.ReplaceNode(match, replacement); } } } } /// <summary> /// Finds the matches of the expression within the same block. /// </summary> private async Task<IEnumerable<TExpressionSyntax>> FindMatchesAsync(CancellationToken cancellationToken) { if (!_allOccurrences) { return SpecializedCollections.SingletonEnumerable(_expression); } var syntaxFacts = _originalDocument.GetRequiredLanguageService<ISyntaxFactsService>(); var originalSemanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); var matches = from nodeInCurrent in _containerMethod.DescendantNodesAndSelf().OfType<TExpressionSyntax>() where NodeMatchesExpression(originalSemanticModel, nodeInCurrent, cancellationToken) select nodeInCurrent; return matches; } private bool NodeMatchesExpression(SemanticModel originalSemanticModel, TExpressionSyntax currentNode, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); if (currentNode == _expression) { return true; } return SemanticEquivalence.AreEquivalent( originalSemanticModel, originalSemanticModel, _expression, currentNode); } } } }
// 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.CodeAnalysis; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeActions; using Microsoft.CodeAnalysis.CodeGeneration; using Microsoft.CodeAnalysis.Editing; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.LanguageServices; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.IntroduceVariable { internal abstract partial class AbstractIntroduceParameterService<TExpressionSyntax, TInvocationExpressionSyntax, TObjectCreationExpressionSyntax, TIdentifierNameSyntax> { private class IntroduceParameterDocumentRewriter { private readonly AbstractIntroduceParameterService<TExpressionSyntax, TInvocationExpressionSyntax, TObjectCreationExpressionSyntax, TIdentifierNameSyntax> _service; private readonly Document _originalDocument; private readonly SyntaxGenerator _generator; private readonly ISyntaxFactsService _syntaxFacts; private readonly ISemanticFactsService _semanticFacts; private readonly TExpressionSyntax _expression; private readonly IMethodSymbol _methodSymbol; private readonly SyntaxNode _containerMethod; private readonly IntroduceParameterCodeActionKind _actionKind; private readonly bool _allOccurrences; public IntroduceParameterDocumentRewriter(AbstractIntroduceParameterService<TExpressionSyntax, TInvocationExpressionSyntax, TObjectCreationExpressionSyntax, TIdentifierNameSyntax> service, Document originalDocument, TExpressionSyntax expression, IMethodSymbol methodSymbol, SyntaxNode containingMethod, IntroduceParameterCodeActionKind selectedCodeAction, bool allOccurrences) { _service = service; _originalDocument = originalDocument; _generator = SyntaxGenerator.GetGenerator(originalDocument); _syntaxFacts = originalDocument.GetRequiredLanguageService<ISyntaxFactsService>(); _semanticFacts = originalDocument.GetRequiredLanguageService<ISemanticFactsService>(); _expression = expression; _methodSymbol = methodSymbol; _containerMethod = containingMethod; _actionKind = selectedCodeAction; _allOccurrences = allOccurrences; } public async Task<SyntaxNode> RewriteDocumentAsync(Compilation compilation, Document document, List<SyntaxNode> invocations, CancellationToken cancellationToken) { var insertionIndex = GetInsertionIndex(compilation); if (_actionKind is IntroduceParameterCodeActionKind.Overload or IntroduceParameterCodeActionKind.Trampoline) { return await ModifyDocumentInvocationsTrampolineOverloadAndIntroduceParameterAsync( compilation, document, invocations, insertionIndex, cancellationToken).ConfigureAwait(false); } else { return await ModifyDocumentInvocationsAndIntroduceParameterAsync( compilation, document, insertionIndex, invocations, cancellationToken).ConfigureAwait(false); } } /// <summary> /// Ties the identifiers within the expression back to their associated parameter. /// </summary> private async Task<Dictionary<TIdentifierNameSyntax, IParameterSymbol>> MapExpressionToParametersAsync(CancellationToken cancellationToken) { var nameToParameterDict = new Dictionary<TIdentifierNameSyntax, IParameterSymbol>(); var variablesInExpression = _expression.DescendantNodes().OfType<TIdentifierNameSyntax>(); var semanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); foreach (var variable in variablesInExpression) { var symbol = semanticModel.GetSymbolInfo(variable, cancellationToken).Symbol; if (symbol is IParameterSymbol parameterSymbol) { nameToParameterDict.Add(variable, parameterSymbol); } } return nameToParameterDict; } /// <summary> /// Gets the parameter name, if the expression's grandparent is a variable declarator then it just gets the /// local declarations name. Otherwise, it generates a name based on the context of the expression. /// </summary> private async Task<string> GetNewParameterNameAsync(CancellationToken cancellationToken) { if (ShouldRemoveVariableDeclaratorContainingExpression(out var varDeclName, out _)) { return varDeclName; } var semanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); var semanticFacts = _originalDocument.GetRequiredLanguageService<ISemanticFactsService>(); return semanticFacts.GenerateNameForExpression(semanticModel, _expression, capitalize: false, cancellationToken); } /// <summary> /// Determines if the expression's grandparent is a variable declarator and if so, /// returns the name /// </summary> private bool ShouldRemoveVariableDeclaratorContainingExpression([NotNullWhen(true)] out string? varDeclName, [NotNullWhen(true)] out SyntaxNode? localDeclaration) { var declarator = _expression?.Parent?.Parent; localDeclaration = null; if (!_syntaxFacts.IsVariableDeclarator(declarator)) { varDeclName = null; return false; } localDeclaration = _service.GetLocalDeclarationFromDeclarator(declarator); if (localDeclaration is null) { varDeclName = null; return false; } // TODO: handle in the future if (_syntaxFacts.GetVariablesOfLocalDeclarationStatement(localDeclaration).Count > 1) { varDeclName = null; localDeclaration = null; return false; } varDeclName = _syntaxFacts.GetIdentifierOfVariableDeclarator(declarator).ValueText; return true; } /// <summary> /// Goes through the parameters of the original method to get the location that the parameter /// and argument should be introduced. /// </summary> private int GetInsertionIndex(Compilation compilation) { var parameterList = _syntaxFacts.GetParameterList(_containerMethod); Contract.ThrowIfNull(parameterList); var insertionIndex = 0; foreach (var parameterSymbol in _methodSymbol.Parameters) { // Want to skip optional parameters, params parameters, and CancellationToken since they should be at // the end of the list. if (ShouldParameterBeSkipped(compilation, parameterSymbol)) { insertionIndex++; } } return insertionIndex; } /// <summary> /// For the trampoline case, it goes through the invocations and adds an argument which is a /// call to the extracted method. /// Introduces a new method overload or new trampoline method. /// Updates the original method site with a newly introduced parameter. /// /// ****Trampoline Example:**** /// public void M(int x, int y) /// { /// int f = [|x * y|]; /// Console.WriteLine(f); /// } /// /// public void InvokeMethod() /// { /// M(5, 6); /// } /// /// ----------------------------------------------------> /// /// public int GetF(int x, int y) // Generated method /// { /// return x * y; /// } /// /// public void M(int x, int y, int f) /// { /// Console.WriteLine(f); /// } /// /// public void InvokeMethod() /// { /// M(5, 6, GetF(5, 6)); //Fills in with call to generated method /// } /// /// ----------------------------------------------------------------------- /// ****Overload Example:**** /// public void M(int x, int y) /// { /// int f = [|x * y|]; /// Console.WriteLine(f); /// } /// /// public void InvokeMethod() /// { /// M(5, 6); /// } /// /// ----------------------------------------------------> /// /// public void M(int x, int y) // Generated overload /// { /// M(x, y, x * y) /// } /// /// public void M(int x, int y, int f) /// { /// Console.WriteLine(f); /// } /// /// public void InvokeMethod() /// { /// M(5, 6); /// } /// </summary> private async Task<SyntaxNode> ModifyDocumentInvocationsTrampolineOverloadAndIntroduceParameterAsync(Compilation compilation, Document currentDocument, List<SyntaxNode> invocations, int insertionIndex, CancellationToken cancellationToken) { var invocationSemanticModel = await currentDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); var root = await currentDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); var editor = new SyntaxEditor(root, _generator); var parameterName = await GetNewParameterNameAsync(cancellationToken).ConfigureAwait(false); var expressionParameterMap = await MapExpressionToParametersAsync(cancellationToken).ConfigureAwait(false); // Creating a new method name by concatenating the parameter name that has been upper-cased. var newMethodIdentifier = "Get" + parameterName.ToPascalCase(); var validParameters = _methodSymbol.Parameters.Intersect(expressionParameterMap.Values).ToImmutableArray(); if (_actionKind is IntroduceParameterCodeActionKind.Trampoline) { // Creating an empty map here to reuse so that we do not create a new dictionary for // every single invocation. var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>(); foreach (var invocation in invocations) { var argumentListSyntax = _syntaxFacts.GetArgumentListOfInvocationExpression(invocation); editor.ReplaceNode(argumentListSyntax, (currentArgumentListSyntax, _) => { return GenerateNewArgumentListSyntaxForTrampoline(compilation, invocationSemanticModel, parameterToArgumentMap, currentArgumentListSyntax, argumentListSyntax, invocation, validParameters, parameterName, newMethodIdentifier, insertionIndex, cancellationToken); }); } } // If you are at the original document, then also introduce the new method and introduce the parameter. if (currentDocument.Id == _originalDocument.Id) { var newMethodNode = _actionKind is IntroduceParameterCodeActionKind.Trampoline ? await ExtractMethodAsync(validParameters, newMethodIdentifier, _generator, cancellationToken).ConfigureAwait(false) : await GenerateNewMethodOverloadAsync(insertionIndex, _generator, cancellationToken).ConfigureAwait(false); editor.InsertBefore(_containerMethod, newMethodNode); await UpdateExpressionInOriginalFunctionAsync(editor, cancellationToken).ConfigureAwait(false); var parameterType = await GetTypeOfExpressionAsync(cancellationToken).ConfigureAwait(false); var parameter = _generator.ParameterDeclaration(parameterName, _generator.TypeExpression(parameterType)); editor.InsertParameter(_containerMethod, insertionIndex, parameter); } return editor.GetChangedRoot(); // Adds an argument which is an invocation of the newly created method to the callsites // of the method invocations where a parameter was added. // Example: // public void M(int x, int y) // { // int f = [|x * y|]; // Console.WriteLine(f); // } // // public void InvokeMethod() // { // M(5, 6); // } // // ----------------------------------------------------> // // public int GetF(int x, int y) // { // return x * y; // } // // public void M(int x, int y) // { // int f = x * y; // Console.WriteLine(f); // } // // public void InvokeMethod() // { // M(5, 6, GetF(5, 6)); // This is the generated invocation which is a new argument at the call site // } SyntaxNode GenerateNewArgumentListSyntaxForTrampoline(Compilation compilation, SemanticModel invocationSemanticModel, Dictionary<IParameterSymbol, int> parameterToArgumentMap, SyntaxNode currentArgumentListSyntax, SyntaxNode argumentListSyntax, SyntaxNode invocation, ImmutableArray<IParameterSymbol> validParameters, string parameterName, string newMethodIdentifier, int insertionIndex, CancellationToken cancellationToken) { var invocationArguments = _syntaxFacts.GetArgumentsOfArgumentList(argumentListSyntax); parameterToArgumentMap.Clear(); MapParameterToArgumentsAtInvocation(parameterToArgumentMap, invocationArguments, invocationSemanticModel, cancellationToken); var currentInvocationArguments = _syntaxFacts.GetArgumentsOfArgumentList(currentArgumentListSyntax); var requiredArguments = new List<SyntaxNode>(); foreach (var parameterSymbol in validParameters) { if (parameterToArgumentMap.TryGetValue(parameterSymbol, out var index)) { requiredArguments.Add(currentInvocationArguments[index]); } } var conditionalRoot = _syntaxFacts.GetRootConditionalAccessExpression(invocation); var named = ShouldArgumentBeNamed(compilation, invocationSemanticModel, invocationArguments, insertionIndex, cancellationToken); var newMethodInvocation = GenerateNewMethodInvocation(invocation, requiredArguments, newMethodIdentifier); SeparatedSyntaxList<SyntaxNode> allArguments; if (conditionalRoot is null) { allArguments = AddArgumentToArgumentList(currentInvocationArguments, newMethodInvocation, parameterName, insertionIndex, named); } else { // Conditional Access expressions are parents of invocations, so it is better to just replace the // invocation in place then rebuild the tree structure. var expressionsWithConditionalAccessors = conditionalRoot.ReplaceNode(invocation, newMethodInvocation); allArguments = AddArgumentToArgumentList(currentInvocationArguments, expressionsWithConditionalAccessors, parameterName, insertionIndex, named); } return _service.UpdateArgumentListSyntax(currentArgumentListSyntax, allArguments); } } private async Task<ITypeSymbol> GetTypeOfExpressionAsync(CancellationToken cancellationToken) { var semanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); var typeSymbol = semanticModel.GetTypeInfo(_expression, cancellationToken).ConvertedType ?? semanticModel.Compilation.ObjectType; return typeSymbol; } private SyntaxNode GenerateNewMethodInvocation(SyntaxNode invocation, List<SyntaxNode> arguments, string newMethodIdentifier) { var methodName = _generator.IdentifierName(newMethodIdentifier); var fullExpression = _syntaxFacts.GetExpressionOfInvocationExpression(invocation); if (_syntaxFacts.IsAnyMemberAccessExpression(fullExpression)) { var receiverExpression = _syntaxFacts.GetExpressionOfMemberAccessExpression(fullExpression); methodName = _generator.MemberAccessExpression(receiverExpression, newMethodIdentifier); } else if (_syntaxFacts.IsMemberBindingExpression(fullExpression)) { methodName = _generator.MemberBindingExpression(_generator.IdentifierName(newMethodIdentifier)); } return _generator.InvocationExpression(methodName, arguments); } /// <summary> /// Generates a method declaration containing a return expression of the highlighted expression. /// Example: /// public void M(int x, int y) /// { /// int f = [|x * y|]; /// } /// /// ----------------------------------------------------> /// /// public int GetF(int x, int y) /// { /// return x * y; /// } /// /// public void M(int x, int y) /// { /// int f = x * y; /// } /// </summary> private async Task<SyntaxNode> ExtractMethodAsync(ImmutableArray<IParameterSymbol> validParameters, string newMethodIdentifier, SyntaxGenerator generator, CancellationToken cancellationToken) { // Remove trivia so the expression is in a single line and does not affect the spacing of the following line var returnStatement = generator.ReturnStatement(_expression.WithoutTrivia()); var typeSymbol = await GetTypeOfExpressionAsync(cancellationToken).ConfigureAwait(false); var newMethodDeclaration = await CreateMethodDeclarationAsync(returnStatement, validParameters, newMethodIdentifier, typeSymbol, isTrampoline: true, cancellationToken).ConfigureAwait(false); return newMethodDeclaration; } /// <summary> /// Generates a method declaration containing a call to the method that introduced the parameter. /// Example: /// /// ***This is an intermediary step in which the original function has not be updated yet /// public void M(int x, int y) /// { /// int f = [|x * y|]; /// } /// /// ----------------------------------------------------> /// /// public void M(int x, int y) // Generated overload /// { /// M(x, y, x * y); /// } /// /// public void M(int x, int y) // Original function (which will be mutated in a later step) /// { /// int f = x * y; /// } /// </summary> private async Task<SyntaxNode> GenerateNewMethodOverloadAsync(int insertionIndex, SyntaxGenerator generator, CancellationToken cancellationToken) { // Need the parameters from the original function as arguments for the invocation var arguments = generator.CreateArguments(_methodSymbol.Parameters); // Remove trivia so the expression is in a single line and does not affect the spacing of the following line arguments = arguments.Insert(insertionIndex, generator.Argument(_expression.WithoutTrivia())); var memberName = _methodSymbol.IsGenericMethod ? generator.GenericName(_methodSymbol.Name, _methodSymbol.TypeArguments) : generator.IdentifierName(_methodSymbol.Name); var invocation = generator.InvocationExpression(memberName, arguments); var newStatement = _methodSymbol.ReturnsVoid ? generator.ExpressionStatement(invocation) : generator.ReturnStatement(invocation); var newMethodDeclaration = await CreateMethodDeclarationAsync(newStatement, validParameters: null, newMethodIdentifier: null, typeSymbol: null, isTrampoline: false, cancellationToken).ConfigureAwait(false); return newMethodDeclaration; } private async Task<SyntaxNode> CreateMethodDeclarationAsync(SyntaxNode newStatement, ImmutableArray<IParameterSymbol>? validParameters, string? newMethodIdentifier, ITypeSymbol? typeSymbol, bool isTrampoline, CancellationToken cancellationToken) { var codeGenerationService = _originalDocument.GetRequiredLanguageService<ICodeGenerationService>(); var options = await _originalDocument.GetOptionsAsync(cancellationToken).ConfigureAwait(false); var newMethod = isTrampoline ? CodeGenerationSymbolFactory.CreateMethodSymbol(_methodSymbol, name: newMethodIdentifier, parameters: validParameters, statements: ImmutableArray.Create(newStatement), returnType: typeSymbol) : CodeGenerationSymbolFactory.CreateMethodSymbol(_methodSymbol, statements: ImmutableArray.Create(newStatement), containingType: _methodSymbol.ContainingType); var newMethodDeclaration = codeGenerationService.CreateMethodDeclaration(newMethod, options: new CodeGenerationOptions(options: options, parseOptions: _expression.SyntaxTree.Options)); return newMethodDeclaration; } /// <summary> /// This method goes through all the invocation sites and adds a new argument with the expression to be added. /// It also introduces a parameter at the original method site. /// /// Example: /// public void M(int x, int y) /// { /// int f = [|x * y|]; /// } /// /// public void InvokeMethod() /// { /// M(5, 6); /// } /// /// ----------------------------------------------------> /// /// public void M(int x, int y, int f) // parameter gets introduced /// { /// } /// /// public void InvokeMethod() /// { /// M(5, 6, 5 * 6); // argument gets added to callsite /// } /// </summary> private async Task<SyntaxNode> ModifyDocumentInvocationsAndIntroduceParameterAsync(Compilation compilation, Document document, int insertionIndex, List<SyntaxNode> invocations, CancellationToken cancellationToken) { var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); var editor = new SyntaxEditor(root, _generator); var invocationSemanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>(); var expressionToParameterMap = await MapExpressionToParametersAsync(cancellationToken).ConfigureAwait(false); var parameterName = await GetNewParameterNameAsync(cancellationToken).ConfigureAwait(false); foreach (var invocation in invocations) { var expressionEditor = new SyntaxEditor(_expression, _generator); var argumentListSyntax = invocation is TObjectCreationExpressionSyntax ? _syntaxFacts.GetArgumentListOfObjectCreationExpression(invocation) : _syntaxFacts.GetArgumentListOfInvocationExpression(invocation); var invocationArguments = _syntaxFacts.GetArgumentsOfArgumentList(argumentListSyntax); parameterToArgumentMap.Clear(); MapParameterToArgumentsAtInvocation(parameterToArgumentMap, invocationArguments, invocationSemanticModel, cancellationToken); if (argumentListSyntax is not null) { editor.ReplaceNode(argumentListSyntax, (currentArgumentListSyntax, _) => { var updatedInvocationArguments = _syntaxFacts.GetArgumentsOfArgumentList(currentArgumentListSyntax); var updatedExpression = CreateNewArgumentExpression(expressionEditor, expressionToParameterMap, parameterToArgumentMap, updatedInvocationArguments); var named = ShouldArgumentBeNamed(compilation, invocationSemanticModel, invocationArguments, insertionIndex, cancellationToken); var allArguments = AddArgumentToArgumentList(updatedInvocationArguments, updatedExpression.WithAdditionalAnnotations(Formatter.Annotation), parameterName, insertionIndex, named); return _service.UpdateArgumentListSyntax(currentArgumentListSyntax, allArguments); }); } } // If you are at the original document, then also introduce the new method and introduce the parameter. if (document.Id == _originalDocument.Id) { await UpdateExpressionInOriginalFunctionAsync(editor, cancellationToken).ConfigureAwait(false); var parameterType = await GetTypeOfExpressionAsync(cancellationToken).ConfigureAwait(false); var parameter = _generator.ParameterDeclaration(name: parameterName, type: _generator.TypeExpression(parameterType)); editor.InsertParameter(_containerMethod, insertionIndex, parameter); } return editor.GetChangedRoot(); } /// <summary> /// This method iterates through the variables in the expression and maps the variables back to the parameter /// it is associated with. It then maps the parameter back to the argument at the invocation site and gets the /// index to retrieve the updated arguments at the invocation. /// </summary> private TExpressionSyntax CreateNewArgumentExpression(SyntaxEditor editor, Dictionary<TIdentifierNameSyntax, IParameterSymbol> mappingDictionary, Dictionary<IParameterSymbol, int> parameterToArgumentMap, SeparatedSyntaxList<SyntaxNode> updatedInvocationArguments) { foreach (var (variable, mappedParameter) in mappingDictionary) { var parameterMapped = parameterToArgumentMap.TryGetValue(mappedParameter, out var index); if (parameterMapped) { var updatedInvocationArgument = updatedInvocationArguments[index]; var argumentExpression = _syntaxFacts.GetExpressionOfArgument(updatedInvocationArgument); var parenthesizedArgumentExpression = editor.Generator.AddParentheses(argumentExpression, includeElasticTrivia: false); editor.ReplaceNode(variable, parenthesizedArgumentExpression); } else if (mappedParameter.HasExplicitDefaultValue) { var generatedExpression = _service.GenerateExpressionFromOptionalParameter(mappedParameter); var parenthesizedGeneratedExpression = editor.Generator.AddParentheses(generatedExpression, includeElasticTrivia: false); editor.ReplaceNode(variable, parenthesizedGeneratedExpression); } } return (TExpressionSyntax)editor.GetChangedRoot(); } /// <summary> /// If the parameter is optional and the invocation does not specify the parameter, then /// a named argument needs to be introduced. /// </summary> private SeparatedSyntaxList<SyntaxNode> AddArgumentToArgumentList( SeparatedSyntaxList<SyntaxNode> invocationArguments, SyntaxNode newArgumentExpression, string parameterName, int insertionIndex, bool named) { var argument = named ? _generator.Argument(parameterName, RefKind.None, newArgumentExpression) : _generator.Argument(newArgumentExpression); return invocationArguments.Insert(insertionIndex, argument); } private bool ShouldArgumentBeNamed(Compilation compilation, SemanticModel semanticModel, SeparatedSyntaxList<SyntaxNode> invocationArguments, int methodInsertionIndex, CancellationToken cancellationToken) { var invocationInsertIndex = 0; foreach (var invocationArgument in invocationArguments) { var argumentParameter = _semanticFacts.FindParameterForArgument(semanticModel, invocationArgument, cancellationToken); if (argumentParameter is not null && ShouldParameterBeSkipped(compilation, argumentParameter)) { invocationInsertIndex++; } else { break; } } return invocationInsertIndex < methodInsertionIndex; } private static bool ShouldParameterBeSkipped(Compilation compilation, IParameterSymbol parameter) => !parameter.HasExplicitDefaultValue && !parameter.IsParams && !parameter.Type.Equals(compilation.GetTypeByMetadataName(typeof(CancellationToken)?.FullName!)); private void MapParameterToArgumentsAtInvocation( Dictionary<IParameterSymbol, int> mapping, SeparatedSyntaxList<SyntaxNode> arguments, SemanticModel invocationSemanticModel, CancellationToken cancellationToken) { for (var i = 0; i < arguments.Count; i++) { var argumentParameter = _semanticFacts.FindParameterForArgument(invocationSemanticModel, arguments[i], cancellationToken); if (argumentParameter is not null) { mapping[argumentParameter] = i; } } } /// <summary> /// Gets the matches of the expression and replaces them with the identifier. /// Special case for the original matching expression, if its parent is a LocalDeclarationStatement then it can /// be removed because assigning the local dec variable to a parameter is repetitive. Does not need a rename /// annotation since the user has already named the local declaration. /// Otherwise, it needs to have a rename annotation added to it because the new parameter gets a randomly /// generated name that the user can immediately change. /// </summary> private async Task UpdateExpressionInOriginalFunctionAsync(SyntaxEditor editor, CancellationToken cancellationToken) { var generator = editor.Generator; var matches = await FindMatchesAsync(cancellationToken).ConfigureAwait(false); var parameterName = await GetNewParameterNameAsync(cancellationToken).ConfigureAwait(false); var replacement = (TIdentifierNameSyntax)generator.IdentifierName(parameterName); foreach (var match in matches) { // Special case the removal of the originating expression to either remove the local declaration // or to add a rename annotation. if (!match.Equals(_expression)) { editor.ReplaceNode(match, replacement); } else { if (ShouldRemoveVariableDeclaratorContainingExpression(out _, out var localDeclaration)) { editor.RemoveNode(localDeclaration); } else { // Found the initially selected expression. Replace it with the new name we choose, but also annotate // that name with the RenameAnnotation so a rename session is started where the user can pick their // own preferred name. replacement = (TIdentifierNameSyntax)generator.IdentifierName(generator.Identifier(parameterName) .WithAdditionalAnnotations(RenameAnnotation.Create())); editor.ReplaceNode(match, replacement); } } } } /// <summary> /// Finds the matches of the expression within the same block. /// </summary> private async Task<IEnumerable<TExpressionSyntax>> FindMatchesAsync(CancellationToken cancellationToken) { if (!_allOccurrences) { return SpecializedCollections.SingletonEnumerable(_expression); } var syntaxFacts = _originalDocument.GetRequiredLanguageService<ISyntaxFactsService>(); var originalSemanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); var matches = from nodeInCurrent in _containerMethod.DescendantNodesAndSelf().OfType<TExpressionSyntax>() where NodeMatchesExpression(originalSemanticModel, nodeInCurrent, cancellationToken) select nodeInCurrent; return matches; } private bool NodeMatchesExpression(SemanticModel originalSemanticModel, TExpressionSyntax currentNode, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); if (currentNode == _expression) { return true; } return SemanticEquivalence.AreEquivalent( originalSemanticModel, originalSemanticModel, _expression, currentNode); } } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/EditorFeatures/TestUtilities/TextEditorFactoryExtensions.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.Text; using Microsoft.VisualStudio.Text.Editor; using System; using System.Collections.Immutable; namespace Microsoft.CodeAnalysis.Editor.UnitTests { internal static class TextEditorFactoryExtensions { public static DisposableTextView CreateDisposableTextView(this ITextEditorFactoryService textEditorFactory) => new DisposableTextView(textEditorFactory.CreateTextView()); public static DisposableTextView CreateDisposableTextView(this ITextEditorFactoryService textEditorFactory, ITextBuffer buffer, ImmutableArray<string> roles = default) { // Every default role but outlining. Starting in 15.2, the editor // OutliningManager imports JoinableTaskContext in a way that's // difficult to satisfy in our unit tests. Since we don't directly // depend on it, just disable it if (roles.IsDefault) { roles = ImmutableArray.Create(PredefinedTextViewRoles.Analyzable, PredefinedTextViewRoles.Document, PredefinedTextViewRoles.Editable, PredefinedTextViewRoles.Interactive, PredefinedTextViewRoles.Zoomable); } var roleSet = textEditorFactory.CreateTextViewRoleSet(roles); return new DisposableTextView(textEditorFactory.CreateTextView(buffer, roleSet)); } } public class DisposableTextView : IDisposable { public DisposableTextView(IWpfTextView textView) => this.TextView = textView; public IWpfTextView TextView { get; } public void Dispose() => TextView.Close(); } }
// 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.Text; using Microsoft.VisualStudio.Text.Editor; using System; using System.Collections.Immutable; namespace Microsoft.CodeAnalysis.Editor.UnitTests { internal static class TextEditorFactoryExtensions { public static DisposableTextView CreateDisposableTextView(this ITextEditorFactoryService textEditorFactory) => new DisposableTextView(textEditorFactory.CreateTextView()); public static DisposableTextView CreateDisposableTextView(this ITextEditorFactoryService textEditorFactory, ITextBuffer buffer, ImmutableArray<string> roles = default) { // Every default role but outlining. Starting in 15.2, the editor // OutliningManager imports JoinableTaskContext in a way that's // difficult to satisfy in our unit tests. Since we don't directly // depend on it, just disable it if (roles.IsDefault) { roles = ImmutableArray.Create(PredefinedTextViewRoles.Analyzable, PredefinedTextViewRoles.Document, PredefinedTextViewRoles.Editable, PredefinedTextViewRoles.Interactive, PredefinedTextViewRoles.Zoomable); } var roleSet = textEditorFactory.CreateTextViewRoleSet(roles); return new DisposableTextView(textEditorFactory.CreateTextView(buffer, roleSet)); } } public class DisposableTextView : IDisposable { public DisposableTextView(IWpfTextView textView) => this.TextView = textView; public IWpfTextView TextView { get; } public void Dispose() => TextView.Close(); } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./docs/wiki/Branch-Cleanup.md
This documents the various branches we've pruned and their HEAD value at the time of pruning |Commit|Branch Name| |--|--| |a26198da1811337fc41e30ee1c7fcdf97d8fae76|refs/remotes/origin/OptimizeFlowAnalysis| |0f86e670c29af3cd2352ac2372303694261463cc|refs/remotes/origin/dev/dpoeschl/0f86e670| |1af7ade35b8cea6c3c57243d6bec10f48a3cdf20|refs/remotes/origin/dev/dpoeschl/1af7ade| |3bdbd56045a21888b9cdd70b420f8ff5b711da77|refs/remotes/origin/dev/dpoeschl/3bdbd56| |4f1fb3f049d08d958b0baaa6528c79665b6e90bb|refs/remotes/origin/dev/dpoeschl/4f1fb3f| |77fcd78710737c6d5f27f4767a35997d853d2100|refs/remotes/origin/dev/dpoeschl/77fcd78| |902d608f3b8837728eac5bc3171a56e82cafd268|refs/remotes/origin/dev/dpoeschl/902d608| |902d608f3b8837728eac5bc3171a56e82cafd268|refs/remotes/origin/dev/dpoeschl/902d608f| |94aca843f09b84dd129f5e8719e26abb09e34d93|refs/remotes/origin/dev/dpoeschl/95aca84| |b252adb7e108e504b5594373ba91e08b15aef43f|refs/remotes/origin/dev/dpoeschl/b252adb| |b252adb7e108e504b5594373ba91e08b15aef43f|refs/remotes/origin/dev/dpoeschl/b252adb7| |f7cdea80d4ad7b10ef3c3bde761551d1b75a5138|refs/remotes/origin/dev/jaredpar/fix-official| |e7b4c9e4324537f158dfd1cc4dd17d883fec6e89|refs/remotes/origin/dev/jaredpar/fix-pack| |6285f29c24b03e84b66d2c69241bd56f9f19c449|refs/remotes/origin/dev/jaredpar/fix-process| |25cb2c3fd309e7337645f5e234356cfe4e3a48fe|refs/remotes/origin/dev/jaredpar/fix-publish| |02ffde64be39a723e1be7d5196346fd10adc010d|refs/remotes/origin/dev/jaredpar/fix-queue| |ce4496abee2461b1d0aaadff424bf38b3d8d72af|refs/remotes/origin/dev/jaredpar/fix-sign| |358e3eae5e7d70b9ecceef4e7a4682b49a8af05b|refs/remotes/origin/dev/jorobich/publish-dotnet-format| |a10cc5bdd7fd69610445ea7ffdc9f7f3b6da84a8|refs/remotes/origin/dev/jorobich/skip-enc-tests| |558ab26a6e49a350f28ae5af603ab7dce3bcbb59|refs/remotes/origin/dev/jorobich/skip-verifypreviousandnexthistory| |5df75b1993db2973a7e9642c5420d323957066f2|refs/remotes/origin/dev/jorobich/update-build-sdk| |be512b6966d06ff9ad641def121294ec6feea243|refs/remotes/origin/dev/jorobich/update-cert| |97967e2b6e5f26bf86ce50bc987bf12f25de8115|refs/remotes/origin/dev/jorobich/update-dependencies| |b3049770412849428df6691341a7fbcddfb37ea5|refs/remotes/origin/dev/rigibson/cloudbuild-triage-1| |020f1a2af79b5a3ac0b573f5d3770893191d91df|refs/remotes/origin/dev/rigibson/optprof-triage| |dc15c56d6fa884462de17ec440b9718840966fa1|refs/remotes/origin/dev/sharwell/vs-threading-analyzers| |dcd571259aed1e4441f87a308305d3e29d2b3136|refs/remotes/origin/dev/shech/localization| |3b369f41d440eb3fca98859b1ecd2678cd0331c1|refs/remotes/origin/dev15-rc2| |b7d3e5b3527463259f9c5ac5817b3461200aff34|refs/remotes/origin/dev15-rc3| |8f02e04893c4b53cf6ca11b064848888365914d3|refs/remotes/origin/dev15.3-preview1| |3722bb710cae2b542cc2004aacd5ac21836592a4|refs/remotes/origin/dev15.3-preview2| |291228b08260e8ca2d83368cace16c5f81d783ce|refs/remotes/origin/dev15.5-preview1-staging| |4939752b756ad32cb2ce1bfeab1d4f1637966e08|refs/remotes/origin/dev15.6-preview1-vs-deps| |c9179f863872ab69b6ecf82c056e31d6b28b4c59|refs/remotes/origin/dev15.6-preview2| |494bbc7b05c81632a53b7875321de852f5772a52|refs/remotes/origin/dev15.6-preview2-vs-deps| |a213194a975b4fb7d3327997eaf2e5c4b046b425|refs/remotes/origin/dev15.6-preview3| |d04459093177b0e083f8c83b18269d3a866e924e|refs/remotes/origin/dev15.6-preview3-vs-deps| |77bf781f9842082f09ba60a375e00922d018e060|refs/remotes/origin/dev15.7-preview1| |1c225824f784723b351183e38cae410a920ccb02|refs/remotes/origin/dev15.7-preview1-vs-deps| |25e40f0169a8047b7d3524b30339f89b3b428551|refs/remotes/origin/dev15.7-preview3| |dcb76074e823074e0244631a99c114bf564aea4d|refs/remotes/origin/dev15.7-preview3-vs-deps| |0c47f55c9b3d83f218af1535638d7a97551bbc9d|refs/remotes/origin/dev15.8-preview4| |6ebf816edcd56f60277d1aa2500aa123565f43e4|refs/remotes/origin/dev15.8-preview4-vs-deps| |567062dbe394c983861cb27b337b0a7f3b044638|refs/remotes/origin/dev15.9-preview1| |8ea354e01fd4c1eefcbc62646ff24857f986e1b3|refs/remotes/origin/dev15.9-preview1-vs-deps| |6f8f466fe841045827a068cda01870fa408c094c|refs/remotes/origin/dev15.9-preview2| |e8e91648afe095b019b5347a2b1d0dca5696cbf1|refs/remotes/origin/dev15.9-preview2-vs-deps| |0816fdc029f0f4b973ac6cbf08c398e91aa593e6|refs/remotes/origin/dev15.9-preview3| |750236a7562d8fd0d5efe311c52ae0703093165f|refs/remotes/origin/dev15.9-preview3-vs-deps| |7ae99c29074e5c3b69a761a0a94f9fd05d02c127|refs/remotes/origin/dev16.0-preview2| |231aeb8be8357239499d45c0574e5a9a8c9174f0|refs/remotes/origin/dev16.0-preview2-vs-deps| |5f1828a597d7bb5c50057fa6a3177ee27344b655|refs/remotes/origin/dev16.0-preview3| |9ad945d6557416a83d1e6efea0e75b7e40786cd0|refs/remotes/origin/dev16.0-preview3-vs-deps| |8c8228f836415435319ce6331d9baa592595f958|refs/remotes/origin/dev16.1-preview1| |0d0406b2be22b6a544c77c3ee868ad8065765e96|refs/remotes/origin/dev16.1-preview2| |c2ec4d9f980971823190ece3a158c398900944bf|refs/remotes/origin/dev16.1-preview3| |d7c19ee5956b9f7debdd139c6606c44c598794a7|refs/remotes/origin/features/AnnotatedTypes| |aee400d17aff7118ae908f4e9cd717751ae2d996|refs/remotes/origin/features/DefaultInterfaceImplementation| |66df38c26d56de3e475ec16e5bc911c58705caf4|refs/remotes/origin/features/ExpressionVariables| |34142dc2956248669605b2dc2e23996e174b662c|refs/remotes/origin/features/IVTCompletionTests| |def06e4bd7f53ab7989bd0c86505aac6f80d9e95|refs/remotes/origin/features/NegatedConditionStatements| |14505f0f026c6c139fe46bc7fb83c7c2e907e0bc|refs/remotes/origin/features/dataflow| |416f53042eedcbc5cd620c4cd02caaccb35dc8c3|refs/remotes/origin/features/nullable-common| |d27cfde4f19a171aef088b87afa67e7c5af1121b|refs/remotes/origin/features/ref-partial| |f0c9802f78c5d4965577975a7d772845c95528a4|refs/remotes/origin/features/ref-reassignment| |56502b6a68c8f9be3a19a2dd350404957809c6b3|refs/remotes/origin/features/verification| |fbfa64c8d43af45c4122759c01becd5638b08b8f|refs/remotes/origin/ide-dataflow-analyzer| |d36bbf81ddde6b54fb10807ae9e14f10c76804a0|refs/remotes/origin/infrastructure/optprof| |ca83e06a93c75cfaf602112487fd471ab9e748c9|refs/remotes/origin/netcore2.1-preview2| |f2f0c3553fbb5974e2cc978210f71b2863bbcac2|refs/remotes/origin/release/dev16.2-preview1| |3add46757cb3d5c7844d889af24fa905656cf574|refs/remotes/origin/release/dev16.2-preview2| |42ddc197c9bf47ef73b74c644522945646bb6b1f|refs/remotes/origin/release/dev16.2-preview3| |d5db676f73abef4cf8d0d80703eca0392a10d7e3|refs/remotes/origin/remove-lspSupport| |83bebeb607cb55e8fcacc83210636ebe3a403f8d|refs/remotes/origin/revert-36006-extract_open_file_tracker| |8cc031276414977b79e604c4e2cf9d6670a15783|refs/remotes/origin/simpletagnostic|
This documents the various branches we've pruned and their HEAD value at the time of pruning |Commit|Branch Name| |--|--| |a26198da1811337fc41e30ee1c7fcdf97d8fae76|refs/remotes/origin/OptimizeFlowAnalysis| |0f86e670c29af3cd2352ac2372303694261463cc|refs/remotes/origin/dev/dpoeschl/0f86e670| |1af7ade35b8cea6c3c57243d6bec10f48a3cdf20|refs/remotes/origin/dev/dpoeschl/1af7ade| |3bdbd56045a21888b9cdd70b420f8ff5b711da77|refs/remotes/origin/dev/dpoeschl/3bdbd56| |4f1fb3f049d08d958b0baaa6528c79665b6e90bb|refs/remotes/origin/dev/dpoeschl/4f1fb3f| |77fcd78710737c6d5f27f4767a35997d853d2100|refs/remotes/origin/dev/dpoeschl/77fcd78| |902d608f3b8837728eac5bc3171a56e82cafd268|refs/remotes/origin/dev/dpoeschl/902d608| |902d608f3b8837728eac5bc3171a56e82cafd268|refs/remotes/origin/dev/dpoeschl/902d608f| |94aca843f09b84dd129f5e8719e26abb09e34d93|refs/remotes/origin/dev/dpoeschl/95aca84| |b252adb7e108e504b5594373ba91e08b15aef43f|refs/remotes/origin/dev/dpoeschl/b252adb| |b252adb7e108e504b5594373ba91e08b15aef43f|refs/remotes/origin/dev/dpoeschl/b252adb7| |f7cdea80d4ad7b10ef3c3bde761551d1b75a5138|refs/remotes/origin/dev/jaredpar/fix-official| |e7b4c9e4324537f158dfd1cc4dd17d883fec6e89|refs/remotes/origin/dev/jaredpar/fix-pack| |6285f29c24b03e84b66d2c69241bd56f9f19c449|refs/remotes/origin/dev/jaredpar/fix-process| |25cb2c3fd309e7337645f5e234356cfe4e3a48fe|refs/remotes/origin/dev/jaredpar/fix-publish| |02ffde64be39a723e1be7d5196346fd10adc010d|refs/remotes/origin/dev/jaredpar/fix-queue| |ce4496abee2461b1d0aaadff424bf38b3d8d72af|refs/remotes/origin/dev/jaredpar/fix-sign| |358e3eae5e7d70b9ecceef4e7a4682b49a8af05b|refs/remotes/origin/dev/jorobich/publish-dotnet-format| |a10cc5bdd7fd69610445ea7ffdc9f7f3b6da84a8|refs/remotes/origin/dev/jorobich/skip-enc-tests| |558ab26a6e49a350f28ae5af603ab7dce3bcbb59|refs/remotes/origin/dev/jorobich/skip-verifypreviousandnexthistory| |5df75b1993db2973a7e9642c5420d323957066f2|refs/remotes/origin/dev/jorobich/update-build-sdk| |be512b6966d06ff9ad641def121294ec6feea243|refs/remotes/origin/dev/jorobich/update-cert| |97967e2b6e5f26bf86ce50bc987bf12f25de8115|refs/remotes/origin/dev/jorobich/update-dependencies| |b3049770412849428df6691341a7fbcddfb37ea5|refs/remotes/origin/dev/rigibson/cloudbuild-triage-1| |020f1a2af79b5a3ac0b573f5d3770893191d91df|refs/remotes/origin/dev/rigibson/optprof-triage| |dc15c56d6fa884462de17ec440b9718840966fa1|refs/remotes/origin/dev/sharwell/vs-threading-analyzers| |dcd571259aed1e4441f87a308305d3e29d2b3136|refs/remotes/origin/dev/shech/localization| |3b369f41d440eb3fca98859b1ecd2678cd0331c1|refs/remotes/origin/dev15-rc2| |b7d3e5b3527463259f9c5ac5817b3461200aff34|refs/remotes/origin/dev15-rc3| |8f02e04893c4b53cf6ca11b064848888365914d3|refs/remotes/origin/dev15.3-preview1| |3722bb710cae2b542cc2004aacd5ac21836592a4|refs/remotes/origin/dev15.3-preview2| |291228b08260e8ca2d83368cace16c5f81d783ce|refs/remotes/origin/dev15.5-preview1-staging| |4939752b756ad32cb2ce1bfeab1d4f1637966e08|refs/remotes/origin/dev15.6-preview1-vs-deps| |c9179f863872ab69b6ecf82c056e31d6b28b4c59|refs/remotes/origin/dev15.6-preview2| |494bbc7b05c81632a53b7875321de852f5772a52|refs/remotes/origin/dev15.6-preview2-vs-deps| |a213194a975b4fb7d3327997eaf2e5c4b046b425|refs/remotes/origin/dev15.6-preview3| |d04459093177b0e083f8c83b18269d3a866e924e|refs/remotes/origin/dev15.6-preview3-vs-deps| |77bf781f9842082f09ba60a375e00922d018e060|refs/remotes/origin/dev15.7-preview1| |1c225824f784723b351183e38cae410a920ccb02|refs/remotes/origin/dev15.7-preview1-vs-deps| |25e40f0169a8047b7d3524b30339f89b3b428551|refs/remotes/origin/dev15.7-preview3| |dcb76074e823074e0244631a99c114bf564aea4d|refs/remotes/origin/dev15.7-preview3-vs-deps| |0c47f55c9b3d83f218af1535638d7a97551bbc9d|refs/remotes/origin/dev15.8-preview4| |6ebf816edcd56f60277d1aa2500aa123565f43e4|refs/remotes/origin/dev15.8-preview4-vs-deps| |567062dbe394c983861cb27b337b0a7f3b044638|refs/remotes/origin/dev15.9-preview1| |8ea354e01fd4c1eefcbc62646ff24857f986e1b3|refs/remotes/origin/dev15.9-preview1-vs-deps| |6f8f466fe841045827a068cda01870fa408c094c|refs/remotes/origin/dev15.9-preview2| |e8e91648afe095b019b5347a2b1d0dca5696cbf1|refs/remotes/origin/dev15.9-preview2-vs-deps| |0816fdc029f0f4b973ac6cbf08c398e91aa593e6|refs/remotes/origin/dev15.9-preview3| |750236a7562d8fd0d5efe311c52ae0703093165f|refs/remotes/origin/dev15.9-preview3-vs-deps| |7ae99c29074e5c3b69a761a0a94f9fd05d02c127|refs/remotes/origin/dev16.0-preview2| |231aeb8be8357239499d45c0574e5a9a8c9174f0|refs/remotes/origin/dev16.0-preview2-vs-deps| |5f1828a597d7bb5c50057fa6a3177ee27344b655|refs/remotes/origin/dev16.0-preview3| |9ad945d6557416a83d1e6efea0e75b7e40786cd0|refs/remotes/origin/dev16.0-preview3-vs-deps| |8c8228f836415435319ce6331d9baa592595f958|refs/remotes/origin/dev16.1-preview1| |0d0406b2be22b6a544c77c3ee868ad8065765e96|refs/remotes/origin/dev16.1-preview2| |c2ec4d9f980971823190ece3a158c398900944bf|refs/remotes/origin/dev16.1-preview3| |d7c19ee5956b9f7debdd139c6606c44c598794a7|refs/remotes/origin/features/AnnotatedTypes| |aee400d17aff7118ae908f4e9cd717751ae2d996|refs/remotes/origin/features/DefaultInterfaceImplementation| |66df38c26d56de3e475ec16e5bc911c58705caf4|refs/remotes/origin/features/ExpressionVariables| |34142dc2956248669605b2dc2e23996e174b662c|refs/remotes/origin/features/IVTCompletionTests| |def06e4bd7f53ab7989bd0c86505aac6f80d9e95|refs/remotes/origin/features/NegatedConditionStatements| |14505f0f026c6c139fe46bc7fb83c7c2e907e0bc|refs/remotes/origin/features/dataflow| |416f53042eedcbc5cd620c4cd02caaccb35dc8c3|refs/remotes/origin/features/nullable-common| |d27cfde4f19a171aef088b87afa67e7c5af1121b|refs/remotes/origin/features/ref-partial| |f0c9802f78c5d4965577975a7d772845c95528a4|refs/remotes/origin/features/ref-reassignment| |56502b6a68c8f9be3a19a2dd350404957809c6b3|refs/remotes/origin/features/verification| |fbfa64c8d43af45c4122759c01becd5638b08b8f|refs/remotes/origin/ide-dataflow-analyzer| |d36bbf81ddde6b54fb10807ae9e14f10c76804a0|refs/remotes/origin/infrastructure/optprof| |ca83e06a93c75cfaf602112487fd471ab9e748c9|refs/remotes/origin/netcore2.1-preview2| |f2f0c3553fbb5974e2cc978210f71b2863bbcac2|refs/remotes/origin/release/dev16.2-preview1| |3add46757cb3d5c7844d889af24fa905656cf574|refs/remotes/origin/release/dev16.2-preview2| |42ddc197c9bf47ef73b74c644522945646bb6b1f|refs/remotes/origin/release/dev16.2-preview3| |d5db676f73abef4cf8d0d80703eca0392a10d7e3|refs/remotes/origin/remove-lspSupport| |83bebeb607cb55e8fcacc83210636ebe3a403f8d|refs/remotes/origin/revert-36006-extract_open_file_tracker| |8cc031276414977b79e604c4e2cf9d6670a15783|refs/remotes/origin/simpletagnostic|
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/CSharp/Portable/Emitter/Model/ExpandedVarargsMethodReference.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 Microsoft.CodeAnalysis.Collections; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Symbols; namespace Microsoft.CodeAnalysis.CSharp.Emit { internal sealed class ExpandedVarargsMethodReference : Cci.IMethodReference, Cci.IGenericMethodInstanceReference, Cci.ISpecializedMethodReference { private readonly Cci.IMethodReference _underlyingMethod; private readonly ImmutableArray<Cci.IParameterTypeInformation> _argListParams; public ExpandedVarargsMethodReference(Cci.IMethodReference underlyingMethod, ImmutableArray<Cci.IParameterTypeInformation> argListParams) { Debug.Assert(underlyingMethod.AcceptsExtraArguments); Debug.Assert(!argListParams.IsEmpty); _underlyingMethod = underlyingMethod; _argListParams = argListParams; } bool Cci.IMethodReference.AcceptsExtraArguments { get { return _underlyingMethod.AcceptsExtraArguments; } } ushort Cci.IMethodReference.GenericParameterCount { get { return _underlyingMethod.GenericParameterCount; } } bool Cci.IMethodReference.IsGeneric { get { return _underlyingMethod.IsGeneric; } } Cci.IMethodDefinition Cci.IMethodReference.GetResolvedMethod(EmitContext context) { return _underlyingMethod.GetResolvedMethod(context); } ImmutableArray<Cci.IParameterTypeInformation> Cci.IMethodReference.ExtraParameters { get { return _argListParams; } } Cci.IGenericMethodInstanceReference Cci.IMethodReference.AsGenericMethodInstanceReference { get { if (_underlyingMethod.AsGenericMethodInstanceReference == null) { return null; } Debug.Assert(_underlyingMethod.AsGenericMethodInstanceReference == _underlyingMethod); return this; } } Cci.ISpecializedMethodReference Cci.IMethodReference.AsSpecializedMethodReference { get { if (_underlyingMethod.AsSpecializedMethodReference == null) { return null; } Debug.Assert(_underlyingMethod.AsSpecializedMethodReference == _underlyingMethod); return this; } } Cci.CallingConvention Cci.ISignature.CallingConvention { get { return _underlyingMethod.CallingConvention; } } ushort Cci.ISignature.ParameterCount { get { return _underlyingMethod.ParameterCount; } } ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) { return _underlyingMethod.GetParameters(context); } ImmutableArray<Cci.ICustomModifier> Cci.ISignature.ReturnValueCustomModifiers { get { return _underlyingMethod.ReturnValueCustomModifiers; } } ImmutableArray<Cci.ICustomModifier> Cci.ISignature.RefCustomModifiers { get { return _underlyingMethod.RefCustomModifiers; } } bool Cci.ISignature.ReturnValueIsByRef { get { return _underlyingMethod.ReturnValueIsByRef; } } Cci.ITypeReference Cci.ISignature.GetType(EmitContext context) { return _underlyingMethod.GetType(context); } Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) { return _underlyingMethod.GetContainingType(context); } IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) { return _underlyingMethod.GetAttributes(context); } void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor) { if (((Cci.IMethodReference)this).AsGenericMethodInstanceReference != null) { visitor.Visit((Cci.IGenericMethodInstanceReference)this); } else if (((Cci.IMethodReference)this).AsSpecializedMethodReference != null) { visitor.Visit((Cci.ISpecializedMethodReference)this); } else { visitor.Visit((Cci.IMethodReference)this); } } Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) { return null; } CodeAnalysis.Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null; string Cci.INamedEntity.Name { get { return _underlyingMethod.Name; } } IEnumerable<Cci.ITypeReference> Cci.IGenericMethodInstanceReference.GetGenericArguments(EmitContext context) { return _underlyingMethod.AsGenericMethodInstanceReference.GetGenericArguments(context); } Cci.IMethodReference Cci.IGenericMethodInstanceReference.GetGenericMethod(EmitContext context) { return new ExpandedVarargsMethodReference(_underlyingMethod.AsGenericMethodInstanceReference.GetGenericMethod(context), _argListParams); } Cci.IMethodReference Cci.ISpecializedMethodReference.UnspecializedVersion { get { return new ExpandedVarargsMethodReference(_underlyingMethod.AsSpecializedMethodReference.UnspecializedVersion, _argListParams); } } public override string ToString() { var result = PooledStringBuilder.GetInstance(); Append(result, _underlyingMethod.GetInternalSymbol() ?? (object)_underlyingMethod); result.Builder.Append(" with __arglist( "); bool first = true; foreach (var p in _argListParams) { if (first) { first = false; } else { result.Builder.Append(", "); } if (p.IsByReference) { result.Builder.Append("ref "); } Append(result, p.GetType(new EmitContext())); } result.Builder.Append(")"); return result.ToStringAndFree(); } private static void Append(PooledStringBuilder result, object value) { Debug.Assert(!(value is ISymbol)); var symbol = (value as ISymbolInternal)?.GetISymbol(); if (symbol != null) { result.Builder.Append(symbol.ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat)); } else { result.Builder.Append(value); } } public sealed override bool Equals(object obj) { // It is not supported to rely on default equality of these Cci objects, an explicit way to compare and hash them should be used. throw Roslyn.Utilities.ExceptionUtilities.Unreachable; } public sealed override int GetHashCode() { // It is not supported to rely on default equality of these Cci objects, an explicit way to compare and hash them should be used. throw Roslyn.Utilities.ExceptionUtilities.Unreachable; } } }
// 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 Microsoft.CodeAnalysis.Collections; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Symbols; namespace Microsoft.CodeAnalysis.CSharp.Emit { internal sealed class ExpandedVarargsMethodReference : Cci.IMethodReference, Cci.IGenericMethodInstanceReference, Cci.ISpecializedMethodReference { private readonly Cci.IMethodReference _underlyingMethod; private readonly ImmutableArray<Cci.IParameterTypeInformation> _argListParams; public ExpandedVarargsMethodReference(Cci.IMethodReference underlyingMethod, ImmutableArray<Cci.IParameterTypeInformation> argListParams) { Debug.Assert(underlyingMethod.AcceptsExtraArguments); Debug.Assert(!argListParams.IsEmpty); _underlyingMethod = underlyingMethod; _argListParams = argListParams; } bool Cci.IMethodReference.AcceptsExtraArguments { get { return _underlyingMethod.AcceptsExtraArguments; } } ushort Cci.IMethodReference.GenericParameterCount { get { return _underlyingMethod.GenericParameterCount; } } bool Cci.IMethodReference.IsGeneric { get { return _underlyingMethod.IsGeneric; } } Cci.IMethodDefinition Cci.IMethodReference.GetResolvedMethod(EmitContext context) { return _underlyingMethod.GetResolvedMethod(context); } ImmutableArray<Cci.IParameterTypeInformation> Cci.IMethodReference.ExtraParameters { get { return _argListParams; } } Cci.IGenericMethodInstanceReference Cci.IMethodReference.AsGenericMethodInstanceReference { get { if (_underlyingMethod.AsGenericMethodInstanceReference == null) { return null; } Debug.Assert(_underlyingMethod.AsGenericMethodInstanceReference == _underlyingMethod); return this; } } Cci.ISpecializedMethodReference Cci.IMethodReference.AsSpecializedMethodReference { get { if (_underlyingMethod.AsSpecializedMethodReference == null) { return null; } Debug.Assert(_underlyingMethod.AsSpecializedMethodReference == _underlyingMethod); return this; } } Cci.CallingConvention Cci.ISignature.CallingConvention { get { return _underlyingMethod.CallingConvention; } } ushort Cci.ISignature.ParameterCount { get { return _underlyingMethod.ParameterCount; } } ImmutableArray<Cci.IParameterTypeInformation> Cci.ISignature.GetParameters(EmitContext context) { return _underlyingMethod.GetParameters(context); } ImmutableArray<Cci.ICustomModifier> Cci.ISignature.ReturnValueCustomModifiers { get { return _underlyingMethod.ReturnValueCustomModifiers; } } ImmutableArray<Cci.ICustomModifier> Cci.ISignature.RefCustomModifiers { get { return _underlyingMethod.RefCustomModifiers; } } bool Cci.ISignature.ReturnValueIsByRef { get { return _underlyingMethod.ReturnValueIsByRef; } } Cci.ITypeReference Cci.ISignature.GetType(EmitContext context) { return _underlyingMethod.GetType(context); } Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context) { return _underlyingMethod.GetContainingType(context); } IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) { return _underlyingMethod.GetAttributes(context); } void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor) { if (((Cci.IMethodReference)this).AsGenericMethodInstanceReference != null) { visitor.Visit((Cci.IGenericMethodInstanceReference)this); } else if (((Cci.IMethodReference)this).AsSpecializedMethodReference != null) { visitor.Visit((Cci.ISpecializedMethodReference)this); } else { visitor.Visit((Cci.IMethodReference)this); } } Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) { return null; } CodeAnalysis.Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null; string Cci.INamedEntity.Name { get { return _underlyingMethod.Name; } } IEnumerable<Cci.ITypeReference> Cci.IGenericMethodInstanceReference.GetGenericArguments(EmitContext context) { return _underlyingMethod.AsGenericMethodInstanceReference.GetGenericArguments(context); } Cci.IMethodReference Cci.IGenericMethodInstanceReference.GetGenericMethod(EmitContext context) { return new ExpandedVarargsMethodReference(_underlyingMethod.AsGenericMethodInstanceReference.GetGenericMethod(context), _argListParams); } Cci.IMethodReference Cci.ISpecializedMethodReference.UnspecializedVersion { get { return new ExpandedVarargsMethodReference(_underlyingMethod.AsSpecializedMethodReference.UnspecializedVersion, _argListParams); } } public override string ToString() { var result = PooledStringBuilder.GetInstance(); Append(result, _underlyingMethod.GetInternalSymbol() ?? (object)_underlyingMethod); result.Builder.Append(" with __arglist( "); bool first = true; foreach (var p in _argListParams) { if (first) { first = false; } else { result.Builder.Append(", "); } if (p.IsByReference) { result.Builder.Append("ref "); } Append(result, p.GetType(new EmitContext())); } result.Builder.Append(")"); return result.ToStringAndFree(); } private static void Append(PooledStringBuilder result, object value) { Debug.Assert(!(value is ISymbol)); var symbol = (value as ISymbolInternal)?.GetISymbol(); if (symbol != null) { result.Builder.Append(symbol.ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat)); } else { result.Builder.Append(value); } } public sealed override bool Equals(object obj) { // It is not supported to rely on default equality of these Cci objects, an explicit way to compare and hash them should be used. throw Roslyn.Utilities.ExceptionUtilities.Unreachable; } public sealed override int GetHashCode() { // It is not supported to rely on default equality of these Cci objects, an explicit way to compare and hash them should be used. throw Roslyn.Utilities.ExceptionUtilities.Unreachable; } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/Core/Portable/MetadataReader/MetadataTypeName.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 Roslyn.Utilities; namespace Microsoft.CodeAnalysis { /// <summary> /// Helper structure to encapsulate/cache various information about metadata name of a type and /// name resolution options. /// Also, allows us to stop using strings in the APIs that accept only metadata names, /// making usage of them less bug prone. /// </summary> [NonCopyable] internal partial struct MetadataTypeName { /// <summary> /// Full metadata name of a type, includes namespace name for top level types. /// </summary> private string _fullName; /// <summary> /// Namespace name for top level types. /// </summary> private string _namespaceName; /// <summary> /// Name of the type without namespace prefix, but possibly with generic arity mangling present. /// </summary> private string _typeName; /// <summary> /// Name of the type without namespace prefix and without generic arity mangling. /// </summary> private string _unmangledTypeName; /// <summary> /// Arity of the type inferred based on the name mangling. It doesn't have to match the actual /// arity of the type. /// </summary> private short _inferredArity; /// <summary> /// While resolving the name, consider only types with this arity. /// (-1) means allow any arity. /// If forcedArity >= 0 and useCLSCompliantNameArityEncoding, lookup may /// fail because forcedArity doesn't match the one encoded in the name. /// </summary> private short _forcedArity; /// <summary> /// While resolving the name, consider only types following /// CLS-compliant generic type names and arity encoding (ECMA-335, section 10.7.2). /// I.e. arity is inferred from the name and matching type must have the same /// emitted name and arity. /// TODO: PERF: Encode this field elsewhere to save 4 bytes /// </summary> private bool _useCLSCompliantNameArityEncoding; /// <summary> /// Individual parts of qualified namespace name. /// </summary> private ImmutableArray<string> _namespaceSegments; public static MetadataTypeName FromFullName(string fullName, bool useCLSCompliantNameArityEncoding = false, int forcedArity = -1) { Debug.Assert(fullName != null); Debug.Assert(forcedArity >= -1 && forcedArity < short.MaxValue); Debug.Assert(forcedArity == -1 || !useCLSCompliantNameArityEncoding || forcedArity == MetadataHelpers.InferTypeArityFromMetadataName(fullName), "Conflicting metadata type name resolution options!"); MetadataTypeName name; name._fullName = fullName; name._namespaceName = null; name._typeName = null; name._unmangledTypeName = null; name._inferredArity = -1; name._useCLSCompliantNameArityEncoding = useCLSCompliantNameArityEncoding; name._forcedArity = (short)forcedArity; name._namespaceSegments = default(ImmutableArray<string>); return name; } public static MetadataTypeName FromNamespaceAndTypeName( string namespaceName, string typeName, bool useCLSCompliantNameArityEncoding = false, int forcedArity = -1 ) { Debug.Assert(namespaceName != null); Debug.Assert(typeName != null); Debug.Assert(forcedArity >= -1 && forcedArity < short.MaxValue); Debug.Assert(!typeName.Contains(MetadataHelpers.DotDelimiterString)); Debug.Assert(forcedArity == -1 || !useCLSCompliantNameArityEncoding || forcedArity == MetadataHelpers.InferTypeArityFromMetadataName(typeName), "Conflicting metadata type name resolution options!"); MetadataTypeName name; name._fullName = null; name._namespaceName = namespaceName; name._typeName = typeName; name._unmangledTypeName = null; name._inferredArity = -1; name._useCLSCompliantNameArityEncoding = useCLSCompliantNameArityEncoding; name._forcedArity = (short)forcedArity; name._namespaceSegments = default(ImmutableArray<string>); return name; } public static MetadataTypeName FromTypeName(string typeName, bool useCLSCompliantNameArityEncoding = false, int forcedArity = -1) { Debug.Assert(typeName != null); Debug.Assert(!typeName.Contains(MetadataHelpers.DotDelimiterString) || typeName.IndexOf(MetadataHelpers.MangledNameRegionStartChar) >= 0); Debug.Assert(forcedArity >= -1 && forcedArity < short.MaxValue); Debug.Assert(forcedArity == -1 || !useCLSCompliantNameArityEncoding || forcedArity == MetadataHelpers.InferTypeArityFromMetadataName(typeName), "Conflicting metadata type name resolution options!"); MetadataTypeName name; name._fullName = typeName; name._namespaceName = string.Empty; name._typeName = typeName; name._unmangledTypeName = null; name._inferredArity = -1; name._useCLSCompliantNameArityEncoding = useCLSCompliantNameArityEncoding; name._forcedArity = (short)forcedArity; name._namespaceSegments = ImmutableArray<string>.Empty; return name; } /// <summary> /// Full metadata name of a type, includes namespace name for top level types. /// </summary> public string FullName { get { if (_fullName == null) { Debug.Assert(_namespaceName != null); Debug.Assert(_typeName != null); _fullName = MetadataHelpers.BuildQualifiedName(_namespaceName, _typeName); } return _fullName; } } /// <summary> /// Namespace name for top level types, empty string for nested types. /// </summary> public string NamespaceName { get { if (_namespaceName == null) { Debug.Assert(_fullName != null); _typeName = MetadataHelpers.SplitQualifiedName(_fullName, out _namespaceName); } return _namespaceName; } } /// <summary> /// Name of the type without namespace prefix, but possibly with generic arity mangling present. /// </summary> public string TypeName { get { if (_typeName == null) { Debug.Assert(_fullName != null); _typeName = MetadataHelpers.SplitQualifiedName(_fullName, out _namespaceName); } return _typeName; } } /// <summary> /// Name of the type without namespace prefix and without generic arity mangling. /// </summary> public string UnmangledTypeName { get { if (_unmangledTypeName == null) { Debug.Assert(_inferredArity == -1); _unmangledTypeName = MetadataHelpers.InferTypeArityAndUnmangleMetadataName(TypeName, out _inferredArity); } return _unmangledTypeName; } } /// <summary> /// Arity of the type inferred based on the name mangling. It doesn't have to match the actual /// arity of the type. /// </summary> public int InferredArity { get { if (_inferredArity == -1) { Debug.Assert(_unmangledTypeName == null); _unmangledTypeName = MetadataHelpers.InferTypeArityAndUnmangleMetadataName(TypeName, out _inferredArity); } return _inferredArity; } } /// <summary> /// Does name include arity mangling suffix. /// </summary> public bool IsMangled { get { return InferredArity > 0; } } /// <summary> /// While resolving the name, consider only types following /// CLS-compliant generic type names and arity encoding (ECMA-335, section 10.7.2). /// I.e. arity is inferred from the name and matching type must have the same /// emitted name and arity. /// </summary> public readonly bool UseCLSCompliantNameArityEncoding { get { return _useCLSCompliantNameArityEncoding; } } /// <summary> /// While resolving the name, consider only types with this arity. /// (-1) means allow any arity. /// If ForcedArity >= 0 and UseCLSCompliantNameArityEncoding, lookup may /// fail because ForcedArity doesn't match the one encoded in the name. /// </summary> public readonly int ForcedArity { get { return _forcedArity; } } /// <summary> /// Individual parts of qualified namespace name. /// </summary> public ImmutableArray<string> NamespaceSegments { get { if (_namespaceSegments.IsDefault) { _namespaceSegments = MetadataHelpers.SplitQualifiedName(NamespaceName); } return _namespaceSegments; } } public readonly bool IsNull { get { return _typeName == null && _fullName == null; } } public override string ToString() { if (IsNull) { return "{Null}"; } else { return String.Format("{{{0},{1},{2},{3}}}", NamespaceName, TypeName, UseCLSCompliantNameArityEncoding.ToString(), _forcedArity.ToString()); } } } }
// 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 Roslyn.Utilities; namespace Microsoft.CodeAnalysis { /// <summary> /// Helper structure to encapsulate/cache various information about metadata name of a type and /// name resolution options. /// Also, allows us to stop using strings in the APIs that accept only metadata names, /// making usage of them less bug prone. /// </summary> [NonCopyable] internal partial struct MetadataTypeName { /// <summary> /// Full metadata name of a type, includes namespace name for top level types. /// </summary> private string _fullName; /// <summary> /// Namespace name for top level types. /// </summary> private string _namespaceName; /// <summary> /// Name of the type without namespace prefix, but possibly with generic arity mangling present. /// </summary> private string _typeName; /// <summary> /// Name of the type without namespace prefix and without generic arity mangling. /// </summary> private string _unmangledTypeName; /// <summary> /// Arity of the type inferred based on the name mangling. It doesn't have to match the actual /// arity of the type. /// </summary> private short _inferredArity; /// <summary> /// While resolving the name, consider only types with this arity. /// (-1) means allow any arity. /// If forcedArity >= 0 and useCLSCompliantNameArityEncoding, lookup may /// fail because forcedArity doesn't match the one encoded in the name. /// </summary> private short _forcedArity; /// <summary> /// While resolving the name, consider only types following /// CLS-compliant generic type names and arity encoding (ECMA-335, section 10.7.2). /// I.e. arity is inferred from the name and matching type must have the same /// emitted name and arity. /// TODO: PERF: Encode this field elsewhere to save 4 bytes /// </summary> private bool _useCLSCompliantNameArityEncoding; /// <summary> /// Individual parts of qualified namespace name. /// </summary> private ImmutableArray<string> _namespaceSegments; public static MetadataTypeName FromFullName(string fullName, bool useCLSCompliantNameArityEncoding = false, int forcedArity = -1) { Debug.Assert(fullName != null); Debug.Assert(forcedArity >= -1 && forcedArity < short.MaxValue); Debug.Assert(forcedArity == -1 || !useCLSCompliantNameArityEncoding || forcedArity == MetadataHelpers.InferTypeArityFromMetadataName(fullName), "Conflicting metadata type name resolution options!"); MetadataTypeName name; name._fullName = fullName; name._namespaceName = null; name._typeName = null; name._unmangledTypeName = null; name._inferredArity = -1; name._useCLSCompliantNameArityEncoding = useCLSCompliantNameArityEncoding; name._forcedArity = (short)forcedArity; name._namespaceSegments = default(ImmutableArray<string>); return name; } public static MetadataTypeName FromNamespaceAndTypeName( string namespaceName, string typeName, bool useCLSCompliantNameArityEncoding = false, int forcedArity = -1 ) { Debug.Assert(namespaceName != null); Debug.Assert(typeName != null); Debug.Assert(forcedArity >= -1 && forcedArity < short.MaxValue); Debug.Assert(!typeName.Contains(MetadataHelpers.DotDelimiterString)); Debug.Assert(forcedArity == -1 || !useCLSCompliantNameArityEncoding || forcedArity == MetadataHelpers.InferTypeArityFromMetadataName(typeName), "Conflicting metadata type name resolution options!"); MetadataTypeName name; name._fullName = null; name._namespaceName = namespaceName; name._typeName = typeName; name._unmangledTypeName = null; name._inferredArity = -1; name._useCLSCompliantNameArityEncoding = useCLSCompliantNameArityEncoding; name._forcedArity = (short)forcedArity; name._namespaceSegments = default(ImmutableArray<string>); return name; } public static MetadataTypeName FromTypeName(string typeName, bool useCLSCompliantNameArityEncoding = false, int forcedArity = -1) { Debug.Assert(typeName != null); Debug.Assert(!typeName.Contains(MetadataHelpers.DotDelimiterString) || typeName.IndexOf(MetadataHelpers.MangledNameRegionStartChar) >= 0); Debug.Assert(forcedArity >= -1 && forcedArity < short.MaxValue); Debug.Assert(forcedArity == -1 || !useCLSCompliantNameArityEncoding || forcedArity == MetadataHelpers.InferTypeArityFromMetadataName(typeName), "Conflicting metadata type name resolution options!"); MetadataTypeName name; name._fullName = typeName; name._namespaceName = string.Empty; name._typeName = typeName; name._unmangledTypeName = null; name._inferredArity = -1; name._useCLSCompliantNameArityEncoding = useCLSCompliantNameArityEncoding; name._forcedArity = (short)forcedArity; name._namespaceSegments = ImmutableArray<string>.Empty; return name; } /// <summary> /// Full metadata name of a type, includes namespace name for top level types. /// </summary> public string FullName { get { if (_fullName == null) { Debug.Assert(_namespaceName != null); Debug.Assert(_typeName != null); _fullName = MetadataHelpers.BuildQualifiedName(_namespaceName, _typeName); } return _fullName; } } /// <summary> /// Namespace name for top level types, empty string for nested types. /// </summary> public string NamespaceName { get { if (_namespaceName == null) { Debug.Assert(_fullName != null); _typeName = MetadataHelpers.SplitQualifiedName(_fullName, out _namespaceName); } return _namespaceName; } } /// <summary> /// Name of the type without namespace prefix, but possibly with generic arity mangling present. /// </summary> public string TypeName { get { if (_typeName == null) { Debug.Assert(_fullName != null); _typeName = MetadataHelpers.SplitQualifiedName(_fullName, out _namespaceName); } return _typeName; } } /// <summary> /// Name of the type without namespace prefix and without generic arity mangling. /// </summary> public string UnmangledTypeName { get { if (_unmangledTypeName == null) { Debug.Assert(_inferredArity == -1); _unmangledTypeName = MetadataHelpers.InferTypeArityAndUnmangleMetadataName(TypeName, out _inferredArity); } return _unmangledTypeName; } } /// <summary> /// Arity of the type inferred based on the name mangling. It doesn't have to match the actual /// arity of the type. /// </summary> public int InferredArity { get { if (_inferredArity == -1) { Debug.Assert(_unmangledTypeName == null); _unmangledTypeName = MetadataHelpers.InferTypeArityAndUnmangleMetadataName(TypeName, out _inferredArity); } return _inferredArity; } } /// <summary> /// Does name include arity mangling suffix. /// </summary> public bool IsMangled { get { return InferredArity > 0; } } /// <summary> /// While resolving the name, consider only types following /// CLS-compliant generic type names and arity encoding (ECMA-335, section 10.7.2). /// I.e. arity is inferred from the name and matching type must have the same /// emitted name and arity. /// </summary> public readonly bool UseCLSCompliantNameArityEncoding { get { return _useCLSCompliantNameArityEncoding; } } /// <summary> /// While resolving the name, consider only types with this arity. /// (-1) means allow any arity. /// If ForcedArity >= 0 and UseCLSCompliantNameArityEncoding, lookup may /// fail because ForcedArity doesn't match the one encoded in the name. /// </summary> public readonly int ForcedArity { get { return _forcedArity; } } /// <summary> /// Individual parts of qualified namespace name. /// </summary> public ImmutableArray<string> NamespaceSegments { get { if (_namespaceSegments.IsDefault) { _namespaceSegments = MetadataHelpers.SplitQualifiedName(NamespaceName); } return _namespaceSegments; } } public readonly bool IsNull { get { return _typeName == null && _fullName == null; } } public override string ToString() { if (IsNull) { return "{Null}"; } else { return String.Format("{{{0},{1},{2},{3}}}", NamespaceName, TypeName, UseCLSCompliantNameArityEncoding.ToString(), _forcedArity.ToString()); } } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/VisualBasic/Portable/Parser/BlockContexts/BlockContext.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 the definition of the BlockContext '----------------------------------------------------------------------------- Imports Microsoft.CodeAnalysis.Syntax.InternalSyntax Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports InternalSyntaxFactory = Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.SyntaxFactory Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax Friend MustInherit Class BlockContext Implements ISyntaxFactoryContext Private _beginStatement As StatementSyntax Protected _parser As Parser Protected _statements As SyntaxListBuilder(Of StatementSyntax) Private ReadOnly _kind As SyntaxKind Private ReadOnly _endKind As SyntaxKind Private ReadOnly _prev As BlockContext Private ReadOnly _isWithinMultiLineLambda As Boolean Private ReadOnly _isWithinSingleLineLambda As Boolean Private ReadOnly _isWithinAsyncMethodOrLambda As Boolean Private ReadOnly _isWithinIteratorMethodOrLambdaOrProperty As Boolean Private ReadOnly _level As Integer Private ReadOnly _syntaxFactory As ContextAwareSyntaxFactory Protected Sub New(kind As SyntaxKind, statement As StatementSyntax, prev As BlockContext) _beginStatement = statement _kind = kind _prev = prev _syntaxFactory = New ContextAwareSyntaxFactory(Me) If prev IsNot Nothing Then _isWithinSingleLineLambda = prev._isWithinSingleLineLambda _isWithinMultiLineLambda = prev._isWithinMultiLineLambda End If If Not _isWithinSingleLineLambda Then _isWithinSingleLineLambda = SyntaxFacts.IsSingleLineLambdaExpression(_kind) End If If Not _isWithinMultiLineLambda Then _isWithinMultiLineLambda = SyntaxFacts.IsMultiLineLambdaExpression(_kind) End If Select Case _kind Case SyntaxKind.PropertyBlock _isWithinIteratorMethodOrLambdaOrProperty = DirectCast(statement, PropertyStatementSyntax).Modifiers.Any(SyntaxKind.IteratorKeyword) Case SyntaxKind.GetAccessorBlock, SyntaxKind.SetAccessorBlock Debug.Assert(_prev IsNot Nothing) _isWithinIteratorMethodOrLambdaOrProperty = _prev.IsWithinIteratorMethodOrLambdaOrProperty Case SyntaxKind.SubBlock, SyntaxKind.FunctionBlock _isWithinAsyncMethodOrLambda = DirectCast(statement, MethodStatementSyntax).Modifiers.Any(SyntaxKind.AsyncKeyword) _isWithinIteratorMethodOrLambdaOrProperty = DirectCast(statement, MethodStatementSyntax).Modifiers.Any(SyntaxKind.IteratorKeyword) Case SyntaxKind.SingleLineSubLambdaExpression, SyntaxKind.MultiLineSubLambdaExpression, SyntaxKind.SingleLineFunctionLambdaExpression, SyntaxKind.MultiLineFunctionLambdaExpression _isWithinAsyncMethodOrLambda = DirectCast(statement, LambdaHeaderSyntax).Modifiers.Any(SyntaxKind.AsyncKeyword) _isWithinIteratorMethodOrLambdaOrProperty = DirectCast(statement, LambdaHeaderSyntax).Modifiers.Any(SyntaxKind.IteratorKeyword) Case Else If _prev IsNot Nothing Then _isWithinAsyncMethodOrLambda = _prev.IsWithinAsyncMethodOrLambda _isWithinIteratorMethodOrLambdaOrProperty = _prev.IsWithinIteratorMethodOrLambdaOrProperty End If End Select _endKind = GetEndKind(kind) _level = If(prev IsNot Nothing, prev.Level + 1, 0) If prev IsNot Nothing Then _parser = prev.Parser _statements = _parser._pool.Allocate(Of StatementSyntax)() End If End Sub Friend ReadOnly Property BeginStatement As StatementSyntax Get Return _beginStatement End Get End Property Friend Sub GetBeginEndStatements(Of T1 As StatementSyntax, T2 As StatementSyntax)(ByRef beginStmt As T1, ByRef endStmt As T2) Debug.Assert(BeginStatement IsNot Nothing) beginStmt = DirectCast(BeginStatement, T1) If endStmt Is Nothing Then Dim errorId As ERRID endStmt = DirectCast(CreateMissingEnd(errorId), T2) If errorId <> Nothing Then beginStmt = Parser.ReportSyntaxError(beginStmt, errorId) End If End If End Sub Friend Overridable Function KindEndsBlock(kind As SyntaxKind) As Boolean Return _endKind = kind End Function Friend ReadOnly Property IsLineIf As Boolean Get Return _kind = SyntaxKind.SingleLineIfStatement OrElse _kind = SyntaxKind.SingleLineElseClause End Get End Property Friend ReadOnly Property IsWithinLambda As Boolean Get Return _isWithinMultiLineLambda Or _isWithinSingleLineLambda End Get End Property Friend ReadOnly Property IsWithinSingleLineLambda As Boolean Get Return _isWithinSingleLineLambda End Get End Property Friend Overridable ReadOnly Property IsWithinAsyncMethodOrLambda As Boolean Implements ISyntaxFactoryContext.IsWithinAsyncMethodOrLambda Get Return _isWithinAsyncMethodOrLambda End Get End Property Friend Overridable ReadOnly Property IsWithinIteratorContext As Boolean Implements ISyntaxFactoryContext.IsWithinIteratorContext Get Return _isWithinIteratorMethodOrLambdaOrProperty End Get End Property Friend ReadOnly Property IsWithinIteratorMethodOrLambdaOrProperty As Boolean Get Return _isWithinIteratorMethodOrLambdaOrProperty End Get End Property 'TODO - Remove dependency on Parser ' For errors call error function directly ' for parsing, just pass a delegate to the context Friend Property Parser As Parser Get Return _parser End Get Set(value As Parser) Debug.Assert(BlockKind = SyntaxKind.CompilationUnit) _parser = value End Set End Property Friend ReadOnly Property SyntaxFactory As ContextAwareSyntaxFactory Get Return _syntaxFactory End Get End Property Friend ReadOnly Property BlockKind As SyntaxKind Get Return _kind End Get End Property Friend ReadOnly Property PrevBlock As BlockContext Get Return _prev End Get End Property Friend ReadOnly Property Level As Integer Get Return _level End Get End Property Friend Sub Add(node As VisualBasicSyntaxNode) Debug.Assert(node IsNot Nothing) _statements.Add(DirectCast(node, StatementSyntax)) End Sub Friend ReadOnly Property Statements As SyntaxListBuilder(Of StatementSyntax) Get Return _statements End Get End Property Friend Sub FreeStatements() _parser._pool.Free(_statements) End Sub Friend Function Body() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax) Dim result = _statements.ToList() _statements.Clear() Return result End Function ''' <summary> ''' Returns the statement if there is exactly one in the body, ''' otherwise returns Nothing. ''' </summary> Friend Function SingleStatementOrDefault() As StatementSyntax Return If(_statements.Count = 1, _statements(0), Nothing) End Function ''' <summary> ''' Return an empty body if the body is a single, zero-width EmptyStatement, ''' otherwise returns the entire body. ''' </summary> Friend Function OptionalBody() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax) Dim statement = SingleStatementOrDefault() If statement IsNot Nothing AndAlso statement.Kind = SyntaxKind.EmptyStatement AndAlso statement.FullWidth = 0 Then Return Nothing End If Return Body() End Function Friend Function Body(Of T As StatementSyntax)() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of T) Dim result = _statements.ToList(Of T)() _statements.Clear() Return result End Function ' Same as Body(), but use a SyntaxListWithManyChildren if the ' body is large enough, so we get red node with weak children. Friend Function BodyWithWeakChildren() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax) If IsLargeEnoughNonEmptyStatementList(_statements) Then Dim result = New CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax)(SyntaxList.List(CType(_statements, SyntaxListBuilder).ToArray)) _statements.Clear() Return result Else Return Body() End If End Function ' Is this statement list non-empty, and large enough to make using weak children beneficial? Private Shared Function IsLargeEnoughNonEmptyStatementList(statements As SyntaxListBuilder(Of StatementSyntax)) As Boolean If statements.Count = 0 Then Return False ElseIf statements.Count <= 2 Then ' If we have a single statement (Count include separators), it might be small, like "return null", or large, ' like a loop or if or switch with many statements inside. Use the width as a proxy for ' how big it is. If it's small, its better to forgo a many children list anyway, since the ' weak reference would consume as much memory as is saved. Return statements(0).Width > 60 Else ' For 2 or more statements, go ahead and create a many-children lists. Return True End If End Function Friend Function BaseDeclarations(Of T As InheritsOrImplementsStatementSyntax)() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of T) Dim result = _statements.ToList(Of T)() _statements.Clear() Return result End Function Friend MustOverride Function Parse() As StatementSyntax Friend MustOverride Function ProcessSyntax(syntax As VisualBasicSyntaxNode) As BlockContext Friend MustOverride Function CreateBlockSyntax(statement As StatementSyntax) As VisualBasicSyntaxNode Friend MustOverride Function EndBlock(statement As StatementSyntax) As BlockContext Friend MustOverride Function RecoverFromMismatchedEnd(statement As StatementSyntax) As BlockContext Friend Overridable Function ResyncAndProcessStatementTerminator(statement As StatementSyntax, lambdaContext As BlockContext) As BlockContext Dim unexpected = Parser.ResyncAt() HandleAnyUnexpectedTokens(statement, unexpected) Return ProcessStatementTerminator(lambdaContext) End Function Friend MustOverride Function ProcessStatementTerminator(lambdaContext As BlockContext) As BlockContext Friend MustOverride ReadOnly Property IsSingleLine As Boolean Friend Overridable ReadOnly Property IsLambda As Boolean Get Return False End Get End Property Private Sub HandleAnyUnexpectedTokens(currentStmt As StatementSyntax, unexpected As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of SyntaxToken)) If unexpected.Node Is Nothing Then Return End If Dim index As Integer Dim stmt As StatementSyntax If _statements.Count = 0 Then index = -1 stmt = _beginStatement Else index = _statements.Count - 1 stmt = _statements(index) End If Debug.Assert(stmt IsNot Nothing) If Not currentStmt.ContainsDiagnostics AndAlso Not unexpected.ContainsDiagnostics Then stmt = stmt.AddTrailingSyntax(unexpected, ERRID.ERR_ExpectedEOS) Else ' Don't report ERRID_ExpectedEOS when the statement is known to be bad stmt = stmt.AddTrailingSyntax(unexpected) End If If index = -1 Then _beginStatement = stmt Else _statements(index) = stmt End If End Sub <Flags()> Friend Enum LinkResult NotUsed = 0 ' The syntax cannot be used. Force a reparse. Used = 1 ' Reuse the syntax. SkipTerminator = 2 ' Syntax is not followed by a statement terminator. MissingTerminator = 4 ' Statement terminator is missing. TerminatorFlags = 6 ' Combination of the above 2 flags. Crumble = 8 ' Crumble the syntax and try to reuse the parts. End Enum Friend MustOverride Function TryLinkSyntax(node As VisualBasicSyntaxNode, ByRef newContext As BlockContext) As LinkResult Friend Function LinkSyntax(node As VisualBasicSyntaxNode) As BlockContext Debug.Assert(node IsNot Nothing) Dim kind As SyntaxKind = node.Kind Dim context = Me While context IsNot Nothing If context.KindEndsBlock(kind) Then ' Note, end statements in single line lambdas and single line if's can never close an outer context. Dim scope = FindNearestLambdaOrSingleLineIf(context) If scope IsNot Nothing Then If scope.IsLambda Then ' Don't allow end statements from outer blocks to terminate single line statement lambdas. ' Single line if's have a special error for this case but single line lambdas don't. Exit While Else ' Don't allow end statements from outer blocks to terminate single line ifs. node = Parser.ReportSyntaxError(node, ERRID.ERR_BogusWithinLineIf) Return ProcessSyntax(node) Debug.Assert(scope.IsLineIf) End If Else If context IsNot Me Then 'This statement ends a block higher up. 'End all blocks from Me up to this one with a missing ends. RecoverFromMissingEnd(context) End If 'Add the block to the context above Return context.EndBlock(DirectCast(node, StatementSyntax)) End If ElseIf SyntaxFacts.IsEndBlockLoopOrNextStatement(kind) Then ' See if this kind closes an enclosing statement context context = context.PrevBlock Else Return ProcessSyntax(node) End If End While 'No match was found for the end block statement 'Add it to the current context and leave the context unchanged Return RecoverFromMismatchedEnd(DirectCast(node, StatementSyntax)) End Function Friend Function UseSyntax(node As VisualBasicSyntaxNode, ByRef newContext As BlockContext, Optional AddMissingTerminator As Boolean = False) As LinkResult ' get off the current node as we are definitely using it and LinkStatement may need to look at next token Parser.GetNextSyntaxNode() ' TODO: this will add an error to the statement. Perhaps duplicating it ' context-sensitive errors should be filtered out before re-using nodes. ' or better we should put contextual errors on the actual block not on the offending node (if possible). newContext = LinkSyntax(node) If AddMissingTerminator Then Return LinkResult.Used Or LinkResult.MissingTerminator End If Return LinkResult.Used End Function Friend Function TryUseStatement(node As VisualBasicSyntaxNode, ByRef newContext As BlockContext) As LinkResult Dim statement = TryCast(node, StatementSyntax) If statement IsNot Nothing Then ' get off the current node as we are definitely using it and LinkStatement may need to look at next token Return UseSyntax(statement, newContext) Else Return LinkResult.NotUsed End If End Function ' Returns Nothing if the statement isn't processed Friend Function TryProcessExecutableStatement(node As VisualBasicSyntaxNode) As BlockContext ' top-level statements Select Case node.Kind Case SyntaxKind.SingleLineIfStatement Add(node) Case SyntaxKind.IfStatement ' A single line if has a "then" on the line and is not followed by a ":", EOL or EOF. ' It is OK for else to follow a single line if. i.e ' "if true then if true then else else Dim ifStmt = DirectCast(node, IfStatementSyntax) If ifStmt.ThenKeyword IsNot Nothing AndAlso Not SyntaxFacts.IsTerminator(Parser.CurrentToken.Kind) Then Return New SingleLineIfBlockContext(ifStmt, Me) Else Return New IfBlockContext(ifStmt, Me) End If Case SyntaxKind.ElseStatement ' davidsch ' This error used to be reported in ParseStatementInMethodBody. Move to context. ' It used to be this error with a note that Semantics doesn't like an ELSEIF without an IF. ' Fully parse for now. ' ReportUnrecognizedStatementError(ERRID_ElseIfNoMatchingIf, ErrorInConstruct) Add(Parser.ReportSyntaxError(node, ERRID.ERR_ElseNoMatchingIf)) Case SyntaxKind.ElseIfStatement ' davidsch ' This error used to be reported in ParseStatementInMethodBody. Move to context. ' It used to be this error with a note that Semantics doesn't like an ELSEIF without an IF. ' Fully parse for now. ' ReportUnrecognizedStatementError(ERRID_ElseIfNoMatchingIf, ErrorInConstruct) Add(Parser.ReportSyntaxError(node, ERRID.ERR_ElseIfNoMatchingIf)) Case SyntaxKind.SimpleDoStatement, SyntaxKind.DoWhileStatement, SyntaxKind.DoUntilStatement Return New DoLoopBlockContext(DirectCast(node, StatementSyntax), Me) Case SyntaxKind.ForStatement, SyntaxKind.ForEachStatement Return New ForBlockContext(DirectCast(node, StatementSyntax), Me) Case SyntaxKind.SelectStatement Return New SelectBlockContext(DirectCast(node, StatementSyntax), Me) Case SyntaxKind.CaseStatement 'TODO - davidsch ' In dev10 the error is reported on the CASE not the statement. If needed this error can be ' moved to ParseCaseStatement. Add(Parser.ReportSyntaxError(node, ERRID.ERR_CaseNoSelect)) Case SyntaxKind.CaseElseStatement 'TODO - davidsch ' In dev10 the error is reported on the CASE not the statement. If needed this error can be ' moved to ParseCaseStatement. Add(Parser.ReportSyntaxError(node, ERRID.ERR_CaseElseNoSelect)) Case SyntaxKind.WhileStatement Return New StatementBlockContext(SyntaxKind.WhileBlock, DirectCast(node, StatementSyntax), Me) Case SyntaxKind.WithStatement Return New StatementBlockContext(SyntaxKind.WithBlock, DirectCast(node, StatementSyntax), Me) Case SyntaxKind.SyncLockStatement Return New StatementBlockContext(SyntaxKind.SyncLockBlock, DirectCast(node, StatementSyntax), Me) Case SyntaxKind.UsingStatement Return New StatementBlockContext(SyntaxKind.UsingBlock, DirectCast(node, StatementSyntax), Me) Case SyntaxKind.TryStatement Return New TryBlockContext(DirectCast(node, StatementSyntax), Me) Case SyntaxKind.CatchStatement, SyntaxKind.FinallyStatement Dim context = FindNearestInSameMethodScope(SyntaxKind.TryBlock, SyntaxKind.CatchBlock, SyntaxKind.FinallyBlock) If context IsNot Nothing Then RecoverFromMissingEnd(context) Return context.ProcessSyntax(DirectCast(node, StatementSyntax)) End If ' In dev10 the error is reported on the CATCH not the statement. ' If needed this error can be moved to ParseCatchStatement. Add(Parser.ReportSyntaxError(node, If(node.Kind = SyntaxKind.CatchStatement, ERRID.ERR_CatchNoMatchingTry, ERRID.ERR_FinallyNoMatchingTry))) Case SyntaxKind.SelectBlock, SyntaxKind.WhileBlock, SyntaxKind.WithBlock, SyntaxKind.SyncLockBlock, SyntaxKind.UsingBlock, SyntaxKind.TryBlock, SyntaxKind.SimpleDoLoopBlock, SyntaxKind.DoWhileLoopBlock, SyntaxKind.DoUntilLoopBlock, SyntaxKind.DoLoopWhileBlock, SyntaxKind.DoLoopUntilBlock, SyntaxKind.ForBlock, SyntaxKind.ForEachBlock, SyntaxKind.SingleLineIfStatement, SyntaxKind.MultiLineIfBlock ' Handle any block that can be created by this context Add(node) Case Else If Not TypeOf node Is ExecutableStatementSyntax Then Return Nothing End If Add(node) End Select Return Me End Function Friend Function TryLinkStatement(node As VisualBasicSyntaxNode, ByRef newContext As BlockContext) As LinkResult newContext = Nothing Select Case node.Kind Case SyntaxKind.SelectBlock Return UseSyntax(node, newContext, DirectCast(node, SelectBlockSyntax).EndSelectStatement.IsMissing) Case SyntaxKind.WhileBlock Return UseSyntax(node, newContext, DirectCast(node, WhileBlockSyntax).EndWhileStatement.IsMissing) Case SyntaxKind.WithBlock Return UseSyntax(node, newContext, DirectCast(node, WithBlockSyntax).EndWithStatement.IsMissing) Case SyntaxKind.SyncLockBlock Return UseSyntax(node, newContext, DirectCast(node, SyncLockBlockSyntax).EndSyncLockStatement.IsMissing) Case SyntaxKind.UsingBlock Return UseSyntax(node, newContext, DirectCast(node, UsingBlockSyntax).EndUsingStatement.IsMissing) Case SyntaxKind.TryBlock Return UseSyntax(node, newContext, DirectCast(node, TryBlockSyntax).EndTryStatement.IsMissing) Case SyntaxKind.SimpleDoLoopBlock, SyntaxKind.DoWhileLoopBlock, SyntaxKind.DoUntilLoopBlock, SyntaxKind.DoLoopWhileBlock, SyntaxKind.DoLoopUntilBlock Return UseSyntax(node, newContext, DirectCast(node, DoLoopBlockSyntax).LoopStatement.IsMissing) Case SyntaxKind.ForBlock, SyntaxKind.ForEachBlock ' The EndOpt syntax can influence the next context in case it contains ' several control variables. If they are still valid needs to be checked in the ForBlockContext. ' This is the reason why we can't simply reuse the syntax here. newContext = Me Return LinkResult.Crumble Case SyntaxKind.SingleLineIfStatement Return UseSyntax(node, newContext) Case SyntaxKind.MultiLineIfBlock Return UseSyntax(node, newContext, DirectCast(node, MultiLineIfBlockSyntax).EndIfStatement.IsMissing) Case SyntaxKind.NextStatement ' Don't reuse a next statement. The parser matches the variable list with the for context blocks. ' In order to reuse the next statement that error checking needs to be moved from the parser to the ' contexts. For now, crumble and reparse. The next statement is small and fast to parse. newContext = Me Return LinkResult.NotUsed Case Else Return TryUseStatement(node, newContext) End Select End Function Private Function CreateMissingEnd(ByRef errorId As ERRID) As StatementSyntax Return CreateMissingEnd(BlockKind, errorId) End Function Private Function CreateMissingEnd(kind As SyntaxKind, ByRef errorId As ERRID) As StatementSyntax Dim endStmt As StatementSyntax Dim missingEndKeyword = InternalSyntaxFactory.MissingKeyword(SyntaxKind.EndKeyword) Select Case kind Case SyntaxKind.NamespaceBlock endStmt = SyntaxFactory.EndNamespaceStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.NamespaceKeyword)) errorId = ERRID.ERR_ExpectedEndNamespace Case SyntaxKind.ModuleBlock endStmt = SyntaxFactory.EndModuleStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.ModuleKeyword)) errorId = ERRID.ERR_ExpectedEndModule Case SyntaxKind.ClassBlock endStmt = SyntaxFactory.EndClassStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.ClassKeyword)) errorId = ERRID.ERR_ExpectedEndClass Case SyntaxKind.StructureBlock endStmt = SyntaxFactory.EndStructureStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.StructureKeyword)) errorId = ERRID.ERR_ExpectedEndStructure Case SyntaxKind.InterfaceBlock endStmt = SyntaxFactory.EndInterfaceStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.InterfaceKeyword)) errorId = ERRID.ERR_MissingEndInterface Case SyntaxKind.EnumBlock endStmt = SyntaxFactory.EndEnumStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.EnumKeyword)) errorId = ERRID.ERR_MissingEndEnum Case SyntaxKind.SubBlock, SyntaxKind.ConstructorBlock endStmt = SyntaxFactory.EndSubStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.SubKeyword)) 'TODO - davidsch make these expected error message names consistent. Some are EndXXExpected and others are ExpectedEndXX errorId = ERRID.ERR_EndSubExpected Case SyntaxKind.MultiLineSubLambdaExpression endStmt = SyntaxFactory.EndSubStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.SubKeyword)) errorId = ERRID.ERR_MultilineLambdaMissingSub Case SyntaxKind.FunctionBlock endStmt = SyntaxFactory.EndFunctionStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.FunctionKeyword)) errorId = ERRID.ERR_EndFunctionExpected Case SyntaxKind.MultiLineFunctionLambdaExpression endStmt = SyntaxFactory.EndFunctionStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.FunctionKeyword)) errorId = ERRID.ERR_MultilineLambdaMissingFunction Case SyntaxKind.OperatorBlock endStmt = SyntaxFactory.EndOperatorStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.OperatorKeyword)) errorId = ERRID.ERR_EndOperatorExpected Case SyntaxKind.PropertyBlock endStmt = SyntaxFactory.EndPropertyStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.PropertyKeyword)) 'TODO rename this enum for consistency ERRID_MissingEndProperty errorId = ERRID.ERR_EndProp Case SyntaxKind.GetAccessorBlock endStmt = SyntaxFactory.EndGetStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.GetKeyword)) errorId = ERRID.ERR_MissingEndGet Case SyntaxKind.SetAccessorBlock endStmt = SyntaxFactory.EndSetStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.SetKeyword)) errorId = ERRID.ERR_MissingEndSet Case SyntaxKind.EventBlock endStmt = SyntaxFactory.EndEventStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.EventKeyword)) 'TODO rename this enum for consistency ERRID_MissingEndProperty errorId = ERRID.ERR_MissingEndEvent Case SyntaxKind.AddHandlerAccessorBlock endStmt = SyntaxFactory.EndAddHandlerStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.AddHandlerKeyword)) errorId = ERRID.ERR_MissingEndAddHandler Case SyntaxKind.RemoveHandlerAccessorBlock endStmt = SyntaxFactory.EndRemoveHandlerStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.RemoveHandlerKeyword)) errorId = ERRID.ERR_MissingEndRemoveHandler Case SyntaxKind.RaiseEventAccessorBlock endStmt = SyntaxFactory.EndRaiseEventStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.RaiseEventKeyword)) errorId = ERRID.ERR_MissingEndRaiseEvent Case SyntaxKind.MultiLineIfBlock, SyntaxKind.ElseIfBlock, SyntaxKind.ElseBlock endStmt = SyntaxFactory.EndIfStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.IfKeyword)) errorId = ERRID.ERR_ExpectedEndIf Case SyntaxKind.SimpleDoLoopBlock, SyntaxKind.DoWhileLoopBlock endStmt = SyntaxFactory.SimpleLoopStatement(InternalSyntaxFactory.MissingKeyword(SyntaxKind.LoopKeyword), Nothing) errorId = ERRID.ERR_ExpectedLoop Case SyntaxKind.WhileBlock endStmt = SyntaxFactory.EndWhileStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.WhileKeyword)) errorId = ERRID.ERR_ExpectedEndWhile Case SyntaxKind.WithBlock endStmt = SyntaxFactory.EndWithStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.WithKeyword)) errorId = ERRID.ERR_ExpectedEndWith Case SyntaxKind.ForBlock, SyntaxKind.ForEachBlock endStmt = SyntaxFactory.NextStatement(InternalSyntaxFactory.MissingKeyword(SyntaxKind.NextKeyword), Nothing) errorId = ERRID.ERR_ExpectedNext Case SyntaxKind.SyncLockBlock endStmt = SyntaxFactory.EndSyncLockStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.SyncLockKeyword)) errorId = ERRID.ERR_ExpectedEndSyncLock Case SyntaxKind.SelectBlock endStmt = SyntaxFactory.EndSelectStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.SelectKeyword)) errorId = ERRID.ERR_ExpectedEndSelect Case SyntaxKind.TryBlock endStmt = SyntaxFactory.EndTryStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.TryKeyword)) errorId = ERRID.ERR_ExpectedEndTry Case SyntaxKind.UsingBlock endStmt = SyntaxFactory.EndUsingStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.UsingKeyword)) errorId = ERRID.ERR_ExpectedEndUsing Case Else Throw ExceptionUtilities.UnexpectedValue(kind) End Select Return endStmt End Function Private Shared Function GetEndKind(kind As SyntaxKind) As SyntaxKind Select Case kind Case SyntaxKind.CompilationUnit, SyntaxKind.SingleLineFunctionLambdaExpression, SyntaxKind.SingleLineSubLambdaExpression Return SyntaxKind.None Case SyntaxKind.NamespaceBlock Return SyntaxKind.EndNamespaceStatement Case SyntaxKind.ModuleBlock Return SyntaxKind.EndModuleStatement Case SyntaxKind.ClassBlock Return SyntaxKind.EndClassStatement Case SyntaxKind.StructureBlock Return SyntaxKind.EndStructureStatement Case SyntaxKind.InterfaceBlock Return SyntaxKind.EndInterfaceStatement Case SyntaxKind.EnumBlock Return SyntaxKind.EndEnumStatement Case SyntaxKind.SubBlock, SyntaxKind.ConstructorBlock, SyntaxKind.MultiLineSubLambdaExpression Return SyntaxKind.EndSubStatement Case SyntaxKind.FunctionBlock, SyntaxKind.MultiLineFunctionLambdaExpression Return SyntaxKind.EndFunctionStatement Case SyntaxKind.OperatorBlock Return SyntaxKind.EndOperatorStatement Case SyntaxKind.PropertyBlock Return SyntaxKind.EndPropertyStatement Case SyntaxKind.GetAccessorBlock Return SyntaxKind.EndGetStatement Case SyntaxKind.SetAccessorBlock Return SyntaxKind.EndSetStatement Case SyntaxKind.EventBlock Return SyntaxKind.EndEventStatement Case SyntaxKind.AddHandlerAccessorBlock Return SyntaxKind.EndAddHandlerStatement Case SyntaxKind.RemoveHandlerAccessorBlock Return SyntaxKind.EndRemoveHandlerStatement Case SyntaxKind.RaiseEventAccessorBlock Return SyntaxKind.EndRaiseEventStatement Case SyntaxKind.MultiLineIfBlock, SyntaxKind.ElseIfBlock, SyntaxKind.ElseBlock Return SyntaxKind.EndIfStatement Case SyntaxKind.SingleLineIfStatement, SyntaxKind.SingleLineElseClause Return SyntaxKind.None Case SyntaxKind.SimpleDoLoopBlock, SyntaxKind.DoWhileLoopBlock Return SyntaxKind.SimpleLoopStatement Case SyntaxKind.WhileBlock Return SyntaxKind.EndWhileStatement Case SyntaxKind.ForBlock, SyntaxKind.ForEachBlock Return SyntaxKind.NextStatement Case SyntaxKind.WithBlock Return SyntaxKind.EndWithStatement Case SyntaxKind.SyncLockBlock Return SyntaxKind.EndSyncLockStatement Case SyntaxKind.SelectBlock, SyntaxKind.CaseBlock, SyntaxKind.CaseElseBlock Return SyntaxKind.EndSelectStatement Case SyntaxKind.TryBlock, SyntaxKind.CatchBlock, SyntaxKind.FinallyBlock Return SyntaxKind.EndTryStatement Case SyntaxKind.UsingBlock Return SyntaxKind.EndUsingStatement Case Else Throw ExceptionUtilities.UnexpectedValue(kind) End Select 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. '----------------------------------------------------------------------------- ' Contains the definition of the BlockContext '----------------------------------------------------------------------------- Imports Microsoft.CodeAnalysis.Syntax.InternalSyntax Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports InternalSyntaxFactory = Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax.SyntaxFactory Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax Friend MustInherit Class BlockContext Implements ISyntaxFactoryContext Private _beginStatement As StatementSyntax Protected _parser As Parser Protected _statements As SyntaxListBuilder(Of StatementSyntax) Private ReadOnly _kind As SyntaxKind Private ReadOnly _endKind As SyntaxKind Private ReadOnly _prev As BlockContext Private ReadOnly _isWithinMultiLineLambda As Boolean Private ReadOnly _isWithinSingleLineLambda As Boolean Private ReadOnly _isWithinAsyncMethodOrLambda As Boolean Private ReadOnly _isWithinIteratorMethodOrLambdaOrProperty As Boolean Private ReadOnly _level As Integer Private ReadOnly _syntaxFactory As ContextAwareSyntaxFactory Protected Sub New(kind As SyntaxKind, statement As StatementSyntax, prev As BlockContext) _beginStatement = statement _kind = kind _prev = prev _syntaxFactory = New ContextAwareSyntaxFactory(Me) If prev IsNot Nothing Then _isWithinSingleLineLambda = prev._isWithinSingleLineLambda _isWithinMultiLineLambda = prev._isWithinMultiLineLambda End If If Not _isWithinSingleLineLambda Then _isWithinSingleLineLambda = SyntaxFacts.IsSingleLineLambdaExpression(_kind) End If If Not _isWithinMultiLineLambda Then _isWithinMultiLineLambda = SyntaxFacts.IsMultiLineLambdaExpression(_kind) End If Select Case _kind Case SyntaxKind.PropertyBlock _isWithinIteratorMethodOrLambdaOrProperty = DirectCast(statement, PropertyStatementSyntax).Modifiers.Any(SyntaxKind.IteratorKeyword) Case SyntaxKind.GetAccessorBlock, SyntaxKind.SetAccessorBlock Debug.Assert(_prev IsNot Nothing) _isWithinIteratorMethodOrLambdaOrProperty = _prev.IsWithinIteratorMethodOrLambdaOrProperty Case SyntaxKind.SubBlock, SyntaxKind.FunctionBlock _isWithinAsyncMethodOrLambda = DirectCast(statement, MethodStatementSyntax).Modifiers.Any(SyntaxKind.AsyncKeyword) _isWithinIteratorMethodOrLambdaOrProperty = DirectCast(statement, MethodStatementSyntax).Modifiers.Any(SyntaxKind.IteratorKeyword) Case SyntaxKind.SingleLineSubLambdaExpression, SyntaxKind.MultiLineSubLambdaExpression, SyntaxKind.SingleLineFunctionLambdaExpression, SyntaxKind.MultiLineFunctionLambdaExpression _isWithinAsyncMethodOrLambda = DirectCast(statement, LambdaHeaderSyntax).Modifiers.Any(SyntaxKind.AsyncKeyword) _isWithinIteratorMethodOrLambdaOrProperty = DirectCast(statement, LambdaHeaderSyntax).Modifiers.Any(SyntaxKind.IteratorKeyword) Case Else If _prev IsNot Nothing Then _isWithinAsyncMethodOrLambda = _prev.IsWithinAsyncMethodOrLambda _isWithinIteratorMethodOrLambdaOrProperty = _prev.IsWithinIteratorMethodOrLambdaOrProperty End If End Select _endKind = GetEndKind(kind) _level = If(prev IsNot Nothing, prev.Level + 1, 0) If prev IsNot Nothing Then _parser = prev.Parser _statements = _parser._pool.Allocate(Of StatementSyntax)() End If End Sub Friend ReadOnly Property BeginStatement As StatementSyntax Get Return _beginStatement End Get End Property Friend Sub GetBeginEndStatements(Of T1 As StatementSyntax, T2 As StatementSyntax)(ByRef beginStmt As T1, ByRef endStmt As T2) Debug.Assert(BeginStatement IsNot Nothing) beginStmt = DirectCast(BeginStatement, T1) If endStmt Is Nothing Then Dim errorId As ERRID endStmt = DirectCast(CreateMissingEnd(errorId), T2) If errorId <> Nothing Then beginStmt = Parser.ReportSyntaxError(beginStmt, errorId) End If End If End Sub Friend Overridable Function KindEndsBlock(kind As SyntaxKind) As Boolean Return _endKind = kind End Function Friend ReadOnly Property IsLineIf As Boolean Get Return _kind = SyntaxKind.SingleLineIfStatement OrElse _kind = SyntaxKind.SingleLineElseClause End Get End Property Friend ReadOnly Property IsWithinLambda As Boolean Get Return _isWithinMultiLineLambda Or _isWithinSingleLineLambda End Get End Property Friend ReadOnly Property IsWithinSingleLineLambda As Boolean Get Return _isWithinSingleLineLambda End Get End Property Friend Overridable ReadOnly Property IsWithinAsyncMethodOrLambda As Boolean Implements ISyntaxFactoryContext.IsWithinAsyncMethodOrLambda Get Return _isWithinAsyncMethodOrLambda End Get End Property Friend Overridable ReadOnly Property IsWithinIteratorContext As Boolean Implements ISyntaxFactoryContext.IsWithinIteratorContext Get Return _isWithinIteratorMethodOrLambdaOrProperty End Get End Property Friend ReadOnly Property IsWithinIteratorMethodOrLambdaOrProperty As Boolean Get Return _isWithinIteratorMethodOrLambdaOrProperty End Get End Property 'TODO - Remove dependency on Parser ' For errors call error function directly ' for parsing, just pass a delegate to the context Friend Property Parser As Parser Get Return _parser End Get Set(value As Parser) Debug.Assert(BlockKind = SyntaxKind.CompilationUnit) _parser = value End Set End Property Friend ReadOnly Property SyntaxFactory As ContextAwareSyntaxFactory Get Return _syntaxFactory End Get End Property Friend ReadOnly Property BlockKind As SyntaxKind Get Return _kind End Get End Property Friend ReadOnly Property PrevBlock As BlockContext Get Return _prev End Get End Property Friend ReadOnly Property Level As Integer Get Return _level End Get End Property Friend Sub Add(node As VisualBasicSyntaxNode) Debug.Assert(node IsNot Nothing) _statements.Add(DirectCast(node, StatementSyntax)) End Sub Friend ReadOnly Property Statements As SyntaxListBuilder(Of StatementSyntax) Get Return _statements End Get End Property Friend Sub FreeStatements() _parser._pool.Free(_statements) End Sub Friend Function Body() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax) Dim result = _statements.ToList() _statements.Clear() Return result End Function ''' <summary> ''' Returns the statement if there is exactly one in the body, ''' otherwise returns Nothing. ''' </summary> Friend Function SingleStatementOrDefault() As StatementSyntax Return If(_statements.Count = 1, _statements(0), Nothing) End Function ''' <summary> ''' Return an empty body if the body is a single, zero-width EmptyStatement, ''' otherwise returns the entire body. ''' </summary> Friend Function OptionalBody() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax) Dim statement = SingleStatementOrDefault() If statement IsNot Nothing AndAlso statement.Kind = SyntaxKind.EmptyStatement AndAlso statement.FullWidth = 0 Then Return Nothing End If Return Body() End Function Friend Function Body(Of T As StatementSyntax)() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of T) Dim result = _statements.ToList(Of T)() _statements.Clear() Return result End Function ' Same as Body(), but use a SyntaxListWithManyChildren if the ' body is large enough, so we get red node with weak children. Friend Function BodyWithWeakChildren() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax) If IsLargeEnoughNonEmptyStatementList(_statements) Then Dim result = New CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of StatementSyntax)(SyntaxList.List(CType(_statements, SyntaxListBuilder).ToArray)) _statements.Clear() Return result Else Return Body() End If End Function ' Is this statement list non-empty, and large enough to make using weak children beneficial? Private Shared Function IsLargeEnoughNonEmptyStatementList(statements As SyntaxListBuilder(Of StatementSyntax)) As Boolean If statements.Count = 0 Then Return False ElseIf statements.Count <= 2 Then ' If we have a single statement (Count include separators), it might be small, like "return null", or large, ' like a loop or if or switch with many statements inside. Use the width as a proxy for ' how big it is. If it's small, its better to forgo a many children list anyway, since the ' weak reference would consume as much memory as is saved. Return statements(0).Width > 60 Else ' For 2 or more statements, go ahead and create a many-children lists. Return True End If End Function Friend Function BaseDeclarations(Of T As InheritsOrImplementsStatementSyntax)() As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of T) Dim result = _statements.ToList(Of T)() _statements.Clear() Return result End Function Friend MustOverride Function Parse() As StatementSyntax Friend MustOverride Function ProcessSyntax(syntax As VisualBasicSyntaxNode) As BlockContext Friend MustOverride Function CreateBlockSyntax(statement As StatementSyntax) As VisualBasicSyntaxNode Friend MustOverride Function EndBlock(statement As StatementSyntax) As BlockContext Friend MustOverride Function RecoverFromMismatchedEnd(statement As StatementSyntax) As BlockContext Friend Overridable Function ResyncAndProcessStatementTerminator(statement As StatementSyntax, lambdaContext As BlockContext) As BlockContext Dim unexpected = Parser.ResyncAt() HandleAnyUnexpectedTokens(statement, unexpected) Return ProcessStatementTerminator(lambdaContext) End Function Friend MustOverride Function ProcessStatementTerminator(lambdaContext As BlockContext) As BlockContext Friend MustOverride ReadOnly Property IsSingleLine As Boolean Friend Overridable ReadOnly Property IsLambda As Boolean Get Return False End Get End Property Private Sub HandleAnyUnexpectedTokens(currentStmt As StatementSyntax, unexpected As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of SyntaxToken)) If unexpected.Node Is Nothing Then Return End If Dim index As Integer Dim stmt As StatementSyntax If _statements.Count = 0 Then index = -1 stmt = _beginStatement Else index = _statements.Count - 1 stmt = _statements(index) End If Debug.Assert(stmt IsNot Nothing) If Not currentStmt.ContainsDiagnostics AndAlso Not unexpected.ContainsDiagnostics Then stmt = stmt.AddTrailingSyntax(unexpected, ERRID.ERR_ExpectedEOS) Else ' Don't report ERRID_ExpectedEOS when the statement is known to be bad stmt = stmt.AddTrailingSyntax(unexpected) End If If index = -1 Then _beginStatement = stmt Else _statements(index) = stmt End If End Sub <Flags()> Friend Enum LinkResult NotUsed = 0 ' The syntax cannot be used. Force a reparse. Used = 1 ' Reuse the syntax. SkipTerminator = 2 ' Syntax is not followed by a statement terminator. MissingTerminator = 4 ' Statement terminator is missing. TerminatorFlags = 6 ' Combination of the above 2 flags. Crumble = 8 ' Crumble the syntax and try to reuse the parts. End Enum Friend MustOverride Function TryLinkSyntax(node As VisualBasicSyntaxNode, ByRef newContext As BlockContext) As LinkResult Friend Function LinkSyntax(node As VisualBasicSyntaxNode) As BlockContext Debug.Assert(node IsNot Nothing) Dim kind As SyntaxKind = node.Kind Dim context = Me While context IsNot Nothing If context.KindEndsBlock(kind) Then ' Note, end statements in single line lambdas and single line if's can never close an outer context. Dim scope = FindNearestLambdaOrSingleLineIf(context) If scope IsNot Nothing Then If scope.IsLambda Then ' Don't allow end statements from outer blocks to terminate single line statement lambdas. ' Single line if's have a special error for this case but single line lambdas don't. Exit While Else ' Don't allow end statements from outer blocks to terminate single line ifs. node = Parser.ReportSyntaxError(node, ERRID.ERR_BogusWithinLineIf) Return ProcessSyntax(node) Debug.Assert(scope.IsLineIf) End If Else If context IsNot Me Then 'This statement ends a block higher up. 'End all blocks from Me up to this one with a missing ends. RecoverFromMissingEnd(context) End If 'Add the block to the context above Return context.EndBlock(DirectCast(node, StatementSyntax)) End If ElseIf SyntaxFacts.IsEndBlockLoopOrNextStatement(kind) Then ' See if this kind closes an enclosing statement context context = context.PrevBlock Else Return ProcessSyntax(node) End If End While 'No match was found for the end block statement 'Add it to the current context and leave the context unchanged Return RecoverFromMismatchedEnd(DirectCast(node, StatementSyntax)) End Function Friend Function UseSyntax(node As VisualBasicSyntaxNode, ByRef newContext As BlockContext, Optional AddMissingTerminator As Boolean = False) As LinkResult ' get off the current node as we are definitely using it and LinkStatement may need to look at next token Parser.GetNextSyntaxNode() ' TODO: this will add an error to the statement. Perhaps duplicating it ' context-sensitive errors should be filtered out before re-using nodes. ' or better we should put contextual errors on the actual block not on the offending node (if possible). newContext = LinkSyntax(node) If AddMissingTerminator Then Return LinkResult.Used Or LinkResult.MissingTerminator End If Return LinkResult.Used End Function Friend Function TryUseStatement(node As VisualBasicSyntaxNode, ByRef newContext As BlockContext) As LinkResult Dim statement = TryCast(node, StatementSyntax) If statement IsNot Nothing Then ' get off the current node as we are definitely using it and LinkStatement may need to look at next token Return UseSyntax(statement, newContext) Else Return LinkResult.NotUsed End If End Function ' Returns Nothing if the statement isn't processed Friend Function TryProcessExecutableStatement(node As VisualBasicSyntaxNode) As BlockContext ' top-level statements Select Case node.Kind Case SyntaxKind.SingleLineIfStatement Add(node) Case SyntaxKind.IfStatement ' A single line if has a "then" on the line and is not followed by a ":", EOL or EOF. ' It is OK for else to follow a single line if. i.e ' "if true then if true then else else Dim ifStmt = DirectCast(node, IfStatementSyntax) If ifStmt.ThenKeyword IsNot Nothing AndAlso Not SyntaxFacts.IsTerminator(Parser.CurrentToken.Kind) Then Return New SingleLineIfBlockContext(ifStmt, Me) Else Return New IfBlockContext(ifStmt, Me) End If Case SyntaxKind.ElseStatement ' davidsch ' This error used to be reported in ParseStatementInMethodBody. Move to context. ' It used to be this error with a note that Semantics doesn't like an ELSEIF without an IF. ' Fully parse for now. ' ReportUnrecognizedStatementError(ERRID_ElseIfNoMatchingIf, ErrorInConstruct) Add(Parser.ReportSyntaxError(node, ERRID.ERR_ElseNoMatchingIf)) Case SyntaxKind.ElseIfStatement ' davidsch ' This error used to be reported in ParseStatementInMethodBody. Move to context. ' It used to be this error with a note that Semantics doesn't like an ELSEIF without an IF. ' Fully parse for now. ' ReportUnrecognizedStatementError(ERRID_ElseIfNoMatchingIf, ErrorInConstruct) Add(Parser.ReportSyntaxError(node, ERRID.ERR_ElseIfNoMatchingIf)) Case SyntaxKind.SimpleDoStatement, SyntaxKind.DoWhileStatement, SyntaxKind.DoUntilStatement Return New DoLoopBlockContext(DirectCast(node, StatementSyntax), Me) Case SyntaxKind.ForStatement, SyntaxKind.ForEachStatement Return New ForBlockContext(DirectCast(node, StatementSyntax), Me) Case SyntaxKind.SelectStatement Return New SelectBlockContext(DirectCast(node, StatementSyntax), Me) Case SyntaxKind.CaseStatement 'TODO - davidsch ' In dev10 the error is reported on the CASE not the statement. If needed this error can be ' moved to ParseCaseStatement. Add(Parser.ReportSyntaxError(node, ERRID.ERR_CaseNoSelect)) Case SyntaxKind.CaseElseStatement 'TODO - davidsch ' In dev10 the error is reported on the CASE not the statement. If needed this error can be ' moved to ParseCaseStatement. Add(Parser.ReportSyntaxError(node, ERRID.ERR_CaseElseNoSelect)) Case SyntaxKind.WhileStatement Return New StatementBlockContext(SyntaxKind.WhileBlock, DirectCast(node, StatementSyntax), Me) Case SyntaxKind.WithStatement Return New StatementBlockContext(SyntaxKind.WithBlock, DirectCast(node, StatementSyntax), Me) Case SyntaxKind.SyncLockStatement Return New StatementBlockContext(SyntaxKind.SyncLockBlock, DirectCast(node, StatementSyntax), Me) Case SyntaxKind.UsingStatement Return New StatementBlockContext(SyntaxKind.UsingBlock, DirectCast(node, StatementSyntax), Me) Case SyntaxKind.TryStatement Return New TryBlockContext(DirectCast(node, StatementSyntax), Me) Case SyntaxKind.CatchStatement, SyntaxKind.FinallyStatement Dim context = FindNearestInSameMethodScope(SyntaxKind.TryBlock, SyntaxKind.CatchBlock, SyntaxKind.FinallyBlock) If context IsNot Nothing Then RecoverFromMissingEnd(context) Return context.ProcessSyntax(DirectCast(node, StatementSyntax)) End If ' In dev10 the error is reported on the CATCH not the statement. ' If needed this error can be moved to ParseCatchStatement. Add(Parser.ReportSyntaxError(node, If(node.Kind = SyntaxKind.CatchStatement, ERRID.ERR_CatchNoMatchingTry, ERRID.ERR_FinallyNoMatchingTry))) Case SyntaxKind.SelectBlock, SyntaxKind.WhileBlock, SyntaxKind.WithBlock, SyntaxKind.SyncLockBlock, SyntaxKind.UsingBlock, SyntaxKind.TryBlock, SyntaxKind.SimpleDoLoopBlock, SyntaxKind.DoWhileLoopBlock, SyntaxKind.DoUntilLoopBlock, SyntaxKind.DoLoopWhileBlock, SyntaxKind.DoLoopUntilBlock, SyntaxKind.ForBlock, SyntaxKind.ForEachBlock, SyntaxKind.SingleLineIfStatement, SyntaxKind.MultiLineIfBlock ' Handle any block that can be created by this context Add(node) Case Else If Not TypeOf node Is ExecutableStatementSyntax Then Return Nothing End If Add(node) End Select Return Me End Function Friend Function TryLinkStatement(node As VisualBasicSyntaxNode, ByRef newContext As BlockContext) As LinkResult newContext = Nothing Select Case node.Kind Case SyntaxKind.SelectBlock Return UseSyntax(node, newContext, DirectCast(node, SelectBlockSyntax).EndSelectStatement.IsMissing) Case SyntaxKind.WhileBlock Return UseSyntax(node, newContext, DirectCast(node, WhileBlockSyntax).EndWhileStatement.IsMissing) Case SyntaxKind.WithBlock Return UseSyntax(node, newContext, DirectCast(node, WithBlockSyntax).EndWithStatement.IsMissing) Case SyntaxKind.SyncLockBlock Return UseSyntax(node, newContext, DirectCast(node, SyncLockBlockSyntax).EndSyncLockStatement.IsMissing) Case SyntaxKind.UsingBlock Return UseSyntax(node, newContext, DirectCast(node, UsingBlockSyntax).EndUsingStatement.IsMissing) Case SyntaxKind.TryBlock Return UseSyntax(node, newContext, DirectCast(node, TryBlockSyntax).EndTryStatement.IsMissing) Case SyntaxKind.SimpleDoLoopBlock, SyntaxKind.DoWhileLoopBlock, SyntaxKind.DoUntilLoopBlock, SyntaxKind.DoLoopWhileBlock, SyntaxKind.DoLoopUntilBlock Return UseSyntax(node, newContext, DirectCast(node, DoLoopBlockSyntax).LoopStatement.IsMissing) Case SyntaxKind.ForBlock, SyntaxKind.ForEachBlock ' The EndOpt syntax can influence the next context in case it contains ' several control variables. If they are still valid needs to be checked in the ForBlockContext. ' This is the reason why we can't simply reuse the syntax here. newContext = Me Return LinkResult.Crumble Case SyntaxKind.SingleLineIfStatement Return UseSyntax(node, newContext) Case SyntaxKind.MultiLineIfBlock Return UseSyntax(node, newContext, DirectCast(node, MultiLineIfBlockSyntax).EndIfStatement.IsMissing) Case SyntaxKind.NextStatement ' Don't reuse a next statement. The parser matches the variable list with the for context blocks. ' In order to reuse the next statement that error checking needs to be moved from the parser to the ' contexts. For now, crumble and reparse. The next statement is small and fast to parse. newContext = Me Return LinkResult.NotUsed Case Else Return TryUseStatement(node, newContext) End Select End Function Private Function CreateMissingEnd(ByRef errorId As ERRID) As StatementSyntax Return CreateMissingEnd(BlockKind, errorId) End Function Private Function CreateMissingEnd(kind As SyntaxKind, ByRef errorId As ERRID) As StatementSyntax Dim endStmt As StatementSyntax Dim missingEndKeyword = InternalSyntaxFactory.MissingKeyword(SyntaxKind.EndKeyword) Select Case kind Case SyntaxKind.NamespaceBlock endStmt = SyntaxFactory.EndNamespaceStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.NamespaceKeyword)) errorId = ERRID.ERR_ExpectedEndNamespace Case SyntaxKind.ModuleBlock endStmt = SyntaxFactory.EndModuleStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.ModuleKeyword)) errorId = ERRID.ERR_ExpectedEndModule Case SyntaxKind.ClassBlock endStmt = SyntaxFactory.EndClassStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.ClassKeyword)) errorId = ERRID.ERR_ExpectedEndClass Case SyntaxKind.StructureBlock endStmt = SyntaxFactory.EndStructureStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.StructureKeyword)) errorId = ERRID.ERR_ExpectedEndStructure Case SyntaxKind.InterfaceBlock endStmt = SyntaxFactory.EndInterfaceStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.InterfaceKeyword)) errorId = ERRID.ERR_MissingEndInterface Case SyntaxKind.EnumBlock endStmt = SyntaxFactory.EndEnumStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.EnumKeyword)) errorId = ERRID.ERR_MissingEndEnum Case SyntaxKind.SubBlock, SyntaxKind.ConstructorBlock endStmt = SyntaxFactory.EndSubStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.SubKeyword)) 'TODO - davidsch make these expected error message names consistent. Some are EndXXExpected and others are ExpectedEndXX errorId = ERRID.ERR_EndSubExpected Case SyntaxKind.MultiLineSubLambdaExpression endStmt = SyntaxFactory.EndSubStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.SubKeyword)) errorId = ERRID.ERR_MultilineLambdaMissingSub Case SyntaxKind.FunctionBlock endStmt = SyntaxFactory.EndFunctionStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.FunctionKeyword)) errorId = ERRID.ERR_EndFunctionExpected Case SyntaxKind.MultiLineFunctionLambdaExpression endStmt = SyntaxFactory.EndFunctionStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.FunctionKeyword)) errorId = ERRID.ERR_MultilineLambdaMissingFunction Case SyntaxKind.OperatorBlock endStmt = SyntaxFactory.EndOperatorStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.OperatorKeyword)) errorId = ERRID.ERR_EndOperatorExpected Case SyntaxKind.PropertyBlock endStmt = SyntaxFactory.EndPropertyStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.PropertyKeyword)) 'TODO rename this enum for consistency ERRID_MissingEndProperty errorId = ERRID.ERR_EndProp Case SyntaxKind.GetAccessorBlock endStmt = SyntaxFactory.EndGetStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.GetKeyword)) errorId = ERRID.ERR_MissingEndGet Case SyntaxKind.SetAccessorBlock endStmt = SyntaxFactory.EndSetStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.SetKeyword)) errorId = ERRID.ERR_MissingEndSet Case SyntaxKind.EventBlock endStmt = SyntaxFactory.EndEventStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.EventKeyword)) 'TODO rename this enum for consistency ERRID_MissingEndProperty errorId = ERRID.ERR_MissingEndEvent Case SyntaxKind.AddHandlerAccessorBlock endStmt = SyntaxFactory.EndAddHandlerStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.AddHandlerKeyword)) errorId = ERRID.ERR_MissingEndAddHandler Case SyntaxKind.RemoveHandlerAccessorBlock endStmt = SyntaxFactory.EndRemoveHandlerStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.RemoveHandlerKeyword)) errorId = ERRID.ERR_MissingEndRemoveHandler Case SyntaxKind.RaiseEventAccessorBlock endStmt = SyntaxFactory.EndRaiseEventStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.RaiseEventKeyword)) errorId = ERRID.ERR_MissingEndRaiseEvent Case SyntaxKind.MultiLineIfBlock, SyntaxKind.ElseIfBlock, SyntaxKind.ElseBlock endStmt = SyntaxFactory.EndIfStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.IfKeyword)) errorId = ERRID.ERR_ExpectedEndIf Case SyntaxKind.SimpleDoLoopBlock, SyntaxKind.DoWhileLoopBlock endStmt = SyntaxFactory.SimpleLoopStatement(InternalSyntaxFactory.MissingKeyword(SyntaxKind.LoopKeyword), Nothing) errorId = ERRID.ERR_ExpectedLoop Case SyntaxKind.WhileBlock endStmt = SyntaxFactory.EndWhileStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.WhileKeyword)) errorId = ERRID.ERR_ExpectedEndWhile Case SyntaxKind.WithBlock endStmt = SyntaxFactory.EndWithStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.WithKeyword)) errorId = ERRID.ERR_ExpectedEndWith Case SyntaxKind.ForBlock, SyntaxKind.ForEachBlock endStmt = SyntaxFactory.NextStatement(InternalSyntaxFactory.MissingKeyword(SyntaxKind.NextKeyword), Nothing) errorId = ERRID.ERR_ExpectedNext Case SyntaxKind.SyncLockBlock endStmt = SyntaxFactory.EndSyncLockStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.SyncLockKeyword)) errorId = ERRID.ERR_ExpectedEndSyncLock Case SyntaxKind.SelectBlock endStmt = SyntaxFactory.EndSelectStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.SelectKeyword)) errorId = ERRID.ERR_ExpectedEndSelect Case SyntaxKind.TryBlock endStmt = SyntaxFactory.EndTryStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.TryKeyword)) errorId = ERRID.ERR_ExpectedEndTry Case SyntaxKind.UsingBlock endStmt = SyntaxFactory.EndUsingStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.UsingKeyword)) errorId = ERRID.ERR_ExpectedEndUsing Case Else Throw ExceptionUtilities.UnexpectedValue(kind) End Select Return endStmt End Function Private Shared Function GetEndKind(kind As SyntaxKind) As SyntaxKind Select Case kind Case SyntaxKind.CompilationUnit, SyntaxKind.SingleLineFunctionLambdaExpression, SyntaxKind.SingleLineSubLambdaExpression Return SyntaxKind.None Case SyntaxKind.NamespaceBlock Return SyntaxKind.EndNamespaceStatement Case SyntaxKind.ModuleBlock Return SyntaxKind.EndModuleStatement Case SyntaxKind.ClassBlock Return SyntaxKind.EndClassStatement Case SyntaxKind.StructureBlock Return SyntaxKind.EndStructureStatement Case SyntaxKind.InterfaceBlock Return SyntaxKind.EndInterfaceStatement Case SyntaxKind.EnumBlock Return SyntaxKind.EndEnumStatement Case SyntaxKind.SubBlock, SyntaxKind.ConstructorBlock, SyntaxKind.MultiLineSubLambdaExpression Return SyntaxKind.EndSubStatement Case SyntaxKind.FunctionBlock, SyntaxKind.MultiLineFunctionLambdaExpression Return SyntaxKind.EndFunctionStatement Case SyntaxKind.OperatorBlock Return SyntaxKind.EndOperatorStatement Case SyntaxKind.PropertyBlock Return SyntaxKind.EndPropertyStatement Case SyntaxKind.GetAccessorBlock Return SyntaxKind.EndGetStatement Case SyntaxKind.SetAccessorBlock Return SyntaxKind.EndSetStatement Case SyntaxKind.EventBlock Return SyntaxKind.EndEventStatement Case SyntaxKind.AddHandlerAccessorBlock Return SyntaxKind.EndAddHandlerStatement Case SyntaxKind.RemoveHandlerAccessorBlock Return SyntaxKind.EndRemoveHandlerStatement Case SyntaxKind.RaiseEventAccessorBlock Return SyntaxKind.EndRaiseEventStatement Case SyntaxKind.MultiLineIfBlock, SyntaxKind.ElseIfBlock, SyntaxKind.ElseBlock Return SyntaxKind.EndIfStatement Case SyntaxKind.SingleLineIfStatement, SyntaxKind.SingleLineElseClause Return SyntaxKind.None Case SyntaxKind.SimpleDoLoopBlock, SyntaxKind.DoWhileLoopBlock Return SyntaxKind.SimpleLoopStatement Case SyntaxKind.WhileBlock Return SyntaxKind.EndWhileStatement Case SyntaxKind.ForBlock, SyntaxKind.ForEachBlock Return SyntaxKind.NextStatement Case SyntaxKind.WithBlock Return SyntaxKind.EndWithStatement Case SyntaxKind.SyncLockBlock Return SyntaxKind.EndSyncLockStatement Case SyntaxKind.SelectBlock, SyntaxKind.CaseBlock, SyntaxKind.CaseElseBlock Return SyntaxKind.EndSelectStatement Case SyntaxKind.TryBlock, SyntaxKind.CatchBlock, SyntaxKind.FinallyBlock Return SyntaxKind.EndTryStatement Case SyntaxKind.UsingBlock Return SyntaxKind.EndUsingStatement Case Else Throw ExceptionUtilities.UnexpectedValue(kind) End Select End Function End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/VisualStudio/Core/Test/CodeModel/VisualBasic/CodeNamespaceTests.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.Threading.Tasks Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Test.Utilities Imports Roslyn.Test.Utilities Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.CodeModel.VisualBasic Public Class CodeNamespaceTests Inherits AbstractCodeNamespaceTests #Region "GetStartPoint() tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint1() Dim code = <Code> Namespace $$N : End Namespace </Code> TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=1, lineOffset:=13, absoluteOffset:=13, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=1, lineOffset:=13, absoluteOffset:=13, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=27))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint2() Dim code = <Code> Namespace $$N : End Namespace </Code> TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=1, lineOffset:=13, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=1, lineOffset:=13, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=13))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint3() Dim code = <Code> Namespace $$N ' N End Namespace </Code> TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=17, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=17, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=15)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=15)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=15)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=17, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=15)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=15))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint4() Dim code = <Code> Namespace $$N End Namespace </Code> TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint5() Dim code = <Code> Namespace $$N End Namespace </Code> ' Note: TextPoint.AbsoluteCharOffset throws in VS 2012 for vsCMPartNavigate TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=0)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=0)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=2, lineOffset:=5, lineLength:=0)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint6() Dim code = <Code> Namespace $$N Class C End Class End Namespace </Code> TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=2, lineOffset:=5, absoluteOffset:=17, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint7() Dim code = <Code> Namespace $$N Class C End Class End Namespace </Code> ' Note: TextPoint.AbsoluteCharOffset throws in VS 2012 for vsCMPartNavigate TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=0)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=0)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=2, lineOffset:=5, lineLength:=0)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11))) End Sub #End Region #Region "GetEndPoint() tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetEndPoint1() Dim code = <Code> Namespace $$N : End Namespace </Code> TestGetEndPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=1, lineOffset:=15, absoluteOffset:=15, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=1, lineOffset:=15, absoluteOffset:=15, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=1, lineOffset:=15, absoluteOffset:=15, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=28, absoluteOffset:=28, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=28, absoluteOffset:=28, lineLength:=27))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetEndPoint2() Dim code = <Code> Namespace $$N End Namespace </Code> TestGetEndPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=2, lineOffset:=14, absoluteOffset:=26, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=2, lineOffset:=14, absoluteOffset:=26, lineLength:=13))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetEndPoint3() Dim code = <Code> Namespace $$N End Namespace </Code> TestGetEndPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=3, lineOffset:=1, absoluteOffset:=14, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=3, lineOffset:=1, absoluteOffset:=14, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=3, lineOffset:=1, absoluteOffset:=14, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=3, lineOffset:=14, absoluteOffset:=27, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=3, lineOffset:=14, absoluteOffset:=27, lineLength:=13))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetEndPoint4() Dim code = <Code> Namespace $$N Class C End Class End Namespace </Code> TestGetEndPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=4, lineOffset:=1, absoluteOffset:=39, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=4, lineOffset:=1, absoluteOffset:=39, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=4, lineOffset:=1, absoluteOffset:=39, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=4, lineOffset:=14, absoluteOffset:=52, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=4, lineOffset:=14, absoluteOffset:=52, lineLength:=13))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetEndPoint5() Dim code = <Code> Namespace $$N Class C End Class End Namespace </Code> TestGetEndPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=6, lineOffset:=1, absoluteOffset:=41, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=6, lineOffset:=1, absoluteOffset:=41, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=6, lineOffset:=1, absoluteOffset:=41, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=6, lineOffset:=14, absoluteOffset:=54, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=6, lineOffset:=14, absoluteOffset:=54, lineLength:=13))) End Sub #End Region #Region "Comment tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestComment1() Dim code = <Code> ' Goo Namespace $$N End Namespace </Code> Dim result = " Goo" TestComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestComment2() Dim code = <Code> ' Goo ' Bar Namespace $$N End Namespace </Code> Dim result = " Goo" & vbCrLf & " Bar" TestComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestComment3() Dim code = <Code> ' Goo ' Bar Namespace $$N End Namespace </Code> Dim result = " Bar" TestComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestComment4() Dim code = <Code> Namespace N1 End Namespace ' Goo ' Bar Namespace $$N2 End Namespace </Code> Dim result = " Bar" TestComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestComment5() Dim code = <Code> ' Goo ''' &lt;summary&gt;Bar&lt;/summary&gt; Namespace $$N End Namespace </Code> Dim result = "" TestComment(code, result) End Sub #End Region #Region "DocComment tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestDocComment1() Dim code = <Code> ''' &lt;summary&gt; ''' Goo ''' &lt;/summary&gt; ''' &lt;remarks&gt;&lt;/remarks&gt; Namespace $$N End Namespace </Code> Dim result = " <summary>" & vbCrLf & " Goo" & vbCrLf & " </summary>" & vbCrLf & " <remarks></remarks>" TestDocComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestDocComment2() Dim code = <Code> ''' &lt;summary&gt; ''' Hello World ''' &lt;/summary&gt; Namespace $$N End Namespace </Code> Dim result = " <summary>" & vbCrLf & " Hello World" & vbCrLf & " </summary>" TestDocComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestDocComment3() Dim code = <Code> ''' &lt;summary&gt; ''' Goo ''' &lt;/summary&gt; ' Bar ''' &lt;remarks&gt;&lt;/remarks&gt; Namespace $$N End Namespace </Code> Dim result = " <remarks></remarks>" TestDocComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestDocComment4() Dim code = <Code> Namespace N1 ''' &lt;summary&gt; ''' Goo ''' &lt;/summary&gt; ''' &lt;remarks&gt;&lt;/remarks&gt; Namespace $$N2 End Namespace End Namespace </Code> Dim result = " <summary>" & vbCrLf & " Goo" & vbCrLf & " </summary>" & vbCrLf & " <remarks></remarks>" TestDocComment(code, result) End Sub #End Region #Region "Set Comment tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetComment1() As Task Dim code = <Code> ' Goo ' Bar Namespace $$N End Namespace </Code> Dim expected = <Code> ' Goo Namespace N End Namespace </Code> Await TestSetComment(code, expected, Nothing) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetComment2() As Task Dim code = <Code> ' Goo ''' &lt;summary&gt;Bar&lt;/summary&gt; Namespace $$N End Namespace </Code> Dim expected = <Code> ' Goo ''' &lt;summary&gt;Bar&lt;/summary&gt; ' Bar Namespace N End Namespace </Code> Await TestSetComment(code, expected, "Bar") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetComment3() As Task Dim code = <Code> ' Goo ' Bar Namespace $$N End Namespace </Code> Dim expected = <Code> ' Goo ' Blah Namespace N End Namespace </Code> Await TestSetComment(code, expected, "Blah") End Function #End Region #Region "Set DocComment tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment_Nothing1() As Task Dim code = <Code> Namespace $$N End Namespace </Code> Dim expected = <Code> Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, Nothing) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment_Nothing2() As Task Dim code = <Code> ''' &lt;summary&gt; ''' Goo ''' &lt;/summary&gt; Namespace $$N End Namespace </Code> Dim expected = <Code> Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, Nothing) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment_InvalidXml1() As Task Dim code = <Code> Namespace $$N End Namespace </Code> Dim expected = <Code> ''' &lt;doc&gt;&lt;summary&gt;Blah&lt;/doc&gt; Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, "<doc><summary>Blah</doc>") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment_InvalidXml2() As Task Dim code = <Code> Namespace $$N End Namespace </Code> Dim expected = <Code> ''' &lt;doc___&gt;&lt;summary&gt;Blah&lt;/summary&gt;&lt;/doc___&gt; Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, "<doc___><summary>Blah</summary></doc___>") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment1() As Task Dim code = <Code> Namespace $$N End Namespace </Code> Dim expected = <Code> ''' &lt;summary&gt;Hello World&lt;/summary&gt; Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, "<summary>Hello World</summary>") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment2() As Task Dim code = <Code> ''' &lt;summary&gt;Hello World&lt;/summary&gt; Namespace $$N End Namespace </Code> Dim expected = <Code> ''' &lt;summary&gt;Blah&lt;/summary&gt; Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, "<summary>Blah</summary>") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment3() As Task Dim code = <Code> ' Goo Namespace $$N End Namespace </Code> Dim expected = <Code> ' Goo ''' &lt;summary&gt;Blah&lt;/summary&gt; Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, "<summary>Blah</summary>") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment4() As Task Dim code = <Code> ''' &lt;summary&gt;FogBar&lt;/summary&gt; ' Goo Namespace $$N End Namespace </Code> Dim expected = <Code> ''' &lt;summary&gt;Blah&lt;/summary&gt; ' Goo Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, "<summary>Blah</summary>") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment5() As Task Dim code = <Code> Namespace N1 Namespace $$N2 End Namespace End Namespace </Code> Dim expected = <Code> Namespace N1 ''' &lt;summary&gt;Hello World&lt;/summary&gt; Namespace N2 End Namespace End Namespace </Code> Await TestSetDocComment(code, expected, "<summary>Hello World</summary>") End Function #End Region #Region "Set Name tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetName_SameName() As Task Dim code = <Code> Namespace N$$ Class C End Class End Namespace </Code> Dim expected = <Code> Namespace N Class C End Class End Namespace </Code> Await TestSetName(code, expected, "N", NoThrow(Of String)()) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetName_NewName() As Task Dim code = <Code> Namespace N$$ Class C End Class End Namespace </Code> Dim expected = <Code> Namespace N2 Class C End Class End Namespace </Code> Await TestSetName(code, expected, "N2", NoThrow(Of String)()) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetName_SimpleNameToDottedName() As Task Dim code = <Code> Namespace N1$$ Class C End Class End Namespace </Code> Dim expected = <Code> Namespace N2.N3 Class C End Class End Namespace </Code> Await TestSetName(code, expected, "N2.N3", NoThrow(Of String)()) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetName_DottedNameToDottedName() As Task Dim code = <Code> Namespace N1.N2$$ Class C End Class End Namespace </Code> Dim expected = <Code> Namespace N3.N4 Class C End Class End Namespace </Code> Await TestSetName(code, expected, "N3.N4", NoThrow(Of String)()) End Function #End Region #Region "Remove tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestRemove1() As Task Dim code = <Code> Namespace $$Goo Class C End Class End Namespace </Code> Dim expected = <Code> Namespace Goo End Namespace </Code> Await TestRemoveChild(code, expected, "C") End Function #End Region <WorkItem(858153, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/858153")> <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestChildren1() Dim code = <Code> Namespace N$$ Class C1 End Class Class C2 End Class Class C3 End Class End Namespace </Code> TestChildren(code, IsElement("C1", EnvDTE.vsCMElement.vsCMElementClass), IsElement("C2", EnvDTE.vsCMElement.vsCMElementClass), IsElement("C3", EnvDTE.vsCMElement.vsCMElementClass)) End Sub <WorkItem(150349, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/150349")> <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub NoChildrenForInvalidMembers() Dim code = <Code> Namespace N$$ Sub M() End Sub Function M() As Integer End Function Property P As Integer Event E() End Sub </Code> TestChildren(code, NoElements) End Sub Protected Overrides ReadOnly Property LanguageName As String Get Return LanguageNames.VisualBasic 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.Threading.Tasks Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Test.Utilities Imports Roslyn.Test.Utilities Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.CodeModel.VisualBasic Public Class CodeNamespaceTests Inherits AbstractCodeNamespaceTests #Region "GetStartPoint() tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint1() Dim code = <Code> Namespace $$N : End Namespace </Code> TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=1, lineOffset:=13, absoluteOffset:=13, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=1, lineOffset:=13, absoluteOffset:=13, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=27))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint2() Dim code = <Code> Namespace $$N : End Namespace </Code> TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=1, lineOffset:=13, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=1, lineOffset:=13, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=13))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint3() Dim code = <Code> Namespace $$N ' N End Namespace </Code> TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=17, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=17, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=15)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=15)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=15)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=17, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=15)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=15))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint4() Dim code = <Code> Namespace $$N End Namespace </Code> TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint5() Dim code = <Code> Namespace $$N End Namespace </Code> ' Note: TextPoint.AbsoluteCharOffset throws in VS 2012 for vsCMPartNavigate TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=0)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=0)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=2, lineOffset:=5, lineLength:=0)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint6() Dim code = <Code> Namespace $$N Class C End Class End Namespace </Code> TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=2, lineOffset:=5, absoluteOffset:=17, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetStartPoint7() Dim code = <Code> Namespace $$N Class C End Class End Namespace </Code> ' Note: TextPoint.AbsoluteCharOffset throws in VS 2012 for vsCMPartNavigate TestGetStartPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=0)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=0)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=11, absoluteOffset:=11, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=2, lineOffset:=5, lineLength:=0)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=1, absoluteOffset:=1, lineLength:=11))) End Sub #End Region #Region "GetEndPoint() tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetEndPoint1() Dim code = <Code> Namespace $$N : End Namespace </Code> TestGetEndPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=1, lineOffset:=15, absoluteOffset:=15, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=1, lineOffset:=15, absoluteOffset:=15, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=1, lineOffset:=15, absoluteOffset:=15, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=1, lineOffset:=28, absoluteOffset:=28, lineLength:=27)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=1, lineOffset:=28, absoluteOffset:=28, lineLength:=27))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetEndPoint2() Dim code = <Code> Namespace $$N End Namespace </Code> TestGetEndPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=2, lineOffset:=1, absoluteOffset:=13, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=2, lineOffset:=14, absoluteOffset:=26, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=2, lineOffset:=14, absoluteOffset:=26, lineLength:=13))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetEndPoint3() Dim code = <Code> Namespace $$N End Namespace </Code> TestGetEndPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=3, lineOffset:=1, absoluteOffset:=14, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=3, lineOffset:=1, absoluteOffset:=14, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=3, lineOffset:=1, absoluteOffset:=14, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=3, lineOffset:=14, absoluteOffset:=27, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=3, lineOffset:=14, absoluteOffset:=27, lineLength:=13))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetEndPoint4() Dim code = <Code> Namespace $$N Class C End Class End Namespace </Code> TestGetEndPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=4, lineOffset:=1, absoluteOffset:=39, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=4, lineOffset:=1, absoluteOffset:=39, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=4, lineOffset:=1, absoluteOffset:=39, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=4, lineOffset:=14, absoluteOffset:=52, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=4, lineOffset:=14, absoluteOffset:=52, lineLength:=13))) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestGetEndPoint5() Dim code = <Code> Namespace $$N Class C End Class End Namespace </Code> TestGetEndPoint(code, Part(EnvDTE.vsCMPart.vsCMPartAttributes, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartAttributesWithDelimiter, NullTextPoint), Part(EnvDTE.vsCMPart.vsCMPartBody, TextPoint(line:=6, lineOffset:=1, absoluteOffset:=41, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartBodyWithDelimiter, TextPoint(line:=6, lineOffset:=1, absoluteOffset:=41, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartHeader, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartHeaderWithAttributes, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartName, TextPoint(line:=1, lineOffset:=12, absoluteOffset:=12, lineLength:=11)), Part(EnvDTE.vsCMPart.vsCMPartNavigate, TextPoint(line:=6, lineOffset:=1, absoluteOffset:=41, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWhole, TextPoint(line:=6, lineOffset:=14, absoluteOffset:=54, lineLength:=13)), Part(EnvDTE.vsCMPart.vsCMPartWholeWithAttributes, TextPoint(line:=6, lineOffset:=14, absoluteOffset:=54, lineLength:=13))) End Sub #End Region #Region "Comment tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestComment1() Dim code = <Code> ' Goo Namespace $$N End Namespace </Code> Dim result = " Goo" TestComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestComment2() Dim code = <Code> ' Goo ' Bar Namespace $$N End Namespace </Code> Dim result = " Goo" & vbCrLf & " Bar" TestComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestComment3() Dim code = <Code> ' Goo ' Bar Namespace $$N End Namespace </Code> Dim result = " Bar" TestComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestComment4() Dim code = <Code> Namespace N1 End Namespace ' Goo ' Bar Namespace $$N2 End Namespace </Code> Dim result = " Bar" TestComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestComment5() Dim code = <Code> ' Goo ''' &lt;summary&gt;Bar&lt;/summary&gt; Namespace $$N End Namespace </Code> Dim result = "" TestComment(code, result) End Sub #End Region #Region "DocComment tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestDocComment1() Dim code = <Code> ''' &lt;summary&gt; ''' Goo ''' &lt;/summary&gt; ''' &lt;remarks&gt;&lt;/remarks&gt; Namespace $$N End Namespace </Code> Dim result = " <summary>" & vbCrLf & " Goo" & vbCrLf & " </summary>" & vbCrLf & " <remarks></remarks>" TestDocComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestDocComment2() Dim code = <Code> ''' &lt;summary&gt; ''' Hello World ''' &lt;/summary&gt; Namespace $$N End Namespace </Code> Dim result = " <summary>" & vbCrLf & " Hello World" & vbCrLf & " </summary>" TestDocComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestDocComment3() Dim code = <Code> ''' &lt;summary&gt; ''' Goo ''' &lt;/summary&gt; ' Bar ''' &lt;remarks&gt;&lt;/remarks&gt; Namespace $$N End Namespace </Code> Dim result = " <remarks></remarks>" TestDocComment(code, result) End Sub <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestDocComment4() Dim code = <Code> Namespace N1 ''' &lt;summary&gt; ''' Goo ''' &lt;/summary&gt; ''' &lt;remarks&gt;&lt;/remarks&gt; Namespace $$N2 End Namespace End Namespace </Code> Dim result = " <summary>" & vbCrLf & " Goo" & vbCrLf & " </summary>" & vbCrLf & " <remarks></remarks>" TestDocComment(code, result) End Sub #End Region #Region "Set Comment tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetComment1() As Task Dim code = <Code> ' Goo ' Bar Namespace $$N End Namespace </Code> Dim expected = <Code> ' Goo Namespace N End Namespace </Code> Await TestSetComment(code, expected, Nothing) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetComment2() As Task Dim code = <Code> ' Goo ''' &lt;summary&gt;Bar&lt;/summary&gt; Namespace $$N End Namespace </Code> Dim expected = <Code> ' Goo ''' &lt;summary&gt;Bar&lt;/summary&gt; ' Bar Namespace N End Namespace </Code> Await TestSetComment(code, expected, "Bar") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetComment3() As Task Dim code = <Code> ' Goo ' Bar Namespace $$N End Namespace </Code> Dim expected = <Code> ' Goo ' Blah Namespace N End Namespace </Code> Await TestSetComment(code, expected, "Blah") End Function #End Region #Region "Set DocComment tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment_Nothing1() As Task Dim code = <Code> Namespace $$N End Namespace </Code> Dim expected = <Code> Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, Nothing) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment_Nothing2() As Task Dim code = <Code> ''' &lt;summary&gt; ''' Goo ''' &lt;/summary&gt; Namespace $$N End Namespace </Code> Dim expected = <Code> Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, Nothing) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment_InvalidXml1() As Task Dim code = <Code> Namespace $$N End Namespace </Code> Dim expected = <Code> ''' &lt;doc&gt;&lt;summary&gt;Blah&lt;/doc&gt; Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, "<doc><summary>Blah</doc>") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment_InvalidXml2() As Task Dim code = <Code> Namespace $$N End Namespace </Code> Dim expected = <Code> ''' &lt;doc___&gt;&lt;summary&gt;Blah&lt;/summary&gt;&lt;/doc___&gt; Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, "<doc___><summary>Blah</summary></doc___>") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment1() As Task Dim code = <Code> Namespace $$N End Namespace </Code> Dim expected = <Code> ''' &lt;summary&gt;Hello World&lt;/summary&gt; Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, "<summary>Hello World</summary>") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment2() As Task Dim code = <Code> ''' &lt;summary&gt;Hello World&lt;/summary&gt; Namespace $$N End Namespace </Code> Dim expected = <Code> ''' &lt;summary&gt;Blah&lt;/summary&gt; Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, "<summary>Blah</summary>") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment3() As Task Dim code = <Code> ' Goo Namespace $$N End Namespace </Code> Dim expected = <Code> ' Goo ''' &lt;summary&gt;Blah&lt;/summary&gt; Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, "<summary>Blah</summary>") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment4() As Task Dim code = <Code> ''' &lt;summary&gt;FogBar&lt;/summary&gt; ' Goo Namespace $$N End Namespace </Code> Dim expected = <Code> ''' &lt;summary&gt;Blah&lt;/summary&gt; ' Goo Namespace N End Namespace </Code> Await TestSetDocComment(code, expected, "<summary>Blah</summary>") End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetDocComment5() As Task Dim code = <Code> Namespace N1 Namespace $$N2 End Namespace End Namespace </Code> Dim expected = <Code> Namespace N1 ''' &lt;summary&gt;Hello World&lt;/summary&gt; Namespace N2 End Namespace End Namespace </Code> Await TestSetDocComment(code, expected, "<summary>Hello World</summary>") End Function #End Region #Region "Set Name tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetName_SameName() As Task Dim code = <Code> Namespace N$$ Class C End Class End Namespace </Code> Dim expected = <Code> Namespace N Class C End Class End Namespace </Code> Await TestSetName(code, expected, "N", NoThrow(Of String)()) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetName_NewName() As Task Dim code = <Code> Namespace N$$ Class C End Class End Namespace </Code> Dim expected = <Code> Namespace N2 Class C End Class End Namespace </Code> Await TestSetName(code, expected, "N2", NoThrow(Of String)()) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetName_SimpleNameToDottedName() As Task Dim code = <Code> Namespace N1$$ Class C End Class End Namespace </Code> Dim expected = <Code> Namespace N2.N3 Class C End Class End Namespace </Code> Await TestSetName(code, expected, "N2.N3", NoThrow(Of String)()) End Function <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestSetName_DottedNameToDottedName() As Task Dim code = <Code> Namespace N1.N2$$ Class C End Class End Namespace </Code> Dim expected = <Code> Namespace N3.N4 Class C End Class End Namespace </Code> Await TestSetName(code, expected, "N3.N4", NoThrow(Of String)()) End Function #End Region #Region "Remove tests" <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Async Function TestRemove1() As Task Dim code = <Code> Namespace $$Goo Class C End Class End Namespace </Code> Dim expected = <Code> Namespace Goo End Namespace </Code> Await TestRemoveChild(code, expected, "C") End Function #End Region <WorkItem(858153, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/858153")> <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub TestChildren1() Dim code = <Code> Namespace N$$ Class C1 End Class Class C2 End Class Class C3 End Class End Namespace </Code> TestChildren(code, IsElement("C1", EnvDTE.vsCMElement.vsCMElementClass), IsElement("C2", EnvDTE.vsCMElement.vsCMElementClass), IsElement("C3", EnvDTE.vsCMElement.vsCMElementClass)) End Sub <WorkItem(150349, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/150349")> <WpfFact, Trait(Traits.Feature, Traits.Features.CodeModel)> Public Sub NoChildrenForInvalidMembers() Dim code = <Code> Namespace N$$ Sub M() End Sub Function M() As Integer End Function Property P As Integer Event E() End Sub </Code> TestChildren(code, NoElements) End Sub Protected Overrides ReadOnly Property LanguageName As String Get Return LanguageNames.VisualBasic End Get End Property End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/Services/Precedence/CSharpExpressionPrecedenceService.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.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.CSharp.Precedence { internal class CSharpExpressionPrecedenceService : AbstractCSharpPrecedenceService<ExpressionSyntax> { public static readonly CSharpExpressionPrecedenceService Instance = new(); private CSharpExpressionPrecedenceService() { } public override OperatorPrecedence GetOperatorPrecedence(ExpressionSyntax expression) => expression.GetOperatorPrecedence(); } }
// 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.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace Microsoft.CodeAnalysis.CSharp.Precedence { internal class CSharpExpressionPrecedenceService : AbstractCSharpPrecedenceService<ExpressionSyntax> { public static readonly CSharpExpressionPrecedenceService Instance = new(); private CSharpExpressionPrecedenceService() { } public override OperatorPrecedence GetOperatorPrecedence(ExpressionSyntax expression) => expression.GetOperatorPrecedence(); } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/Formatting/FormattingDiagnosticIds.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. namespace Microsoft.CodeAnalysis.Formatting { internal static class FormattingDiagnosticIds { /// <summary> /// This is the ID reported for formatting diagnostics. /// </summary> public const string FormattingDiagnosticId = "IDE0055"; /// <summary> /// This special diagnostic can be suppressed via <c>#pragma</c> to prevent the formatter from making changes to /// code formatting within the span where the diagnostic is suppressed. /// </summary> public const string FormatDocumentControlDiagnosticId = "format"; } }
// 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.Formatting { internal static class FormattingDiagnosticIds { /// <summary> /// This is the ID reported for formatting diagnostics. /// </summary> public const string FormattingDiagnosticId = "IDE0055"; /// <summary> /// This special diagnostic can be suppressed via <c>#pragma</c> to prevent the formatter from making changes to /// code formatting within the span where the diagnostic is suppressed. /// </summary> public const string FormatDocumentControlDiagnosticId = "format"; } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/Core/Portable/EditAndContinue/Extensions.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 Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudio.Debugger.Contracts.EditAndContinue; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.EditAndContinue { internal static class Extensions { internal static LinePositionSpan AddLineDelta(this LinePositionSpan span, int lineDelta) => new(new LinePosition(span.Start.Line + lineDelta, span.Start.Character), new LinePosition(span.End.Line + lineDelta, span.End.Character)); internal static SourceFileSpan AddLineDelta(this SourceFileSpan span, int lineDelta) => new(span.Path, span.Span.AddLineDelta(lineDelta)); internal static int GetLineDelta(this LinePositionSpan oldSpan, LinePositionSpan newSpan) => newSpan.Start.Line - oldSpan.Start.Line; internal static bool Contains(this LinePositionSpan container, LinePositionSpan span) => span.Start >= container.Start && span.End <= container.End; public static LinePositionSpan ToLinePositionSpan(this SourceSpan span) => new(new(span.StartLine, span.StartColumn), new(span.EndLine, span.EndColumn)); public static SourceSpan ToSourceSpan(this LinePositionSpan span) => new(span.Start.Line, span.Start.Character, span.End.Line, span.End.Character); public static ActiveStatement GetStatement(this ImmutableArray<ActiveStatement> statements, int ordinal) { foreach (var item in statements) { if (item.Ordinal == ordinal) { return item; } } throw ExceptionUtilities.UnexpectedValue(ordinal); } public static ActiveStatementSpan GetStatement(this ImmutableArray<ActiveStatementSpan> statements, int ordinal) { foreach (var item in statements) { if (item.Ordinal == ordinal) { return item; } } throw ExceptionUtilities.UnexpectedValue(ordinal); } public static UnmappedActiveStatement GetStatement(this ImmutableArray<UnmappedActiveStatement> statements, int ordinal) { foreach (var item in statements) { if (item.Statement.Ordinal == ordinal) { return item; } } throw ExceptionUtilities.UnexpectedValue(ordinal); } public static bool SupportsEditAndContinue(this Project project) => project.LanguageServices.GetService<IEditAndContinueAnalyzer>() != null; // Note: source generated files have relative paths: https://github.com/dotnet/roslyn/issues/51998 public static bool SupportsEditAndContinue(this TextDocumentState documentState) => !documentState.Attributes.DesignTimeOnly && documentState is not DocumentState or DocumentState { SupportsSyntaxTree: true } && (PathUtilities.IsAbsolute(documentState.FilePath) || documentState is SourceGeneratedDocumentState); } }
// 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 Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudio.Debugger.Contracts.EditAndContinue; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.EditAndContinue { internal static class Extensions { internal static LinePositionSpan AddLineDelta(this LinePositionSpan span, int lineDelta) => new(new LinePosition(span.Start.Line + lineDelta, span.Start.Character), new LinePosition(span.End.Line + lineDelta, span.End.Character)); internal static SourceFileSpan AddLineDelta(this SourceFileSpan span, int lineDelta) => new(span.Path, span.Span.AddLineDelta(lineDelta)); internal static int GetLineDelta(this LinePositionSpan oldSpan, LinePositionSpan newSpan) => newSpan.Start.Line - oldSpan.Start.Line; internal static bool Contains(this LinePositionSpan container, LinePositionSpan span) => span.Start >= container.Start && span.End <= container.End; public static LinePositionSpan ToLinePositionSpan(this SourceSpan span) => new(new(span.StartLine, span.StartColumn), new(span.EndLine, span.EndColumn)); public static SourceSpan ToSourceSpan(this LinePositionSpan span) => new(span.Start.Line, span.Start.Character, span.End.Line, span.End.Character); public static ActiveStatement GetStatement(this ImmutableArray<ActiveStatement> statements, int ordinal) { foreach (var item in statements) { if (item.Ordinal == ordinal) { return item; } } throw ExceptionUtilities.UnexpectedValue(ordinal); } public static ActiveStatementSpan GetStatement(this ImmutableArray<ActiveStatementSpan> statements, int ordinal) { foreach (var item in statements) { if (item.Ordinal == ordinal) { return item; } } throw ExceptionUtilities.UnexpectedValue(ordinal); } public static UnmappedActiveStatement GetStatement(this ImmutableArray<UnmappedActiveStatement> statements, int ordinal) { foreach (var item in statements) { if (item.Statement.Ordinal == ordinal) { return item; } } throw ExceptionUtilities.UnexpectedValue(ordinal); } public static bool SupportsEditAndContinue(this Project project) => project.LanguageServices.GetService<IEditAndContinueAnalyzer>() != null; // Note: source generated files have relative paths: https://github.com/dotnet/roslyn/issues/51998 public static bool SupportsEditAndContinue(this TextDocumentState documentState) => !documentState.Attributes.DesignTimeOnly && documentState is not DocumentState or DocumentState { SupportsSyntaxTree: true } && (PathUtilities.IsAbsolute(documentState.FilePath) || documentState is SourceGeneratedDocumentState); } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/ExpressionEvaluator/CSharp/Source/ExpressionCompiler/CompilationContext.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.CodeGen; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Debugging; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.ExpressionEvaluator; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.VisualStudio.Debugger.Clr; using Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation; using Roslyn.Utilities; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading; namespace Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator { internal sealed class CompilationContext { internal readonly CSharpCompilation Compilation; internal readonly Binder NamespaceBinder; // Internal for test purposes. private readonly MethodSymbol _currentFrame; private readonly ImmutableArray<LocalSymbol> _locals; private readonly ImmutableDictionary<string, DisplayClassVariable> _displayClassVariables; private readonly ImmutableArray<string> _sourceMethodParametersInOrder; private readonly ImmutableArray<LocalSymbol> _localsForBinding; private readonly bool _methodNotType; /// <summary> /// Create a context to compile expressions within a method scope. /// </summary> internal CompilationContext( CSharpCompilation compilation, MethodSymbol currentFrame, MethodSymbol? currentSourceMethod, ImmutableArray<LocalSymbol> locals, ImmutableSortedSet<int> inScopeHoistedLocalSlots, MethodDebugInfo<TypeSymbol, LocalSymbol> methodDebugInfo) { _currentFrame = currentFrame; _methodNotType = !locals.IsDefault; // NOTE: Since this is done within CompilationContext, it will not be cached. // CONSIDER: The values should be the same everywhere in the module, so they // could be cached. // (Catch: what happens in a type context without a method def?) Compilation = GetCompilationWithExternAliases(compilation, methodDebugInfo.ExternAliasRecords); // Each expression compile should use a unique compilation // to ensure expression-specific synthesized members can be // added (anonymous types, for instance). Debug.Assert(Compilation != compilation); NamespaceBinder = CreateBinderChain( Compilation, currentFrame.ContainingNamespace, methodDebugInfo.ImportRecordGroups); if (_methodNotType) { _locals = locals; _sourceMethodParametersInOrder = GetSourceMethodParametersInOrder(currentFrame, currentSourceMethod); GetDisplayClassVariables( currentFrame, _locals, inScopeHoistedLocalSlots, _sourceMethodParametersInOrder, out var displayClassVariableNamesInOrder, out _displayClassVariables); Debug.Assert(displayClassVariableNamesInOrder.Length == _displayClassVariables.Count); _localsForBinding = GetLocalsForBinding(_locals, displayClassVariableNamesInOrder, _displayClassVariables); } else { _locals = ImmutableArray<LocalSymbol>.Empty; _displayClassVariables = ImmutableDictionary<string, DisplayClassVariable>.Empty; _localsForBinding = ImmutableArray<LocalSymbol>.Empty; } // Assert that the cheap check for "this" is equivalent to the expensive check for "this". Debug.Assert( (GetThisProxy(_displayClassVariables) != null) == _displayClassVariables.Values.Any(v => v.Kind == DisplayClassVariableKind.This)); } internal bool TryCompileExpressions( ImmutableArray<CSharpSyntaxNode> syntaxNodes, string typeNameBase, string methodName, DiagnosticBag diagnostics, [NotNullWhen(true)] out CommonPEModuleBuilder? module) { // Create a separate synthesized type for each evaluation method. // (Necessary for VB in particular since the EENamedTypeSymbol.Locations // is tied to the expression syntax in VB.) var synthesizedTypes = syntaxNodes.SelectAsArray( (syntax, i, _) => (NamedTypeSymbol)CreateSynthesizedType(syntax, typeNameBase + i, methodName, ImmutableArray<Alias>.Empty), arg: (object?)null); if (synthesizedTypes.Length == 0) { module = null; return false; } module = CreateModuleBuilder( Compilation, additionalTypes: synthesizedTypes, testData: null, diagnostics: diagnostics); Compilation.Compile( module, emittingPdb: false, diagnostics: diagnostics, filterOpt: null, CancellationToken.None); return !diagnostics.HasAnyErrors(); } internal bool TryCompileExpression( CSharpSyntaxNode syntax, string typeName, string methodName, ImmutableArray<Alias> aliases, CompilationTestData? testData, DiagnosticBag diagnostics, [NotNullWhen(true)] out CommonPEModuleBuilder? module, [NotNullWhen(true)] out EEMethodSymbol? synthesizedMethod) { var synthesizedType = CreateSynthesizedType(syntax, typeName, methodName, aliases); module = CreateModuleBuilder( Compilation, additionalTypes: ImmutableArray.Create((NamedTypeSymbol)synthesizedType), testData, diagnostics); Compilation.Compile( module, emittingPdb: false, diagnostics, filterOpt: null, CancellationToken.None); if (diagnostics.HasAnyErrors()) { module = null; synthesizedMethod = null; return false; } synthesizedMethod = GetSynthesizedMethod(synthesizedType); return true; } private EENamedTypeSymbol CreateSynthesizedType( CSharpSyntaxNode syntax, string typeName, string methodName, ImmutableArray<Alias> aliases) { var objectType = Compilation.GetSpecialType(SpecialType.System_Object); var synthesizedType = new EENamedTypeSymbol( Compilation.SourceModule.GlobalNamespace, objectType, syntax, _currentFrame, typeName, methodName, this, (EEMethodSymbol method, DiagnosticBag diags, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { var hasDisplayClassThis = GetThisProxy(_displayClassVariables) != null; var binder = ExtendBinderChain( syntax, aliases, method, NamespaceBinder, hasDisplayClassThis, _methodNotType, out declaredLocals); return (syntax is StatementSyntax statementSyntax) ? BindStatement(binder, statementSyntax, diags, out properties) : BindExpression(binder, (ExpressionSyntax)syntax, diags, out properties); }); return synthesizedType; } internal bool TryCompileAssignment( ExpressionSyntax syntax, string typeName, string methodName, ImmutableArray<Alias> aliases, CompilationTestData? testData, DiagnosticBag diagnostics, [NotNullWhen(true)] out CommonPEModuleBuilder? module, [NotNullWhen(true)] out EEMethodSymbol? synthesizedMethod) { var objectType = Compilation.GetSpecialType(SpecialType.System_Object); var synthesizedType = new EENamedTypeSymbol( Compilation.SourceModule.GlobalNamespace, objectType, syntax, _currentFrame, typeName, methodName, this, (EEMethodSymbol method, DiagnosticBag diags, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { var hasDisplayClassThis = GetThisProxy(_displayClassVariables) != null; var binder = ExtendBinderChain( syntax, aliases, method, NamespaceBinder, hasDisplayClassThis, methodNotType: true, out declaredLocals); properties = new ResultProperties(DkmClrCompilationResultFlags.PotentialSideEffect); return BindAssignment(binder, syntax, diags); }); module = CreateModuleBuilder( Compilation, additionalTypes: ImmutableArray.Create((NamedTypeSymbol)synthesizedType), testData, diagnostics); Compilation.Compile( module, emittingPdb: false, diagnostics, filterOpt: null, CancellationToken.None); if (diagnostics.HasAnyErrors()) { module = null; synthesizedMethod = null; return false; } synthesizedMethod = GetSynthesizedMethod(synthesizedType); return true; } private static EEMethodSymbol GetSynthesizedMethod(EENamedTypeSymbol synthesizedType) => (EEMethodSymbol)synthesizedType.Methods[0]; private static string GetNextMethodName(ArrayBuilder<MethodSymbol> builder) => "<>m" + builder.Count; /// <summary> /// Generate a class containing methods that represent /// the set of arguments and locals at the current scope. /// </summary> internal CommonPEModuleBuilder? CompileGetLocals( string typeName, ArrayBuilder<LocalAndMethod> localBuilder, bool argumentsOnly, ImmutableArray<Alias> aliases, CompilationTestData? testData, DiagnosticBag diagnostics) { var objectType = Compilation.GetSpecialType(SpecialType.System_Object); var allTypeParameters = _currentFrame.GetAllTypeParameters(); var additionalTypes = ArrayBuilder<NamedTypeSymbol>.GetInstance(); EENamedTypeSymbol? typeVariablesType = null; if (!argumentsOnly && allTypeParameters.Length > 0) { // Generate a generic type with matching type parameters. // A null instance of the type will be used to represent the // "Type variables" local. typeVariablesType = new EENamedTypeSymbol( Compilation.SourceModule.GlobalNamespace, objectType, _currentFrame, ExpressionCompilerConstants.TypeVariablesClassName, (m, t) => ImmutableArray.Create<MethodSymbol>(new EEConstructorSymbol(t)), allTypeParameters, (t1, t2) => allTypeParameters.SelectAsArray((tp, i, t) => (TypeParameterSymbol)new SimpleTypeParameterSymbol(t, i, tp.Name), t2)); additionalTypes.Add(typeVariablesType); } var synthesizedType = new EENamedTypeSymbol( Compilation.SourceModule.GlobalNamespace, objectType, _currentFrame, typeName, (m, container) => { var methodBuilder = ArrayBuilder<MethodSymbol>.GetInstance(); if (!argumentsOnly) { // Pseudo-variables: $exception, $ReturnValue, etc. if (aliases.Length > 0) { var sourceAssembly = Compilation.SourceAssembly; var typeNameDecoder = new EETypeNameDecoder(Compilation, (PEModuleSymbol)_currentFrame.ContainingModule); foreach (var alias in aliases) { if (alias.IsReturnValueWithoutIndex()) { Debug.Assert(aliases.Count(a => a.Kind == DkmClrAliasKind.ReturnValue) > 1); continue; } var local = PlaceholderLocalSymbol.Create( typeNameDecoder, _currentFrame, sourceAssembly, alias); // Skip pseudo-variables with errors. if (local.HasUseSiteError) { continue; } var methodName = GetNextMethodName(methodBuilder); var syntax = SyntaxFactory.IdentifierName(SyntaxFactory.MissingToken(SyntaxKind.IdentifierToken)); var aliasMethod = CreateMethod( container, methodName, syntax, (EEMethodSymbol method, DiagnosticBag diags, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { declaredLocals = ImmutableArray<LocalSymbol>.Empty; var expression = new BoundLocal(syntax, local, constantValueOpt: null, type: local.Type); properties = default; return new BoundReturnStatement(syntax, RefKind.None, expression) { WasCompilerGenerated = true }; }); var flags = local.IsWritableVariable ? DkmClrCompilationResultFlags.None : DkmClrCompilationResultFlags.ReadOnlyResult; localBuilder.Add(MakeLocalAndMethod(local, aliasMethod, flags)); methodBuilder.Add(aliasMethod); } } // "this" for non-static methods that are not display class methods or // display class methods where the display class contains "<>4__this". if (!m.IsStatic && !IsDisplayClassType(m.ContainingType) || GetThisProxy(_displayClassVariables) != null) { var methodName = GetNextMethodName(methodBuilder); var method = GetThisMethod(container, methodName); localBuilder.Add(new CSharpLocalAndMethod("this", "this", method, DkmClrCompilationResultFlags.None)); // Note: writable in dev11. methodBuilder.Add(method); } } var itemsAdded = PooledHashSet<string>.GetInstance(); // Method parameters int parameterIndex = m.IsStatic ? 0 : 1; foreach (var parameter in m.Parameters) { var parameterName = parameter.Name; if (GeneratedNameParser.GetKind(parameterName) == GeneratedNameKind.None && !IsDisplayClassParameter(parameter)) { itemsAdded.Add(parameterName); AppendParameterAndMethod(localBuilder, methodBuilder, parameter, container, parameterIndex); } parameterIndex++; } // In case of iterator or async state machine, the 'm' method has no parameters // but the source method can have parameters to iterate over. if (itemsAdded.Count == 0 && _sourceMethodParametersInOrder.Length != 0) { var localsDictionary = PooledDictionary<string, (LocalSymbol, int)>.GetInstance(); int localIndex = 0; foreach (var local in _localsForBinding) { localsDictionary.Add(local.Name, (local, localIndex)); localIndex++; } foreach (var argumentName in _sourceMethodParametersInOrder) { (LocalSymbol local, int localIndex) localSymbolAndIndex; if (localsDictionary.TryGetValue(argumentName, out localSymbolAndIndex)) { itemsAdded.Add(argumentName); var local = localSymbolAndIndex.local; AppendLocalAndMethod(localBuilder, methodBuilder, local, container, localSymbolAndIndex.localIndex, GetLocalResultFlags(local)); } } localsDictionary.Free(); } if (!argumentsOnly) { // Locals which were not added as parameters or parameters of the source method. int localIndex = 0; foreach (var local in _localsForBinding) { if (!itemsAdded.Contains(local.Name)) { AppendLocalAndMethod(localBuilder, methodBuilder, local, container, localIndex, GetLocalResultFlags(local)); } localIndex++; } // "Type variables". if (typeVariablesType is object) { var methodName = GetNextMethodName(methodBuilder); var returnType = typeVariablesType.Construct(allTypeParameters.Cast<TypeParameterSymbol, TypeSymbol>()); var method = GetTypeVariablesMethod(container, methodName, returnType); localBuilder.Add(new CSharpLocalAndMethod( ExpressionCompilerConstants.TypeVariablesLocalName, ExpressionCompilerConstants.TypeVariablesLocalName, method, DkmClrCompilationResultFlags.ReadOnlyResult)); methodBuilder.Add(method); } } itemsAdded.Free(); return methodBuilder.ToImmutableAndFree(); }); additionalTypes.Add(synthesizedType); var module = CreateModuleBuilder( Compilation, additionalTypes.ToImmutableAndFree(), testData, diagnostics); RoslynDebug.AssertNotNull(module); Compilation.Compile( module, emittingPdb: false, diagnostics, filterOpt: null, CancellationToken.None); return diagnostics.HasAnyErrors() ? null : module; } private void AppendLocalAndMethod( ArrayBuilder<LocalAndMethod> localBuilder, ArrayBuilder<MethodSymbol> methodBuilder, LocalSymbol local, EENamedTypeSymbol container, int localIndex, DkmClrCompilationResultFlags resultFlags) { var methodName = GetNextMethodName(methodBuilder); var method = GetLocalMethod(container, methodName, local.Name, localIndex); localBuilder.Add(MakeLocalAndMethod(local, method, resultFlags)); methodBuilder.Add(method); } private void AppendParameterAndMethod( ArrayBuilder<LocalAndMethod> localBuilder, ArrayBuilder<MethodSymbol> methodBuilder, ParameterSymbol parameter, EENamedTypeSymbol container, int parameterIndex) { // Note: The native EE doesn't do this, but if we don't escape keyword identifiers, // the ResultProvider needs to be able to disambiguate cases like "this" and "@this", // which it can't do correctly without semantic information. var name = SyntaxHelpers.EscapeKeywordIdentifiers(parameter.Name); var methodName = GetNextMethodName(methodBuilder); var method = GetParameterMethod(container, methodName, name, parameterIndex); localBuilder.Add(new CSharpLocalAndMethod(name, name, method, DkmClrCompilationResultFlags.None)); methodBuilder.Add(method); } private static LocalAndMethod MakeLocalAndMethod(LocalSymbol local, MethodSymbol method, DkmClrCompilationResultFlags flags) { // Note: The native EE doesn't do this, but if we don't escape keyword identifiers, // the ResultProvider needs to be able to disambiguate cases like "this" and "@this", // which it can't do correctly without semantic information. var escapedName = SyntaxHelpers.EscapeKeywordIdentifiers(local.Name); var displayName = (local as PlaceholderLocalSymbol)?.DisplayName ?? escapedName; return new CSharpLocalAndMethod(escapedName, displayName, method, flags); } private static EEAssemblyBuilder CreateModuleBuilder( CSharpCompilation compilation, ImmutableArray<NamedTypeSymbol> additionalTypes, CompilationTestData? testData, DiagnosticBag diagnostics) { // Each assembly must have a unique name. var emitOptions = new EmitOptions(outputNameOverride: ExpressionCompilerUtilities.GenerateUniqueName()); string? runtimeMetadataVersion = compilation.GetRuntimeMetadataVersion(emitOptions, diagnostics); var serializationProperties = compilation.ConstructModuleSerializationProperties(emitOptions, runtimeMetadataVersion); return new EEAssemblyBuilder( compilation.SourceAssembly, emitOptions, serializationProperties, additionalTypes, contextType => GetNonDisplayClassContainer(((EENamedTypeSymbol)contextType).SubstitutedSourceType), testData); } internal EEMethodSymbol CreateMethod( EENamedTypeSymbol container, string methodName, CSharpSyntaxNode syntax, GenerateMethodBody generateMethodBody) { return new EEMethodSymbol( container, methodName, syntax.Location, _currentFrame, _locals, _localsForBinding, _displayClassVariables, generateMethodBody); } private EEMethodSymbol GetLocalMethod(EENamedTypeSymbol container, string methodName, string localName, int localIndex) { var syntax = SyntaxFactory.IdentifierName(localName); return CreateMethod(container, methodName, syntax, (EEMethodSymbol method, DiagnosticBag diagnostics, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { declaredLocals = ImmutableArray<LocalSymbol>.Empty; var local = method.LocalsForBinding[localIndex]; var expression = new BoundLocal(syntax, local, constantValueOpt: local.GetConstantValue(null, null, new BindingDiagnosticBag(diagnostics)), type: local.Type); properties = default; return new BoundReturnStatement(syntax, RefKind.None, expression) { WasCompilerGenerated = true }; }); } private EEMethodSymbol GetParameterMethod(EENamedTypeSymbol container, string methodName, string parameterName, int parameterIndex) { var syntax = SyntaxFactory.IdentifierName(parameterName); return CreateMethod(container, methodName, syntax, (EEMethodSymbol method, DiagnosticBag diagnostics, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { declaredLocals = ImmutableArray<LocalSymbol>.Empty; var parameter = method.Parameters[parameterIndex]; var expression = new BoundParameter(syntax, parameter); properties = default; return new BoundReturnStatement(syntax, RefKind.None, expression) { WasCompilerGenerated = true }; }); } private EEMethodSymbol GetThisMethod(EENamedTypeSymbol container, string methodName) { var syntax = SyntaxFactory.ThisExpression(); return CreateMethod(container, methodName, syntax, (EEMethodSymbol method, DiagnosticBag diagnostics, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { declaredLocals = ImmutableArray<LocalSymbol>.Empty; var expression = new BoundThisReference(syntax, GetNonDisplayClassContainer(container.SubstitutedSourceType)); properties = default; return new BoundReturnStatement(syntax, RefKind.None, expression) { WasCompilerGenerated = true }; }); } private EEMethodSymbol GetTypeVariablesMethod(EENamedTypeSymbol container, string methodName, NamedTypeSymbol typeVariablesType) { var syntax = SyntaxFactory.IdentifierName(SyntaxFactory.MissingToken(SyntaxKind.IdentifierToken)); return CreateMethod(container, methodName, syntax, (EEMethodSymbol method, DiagnosticBag diagnostics, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { declaredLocals = ImmutableArray<LocalSymbol>.Empty; var type = method.TypeMap.SubstituteNamedType(typeVariablesType); var expression = new BoundObjectCreationExpression(syntax, type.InstanceConstructors[0]); var statement = new BoundReturnStatement(syntax, RefKind.None, expression) { WasCompilerGenerated = true }; properties = default; return statement; }); } private static BoundStatement? BindExpression(Binder binder, ExpressionSyntax syntax, DiagnosticBag diagnostics, out ResultProperties resultProperties) { var flags = DkmClrCompilationResultFlags.None; var bindingDiagnostics = new BindingDiagnosticBag(diagnostics); // In addition to C# expressions, the native EE also supports // type names which are bound to a representation of the type // (but not System.Type) that the user can expand to see the // base type. Instead, we only allow valid C# expressions. var expression = IsDeconstruction(syntax) ? binder.BindDeconstruction((AssignmentExpressionSyntax)syntax, bindingDiagnostics, resultIsUsedOverride: true) : binder.BindRValueWithoutTargetType(syntax, bindingDiagnostics); if (diagnostics.HasAnyErrors()) { resultProperties = default; return null; } try { if (MayHaveSideEffectsVisitor.MayHaveSideEffects(expression)) { flags |= DkmClrCompilationResultFlags.PotentialSideEffect; } } catch (BoundTreeVisitor.CancelledByStackGuardException ex) { ex.AddAnError(diagnostics); resultProperties = default; return null; } var expressionType = expression.Type; if (expressionType is null) { expression = binder.CreateReturnConversion( syntax, bindingDiagnostics, expression, RefKind.None, binder.Compilation.GetSpecialType(SpecialType.System_Object)); if (diagnostics.HasAnyErrors()) { resultProperties = default; return null; } } else if (expressionType.SpecialType == SpecialType.System_Void) { flags |= DkmClrCompilationResultFlags.ReadOnlyResult; Debug.Assert(expression.ConstantValue == null); resultProperties = expression.ExpressionSymbol.GetResultProperties(flags, isConstant: false); return new BoundExpressionStatement(syntax, expression) { WasCompilerGenerated = true }; } else if (expressionType.SpecialType == SpecialType.System_Boolean) { flags |= DkmClrCompilationResultFlags.BoolResult; } if (!IsAssignableExpression(binder, expression)) { flags |= DkmClrCompilationResultFlags.ReadOnlyResult; } resultProperties = expression.ExpressionSymbol.GetResultProperties(flags, expression.ConstantValue != null); return new BoundReturnStatement(syntax, RefKind.None, expression) { WasCompilerGenerated = true }; } private static bool IsDeconstruction(ExpressionSyntax syntax) { if (syntax.Kind() != SyntaxKind.SimpleAssignmentExpression) { return false; } var node = (AssignmentExpressionSyntax)syntax; return node.Left.Kind() == SyntaxKind.TupleExpression || node.Left.Kind() == SyntaxKind.DeclarationExpression; } private static BoundStatement BindStatement(Binder binder, StatementSyntax syntax, DiagnosticBag diagnostics, out ResultProperties properties) { properties = new ResultProperties(DkmClrCompilationResultFlags.PotentialSideEffect | DkmClrCompilationResultFlags.ReadOnlyResult); return binder.BindStatement(syntax, new BindingDiagnosticBag(diagnostics)); } private static bool IsAssignableExpression(Binder binder, BoundExpression expression) { var result = binder.CheckValueKind(expression.Syntax, expression, Binder.BindValueKind.Assignable, checkingReceiver: false, BindingDiagnosticBag.Discarded); return result; } private static BoundStatement? BindAssignment(Binder binder, ExpressionSyntax syntax, DiagnosticBag diagnostics) { var expression = binder.BindValue(syntax, new BindingDiagnosticBag(diagnostics), Binder.BindValueKind.RValue); if (diagnostics.HasAnyErrors()) { return null; } return new BoundExpressionStatement(expression.Syntax, expression) { WasCompilerGenerated = true }; } private static Binder CreateBinderChain( CSharpCompilation compilation, NamespaceSymbol @namespace, ImmutableArray<ImmutableArray<ImportRecord>> importRecordGroups) { var stack = ArrayBuilder<string>.GetInstance(); while (@namespace is object) { stack.Push(@namespace.Name); @namespace = @namespace.ContainingNamespace; } Binder binder = new BuckStopsHereBinder(compilation); var hasImports = !importRecordGroups.IsDefaultOrEmpty; var numImportStringGroups = hasImports ? importRecordGroups.Length : 0; var currentStringGroup = numImportStringGroups - 1; // PERF: We used to call compilation.GetCompilationNamespace on every iteration, // but that involved walking up to the global namespace, which we have to do // anyway. Instead, we'll inline the functionality into our own walk of the // namespace chain. @namespace = compilation.GlobalNamespace; while (stack.Count > 0) { var namespaceName = stack.Pop(); if (namespaceName.Length > 0) { // We're re-getting the namespace, rather than using the one containing // the current frame method, because we want the merged namespace. @namespace = @namespace.GetNestedNamespace(namespaceName); RoslynDebug.AssertNotNull(@namespace); } else { Debug.Assert((object)@namespace == compilation.GlobalNamespace); } if (hasImports) { if (currentStringGroup < 0) { Debug.WriteLine($"No import string group for namespace '{@namespace}'"); break; } var importsBinder = new InContainerBinder(@namespace, binder); Imports imports = BuildImports(compilation, importRecordGroups[currentStringGroup], importsBinder); currentStringGroup--; binder = WithExternAndUsingAliasesBinder.Create(imports.ExternAliases, imports.UsingAliases, WithUsingNamespacesAndTypesBinder.Create(imports.Usings, binder)); } binder = new InContainerBinder(@namespace, binder); } stack.Free(); if (currentStringGroup >= 0) { // CONSIDER: We could lump these into the outermost namespace. It's probably not worthwhile since // the usings are already for the wrong method. Debug.WriteLine($"Found {currentStringGroup + 1} import string groups without corresponding namespaces"); } return binder; } private static CSharpCompilation GetCompilationWithExternAliases(CSharpCompilation compilation, ImmutableArray<ExternAliasRecord> externAliasRecords) { if (externAliasRecords.IsDefaultOrEmpty) { return compilation.Clone(); } var updatedReferences = ArrayBuilder<MetadataReference>.GetInstance(); var assembliesAndModulesBuilder = ArrayBuilder<Symbol>.GetInstance(); foreach (var reference in compilation.References) { updatedReferences.Add(reference); assembliesAndModulesBuilder.Add(compilation.GetAssemblyOrModuleSymbol(reference)!); } Debug.Assert(assembliesAndModulesBuilder.Count == updatedReferences.Count); var assembliesAndModules = assembliesAndModulesBuilder.ToImmutableAndFree(); foreach (var externAliasRecord in externAliasRecords) { var targetAssembly = externAliasRecord.TargetAssembly as AssemblySymbol; int index; if (targetAssembly != null) { index = assembliesAndModules.IndexOf(targetAssembly); } else { index = IndexOfMatchingAssembly((AssemblyIdentity)externAliasRecord.TargetAssembly, assembliesAndModules, compilation.Options.AssemblyIdentityComparer); } if (index < 0) { Debug.WriteLine($"Unable to find corresponding assembly reference for extern alias '{externAliasRecord}'"); continue; } var externAlias = externAliasRecord.Alias; var assemblyReference = updatedReferences[index]; var oldAliases = assemblyReference.Properties.Aliases; var newAliases = oldAliases.IsEmpty ? ImmutableArray.Create(MetadataReferenceProperties.GlobalAlias, externAlias) : oldAliases.Concat(ImmutableArray.Create(externAlias)); // NOTE: Dev12 didn't emit custom debug info about "global", so we don't have // a good way to distinguish between a module aliased with both (e.g.) "X" and // "global" and a module aliased with only "X". As in Dev12, we assume that // "global" is a valid alias to remain at least as permissive as source. // NOTE: In the event that this introduces ambiguities between two assemblies // (e.g. because one was "global" in source and the other was "X"), it should be // possible to disambiguate as long as each assembly has a distinct extern alias, // not necessarily used in source. Debug.Assert(newAliases.Contains(MetadataReferenceProperties.GlobalAlias)); // Replace the value in the map with the updated reference. updatedReferences[index] = assemblyReference.WithAliases(newAliases); } compilation = compilation.WithReferences(updatedReferences); updatedReferences.Free(); return compilation; } private static int IndexOfMatchingAssembly(AssemblyIdentity referenceIdentity, ImmutableArray<Symbol> assembliesAndModules, AssemblyIdentityComparer assemblyIdentityComparer) { for (int i = 0; i < assembliesAndModules.Length; i++) { if (assembliesAndModules[i] is AssemblySymbol assembly && assemblyIdentityComparer.ReferenceMatchesDefinition(referenceIdentity, assembly.Identity)) { return i; } } return -1; } private static Binder ExtendBinderChain( CSharpSyntaxNode syntax, ImmutableArray<Alias> aliases, EEMethodSymbol method, Binder binder, bool hasDisplayClassThis, bool methodNotType, out ImmutableArray<LocalSymbol> declaredLocals) { var substitutedSourceMethod = GetSubstitutedSourceMethod(method.SubstitutedSourceMethod, hasDisplayClassThis); var substitutedSourceType = substitutedSourceMethod.ContainingType; var stack = ArrayBuilder<NamedTypeSymbol>.GetInstance(); for (var type = substitutedSourceType; type is object; type = type.ContainingType) { stack.Add(type); } while (stack.Count > 0) { substitutedSourceType = stack.Pop(); binder = new InContainerBinder(substitutedSourceType, binder); if (substitutedSourceType.Arity > 0) { binder = new WithTypeArgumentsBinder(substitutedSourceType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics, binder); } } stack.Free(); if (substitutedSourceMethod.Arity > 0) { binder = new WithTypeArgumentsBinder(substitutedSourceMethod.TypeArgumentsWithAnnotations, binder); } // Method locals and parameters shadow pseudo-variables. // That is why we place PlaceholderLocalBinder and ExecutableCodeBinder before EEMethodBinder. if (methodNotType) { var typeNameDecoder = new EETypeNameDecoder(binder.Compilation, (PEModuleSymbol)substitutedSourceMethod.ContainingModule); binder = new PlaceholderLocalBinder( syntax, aliases, method, typeNameDecoder, binder); } binder = new EEMethodBinder(method, substitutedSourceMethod, binder); if (methodNotType) { binder = new SimpleLocalScopeBinder(method.LocalsForBinding, binder); } Binder? actualRootBinder = null; SyntaxNode? declaredLocalsScopeDesignator = null; var executableBinder = new ExecutableCodeBinder(syntax, substitutedSourceMethod, binder, (rootBinder, declaredLocalsScopeDesignatorOpt) => { actualRootBinder = rootBinder; declaredLocalsScopeDesignator = declaredLocalsScopeDesignatorOpt; }); // We just need to trigger the process of building the binder map // so that the lambda above was executed. executableBinder.GetBinder(syntax); RoslynDebug.AssertNotNull(actualRootBinder); if (declaredLocalsScopeDesignator != null) { declaredLocals = actualRootBinder.GetDeclaredLocalsForScope(declaredLocalsScopeDesignator); } else { declaredLocals = ImmutableArray<LocalSymbol>.Empty; } return actualRootBinder; } private static Imports BuildImports(CSharpCompilation compilation, ImmutableArray<ImportRecord> importRecords, InContainerBinder binder) { // We make a first pass to extract all of the extern aliases because other imports may depend on them. var externsBuilder = ArrayBuilder<AliasAndExternAliasDirective>.GetInstance(); foreach (var importRecord in importRecords) { if (importRecord.TargetKind != ImportTargetKind.Assembly) { continue; } var alias = importRecord.Alias; RoslynDebug.AssertNotNull(alias); if (!TryParseIdentifierNameSyntax(alias, out var aliasNameSyntax)) { Debug.WriteLine($"Import record '{importRecord}' has syntactically invalid extern alias '{alias}'"); continue; } NamespaceSymbol target; compilation.GetExternAliasTarget(aliasNameSyntax.Identifier.ValueText, out target); Debug.Assert(target.IsGlobalNamespace); var aliasSymbol = AliasSymbol.CreateCustomDebugInfoAlias(target, aliasNameSyntax.Identifier, binder.ContainingMemberOrLambda, isExtern: true); externsBuilder.Add(new AliasAndExternAliasDirective(aliasSymbol, externAliasDirective: null, skipInLookup: false)); } var externs = externsBuilder.ToImmutableAndFree(); if (externs.Any()) { // NB: This binder (and corresponding Imports) is only used to bind the other imports. // We'll merge the externs into a final Imports object and return that to be used in // the actual binder chain. binder = new InContainerBinder( binder.Container, WithExternAliasesBinder.Create(externs, binder)); } var usingAliases = ImmutableDictionary.CreateBuilder<string, AliasAndUsingDirective>(); var usingsBuilder = ArrayBuilder<NamespaceOrTypeAndUsingDirective>.GetInstance(); foreach (var importRecord in importRecords) { switch (importRecord.TargetKind) { case ImportTargetKind.Type: { var typeSymbol = (TypeSymbol?)importRecord.TargetType; RoslynDebug.AssertNotNull(typeSymbol); if (typeSymbol.IsErrorType()) { // Type is unrecognized. The import may have been // valid in the original source but unnecessary. continue; // Don't add anything for this import. } else if (importRecord.Alias == null && !typeSymbol.IsStatic) { // Only static types can be directly imported. continue; } if (!TryAddImport(importRecord.Alias, typeSymbol, usingsBuilder, usingAliases, binder, importRecord)) { continue; } break; } case ImportTargetKind.Namespace: { var namespaceName = importRecord.TargetString; RoslynDebug.AssertNotNull(namespaceName); if (!SyntaxHelpers.TryParseDottedName(namespaceName, out _)) { // DevDiv #999086: Some previous version of VS apparently generated type aliases as "UA{alias} T{alias-qualified type name}". // Neither Roslyn nor Dev12 parses such imports. However, Roslyn discards them, rather than interpreting them as "UA{alias}" // (which will rarely work and never be correct). Debug.WriteLine($"Import record '{importRecord}' has syntactically invalid target '{importRecord.TargetString}'"); continue; } NamespaceSymbol globalNamespace; var targetAssembly = (AssemblySymbol?)importRecord.TargetAssembly; if (targetAssembly is object) { if (targetAssembly.IsMissing) { Debug.WriteLine($"Import record '{importRecord}' has invalid assembly reference '{targetAssembly.Identity}'"); continue; } globalNamespace = targetAssembly.GlobalNamespace; } else if (importRecord.TargetAssemblyAlias != null) { if (!TryParseIdentifierNameSyntax(importRecord.TargetAssemblyAlias, out var externAliasSyntax)) { Debug.WriteLine($"Import record '{importRecord}' has syntactically invalid extern alias '{importRecord.TargetAssemblyAlias}'"); continue; } var aliasSymbol = (AliasSymbol)binder.BindNamespaceAliasSymbol(externAliasSyntax, BindingDiagnosticBag.Discarded); if (aliasSymbol is null) { Debug.WriteLine($"Import record '{importRecord}' requires unknown extern alias '{importRecord.TargetAssemblyAlias}'"); continue; } globalNamespace = (NamespaceSymbol)aliasSymbol.Target; } else { globalNamespace = compilation.GlobalNamespace; } var namespaceSymbol = BindNamespace(namespaceName, globalNamespace); if (namespaceSymbol is null) { // Namespace is unrecognized. The import may have been // valid in the original source but unnecessary. continue; // Don't add anything for this import. } if (!TryAddImport(importRecord.Alias, namespaceSymbol, usingsBuilder, usingAliases, binder, importRecord)) { continue; } break; } case ImportTargetKind.Assembly: // Handled in first pass (above). break; default: throw ExceptionUtilities.UnexpectedValue(importRecord.TargetKind); } } return Imports.Create(usingAliases.ToImmutableDictionary(), usingsBuilder.ToImmutableAndFree(), externs); } private static NamespaceSymbol? BindNamespace(string namespaceName, NamespaceSymbol globalNamespace) { NamespaceSymbol? namespaceSymbol = globalNamespace; foreach (var name in namespaceName.Split('.')) { var members = namespaceSymbol.GetMembers(name); namespaceSymbol = (members.Length == 1) ? members[0] as NamespaceSymbol : null; if (namespaceSymbol is null) { break; } } return namespaceSymbol; } private static bool TryAddImport( string? alias, NamespaceOrTypeSymbol targetSymbol, ArrayBuilder<NamespaceOrTypeAndUsingDirective> usingsBuilder, ImmutableDictionary<string, AliasAndUsingDirective>.Builder usingAliases, InContainerBinder binder, ImportRecord importRecord) { if (alias == null) { usingsBuilder.Add(new NamespaceOrTypeAndUsingDirective(targetSymbol, usingDirective: null, dependencies: default)); } else { if (!TryParseIdentifierNameSyntax(alias, out var aliasSyntax)) { Debug.WriteLine($"Import record '{importRecord}' has syntactically invalid alias '{alias}'"); return false; } var aliasSymbol = AliasSymbol.CreateCustomDebugInfoAlias(targetSymbol, aliasSyntax.Identifier, binder.ContainingMemberOrLambda, isExtern: false); usingAliases.Add(alias, new AliasAndUsingDirective(aliasSymbol, usingDirective: null)); } return true; } private static bool TryParseIdentifierNameSyntax(string name, [NotNullWhen(true)] out IdentifierNameSyntax? syntax) { if (name == MetadataReferenceProperties.GlobalAlias) { syntax = SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword)); return true; } if (!SyntaxHelpers.TryParseDottedName(name, out var nameSyntax) || nameSyntax.Kind() != SyntaxKind.IdentifierName) { syntax = null; return false; } syntax = (IdentifierNameSyntax)nameSyntax; return true; } internal CommonMessageProvider MessageProvider { get { return Compilation.MessageProvider; } } private static DkmClrCompilationResultFlags GetLocalResultFlags(LocalSymbol local) { // CONSIDER: We might want to prevent the user from modifying pinned locals - // that's pretty dangerous. return local.IsConst ? DkmClrCompilationResultFlags.ReadOnlyResult : DkmClrCompilationResultFlags.None; } /// <summary> /// Generate the set of locals to use for binding. /// </summary> private static ImmutableArray<LocalSymbol> GetLocalsForBinding( ImmutableArray<LocalSymbol> locals, ImmutableArray<string> displayClassVariableNamesInOrder, ImmutableDictionary<string, DisplayClassVariable> displayClassVariables) { var builder = ArrayBuilder<LocalSymbol>.GetInstance(); foreach (var local in locals) { var name = local.Name; if (name == null) { continue; } if (GeneratedNameParser.GetKind(name) != GeneratedNameKind.None) { continue; } // Although Roslyn doesn't name synthesized locals unless they are well-known to EE, // Dev12 did so we need to skip them here. if (GeneratedNameParser.IsSynthesizedLocalName(name)) { continue; } builder.Add(local); } foreach (var variableName in displayClassVariableNamesInOrder) { var variable = displayClassVariables[variableName]; switch (variable.Kind) { case DisplayClassVariableKind.Local: case DisplayClassVariableKind.Parameter: builder.Add(new EEDisplayClassFieldLocalSymbol(variable)); break; } } return builder.ToImmutableAndFree(); } private static ImmutableArray<string> GetSourceMethodParametersInOrder( MethodSymbol method, MethodSymbol? sourceMethod) { var containingType = method.ContainingType; bool isIteratorOrAsyncMethod = IsDisplayClassType(containingType) && GeneratedNameParser.GetKind(containingType.Name) == GeneratedNameKind.StateMachineType; var parameterNamesInOrder = ArrayBuilder<string>.GetInstance(); // For version before .NET 4.5, we cannot find the sourceMethod properly: // The source method coincides with the original method in the case. // Therefore, for iterators and async state machines, we have to get parameters from the containingType. // This does not guarantee the proper order of parameters. if (isIteratorOrAsyncMethod && method == sourceMethod) { Debug.Assert(IsDisplayClassType(containingType)); foreach (var member in containingType.GetMembers()) { if (member.Kind != SymbolKind.Field) { continue; } var field = (FieldSymbol)member; var fieldName = field.Name; if (GeneratedNameParser.GetKind(fieldName) == GeneratedNameKind.None) { parameterNamesInOrder.Add(fieldName); } } } else { if (sourceMethod is object) { foreach (var p in sourceMethod.Parameters) { parameterNamesInOrder.Add(p.Name); } } } return parameterNamesInOrder.ToImmutableAndFree(); } /// <summary> /// Return a mapping of captured variables (parameters, locals, and /// "this") to locals. The mapping is needed to expose the original /// local identifiers (those from source) in the binder. /// </summary> private static void GetDisplayClassVariables( MethodSymbol method, ImmutableArray<LocalSymbol> locals, ImmutableSortedSet<int> inScopeHoistedLocalSlots, ImmutableArray<string> parameterNamesInOrder, out ImmutableArray<string> displayClassVariableNamesInOrder, out ImmutableDictionary<string, DisplayClassVariable> displayClassVariables) { // Calculate the shortest paths from locals to instances of display // classes. There should not be two instances of the same display // class immediately within any particular method. var displayClassInstances = ArrayBuilder<DisplayClassInstanceAndFields>.GetInstance(); foreach (var parameter in method.Parameters) { if (GeneratedNameParser.GetKind(parameter.Name) == GeneratedNameKind.TransparentIdentifier || IsDisplayClassParameter(parameter)) { var instance = new DisplayClassInstanceFromParameter(parameter); displayClassInstances.Add(new DisplayClassInstanceAndFields(instance)); } } if (IsDisplayClassType(method.ContainingType) && !method.IsStatic) { // Add "this" display class instance. var instance = new DisplayClassInstanceFromParameter(method.ThisParameter); displayClassInstances.Add(new DisplayClassInstanceAndFields(instance)); } var displayClassTypes = PooledHashSet<TypeSymbol>.GetInstance(); foreach (var instance in displayClassInstances) { displayClassTypes.Add(instance.Instance.Type); } // Find any additional display class instances. GetAdditionalDisplayClassInstances(displayClassTypes, displayClassInstances, startIndex: 0); // Add any display class instances from locals (these will contain any hoisted locals). // Locals are only added after finding all display class instances reachable from // parameters because locals may be null (temporary locals in async state machine // for instance) so we prefer parameters to locals. int startIndex = displayClassInstances.Count; foreach (var local in locals) { var name = local.Name; if (name != null && GeneratedNameParser.GetKind(name) == GeneratedNameKind.DisplayClassLocalOrField) { var localType = local.Type; if (localType is object && displayClassTypes.Add(localType)) { var instance = new DisplayClassInstanceFromLocal((EELocalSymbol)local); displayClassInstances.Add(new DisplayClassInstanceAndFields(instance)); } } } GetAdditionalDisplayClassInstances(displayClassTypes, displayClassInstances, startIndex); displayClassTypes.Free(); if (displayClassInstances.Any()) { var parameterNames = PooledHashSet<string>.GetInstance(); foreach (var name in parameterNamesInOrder) { parameterNames.Add(name); } // The locals are the set of all fields from the display classes. var displayClassVariableNamesInOrderBuilder = ArrayBuilder<string>.GetInstance(); var displayClassVariablesBuilder = PooledDictionary<string, DisplayClassVariable>.GetInstance(); foreach (var instance in displayClassInstances) { GetDisplayClassVariables( displayClassVariableNamesInOrderBuilder, displayClassVariablesBuilder, parameterNames, inScopeHoistedLocalSlots, instance); } displayClassVariableNamesInOrder = displayClassVariableNamesInOrderBuilder.ToImmutableAndFree(); displayClassVariables = displayClassVariablesBuilder.ToImmutableDictionary(); displayClassVariablesBuilder.Free(); parameterNames.Free(); } else { displayClassVariableNamesInOrder = ImmutableArray<string>.Empty; displayClassVariables = ImmutableDictionary<string, DisplayClassVariable>.Empty; } displayClassInstances.Free(); } private static void GetAdditionalDisplayClassInstances( HashSet<TypeSymbol> displayClassTypes, ArrayBuilder<DisplayClassInstanceAndFields> displayClassInstances, int startIndex) { // Find any additional display class instances breadth first. for (int i = startIndex; i < displayClassInstances.Count; i++) { GetDisplayClassInstances(displayClassTypes, displayClassInstances, displayClassInstances[i]); } } private static void GetDisplayClassInstances( HashSet<TypeSymbol> displayClassTypes, ArrayBuilder<DisplayClassInstanceAndFields> displayClassInstances, DisplayClassInstanceAndFields instance) { // Display class instance. The display class fields are variables. foreach (var member in instance.Type.GetMembers()) { if (member.Kind != SymbolKind.Field) { continue; } var field = (FieldSymbol)member; var fieldType = field.Type; var fieldName = field.Name; TryParseGeneratedName(fieldName, out var fieldKind, out var part); switch (fieldKind) { case GeneratedNameKind.DisplayClassLocalOrField: case GeneratedNameKind.TransparentIdentifier: break; case GeneratedNameKind.AnonymousTypeField: RoslynDebug.AssertNotNull(part); if (GeneratedNameParser.GetKind(part) != GeneratedNameKind.TransparentIdentifier) { continue; } break; case GeneratedNameKind.ThisProxyField: if (GeneratedNameParser.GetKind(fieldType.Name) != GeneratedNameKind.LambdaDisplayClass) { continue; } // Async lambda case. break; default: continue; } Debug.Assert(!field.IsStatic); // A hoisted local that is itself a display class instance. if (displayClassTypes.Add(fieldType)) { var other = instance.FromField(field); displayClassInstances.Add(other); } } } /// <summary> /// Returns true if the parameter is a synthesized parameter representing /// a display class instance (used to pass hoisted symbols to local functions). /// </summary> private static bool IsDisplayClassParameter(ParameterSymbol parameter) { var type = parameter.Type; var result = type.Kind == SymbolKind.NamedType && IsDisplayClassType((NamedTypeSymbol)type); Debug.Assert(!result || parameter.MetadataName == ""); return result; } private static void GetDisplayClassVariables( ArrayBuilder<string> displayClassVariableNamesInOrderBuilder, Dictionary<string, DisplayClassVariable> displayClassVariablesBuilder, HashSet<string> parameterNames, ImmutableSortedSet<int> inScopeHoistedLocalSlots, DisplayClassInstanceAndFields instance) { // Display class instance. The display class fields are variables. foreach (var member in instance.Type.GetMembers()) { if (member.Kind != SymbolKind.Field) { continue; } var field = (FieldSymbol)member; var fieldName = field.Name; REPARSE: DisplayClassVariableKind variableKind; string variableName; TryParseGeneratedName(fieldName, out var fieldKind, out var part); switch (fieldKind) { case GeneratedNameKind.AnonymousTypeField: RoslynDebug.AssertNotNull(part); Debug.Assert(fieldName == field.Name); // This only happens once. fieldName = part; goto REPARSE; case GeneratedNameKind.TransparentIdentifier: // A transparent identifier (field) in an anonymous type synthesized for a transparent identifier. Debug.Assert(!field.IsStatic); continue; case GeneratedNameKind.DisplayClassLocalOrField: // A local that is itself a display class instance. Debug.Assert(!field.IsStatic); continue; case GeneratedNameKind.HoistedLocalField: RoslynDebug.AssertNotNull(part); // Filter out hoisted locals that are known to be out-of-scope at the current IL offset. // Hoisted locals with invalid indices will be included since more information is better // than less in error scenarios. if (GeneratedNameParser.TryParseSlotIndex(fieldName, out int slotIndex) && !inScopeHoistedLocalSlots.Contains(slotIndex)) { continue; } variableName = part; variableKind = DisplayClassVariableKind.Local; Debug.Assert(!field.IsStatic); break; case GeneratedNameKind.ThisProxyField: // A reference to "this". variableName = ""; // Should not be referenced by name. variableKind = DisplayClassVariableKind.This; Debug.Assert(!field.IsStatic); break; case GeneratedNameKind.None: // A reference to a parameter or local. variableName = fieldName; variableKind = parameterNames.Contains(variableName) ? DisplayClassVariableKind.Parameter : DisplayClassVariableKind.Local; Debug.Assert(!field.IsStatic); break; default: continue; } if (displayClassVariablesBuilder.ContainsKey(variableName)) { // Only expecting duplicates for async state machine // fields (that should be at the top-level). Debug.Assert(displayClassVariablesBuilder[variableName].DisplayClassFields.Count() == 1); if (!instance.Fields.Any()) { // Prefer parameters over locals. Debug.Assert(instance.Instance is DisplayClassInstanceFromLocal); } else { Debug.Assert(instance.Fields.Count() >= 1); // greater depth Debug.Assert(variableKind == DisplayClassVariableKind.Parameter || variableKind == DisplayClassVariableKind.This); if (variableKind == DisplayClassVariableKind.Parameter && GeneratedNameParser.GetKind(instance.Type.Name) == GeneratedNameKind.LambdaDisplayClass) { displayClassVariablesBuilder[variableName] = instance.ToVariable(variableName, variableKind, field); } } } else if (variableKind != DisplayClassVariableKind.This || GeneratedNameParser.GetKind(instance.Type.ContainingType.Name) != GeneratedNameKind.LambdaDisplayClass) { // In async lambdas, the hoisted "this" field in the state machine type will point to the display class instance, if there is one. // In such cases, we want to add the display class "this" to the map instead (or nothing, if it lacks one). displayClassVariableNamesInOrderBuilder.Add(variableName); displayClassVariablesBuilder.Add(variableName, instance.ToVariable(variableName, variableKind, field)); } } } private static void TryParseGeneratedName(string name, out GeneratedNameKind kind, out string? part) { _ = GeneratedNameParser.TryParseGeneratedName(name, out kind, out int openBracketOffset, out int closeBracketOffset); switch (kind) { case GeneratedNameKind.AnonymousTypeField: case GeneratedNameKind.HoistedLocalField: part = name.Substring(openBracketOffset + 1, closeBracketOffset - openBracketOffset - 1); break; default: part = null; break; } } private static bool IsDisplayClassType(TypeSymbol type) { switch (GeneratedNameParser.GetKind(type.Name)) { case GeneratedNameKind.LambdaDisplayClass: case GeneratedNameKind.StateMachineType: return true; default: return false; } } internal static DisplayClassVariable GetThisProxy(ImmutableDictionary<string, DisplayClassVariable> displayClassVariables) { return displayClassVariables.Values.FirstOrDefault(v => v.Kind == DisplayClassVariableKind.This); } private static NamedTypeSymbol GetNonDisplayClassContainer(NamedTypeSymbol type) { // 1) Display class and state machine types are always nested within the types // that use them (so that they can access private members of those types). // 2) The native compiler used to produce nested display classes for nested lambdas, // so we may have to walk out more than one level. while (IsDisplayClassType(type)) { type = type.ContainingType!; } return type; } /// <summary> /// Identifies the method in which binding should occur. /// </summary> /// <param name="candidateSubstitutedSourceMethod"> /// The symbol of the method that is currently on top of the callstack, with /// EE type parameters substituted in place of the original type parameters. /// </param> /// <param name="sourceMethodMustBeInstance"> /// True if "this" is available via a display class in the current context. /// </param> /// <returns> /// If <paramref name="candidateSubstitutedSourceMethod"/> is compiler-generated, /// then we will attempt to determine which user-defined method caused it to be /// generated. For example, if <paramref name="candidateSubstitutedSourceMethod"/> /// is a state machine MoveNext method, then we will try to find the iterator or /// async method for which it was generated. If we are able to find the original /// method, then we will substitute in the EE type parameters. Otherwise, we will /// return <paramref name="candidateSubstitutedSourceMethod"/>. /// </returns> /// <remarks> /// In the event that the original method is overloaded, we may not be able to determine /// which overload actually corresponds to the state machine. In particular, we do not /// have information about the signature of the original method (i.e. number of parameters, /// parameter types and ref-kinds, return type). However, we conjecture that this /// level of uncertainty is acceptable, since parameters are managed by a separate binder /// in the synthesized binder chain and we have enough information to check the other method /// properties that are used during binding (e.g. static-ness, generic arity, type parameter /// constraints). /// </remarks> internal static MethodSymbol GetSubstitutedSourceMethod( MethodSymbol candidateSubstitutedSourceMethod, bool sourceMethodMustBeInstance) { var candidateSubstitutedSourceType = candidateSubstitutedSourceMethod.ContainingType; string? desiredMethodName; if (GeneratedNameParser.TryParseSourceMethodNameFromGeneratedName(candidateSubstitutedSourceType.Name, GeneratedNameKind.StateMachineType, out desiredMethodName) || GeneratedNameParser.TryParseSourceMethodNameFromGeneratedName(candidateSubstitutedSourceMethod.Name, GeneratedNameKind.LambdaMethod, out desiredMethodName) || GeneratedNameParser.TryParseSourceMethodNameFromGeneratedName(candidateSubstitutedSourceMethod.Name, GeneratedNameKind.LocalFunction, out desiredMethodName)) { // We could be in the MoveNext method of an async lambda. string? tempMethodName; if (GeneratedNameParser.TryParseSourceMethodNameFromGeneratedName(desiredMethodName, GeneratedNameKind.LambdaMethod, out tempMethodName) || GeneratedNameParser.TryParseSourceMethodNameFromGeneratedName(desiredMethodName, GeneratedNameKind.LocalFunction, out tempMethodName)) { desiredMethodName = tempMethodName; var containing = candidateSubstitutedSourceType.ContainingType; RoslynDebug.AssertNotNull(containing); if (GeneratedNameParser.GetKind(containing.Name) == GeneratedNameKind.LambdaDisplayClass) { candidateSubstitutedSourceType = containing; sourceMethodMustBeInstance = candidateSubstitutedSourceType.MemberNames.Select(GeneratedNameParser.GetKind).Contains(GeneratedNameKind.ThisProxyField); } } var desiredTypeParameters = candidateSubstitutedSourceType.OriginalDefinition.TypeParameters; // Type containing the original iterator, async, or lambda-containing method. var substitutedSourceType = GetNonDisplayClassContainer(candidateSubstitutedSourceType); foreach (var candidateMethod in substitutedSourceType.GetMembers().OfType<MethodSymbol>()) { if (IsViableSourceMethod(candidateMethod, desiredMethodName, desiredTypeParameters, sourceMethodMustBeInstance)) { return desiredTypeParameters.Length == 0 ? candidateMethod : candidateMethod.Construct(candidateSubstitutedSourceType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics); } } Debug.Fail("Why didn't we find a substituted source method for " + candidateSubstitutedSourceMethod + "?"); } return candidateSubstitutedSourceMethod; } private static bool IsViableSourceMethod( MethodSymbol candidateMethod, string desiredMethodName, ImmutableArray<TypeParameterSymbol> desiredTypeParameters, bool desiredMethodMustBeInstance) { return !candidateMethod.IsAbstract && !(desiredMethodMustBeInstance && candidateMethod.IsStatic) && candidateMethod.Name == desiredMethodName && HaveSameConstraints(candidateMethod.TypeParameters, desiredTypeParameters); } private static bool HaveSameConstraints(ImmutableArray<TypeParameterSymbol> candidateTypeParameters, ImmutableArray<TypeParameterSymbol> desiredTypeParameters) { int arity = candidateTypeParameters.Length; if (arity != desiredTypeParameters.Length) { return false; } if (arity == 0) { return true; } var indexedTypeParameters = IndexedTypeParameterSymbol.Take(arity); var candidateTypeMap = new TypeMap(candidateTypeParameters, indexedTypeParameters, allowAlpha: true); var desiredTypeMap = new TypeMap(desiredTypeParameters, indexedTypeParameters, allowAlpha: true); return MemberSignatureComparer.HaveSameConstraints(candidateTypeParameters, candidateTypeMap, desiredTypeParameters, desiredTypeMap); } [DebuggerDisplay("{GetDebuggerDisplay(), nq}")] private readonly struct DisplayClassInstanceAndFields { internal readonly DisplayClassInstance Instance; internal readonly ConsList<FieldSymbol> Fields; internal DisplayClassInstanceAndFields(DisplayClassInstance instance) : this(instance, ConsList<FieldSymbol>.Empty) { Debug.Assert(IsDisplayClassType(instance.Type) || GeneratedNameParser.GetKind(instance.Type.Name) == GeneratedNameKind.AnonymousType); } private DisplayClassInstanceAndFields(DisplayClassInstance instance, ConsList<FieldSymbol> fields) { Instance = instance; Fields = fields; } internal TypeSymbol Type => Fields.Any() ? Fields.Head.Type : Instance.Type; internal int Depth => Fields.Count(); internal DisplayClassInstanceAndFields FromField(FieldSymbol field) { Debug.Assert(IsDisplayClassType(field.Type) || GeneratedNameParser.GetKind(field.Type.Name) == GeneratedNameKind.AnonymousType); return new DisplayClassInstanceAndFields(Instance, Fields.Prepend(field)); } internal DisplayClassVariable ToVariable(string name, DisplayClassVariableKind kind, FieldSymbol field) { return new DisplayClassVariable(name, kind, Instance, Fields.Prepend(field)); } private string GetDebuggerDisplay() { return Instance.GetDebuggerDisplay(Fields); } } } }
// 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.CodeGen; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Debugging; using Microsoft.CodeAnalysis.Emit; using Microsoft.CodeAnalysis.ExpressionEvaluator; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.VisualStudio.Debugger.Clr; using Microsoft.VisualStudio.Debugger.Evaluation.ClrCompilation; using Roslyn.Utilities; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading; namespace Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator { internal sealed class CompilationContext { internal readonly CSharpCompilation Compilation; internal readonly Binder NamespaceBinder; // Internal for test purposes. private readonly MethodSymbol _currentFrame; private readonly ImmutableArray<LocalSymbol> _locals; private readonly ImmutableDictionary<string, DisplayClassVariable> _displayClassVariables; private readonly ImmutableArray<string> _sourceMethodParametersInOrder; private readonly ImmutableArray<LocalSymbol> _localsForBinding; private readonly bool _methodNotType; /// <summary> /// Create a context to compile expressions within a method scope. /// </summary> internal CompilationContext( CSharpCompilation compilation, MethodSymbol currentFrame, MethodSymbol? currentSourceMethod, ImmutableArray<LocalSymbol> locals, ImmutableSortedSet<int> inScopeHoistedLocalSlots, MethodDebugInfo<TypeSymbol, LocalSymbol> methodDebugInfo) { _currentFrame = currentFrame; _methodNotType = !locals.IsDefault; // NOTE: Since this is done within CompilationContext, it will not be cached. // CONSIDER: The values should be the same everywhere in the module, so they // could be cached. // (Catch: what happens in a type context without a method def?) Compilation = GetCompilationWithExternAliases(compilation, methodDebugInfo.ExternAliasRecords); // Each expression compile should use a unique compilation // to ensure expression-specific synthesized members can be // added (anonymous types, for instance). Debug.Assert(Compilation != compilation); NamespaceBinder = CreateBinderChain( Compilation, currentFrame.ContainingNamespace, methodDebugInfo.ImportRecordGroups); if (_methodNotType) { _locals = locals; _sourceMethodParametersInOrder = GetSourceMethodParametersInOrder(currentFrame, currentSourceMethod); GetDisplayClassVariables( currentFrame, _locals, inScopeHoistedLocalSlots, _sourceMethodParametersInOrder, out var displayClassVariableNamesInOrder, out _displayClassVariables); Debug.Assert(displayClassVariableNamesInOrder.Length == _displayClassVariables.Count); _localsForBinding = GetLocalsForBinding(_locals, displayClassVariableNamesInOrder, _displayClassVariables); } else { _locals = ImmutableArray<LocalSymbol>.Empty; _displayClassVariables = ImmutableDictionary<string, DisplayClassVariable>.Empty; _localsForBinding = ImmutableArray<LocalSymbol>.Empty; } // Assert that the cheap check for "this" is equivalent to the expensive check for "this". Debug.Assert( (GetThisProxy(_displayClassVariables) != null) == _displayClassVariables.Values.Any(v => v.Kind == DisplayClassVariableKind.This)); } internal bool TryCompileExpressions( ImmutableArray<CSharpSyntaxNode> syntaxNodes, string typeNameBase, string methodName, DiagnosticBag diagnostics, [NotNullWhen(true)] out CommonPEModuleBuilder? module) { // Create a separate synthesized type for each evaluation method. // (Necessary for VB in particular since the EENamedTypeSymbol.Locations // is tied to the expression syntax in VB.) var synthesizedTypes = syntaxNodes.SelectAsArray( (syntax, i, _) => (NamedTypeSymbol)CreateSynthesizedType(syntax, typeNameBase + i, methodName, ImmutableArray<Alias>.Empty), arg: (object?)null); if (synthesizedTypes.Length == 0) { module = null; return false; } module = CreateModuleBuilder( Compilation, additionalTypes: synthesizedTypes, testData: null, diagnostics: diagnostics); Compilation.Compile( module, emittingPdb: false, diagnostics: diagnostics, filterOpt: null, CancellationToken.None); return !diagnostics.HasAnyErrors(); } internal bool TryCompileExpression( CSharpSyntaxNode syntax, string typeName, string methodName, ImmutableArray<Alias> aliases, CompilationTestData? testData, DiagnosticBag diagnostics, [NotNullWhen(true)] out CommonPEModuleBuilder? module, [NotNullWhen(true)] out EEMethodSymbol? synthesizedMethod) { var synthesizedType = CreateSynthesizedType(syntax, typeName, methodName, aliases); module = CreateModuleBuilder( Compilation, additionalTypes: ImmutableArray.Create((NamedTypeSymbol)synthesizedType), testData, diagnostics); Compilation.Compile( module, emittingPdb: false, diagnostics, filterOpt: null, CancellationToken.None); if (diagnostics.HasAnyErrors()) { module = null; synthesizedMethod = null; return false; } synthesizedMethod = GetSynthesizedMethod(synthesizedType); return true; } private EENamedTypeSymbol CreateSynthesizedType( CSharpSyntaxNode syntax, string typeName, string methodName, ImmutableArray<Alias> aliases) { var objectType = Compilation.GetSpecialType(SpecialType.System_Object); var synthesizedType = new EENamedTypeSymbol( Compilation.SourceModule.GlobalNamespace, objectType, syntax, _currentFrame, typeName, methodName, this, (EEMethodSymbol method, DiagnosticBag diags, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { var hasDisplayClassThis = GetThisProxy(_displayClassVariables) != null; var binder = ExtendBinderChain( syntax, aliases, method, NamespaceBinder, hasDisplayClassThis, _methodNotType, out declaredLocals); return (syntax is StatementSyntax statementSyntax) ? BindStatement(binder, statementSyntax, diags, out properties) : BindExpression(binder, (ExpressionSyntax)syntax, diags, out properties); }); return synthesizedType; } internal bool TryCompileAssignment( ExpressionSyntax syntax, string typeName, string methodName, ImmutableArray<Alias> aliases, CompilationTestData? testData, DiagnosticBag diagnostics, [NotNullWhen(true)] out CommonPEModuleBuilder? module, [NotNullWhen(true)] out EEMethodSymbol? synthesizedMethod) { var objectType = Compilation.GetSpecialType(SpecialType.System_Object); var synthesizedType = new EENamedTypeSymbol( Compilation.SourceModule.GlobalNamespace, objectType, syntax, _currentFrame, typeName, methodName, this, (EEMethodSymbol method, DiagnosticBag diags, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { var hasDisplayClassThis = GetThisProxy(_displayClassVariables) != null; var binder = ExtendBinderChain( syntax, aliases, method, NamespaceBinder, hasDisplayClassThis, methodNotType: true, out declaredLocals); properties = new ResultProperties(DkmClrCompilationResultFlags.PotentialSideEffect); return BindAssignment(binder, syntax, diags); }); module = CreateModuleBuilder( Compilation, additionalTypes: ImmutableArray.Create((NamedTypeSymbol)synthesizedType), testData, diagnostics); Compilation.Compile( module, emittingPdb: false, diagnostics, filterOpt: null, CancellationToken.None); if (diagnostics.HasAnyErrors()) { module = null; synthesizedMethod = null; return false; } synthesizedMethod = GetSynthesizedMethod(synthesizedType); return true; } private static EEMethodSymbol GetSynthesizedMethod(EENamedTypeSymbol synthesizedType) => (EEMethodSymbol)synthesizedType.Methods[0]; private static string GetNextMethodName(ArrayBuilder<MethodSymbol> builder) => "<>m" + builder.Count; /// <summary> /// Generate a class containing methods that represent /// the set of arguments and locals at the current scope. /// </summary> internal CommonPEModuleBuilder? CompileGetLocals( string typeName, ArrayBuilder<LocalAndMethod> localBuilder, bool argumentsOnly, ImmutableArray<Alias> aliases, CompilationTestData? testData, DiagnosticBag diagnostics) { var objectType = Compilation.GetSpecialType(SpecialType.System_Object); var allTypeParameters = _currentFrame.GetAllTypeParameters(); var additionalTypes = ArrayBuilder<NamedTypeSymbol>.GetInstance(); EENamedTypeSymbol? typeVariablesType = null; if (!argumentsOnly && allTypeParameters.Length > 0) { // Generate a generic type with matching type parameters. // A null instance of the type will be used to represent the // "Type variables" local. typeVariablesType = new EENamedTypeSymbol( Compilation.SourceModule.GlobalNamespace, objectType, _currentFrame, ExpressionCompilerConstants.TypeVariablesClassName, (m, t) => ImmutableArray.Create<MethodSymbol>(new EEConstructorSymbol(t)), allTypeParameters, (t1, t2) => allTypeParameters.SelectAsArray((tp, i, t) => (TypeParameterSymbol)new SimpleTypeParameterSymbol(t, i, tp.Name), t2)); additionalTypes.Add(typeVariablesType); } var synthesizedType = new EENamedTypeSymbol( Compilation.SourceModule.GlobalNamespace, objectType, _currentFrame, typeName, (m, container) => { var methodBuilder = ArrayBuilder<MethodSymbol>.GetInstance(); if (!argumentsOnly) { // Pseudo-variables: $exception, $ReturnValue, etc. if (aliases.Length > 0) { var sourceAssembly = Compilation.SourceAssembly; var typeNameDecoder = new EETypeNameDecoder(Compilation, (PEModuleSymbol)_currentFrame.ContainingModule); foreach (var alias in aliases) { if (alias.IsReturnValueWithoutIndex()) { Debug.Assert(aliases.Count(a => a.Kind == DkmClrAliasKind.ReturnValue) > 1); continue; } var local = PlaceholderLocalSymbol.Create( typeNameDecoder, _currentFrame, sourceAssembly, alias); // Skip pseudo-variables with errors. if (local.HasUseSiteError) { continue; } var methodName = GetNextMethodName(methodBuilder); var syntax = SyntaxFactory.IdentifierName(SyntaxFactory.MissingToken(SyntaxKind.IdentifierToken)); var aliasMethod = CreateMethod( container, methodName, syntax, (EEMethodSymbol method, DiagnosticBag diags, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { declaredLocals = ImmutableArray<LocalSymbol>.Empty; var expression = new BoundLocal(syntax, local, constantValueOpt: null, type: local.Type); properties = default; return new BoundReturnStatement(syntax, RefKind.None, expression) { WasCompilerGenerated = true }; }); var flags = local.IsWritableVariable ? DkmClrCompilationResultFlags.None : DkmClrCompilationResultFlags.ReadOnlyResult; localBuilder.Add(MakeLocalAndMethod(local, aliasMethod, flags)); methodBuilder.Add(aliasMethod); } } // "this" for non-static methods that are not display class methods or // display class methods where the display class contains "<>4__this". if (!m.IsStatic && !IsDisplayClassType(m.ContainingType) || GetThisProxy(_displayClassVariables) != null) { var methodName = GetNextMethodName(methodBuilder); var method = GetThisMethod(container, methodName); localBuilder.Add(new CSharpLocalAndMethod("this", "this", method, DkmClrCompilationResultFlags.None)); // Note: writable in dev11. methodBuilder.Add(method); } } var itemsAdded = PooledHashSet<string>.GetInstance(); // Method parameters int parameterIndex = m.IsStatic ? 0 : 1; foreach (var parameter in m.Parameters) { var parameterName = parameter.Name; if (GeneratedNameParser.GetKind(parameterName) == GeneratedNameKind.None && !IsDisplayClassParameter(parameter)) { itemsAdded.Add(parameterName); AppendParameterAndMethod(localBuilder, methodBuilder, parameter, container, parameterIndex); } parameterIndex++; } // In case of iterator or async state machine, the 'm' method has no parameters // but the source method can have parameters to iterate over. if (itemsAdded.Count == 0 && _sourceMethodParametersInOrder.Length != 0) { var localsDictionary = PooledDictionary<string, (LocalSymbol, int)>.GetInstance(); int localIndex = 0; foreach (var local in _localsForBinding) { localsDictionary.Add(local.Name, (local, localIndex)); localIndex++; } foreach (var argumentName in _sourceMethodParametersInOrder) { (LocalSymbol local, int localIndex) localSymbolAndIndex; if (localsDictionary.TryGetValue(argumentName, out localSymbolAndIndex)) { itemsAdded.Add(argumentName); var local = localSymbolAndIndex.local; AppendLocalAndMethod(localBuilder, methodBuilder, local, container, localSymbolAndIndex.localIndex, GetLocalResultFlags(local)); } } localsDictionary.Free(); } if (!argumentsOnly) { // Locals which were not added as parameters or parameters of the source method. int localIndex = 0; foreach (var local in _localsForBinding) { if (!itemsAdded.Contains(local.Name)) { AppendLocalAndMethod(localBuilder, methodBuilder, local, container, localIndex, GetLocalResultFlags(local)); } localIndex++; } // "Type variables". if (typeVariablesType is object) { var methodName = GetNextMethodName(methodBuilder); var returnType = typeVariablesType.Construct(allTypeParameters.Cast<TypeParameterSymbol, TypeSymbol>()); var method = GetTypeVariablesMethod(container, methodName, returnType); localBuilder.Add(new CSharpLocalAndMethod( ExpressionCompilerConstants.TypeVariablesLocalName, ExpressionCompilerConstants.TypeVariablesLocalName, method, DkmClrCompilationResultFlags.ReadOnlyResult)); methodBuilder.Add(method); } } itemsAdded.Free(); return methodBuilder.ToImmutableAndFree(); }); additionalTypes.Add(synthesizedType); var module = CreateModuleBuilder( Compilation, additionalTypes.ToImmutableAndFree(), testData, diagnostics); RoslynDebug.AssertNotNull(module); Compilation.Compile( module, emittingPdb: false, diagnostics, filterOpt: null, CancellationToken.None); return diagnostics.HasAnyErrors() ? null : module; } private void AppendLocalAndMethod( ArrayBuilder<LocalAndMethod> localBuilder, ArrayBuilder<MethodSymbol> methodBuilder, LocalSymbol local, EENamedTypeSymbol container, int localIndex, DkmClrCompilationResultFlags resultFlags) { var methodName = GetNextMethodName(methodBuilder); var method = GetLocalMethod(container, methodName, local.Name, localIndex); localBuilder.Add(MakeLocalAndMethod(local, method, resultFlags)); methodBuilder.Add(method); } private void AppendParameterAndMethod( ArrayBuilder<LocalAndMethod> localBuilder, ArrayBuilder<MethodSymbol> methodBuilder, ParameterSymbol parameter, EENamedTypeSymbol container, int parameterIndex) { // Note: The native EE doesn't do this, but if we don't escape keyword identifiers, // the ResultProvider needs to be able to disambiguate cases like "this" and "@this", // which it can't do correctly without semantic information. var name = SyntaxHelpers.EscapeKeywordIdentifiers(parameter.Name); var methodName = GetNextMethodName(methodBuilder); var method = GetParameterMethod(container, methodName, name, parameterIndex); localBuilder.Add(new CSharpLocalAndMethod(name, name, method, DkmClrCompilationResultFlags.None)); methodBuilder.Add(method); } private static LocalAndMethod MakeLocalAndMethod(LocalSymbol local, MethodSymbol method, DkmClrCompilationResultFlags flags) { // Note: The native EE doesn't do this, but if we don't escape keyword identifiers, // the ResultProvider needs to be able to disambiguate cases like "this" and "@this", // which it can't do correctly without semantic information. var escapedName = SyntaxHelpers.EscapeKeywordIdentifiers(local.Name); var displayName = (local as PlaceholderLocalSymbol)?.DisplayName ?? escapedName; return new CSharpLocalAndMethod(escapedName, displayName, method, flags); } private static EEAssemblyBuilder CreateModuleBuilder( CSharpCompilation compilation, ImmutableArray<NamedTypeSymbol> additionalTypes, CompilationTestData? testData, DiagnosticBag diagnostics) { // Each assembly must have a unique name. var emitOptions = new EmitOptions(outputNameOverride: ExpressionCompilerUtilities.GenerateUniqueName()); string? runtimeMetadataVersion = compilation.GetRuntimeMetadataVersion(emitOptions, diagnostics); var serializationProperties = compilation.ConstructModuleSerializationProperties(emitOptions, runtimeMetadataVersion); return new EEAssemblyBuilder( compilation.SourceAssembly, emitOptions, serializationProperties, additionalTypes, contextType => GetNonDisplayClassContainer(((EENamedTypeSymbol)contextType).SubstitutedSourceType), testData); } internal EEMethodSymbol CreateMethod( EENamedTypeSymbol container, string methodName, CSharpSyntaxNode syntax, GenerateMethodBody generateMethodBody) { return new EEMethodSymbol( container, methodName, syntax.Location, _currentFrame, _locals, _localsForBinding, _displayClassVariables, generateMethodBody); } private EEMethodSymbol GetLocalMethod(EENamedTypeSymbol container, string methodName, string localName, int localIndex) { var syntax = SyntaxFactory.IdentifierName(localName); return CreateMethod(container, methodName, syntax, (EEMethodSymbol method, DiagnosticBag diagnostics, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { declaredLocals = ImmutableArray<LocalSymbol>.Empty; var local = method.LocalsForBinding[localIndex]; var expression = new BoundLocal(syntax, local, constantValueOpt: local.GetConstantValue(null, null, new BindingDiagnosticBag(diagnostics)), type: local.Type); properties = default; return new BoundReturnStatement(syntax, RefKind.None, expression) { WasCompilerGenerated = true }; }); } private EEMethodSymbol GetParameterMethod(EENamedTypeSymbol container, string methodName, string parameterName, int parameterIndex) { var syntax = SyntaxFactory.IdentifierName(parameterName); return CreateMethod(container, methodName, syntax, (EEMethodSymbol method, DiagnosticBag diagnostics, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { declaredLocals = ImmutableArray<LocalSymbol>.Empty; var parameter = method.Parameters[parameterIndex]; var expression = new BoundParameter(syntax, parameter); properties = default; return new BoundReturnStatement(syntax, RefKind.None, expression) { WasCompilerGenerated = true }; }); } private EEMethodSymbol GetThisMethod(EENamedTypeSymbol container, string methodName) { var syntax = SyntaxFactory.ThisExpression(); return CreateMethod(container, methodName, syntax, (EEMethodSymbol method, DiagnosticBag diagnostics, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { declaredLocals = ImmutableArray<LocalSymbol>.Empty; var expression = new BoundThisReference(syntax, GetNonDisplayClassContainer(container.SubstitutedSourceType)); properties = default; return new BoundReturnStatement(syntax, RefKind.None, expression) { WasCompilerGenerated = true }; }); } private EEMethodSymbol GetTypeVariablesMethod(EENamedTypeSymbol container, string methodName, NamedTypeSymbol typeVariablesType) { var syntax = SyntaxFactory.IdentifierName(SyntaxFactory.MissingToken(SyntaxKind.IdentifierToken)); return CreateMethod(container, methodName, syntax, (EEMethodSymbol method, DiagnosticBag diagnostics, out ImmutableArray<LocalSymbol> declaredLocals, out ResultProperties properties) => { declaredLocals = ImmutableArray<LocalSymbol>.Empty; var type = method.TypeMap.SubstituteNamedType(typeVariablesType); var expression = new BoundObjectCreationExpression(syntax, type.InstanceConstructors[0]); var statement = new BoundReturnStatement(syntax, RefKind.None, expression) { WasCompilerGenerated = true }; properties = default; return statement; }); } private static BoundStatement? BindExpression(Binder binder, ExpressionSyntax syntax, DiagnosticBag diagnostics, out ResultProperties resultProperties) { var flags = DkmClrCompilationResultFlags.None; var bindingDiagnostics = new BindingDiagnosticBag(diagnostics); // In addition to C# expressions, the native EE also supports // type names which are bound to a representation of the type // (but not System.Type) that the user can expand to see the // base type. Instead, we only allow valid C# expressions. var expression = IsDeconstruction(syntax) ? binder.BindDeconstruction((AssignmentExpressionSyntax)syntax, bindingDiagnostics, resultIsUsedOverride: true) : binder.BindRValueWithoutTargetType(syntax, bindingDiagnostics); if (diagnostics.HasAnyErrors()) { resultProperties = default; return null; } try { if (MayHaveSideEffectsVisitor.MayHaveSideEffects(expression)) { flags |= DkmClrCompilationResultFlags.PotentialSideEffect; } } catch (BoundTreeVisitor.CancelledByStackGuardException ex) { ex.AddAnError(diagnostics); resultProperties = default; return null; } var expressionType = expression.Type; if (expressionType is null) { expression = binder.CreateReturnConversion( syntax, bindingDiagnostics, expression, RefKind.None, binder.Compilation.GetSpecialType(SpecialType.System_Object)); if (diagnostics.HasAnyErrors()) { resultProperties = default; return null; } } else if (expressionType.SpecialType == SpecialType.System_Void) { flags |= DkmClrCompilationResultFlags.ReadOnlyResult; Debug.Assert(expression.ConstantValue == null); resultProperties = expression.ExpressionSymbol.GetResultProperties(flags, isConstant: false); return new BoundExpressionStatement(syntax, expression) { WasCompilerGenerated = true }; } else if (expressionType.SpecialType == SpecialType.System_Boolean) { flags |= DkmClrCompilationResultFlags.BoolResult; } if (!IsAssignableExpression(binder, expression)) { flags |= DkmClrCompilationResultFlags.ReadOnlyResult; } resultProperties = expression.ExpressionSymbol.GetResultProperties(flags, expression.ConstantValue != null); return new BoundReturnStatement(syntax, RefKind.None, expression) { WasCompilerGenerated = true }; } private static bool IsDeconstruction(ExpressionSyntax syntax) { if (syntax.Kind() != SyntaxKind.SimpleAssignmentExpression) { return false; } var node = (AssignmentExpressionSyntax)syntax; return node.Left.Kind() == SyntaxKind.TupleExpression || node.Left.Kind() == SyntaxKind.DeclarationExpression; } private static BoundStatement BindStatement(Binder binder, StatementSyntax syntax, DiagnosticBag diagnostics, out ResultProperties properties) { properties = new ResultProperties(DkmClrCompilationResultFlags.PotentialSideEffect | DkmClrCompilationResultFlags.ReadOnlyResult); return binder.BindStatement(syntax, new BindingDiagnosticBag(diagnostics)); } private static bool IsAssignableExpression(Binder binder, BoundExpression expression) { var result = binder.CheckValueKind(expression.Syntax, expression, Binder.BindValueKind.Assignable, checkingReceiver: false, BindingDiagnosticBag.Discarded); return result; } private static BoundStatement? BindAssignment(Binder binder, ExpressionSyntax syntax, DiagnosticBag diagnostics) { var expression = binder.BindValue(syntax, new BindingDiagnosticBag(diagnostics), Binder.BindValueKind.RValue); if (diagnostics.HasAnyErrors()) { return null; } return new BoundExpressionStatement(expression.Syntax, expression) { WasCompilerGenerated = true }; } private static Binder CreateBinderChain( CSharpCompilation compilation, NamespaceSymbol @namespace, ImmutableArray<ImmutableArray<ImportRecord>> importRecordGroups) { var stack = ArrayBuilder<string>.GetInstance(); while (@namespace is object) { stack.Push(@namespace.Name); @namespace = @namespace.ContainingNamespace; } Binder binder = new BuckStopsHereBinder(compilation); var hasImports = !importRecordGroups.IsDefaultOrEmpty; var numImportStringGroups = hasImports ? importRecordGroups.Length : 0; var currentStringGroup = numImportStringGroups - 1; // PERF: We used to call compilation.GetCompilationNamespace on every iteration, // but that involved walking up to the global namespace, which we have to do // anyway. Instead, we'll inline the functionality into our own walk of the // namespace chain. @namespace = compilation.GlobalNamespace; while (stack.Count > 0) { var namespaceName = stack.Pop(); if (namespaceName.Length > 0) { // We're re-getting the namespace, rather than using the one containing // the current frame method, because we want the merged namespace. @namespace = @namespace.GetNestedNamespace(namespaceName); RoslynDebug.AssertNotNull(@namespace); } else { Debug.Assert((object)@namespace == compilation.GlobalNamespace); } if (hasImports) { if (currentStringGroup < 0) { Debug.WriteLine($"No import string group for namespace '{@namespace}'"); break; } var importsBinder = new InContainerBinder(@namespace, binder); Imports imports = BuildImports(compilation, importRecordGroups[currentStringGroup], importsBinder); currentStringGroup--; binder = WithExternAndUsingAliasesBinder.Create(imports.ExternAliases, imports.UsingAliases, WithUsingNamespacesAndTypesBinder.Create(imports.Usings, binder)); } binder = new InContainerBinder(@namespace, binder); } stack.Free(); if (currentStringGroup >= 0) { // CONSIDER: We could lump these into the outermost namespace. It's probably not worthwhile since // the usings are already for the wrong method. Debug.WriteLine($"Found {currentStringGroup + 1} import string groups without corresponding namespaces"); } return binder; } private static CSharpCompilation GetCompilationWithExternAliases(CSharpCompilation compilation, ImmutableArray<ExternAliasRecord> externAliasRecords) { if (externAliasRecords.IsDefaultOrEmpty) { return compilation.Clone(); } var updatedReferences = ArrayBuilder<MetadataReference>.GetInstance(); var assembliesAndModulesBuilder = ArrayBuilder<Symbol>.GetInstance(); foreach (var reference in compilation.References) { updatedReferences.Add(reference); assembliesAndModulesBuilder.Add(compilation.GetAssemblyOrModuleSymbol(reference)!); } Debug.Assert(assembliesAndModulesBuilder.Count == updatedReferences.Count); var assembliesAndModules = assembliesAndModulesBuilder.ToImmutableAndFree(); foreach (var externAliasRecord in externAliasRecords) { var targetAssembly = externAliasRecord.TargetAssembly as AssemblySymbol; int index; if (targetAssembly != null) { index = assembliesAndModules.IndexOf(targetAssembly); } else { index = IndexOfMatchingAssembly((AssemblyIdentity)externAliasRecord.TargetAssembly, assembliesAndModules, compilation.Options.AssemblyIdentityComparer); } if (index < 0) { Debug.WriteLine($"Unable to find corresponding assembly reference for extern alias '{externAliasRecord}'"); continue; } var externAlias = externAliasRecord.Alias; var assemblyReference = updatedReferences[index]; var oldAliases = assemblyReference.Properties.Aliases; var newAliases = oldAliases.IsEmpty ? ImmutableArray.Create(MetadataReferenceProperties.GlobalAlias, externAlias) : oldAliases.Concat(ImmutableArray.Create(externAlias)); // NOTE: Dev12 didn't emit custom debug info about "global", so we don't have // a good way to distinguish between a module aliased with both (e.g.) "X" and // "global" and a module aliased with only "X". As in Dev12, we assume that // "global" is a valid alias to remain at least as permissive as source. // NOTE: In the event that this introduces ambiguities between two assemblies // (e.g. because one was "global" in source and the other was "X"), it should be // possible to disambiguate as long as each assembly has a distinct extern alias, // not necessarily used in source. Debug.Assert(newAliases.Contains(MetadataReferenceProperties.GlobalAlias)); // Replace the value in the map with the updated reference. updatedReferences[index] = assemblyReference.WithAliases(newAliases); } compilation = compilation.WithReferences(updatedReferences); updatedReferences.Free(); return compilation; } private static int IndexOfMatchingAssembly(AssemblyIdentity referenceIdentity, ImmutableArray<Symbol> assembliesAndModules, AssemblyIdentityComparer assemblyIdentityComparer) { for (int i = 0; i < assembliesAndModules.Length; i++) { if (assembliesAndModules[i] is AssemblySymbol assembly && assemblyIdentityComparer.ReferenceMatchesDefinition(referenceIdentity, assembly.Identity)) { return i; } } return -1; } private static Binder ExtendBinderChain( CSharpSyntaxNode syntax, ImmutableArray<Alias> aliases, EEMethodSymbol method, Binder binder, bool hasDisplayClassThis, bool methodNotType, out ImmutableArray<LocalSymbol> declaredLocals) { var substitutedSourceMethod = GetSubstitutedSourceMethod(method.SubstitutedSourceMethod, hasDisplayClassThis); var substitutedSourceType = substitutedSourceMethod.ContainingType; var stack = ArrayBuilder<NamedTypeSymbol>.GetInstance(); for (var type = substitutedSourceType; type is object; type = type.ContainingType) { stack.Add(type); } while (stack.Count > 0) { substitutedSourceType = stack.Pop(); binder = new InContainerBinder(substitutedSourceType, binder); if (substitutedSourceType.Arity > 0) { binder = new WithTypeArgumentsBinder(substitutedSourceType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics, binder); } } stack.Free(); if (substitutedSourceMethod.Arity > 0) { binder = new WithTypeArgumentsBinder(substitutedSourceMethod.TypeArgumentsWithAnnotations, binder); } // Method locals and parameters shadow pseudo-variables. // That is why we place PlaceholderLocalBinder and ExecutableCodeBinder before EEMethodBinder. if (methodNotType) { var typeNameDecoder = new EETypeNameDecoder(binder.Compilation, (PEModuleSymbol)substitutedSourceMethod.ContainingModule); binder = new PlaceholderLocalBinder( syntax, aliases, method, typeNameDecoder, binder); } binder = new EEMethodBinder(method, substitutedSourceMethod, binder); if (methodNotType) { binder = new SimpleLocalScopeBinder(method.LocalsForBinding, binder); } Binder? actualRootBinder = null; SyntaxNode? declaredLocalsScopeDesignator = null; var executableBinder = new ExecutableCodeBinder(syntax, substitutedSourceMethod, binder, (rootBinder, declaredLocalsScopeDesignatorOpt) => { actualRootBinder = rootBinder; declaredLocalsScopeDesignator = declaredLocalsScopeDesignatorOpt; }); // We just need to trigger the process of building the binder map // so that the lambda above was executed. executableBinder.GetBinder(syntax); RoslynDebug.AssertNotNull(actualRootBinder); if (declaredLocalsScopeDesignator != null) { declaredLocals = actualRootBinder.GetDeclaredLocalsForScope(declaredLocalsScopeDesignator); } else { declaredLocals = ImmutableArray<LocalSymbol>.Empty; } return actualRootBinder; } private static Imports BuildImports(CSharpCompilation compilation, ImmutableArray<ImportRecord> importRecords, InContainerBinder binder) { // We make a first pass to extract all of the extern aliases because other imports may depend on them. var externsBuilder = ArrayBuilder<AliasAndExternAliasDirective>.GetInstance(); foreach (var importRecord in importRecords) { if (importRecord.TargetKind != ImportTargetKind.Assembly) { continue; } var alias = importRecord.Alias; RoslynDebug.AssertNotNull(alias); if (!TryParseIdentifierNameSyntax(alias, out var aliasNameSyntax)) { Debug.WriteLine($"Import record '{importRecord}' has syntactically invalid extern alias '{alias}'"); continue; } NamespaceSymbol target; compilation.GetExternAliasTarget(aliasNameSyntax.Identifier.ValueText, out target); Debug.Assert(target.IsGlobalNamespace); var aliasSymbol = AliasSymbol.CreateCustomDebugInfoAlias(target, aliasNameSyntax.Identifier, binder.ContainingMemberOrLambda, isExtern: true); externsBuilder.Add(new AliasAndExternAliasDirective(aliasSymbol, externAliasDirective: null, skipInLookup: false)); } var externs = externsBuilder.ToImmutableAndFree(); if (externs.Any()) { // NB: This binder (and corresponding Imports) is only used to bind the other imports. // We'll merge the externs into a final Imports object and return that to be used in // the actual binder chain. binder = new InContainerBinder( binder.Container, WithExternAliasesBinder.Create(externs, binder)); } var usingAliases = ImmutableDictionary.CreateBuilder<string, AliasAndUsingDirective>(); var usingsBuilder = ArrayBuilder<NamespaceOrTypeAndUsingDirective>.GetInstance(); foreach (var importRecord in importRecords) { switch (importRecord.TargetKind) { case ImportTargetKind.Type: { var typeSymbol = (TypeSymbol?)importRecord.TargetType; RoslynDebug.AssertNotNull(typeSymbol); if (typeSymbol.IsErrorType()) { // Type is unrecognized. The import may have been // valid in the original source but unnecessary. continue; // Don't add anything for this import. } else if (importRecord.Alias == null && !typeSymbol.IsStatic) { // Only static types can be directly imported. continue; } if (!TryAddImport(importRecord.Alias, typeSymbol, usingsBuilder, usingAliases, binder, importRecord)) { continue; } break; } case ImportTargetKind.Namespace: { var namespaceName = importRecord.TargetString; RoslynDebug.AssertNotNull(namespaceName); if (!SyntaxHelpers.TryParseDottedName(namespaceName, out _)) { // DevDiv #999086: Some previous version of VS apparently generated type aliases as "UA{alias} T{alias-qualified type name}". // Neither Roslyn nor Dev12 parses such imports. However, Roslyn discards them, rather than interpreting them as "UA{alias}" // (which will rarely work and never be correct). Debug.WriteLine($"Import record '{importRecord}' has syntactically invalid target '{importRecord.TargetString}'"); continue; } NamespaceSymbol globalNamespace; var targetAssembly = (AssemblySymbol?)importRecord.TargetAssembly; if (targetAssembly is object) { if (targetAssembly.IsMissing) { Debug.WriteLine($"Import record '{importRecord}' has invalid assembly reference '{targetAssembly.Identity}'"); continue; } globalNamespace = targetAssembly.GlobalNamespace; } else if (importRecord.TargetAssemblyAlias != null) { if (!TryParseIdentifierNameSyntax(importRecord.TargetAssemblyAlias, out var externAliasSyntax)) { Debug.WriteLine($"Import record '{importRecord}' has syntactically invalid extern alias '{importRecord.TargetAssemblyAlias}'"); continue; } var aliasSymbol = (AliasSymbol)binder.BindNamespaceAliasSymbol(externAliasSyntax, BindingDiagnosticBag.Discarded); if (aliasSymbol is null) { Debug.WriteLine($"Import record '{importRecord}' requires unknown extern alias '{importRecord.TargetAssemblyAlias}'"); continue; } globalNamespace = (NamespaceSymbol)aliasSymbol.Target; } else { globalNamespace = compilation.GlobalNamespace; } var namespaceSymbol = BindNamespace(namespaceName, globalNamespace); if (namespaceSymbol is null) { // Namespace is unrecognized. The import may have been // valid in the original source but unnecessary. continue; // Don't add anything for this import. } if (!TryAddImport(importRecord.Alias, namespaceSymbol, usingsBuilder, usingAliases, binder, importRecord)) { continue; } break; } case ImportTargetKind.Assembly: // Handled in first pass (above). break; default: throw ExceptionUtilities.UnexpectedValue(importRecord.TargetKind); } } return Imports.Create(usingAliases.ToImmutableDictionary(), usingsBuilder.ToImmutableAndFree(), externs); } private static NamespaceSymbol? BindNamespace(string namespaceName, NamespaceSymbol globalNamespace) { NamespaceSymbol? namespaceSymbol = globalNamespace; foreach (var name in namespaceName.Split('.')) { var members = namespaceSymbol.GetMembers(name); namespaceSymbol = (members.Length == 1) ? members[0] as NamespaceSymbol : null; if (namespaceSymbol is null) { break; } } return namespaceSymbol; } private static bool TryAddImport( string? alias, NamespaceOrTypeSymbol targetSymbol, ArrayBuilder<NamespaceOrTypeAndUsingDirective> usingsBuilder, ImmutableDictionary<string, AliasAndUsingDirective>.Builder usingAliases, InContainerBinder binder, ImportRecord importRecord) { if (alias == null) { usingsBuilder.Add(new NamespaceOrTypeAndUsingDirective(targetSymbol, usingDirective: null, dependencies: default)); } else { if (!TryParseIdentifierNameSyntax(alias, out var aliasSyntax)) { Debug.WriteLine($"Import record '{importRecord}' has syntactically invalid alias '{alias}'"); return false; } var aliasSymbol = AliasSymbol.CreateCustomDebugInfoAlias(targetSymbol, aliasSyntax.Identifier, binder.ContainingMemberOrLambda, isExtern: false); usingAliases.Add(alias, new AliasAndUsingDirective(aliasSymbol, usingDirective: null)); } return true; } private static bool TryParseIdentifierNameSyntax(string name, [NotNullWhen(true)] out IdentifierNameSyntax? syntax) { if (name == MetadataReferenceProperties.GlobalAlias) { syntax = SyntaxFactory.IdentifierName(SyntaxFactory.Token(SyntaxKind.GlobalKeyword)); return true; } if (!SyntaxHelpers.TryParseDottedName(name, out var nameSyntax) || nameSyntax.Kind() != SyntaxKind.IdentifierName) { syntax = null; return false; } syntax = (IdentifierNameSyntax)nameSyntax; return true; } internal CommonMessageProvider MessageProvider { get { return Compilation.MessageProvider; } } private static DkmClrCompilationResultFlags GetLocalResultFlags(LocalSymbol local) { // CONSIDER: We might want to prevent the user from modifying pinned locals - // that's pretty dangerous. return local.IsConst ? DkmClrCompilationResultFlags.ReadOnlyResult : DkmClrCompilationResultFlags.None; } /// <summary> /// Generate the set of locals to use for binding. /// </summary> private static ImmutableArray<LocalSymbol> GetLocalsForBinding( ImmutableArray<LocalSymbol> locals, ImmutableArray<string> displayClassVariableNamesInOrder, ImmutableDictionary<string, DisplayClassVariable> displayClassVariables) { var builder = ArrayBuilder<LocalSymbol>.GetInstance(); foreach (var local in locals) { var name = local.Name; if (name == null) { continue; } if (GeneratedNameParser.GetKind(name) != GeneratedNameKind.None) { continue; } // Although Roslyn doesn't name synthesized locals unless they are well-known to EE, // Dev12 did so we need to skip them here. if (GeneratedNameParser.IsSynthesizedLocalName(name)) { continue; } builder.Add(local); } foreach (var variableName in displayClassVariableNamesInOrder) { var variable = displayClassVariables[variableName]; switch (variable.Kind) { case DisplayClassVariableKind.Local: case DisplayClassVariableKind.Parameter: builder.Add(new EEDisplayClassFieldLocalSymbol(variable)); break; } } return builder.ToImmutableAndFree(); } private static ImmutableArray<string> GetSourceMethodParametersInOrder( MethodSymbol method, MethodSymbol? sourceMethod) { var containingType = method.ContainingType; bool isIteratorOrAsyncMethod = IsDisplayClassType(containingType) && GeneratedNameParser.GetKind(containingType.Name) == GeneratedNameKind.StateMachineType; var parameterNamesInOrder = ArrayBuilder<string>.GetInstance(); // For version before .NET 4.5, we cannot find the sourceMethod properly: // The source method coincides with the original method in the case. // Therefore, for iterators and async state machines, we have to get parameters from the containingType. // This does not guarantee the proper order of parameters. if (isIteratorOrAsyncMethod && method == sourceMethod) { Debug.Assert(IsDisplayClassType(containingType)); foreach (var member in containingType.GetMembers()) { if (member.Kind != SymbolKind.Field) { continue; } var field = (FieldSymbol)member; var fieldName = field.Name; if (GeneratedNameParser.GetKind(fieldName) == GeneratedNameKind.None) { parameterNamesInOrder.Add(fieldName); } } } else { if (sourceMethod is object) { foreach (var p in sourceMethod.Parameters) { parameterNamesInOrder.Add(p.Name); } } } return parameterNamesInOrder.ToImmutableAndFree(); } /// <summary> /// Return a mapping of captured variables (parameters, locals, and /// "this") to locals. The mapping is needed to expose the original /// local identifiers (those from source) in the binder. /// </summary> private static void GetDisplayClassVariables( MethodSymbol method, ImmutableArray<LocalSymbol> locals, ImmutableSortedSet<int> inScopeHoistedLocalSlots, ImmutableArray<string> parameterNamesInOrder, out ImmutableArray<string> displayClassVariableNamesInOrder, out ImmutableDictionary<string, DisplayClassVariable> displayClassVariables) { // Calculate the shortest paths from locals to instances of display // classes. There should not be two instances of the same display // class immediately within any particular method. var displayClassInstances = ArrayBuilder<DisplayClassInstanceAndFields>.GetInstance(); foreach (var parameter in method.Parameters) { if (GeneratedNameParser.GetKind(parameter.Name) == GeneratedNameKind.TransparentIdentifier || IsDisplayClassParameter(parameter)) { var instance = new DisplayClassInstanceFromParameter(parameter); displayClassInstances.Add(new DisplayClassInstanceAndFields(instance)); } } if (IsDisplayClassType(method.ContainingType) && !method.IsStatic) { // Add "this" display class instance. var instance = new DisplayClassInstanceFromParameter(method.ThisParameter); displayClassInstances.Add(new DisplayClassInstanceAndFields(instance)); } var displayClassTypes = PooledHashSet<TypeSymbol>.GetInstance(); foreach (var instance in displayClassInstances) { displayClassTypes.Add(instance.Instance.Type); } // Find any additional display class instances. GetAdditionalDisplayClassInstances(displayClassTypes, displayClassInstances, startIndex: 0); // Add any display class instances from locals (these will contain any hoisted locals). // Locals are only added after finding all display class instances reachable from // parameters because locals may be null (temporary locals in async state machine // for instance) so we prefer parameters to locals. int startIndex = displayClassInstances.Count; foreach (var local in locals) { var name = local.Name; if (name != null && GeneratedNameParser.GetKind(name) == GeneratedNameKind.DisplayClassLocalOrField) { var localType = local.Type; if (localType is object && displayClassTypes.Add(localType)) { var instance = new DisplayClassInstanceFromLocal((EELocalSymbol)local); displayClassInstances.Add(new DisplayClassInstanceAndFields(instance)); } } } GetAdditionalDisplayClassInstances(displayClassTypes, displayClassInstances, startIndex); displayClassTypes.Free(); if (displayClassInstances.Any()) { var parameterNames = PooledHashSet<string>.GetInstance(); foreach (var name in parameterNamesInOrder) { parameterNames.Add(name); } // The locals are the set of all fields from the display classes. var displayClassVariableNamesInOrderBuilder = ArrayBuilder<string>.GetInstance(); var displayClassVariablesBuilder = PooledDictionary<string, DisplayClassVariable>.GetInstance(); foreach (var instance in displayClassInstances) { GetDisplayClassVariables( displayClassVariableNamesInOrderBuilder, displayClassVariablesBuilder, parameterNames, inScopeHoistedLocalSlots, instance); } displayClassVariableNamesInOrder = displayClassVariableNamesInOrderBuilder.ToImmutableAndFree(); displayClassVariables = displayClassVariablesBuilder.ToImmutableDictionary(); displayClassVariablesBuilder.Free(); parameterNames.Free(); } else { displayClassVariableNamesInOrder = ImmutableArray<string>.Empty; displayClassVariables = ImmutableDictionary<string, DisplayClassVariable>.Empty; } displayClassInstances.Free(); } private static void GetAdditionalDisplayClassInstances( HashSet<TypeSymbol> displayClassTypes, ArrayBuilder<DisplayClassInstanceAndFields> displayClassInstances, int startIndex) { // Find any additional display class instances breadth first. for (int i = startIndex; i < displayClassInstances.Count; i++) { GetDisplayClassInstances(displayClassTypes, displayClassInstances, displayClassInstances[i]); } } private static void GetDisplayClassInstances( HashSet<TypeSymbol> displayClassTypes, ArrayBuilder<DisplayClassInstanceAndFields> displayClassInstances, DisplayClassInstanceAndFields instance) { // Display class instance. The display class fields are variables. foreach (var member in instance.Type.GetMembers()) { if (member.Kind != SymbolKind.Field) { continue; } var field = (FieldSymbol)member; var fieldType = field.Type; var fieldName = field.Name; TryParseGeneratedName(fieldName, out var fieldKind, out var part); switch (fieldKind) { case GeneratedNameKind.DisplayClassLocalOrField: case GeneratedNameKind.TransparentIdentifier: break; case GeneratedNameKind.AnonymousTypeField: RoslynDebug.AssertNotNull(part); if (GeneratedNameParser.GetKind(part) != GeneratedNameKind.TransparentIdentifier) { continue; } break; case GeneratedNameKind.ThisProxyField: if (GeneratedNameParser.GetKind(fieldType.Name) != GeneratedNameKind.LambdaDisplayClass) { continue; } // Async lambda case. break; default: continue; } Debug.Assert(!field.IsStatic); // A hoisted local that is itself a display class instance. if (displayClassTypes.Add(fieldType)) { var other = instance.FromField(field); displayClassInstances.Add(other); } } } /// <summary> /// Returns true if the parameter is a synthesized parameter representing /// a display class instance (used to pass hoisted symbols to local functions). /// </summary> private static bool IsDisplayClassParameter(ParameterSymbol parameter) { var type = parameter.Type; var result = type.Kind == SymbolKind.NamedType && IsDisplayClassType((NamedTypeSymbol)type); Debug.Assert(!result || parameter.MetadataName == ""); return result; } private static void GetDisplayClassVariables( ArrayBuilder<string> displayClassVariableNamesInOrderBuilder, Dictionary<string, DisplayClassVariable> displayClassVariablesBuilder, HashSet<string> parameterNames, ImmutableSortedSet<int> inScopeHoistedLocalSlots, DisplayClassInstanceAndFields instance) { // Display class instance. The display class fields are variables. foreach (var member in instance.Type.GetMembers()) { if (member.Kind != SymbolKind.Field) { continue; } var field = (FieldSymbol)member; var fieldName = field.Name; REPARSE: DisplayClassVariableKind variableKind; string variableName; TryParseGeneratedName(fieldName, out var fieldKind, out var part); switch (fieldKind) { case GeneratedNameKind.AnonymousTypeField: RoslynDebug.AssertNotNull(part); Debug.Assert(fieldName == field.Name); // This only happens once. fieldName = part; goto REPARSE; case GeneratedNameKind.TransparentIdentifier: // A transparent identifier (field) in an anonymous type synthesized for a transparent identifier. Debug.Assert(!field.IsStatic); continue; case GeneratedNameKind.DisplayClassLocalOrField: // A local that is itself a display class instance. Debug.Assert(!field.IsStatic); continue; case GeneratedNameKind.HoistedLocalField: RoslynDebug.AssertNotNull(part); // Filter out hoisted locals that are known to be out-of-scope at the current IL offset. // Hoisted locals with invalid indices will be included since more information is better // than less in error scenarios. if (GeneratedNameParser.TryParseSlotIndex(fieldName, out int slotIndex) && !inScopeHoistedLocalSlots.Contains(slotIndex)) { continue; } variableName = part; variableKind = DisplayClassVariableKind.Local; Debug.Assert(!field.IsStatic); break; case GeneratedNameKind.ThisProxyField: // A reference to "this". variableName = ""; // Should not be referenced by name. variableKind = DisplayClassVariableKind.This; Debug.Assert(!field.IsStatic); break; case GeneratedNameKind.None: // A reference to a parameter or local. variableName = fieldName; variableKind = parameterNames.Contains(variableName) ? DisplayClassVariableKind.Parameter : DisplayClassVariableKind.Local; Debug.Assert(!field.IsStatic); break; default: continue; } if (displayClassVariablesBuilder.ContainsKey(variableName)) { // Only expecting duplicates for async state machine // fields (that should be at the top-level). Debug.Assert(displayClassVariablesBuilder[variableName].DisplayClassFields.Count() == 1); if (!instance.Fields.Any()) { // Prefer parameters over locals. Debug.Assert(instance.Instance is DisplayClassInstanceFromLocal); } else { Debug.Assert(instance.Fields.Count() >= 1); // greater depth Debug.Assert(variableKind == DisplayClassVariableKind.Parameter || variableKind == DisplayClassVariableKind.This); if (variableKind == DisplayClassVariableKind.Parameter && GeneratedNameParser.GetKind(instance.Type.Name) == GeneratedNameKind.LambdaDisplayClass) { displayClassVariablesBuilder[variableName] = instance.ToVariable(variableName, variableKind, field); } } } else if (variableKind != DisplayClassVariableKind.This || GeneratedNameParser.GetKind(instance.Type.ContainingType.Name) != GeneratedNameKind.LambdaDisplayClass) { // In async lambdas, the hoisted "this" field in the state machine type will point to the display class instance, if there is one. // In such cases, we want to add the display class "this" to the map instead (or nothing, if it lacks one). displayClassVariableNamesInOrderBuilder.Add(variableName); displayClassVariablesBuilder.Add(variableName, instance.ToVariable(variableName, variableKind, field)); } } } private static void TryParseGeneratedName(string name, out GeneratedNameKind kind, out string? part) { _ = GeneratedNameParser.TryParseGeneratedName(name, out kind, out int openBracketOffset, out int closeBracketOffset); switch (kind) { case GeneratedNameKind.AnonymousTypeField: case GeneratedNameKind.HoistedLocalField: part = name.Substring(openBracketOffset + 1, closeBracketOffset - openBracketOffset - 1); break; default: part = null; break; } } private static bool IsDisplayClassType(TypeSymbol type) { switch (GeneratedNameParser.GetKind(type.Name)) { case GeneratedNameKind.LambdaDisplayClass: case GeneratedNameKind.StateMachineType: return true; default: return false; } } internal static DisplayClassVariable GetThisProxy(ImmutableDictionary<string, DisplayClassVariable> displayClassVariables) { return displayClassVariables.Values.FirstOrDefault(v => v.Kind == DisplayClassVariableKind.This); } private static NamedTypeSymbol GetNonDisplayClassContainer(NamedTypeSymbol type) { // 1) Display class and state machine types are always nested within the types // that use them (so that they can access private members of those types). // 2) The native compiler used to produce nested display classes for nested lambdas, // so we may have to walk out more than one level. while (IsDisplayClassType(type)) { type = type.ContainingType!; } return type; } /// <summary> /// Identifies the method in which binding should occur. /// </summary> /// <param name="candidateSubstitutedSourceMethod"> /// The symbol of the method that is currently on top of the callstack, with /// EE type parameters substituted in place of the original type parameters. /// </param> /// <param name="sourceMethodMustBeInstance"> /// True if "this" is available via a display class in the current context. /// </param> /// <returns> /// If <paramref name="candidateSubstitutedSourceMethod"/> is compiler-generated, /// then we will attempt to determine which user-defined method caused it to be /// generated. For example, if <paramref name="candidateSubstitutedSourceMethod"/> /// is a state machine MoveNext method, then we will try to find the iterator or /// async method for which it was generated. If we are able to find the original /// method, then we will substitute in the EE type parameters. Otherwise, we will /// return <paramref name="candidateSubstitutedSourceMethod"/>. /// </returns> /// <remarks> /// In the event that the original method is overloaded, we may not be able to determine /// which overload actually corresponds to the state machine. In particular, we do not /// have information about the signature of the original method (i.e. number of parameters, /// parameter types and ref-kinds, return type). However, we conjecture that this /// level of uncertainty is acceptable, since parameters are managed by a separate binder /// in the synthesized binder chain and we have enough information to check the other method /// properties that are used during binding (e.g. static-ness, generic arity, type parameter /// constraints). /// </remarks> internal static MethodSymbol GetSubstitutedSourceMethod( MethodSymbol candidateSubstitutedSourceMethod, bool sourceMethodMustBeInstance) { var candidateSubstitutedSourceType = candidateSubstitutedSourceMethod.ContainingType; string? desiredMethodName; if (GeneratedNameParser.TryParseSourceMethodNameFromGeneratedName(candidateSubstitutedSourceType.Name, GeneratedNameKind.StateMachineType, out desiredMethodName) || GeneratedNameParser.TryParseSourceMethodNameFromGeneratedName(candidateSubstitutedSourceMethod.Name, GeneratedNameKind.LambdaMethod, out desiredMethodName) || GeneratedNameParser.TryParseSourceMethodNameFromGeneratedName(candidateSubstitutedSourceMethod.Name, GeneratedNameKind.LocalFunction, out desiredMethodName)) { // We could be in the MoveNext method of an async lambda. string? tempMethodName; if (GeneratedNameParser.TryParseSourceMethodNameFromGeneratedName(desiredMethodName, GeneratedNameKind.LambdaMethod, out tempMethodName) || GeneratedNameParser.TryParseSourceMethodNameFromGeneratedName(desiredMethodName, GeneratedNameKind.LocalFunction, out tempMethodName)) { desiredMethodName = tempMethodName; var containing = candidateSubstitutedSourceType.ContainingType; RoslynDebug.AssertNotNull(containing); if (GeneratedNameParser.GetKind(containing.Name) == GeneratedNameKind.LambdaDisplayClass) { candidateSubstitutedSourceType = containing; sourceMethodMustBeInstance = candidateSubstitutedSourceType.MemberNames.Select(GeneratedNameParser.GetKind).Contains(GeneratedNameKind.ThisProxyField); } } var desiredTypeParameters = candidateSubstitutedSourceType.OriginalDefinition.TypeParameters; // Type containing the original iterator, async, or lambda-containing method. var substitutedSourceType = GetNonDisplayClassContainer(candidateSubstitutedSourceType); foreach (var candidateMethod in substitutedSourceType.GetMembers().OfType<MethodSymbol>()) { if (IsViableSourceMethod(candidateMethod, desiredMethodName, desiredTypeParameters, sourceMethodMustBeInstance)) { return desiredTypeParameters.Length == 0 ? candidateMethod : candidateMethod.Construct(candidateSubstitutedSourceType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics); } } Debug.Fail("Why didn't we find a substituted source method for " + candidateSubstitutedSourceMethod + "?"); } return candidateSubstitutedSourceMethod; } private static bool IsViableSourceMethod( MethodSymbol candidateMethod, string desiredMethodName, ImmutableArray<TypeParameterSymbol> desiredTypeParameters, bool desiredMethodMustBeInstance) { return !candidateMethod.IsAbstract && !(desiredMethodMustBeInstance && candidateMethod.IsStatic) && candidateMethod.Name == desiredMethodName && HaveSameConstraints(candidateMethod.TypeParameters, desiredTypeParameters); } private static bool HaveSameConstraints(ImmutableArray<TypeParameterSymbol> candidateTypeParameters, ImmutableArray<TypeParameterSymbol> desiredTypeParameters) { int arity = candidateTypeParameters.Length; if (arity != desiredTypeParameters.Length) { return false; } if (arity == 0) { return true; } var indexedTypeParameters = IndexedTypeParameterSymbol.Take(arity); var candidateTypeMap = new TypeMap(candidateTypeParameters, indexedTypeParameters, allowAlpha: true); var desiredTypeMap = new TypeMap(desiredTypeParameters, indexedTypeParameters, allowAlpha: true); return MemberSignatureComparer.HaveSameConstraints(candidateTypeParameters, candidateTypeMap, desiredTypeParameters, desiredTypeMap); } [DebuggerDisplay("{GetDebuggerDisplay(), nq}")] private readonly struct DisplayClassInstanceAndFields { internal readonly DisplayClassInstance Instance; internal readonly ConsList<FieldSymbol> Fields; internal DisplayClassInstanceAndFields(DisplayClassInstance instance) : this(instance, ConsList<FieldSymbol>.Empty) { Debug.Assert(IsDisplayClassType(instance.Type) || GeneratedNameParser.GetKind(instance.Type.Name) == GeneratedNameKind.AnonymousType); } private DisplayClassInstanceAndFields(DisplayClassInstance instance, ConsList<FieldSymbol> fields) { Instance = instance; Fields = fields; } internal TypeSymbol Type => Fields.Any() ? Fields.Head.Type : Instance.Type; internal int Depth => Fields.Count(); internal DisplayClassInstanceAndFields FromField(FieldSymbol field) { Debug.Assert(IsDisplayClassType(field.Type) || GeneratedNameParser.GetKind(field.Type.Name) == GeneratedNameKind.AnonymousType); return new DisplayClassInstanceAndFields(Instance, Fields.Prepend(field)); } internal DisplayClassVariable ToVariable(string name, DisplayClassVariableKind kind, FieldSymbol field) { return new DisplayClassVariable(name, kind, Instance, Fields.Prepend(field)); } private string GetDebuggerDisplay() { return Instance.GetDebuggerDisplay(Fields); } } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Scripting/VisualBasic/xlf/VBScriptingResources.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="../VBScriptingResources.resx"> <body> <trans-unit id="LogoLine1"> <source>Microsoft (R) Visual Basic Interactive Compiler version {0}</source> <target state="translated">Compilatore Microsoft (R) Visual Basic Interactive versione {0}</target> <note /> </trans-unit> <trans-unit id="LogoLine2"> <source>Copyright (C) Microsoft Corporation. All rights reserved.</source> <target state="translated">Copyright (C) Microsoft Corporation. Tutti i diritti sono riservati.</target> <note /> </trans-unit> <trans-unit id="InteractiveHelp"> <source>Usage: vbi [options] [script-file.vbx] [-- script-arguments] If script-file is specified executes the script, otherwise launches an interactive REPL (Read Eval Print Loop). Options: /help Display this usage message (Short form: /?) /version Display the version and exit /reference:&lt;alias&gt;=&lt;file&gt; Reference metadata from the specified assembly file using the given alias (Short form: /r) /reference:&lt;file list&gt; Reference metadata from the specified assembly files (Short form: /r) /referencePath:&lt;path list&gt; List of paths where to look for metadata references specified as unrooted paths. (Short form: /rp) /using:&lt;namespace&gt; Define global namespace using (Short form: /u) /define:&lt;name&gt;=&lt;value&gt;,... Declare global conditional compilation symbol(s) (Short form: /d) @&lt;file&gt; Read response file for more options </source> <target state="translated">Sintassi: vbi [opzioni] [file-script.vbx] [-- argomenti-script] Esegue lo script se è specificato un valore per file-script; in caso contrario, avvia un REPL (Read Eval Print Loop) interattivo. Opzioni: /help Visualizza questo messaggio relativo alla sintassi. Forma breve: -? /version Visualizza la versione ed esce /reference:&lt;alias&gt;=&lt;file&gt; Crea un riferimento ai metadati dal file di assembly specificato usando l'alias specificato. Forma breve: /r /reference:&lt;elenco di file&gt; Crea un riferimento ai metadati dai file di assembly specificati. Forma breve: /r /referencePath:&lt;elenco di percorsi&gt; Elenco di percorsi in cui cercare i riferimenti ai metadati specificati come percorsi non completi. Forma breve: /rp /using:&lt;spazio dei nomi&gt; Definisce lo spazio dei nomi globale using. Forma breve: /u /define:&lt;nome&gt;=&lt;valore&gt;,... Dichiara i simboli di compilazione condizionale globali. Forma breve: /d @&lt;file&gt; Legge il file di risposta per altre opzioni </target> <note /> </trans-unit> <trans-unit id="ExceptionEscapeWithoutQuote"> <source>Cannot escape non-printable characters in Visual Basic notation unless quotes are used.</source> <target state="translated">Non è possibile usare caratteri di escape per caratteri non stampabili nella notazione Visual Basic a meno che non vengano usate le virgolette.</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="../VBScriptingResources.resx"> <body> <trans-unit id="LogoLine1"> <source>Microsoft (R) Visual Basic Interactive Compiler version {0}</source> <target state="translated">Compilatore Microsoft (R) Visual Basic Interactive versione {0}</target> <note /> </trans-unit> <trans-unit id="LogoLine2"> <source>Copyright (C) Microsoft Corporation. All rights reserved.</source> <target state="translated">Copyright (C) Microsoft Corporation. Tutti i diritti sono riservati.</target> <note /> </trans-unit> <trans-unit id="InteractiveHelp"> <source>Usage: vbi [options] [script-file.vbx] [-- script-arguments] If script-file is specified executes the script, otherwise launches an interactive REPL (Read Eval Print Loop). Options: /help Display this usage message (Short form: /?) /version Display the version and exit /reference:&lt;alias&gt;=&lt;file&gt; Reference metadata from the specified assembly file using the given alias (Short form: /r) /reference:&lt;file list&gt; Reference metadata from the specified assembly files (Short form: /r) /referencePath:&lt;path list&gt; List of paths where to look for metadata references specified as unrooted paths. (Short form: /rp) /using:&lt;namespace&gt; Define global namespace using (Short form: /u) /define:&lt;name&gt;=&lt;value&gt;,... Declare global conditional compilation symbol(s) (Short form: /d) @&lt;file&gt; Read response file for more options </source> <target state="translated">Sintassi: vbi [opzioni] [file-script.vbx] [-- argomenti-script] Esegue lo script se è specificato un valore per file-script; in caso contrario, avvia un REPL (Read Eval Print Loop) interattivo. Opzioni: /help Visualizza questo messaggio relativo alla sintassi. Forma breve: -? /version Visualizza la versione ed esce /reference:&lt;alias&gt;=&lt;file&gt; Crea un riferimento ai metadati dal file di assembly specificato usando l'alias specificato. Forma breve: /r /reference:&lt;elenco di file&gt; Crea un riferimento ai metadati dai file di assembly specificati. Forma breve: /r /referencePath:&lt;elenco di percorsi&gt; Elenco di percorsi in cui cercare i riferimenti ai metadati specificati come percorsi non completi. Forma breve: /rp /using:&lt;spazio dei nomi&gt; Definisce lo spazio dei nomi globale using. Forma breve: /u /define:&lt;nome&gt;=&lt;valore&gt;,... Dichiara i simboli di compilazione condizionale globali. Forma breve: /d @&lt;file&gt; Legge il file di risposta per altre opzioni </target> <note /> </trans-unit> <trans-unit id="ExceptionEscapeWithoutQuote"> <source>Cannot escape non-printable characters in Visual Basic notation unless quotes are used.</source> <target state="translated">Non è possibile usare caratteri di escape per caratteri non stampabili nella notazione Visual Basic a meno che non vengano usate le virgolette.</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./docs/features/dynamic-analysis.work.md
Dynamic Analysis =============== This feature enables instrumentation of binaries to collect information for dynamic analysis. -------------------- TODO: - Generate code to compute MVIDs less often than once per invoked method. - Synthesize helper types to contain fields for analysis payloads so that methods of generic types can be instrumented. - Accurately identify which methods are tests. - Integrate dynamic analysis instrumentation with lowering. - Verify that instrumentation covers constructor initializers and field initializers.
Dynamic Analysis =============== This feature enables instrumentation of binaries to collect information for dynamic analysis. -------------------- TODO: - Generate code to compute MVIDs less often than once per invoked method. - Synthesize helper types to contain fields for analysis payloads so that methods of generic types can be instrumented. - Accurately identify which methods are tests. - Integrate dynamic analysis instrumentation with lowering. - Verify that instrumentation covers constructor initializers and field initializers.
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Tools/Source/RunTests/RunTests.sln
 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.23107.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RunTests", "RunTests.csproj", "{1A3941F1-1E1F-4EF7-8064-7729C4C2E2AA}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {1A3941F1-1E1F-4EF7-8064-7729C4C2E2AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {1A3941F1-1E1F-4EF7-8064-7729C4C2E2AA}.Debug|Any CPU.Build.0 = Debug|Any CPU {1A3941F1-1E1F-4EF7-8064-7729C4C2E2AA}.Release|Any CPU.ActiveCfg = Release|Any CPU {1A3941F1-1E1F-4EF7-8064-7729C4C2E2AA}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal
 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.23107.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RunTests", "RunTests.csproj", "{1A3941F1-1E1F-4EF7-8064-7729C4C2E2AA}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {1A3941F1-1E1F-4EF7-8064-7729C4C2E2AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {1A3941F1-1E1F-4EF7-8064-7729C4C2E2AA}.Debug|Any CPU.Build.0 = Debug|Any CPU {1A3941F1-1E1F-4EF7-8064-7729C4C2E2AA}.Release|Any CPU.ActiveCfg = Release|Any CPU {1A3941F1-1E1F-4EF7-8064-7729C4C2E2AA}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/CodeStyle/Core/CodeFixes/FormattingCodeFixHelper.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.Text; #if CODE_STYLE using Formatter = Microsoft.CodeAnalysis.Formatting.FormatterHelper; using FormatterState = Microsoft.CodeAnalysis.Formatting.ISyntaxFormattingService; using OptionSet = Microsoft.CodeAnalysis.Diagnostics.AnalyzerConfigOptions; #else using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.Options; using FormatterState = Microsoft.CodeAnalysis.Workspace; #endif namespace Microsoft.CodeAnalysis { internal static class FormattingCodeFixHelper { internal static async Task<SyntaxTree> FixOneAsync(SyntaxTree syntaxTree, FormatterState formatterState, OptionSet options, Diagnostic diagnostic, CancellationToken cancellationToken) { // The span to format is the full line(s) containing the diagnostic var text = await syntaxTree.GetTextAsync(cancellationToken).ConfigureAwait(false); var diagnosticSpan = diagnostic.Location.SourceSpan; var diagnosticLinePositionSpan = text.Lines.GetLinePositionSpan(diagnosticSpan); var spanToFormat = TextSpan.FromBounds( text.Lines[diagnosticLinePositionSpan.Start.Line].Start, text.Lines[diagnosticLinePositionSpan.End.Line].End); var root = await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false); #if CODE_STYLE var formattedRoot = Formatter.Format(root, formatterState, new[] { spanToFormat }, options, Formatter.GetDefaultFormattingRules(formatterState), cancellationToken); #else var formattedRoot = Formatter.Format(root, spanToFormat, formatterState, options, cancellationToken); #endif return syntaxTree.WithRootAndOptions(formattedRoot, syntaxTree.Options); } } }
// 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.Text; #if CODE_STYLE using Formatter = Microsoft.CodeAnalysis.Formatting.FormatterHelper; using FormatterState = Microsoft.CodeAnalysis.Formatting.ISyntaxFormattingService; using OptionSet = Microsoft.CodeAnalysis.Diagnostics.AnalyzerConfigOptions; #else using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.Options; using FormatterState = Microsoft.CodeAnalysis.Workspace; #endif namespace Microsoft.CodeAnalysis { internal static class FormattingCodeFixHelper { internal static async Task<SyntaxTree> FixOneAsync(SyntaxTree syntaxTree, FormatterState formatterState, OptionSet options, Diagnostic diagnostic, CancellationToken cancellationToken) { // The span to format is the full line(s) containing the diagnostic var text = await syntaxTree.GetTextAsync(cancellationToken).ConfigureAwait(false); var diagnosticSpan = diagnostic.Location.SourceSpan; var diagnosticLinePositionSpan = text.Lines.GetLinePositionSpan(diagnosticSpan); var spanToFormat = TextSpan.FromBounds( text.Lines[diagnosticLinePositionSpan.Start.Line].Start, text.Lines[diagnosticLinePositionSpan.End.Line].End); var root = await syntaxTree.GetRootAsync(cancellationToken).ConfigureAwait(false); #if CODE_STYLE var formattedRoot = Formatter.Format(root, formatterState, new[] { spanToFormat }, options, Formatter.GetDefaultFormattingRules(formatterState), cancellationToken); #else var formattedRoot = Formatter.Format(root, spanToFormat, formatterState, options, cancellationToken); #endif return syntaxTree.WithRootAndOptions(formattedRoot, syntaxTree.Options); } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/CSharp/Portable/Lowering/AsyncRewriter/AsyncIteratorMethodToStateMachineRewriter.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 Microsoft.CodeAnalysis.CodeGen; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.PooledObjects; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp { /// <summary> /// Produces a MoveNext() method for an async-iterator method. /// Compared to an async method, this handles rewriting `yield return` (with states decreasing from -3) and /// `yield break`, and adds special handling for `try` to allow disposal. /// `await` is handled like in async methods (with states 0 and up). /// </summary> internal sealed class AsyncIteratorMethodToStateMachineRewriter : AsyncMethodToStateMachineRewriter { private readonly AsyncIteratorInfo _asyncIteratorInfo; /// <summary> /// Where should we jump to to continue the execution of disposal path. /// /// Initially, this is the method's return value label (<see cref="AsyncMethodToStateMachineRewriter._exprReturnLabel"/>). /// Inside a `try` or `catch` with a `finally`, we'll use the label directly preceding the `finally`. /// Inside a `try` or `catch` with an extracted `finally`, we will use the label preceding the extracted `finally`. /// Inside a `finally`, we'll have no/null label (disposal continues without a jump). /// </summary> private LabelSymbol _currentDisposalLabel; /// <summary> /// We use _exprReturnLabel for normal end of method (ie. no more values) and `yield break;`. /// We use _exprReturnLabelTrue for `yield return;`. /// </summary> private readonly LabelSymbol _exprReturnLabelTrue; /// <summary> /// States for `yield return` are decreasing from -3. /// </summary> private int _nextYieldReturnState = StateMachineStates.InitialAsyncIteratorStateMachine; // -3 internal AsyncIteratorMethodToStateMachineRewriter(MethodSymbol method, int methodOrdinal, AsyncMethodBuilderMemberCollection asyncMethodBuilderMemberCollection, AsyncIteratorInfo asyncIteratorInfo, SyntheticBoundNodeFactory F, FieldSymbol state, FieldSymbol builder, IReadOnlySet<Symbol> hoistedVariables, IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> nonReusableLocalProxies, SynthesizedLocalOrdinalsDispenser synthesizedLocalOrdinals, VariableSlotAllocator slotAllocatorOpt, int nextFreeHoistedLocalSlot, BindingDiagnosticBag diagnostics) : base(method, methodOrdinal, asyncMethodBuilderMemberCollection, F, state, builder, hoistedVariables, nonReusableLocalProxies, synthesizedLocalOrdinals, slotAllocatorOpt, nextFreeHoistedLocalSlot, diagnostics) { Debug.Assert(asyncIteratorInfo != null); _asyncIteratorInfo = asyncIteratorInfo; _currentDisposalLabel = _exprReturnLabel; _exprReturnLabelTrue = F.GenerateLabel("yieldReturn"); } protected override BoundStatement GenerateSetResultCall() { // ... _exprReturnLabel: ... // ... this.state = FinishedState; ... // if (this.combinedTokens != null) { this.combinedTokens.Dispose(); this.combinedTokens = null; } // for enumerables only // this.builder.Complete(); // this.promiseOfValueOrEnd.SetResult(false); // return; // _exprReturnLabelTrue: // this.promiseOfValueOrEnd.SetResult(true); // ... _exitLabel: ... // ... return; ... var builder = ArrayBuilder<BoundStatement>.GetInstance(); // if (this.combinedTokens != null) { this.combinedTokens.Dispose(); this.combinedTokens = null; } // for enumerables only AddDisposeCombinedTokensIfNeeded(builder); builder.AddRange( GenerateCompleteOnBuilder(), // this.promiseOfValueOrEnd.SetResult(false); generateSetResultOnPromise(false), F.Return(), F.Label(_exprReturnLabelTrue), // this.promiseOfValueOrEnd.SetResult(true); generateSetResultOnPromise(true)); return F.Block(builder.ToImmutableAndFree()); BoundExpressionStatement generateSetResultOnPromise(bool result) { // Produce: // this.promiseOfValueOrEnd.SetResult(result); BoundFieldAccess promiseField = F.InstanceField(_asyncIteratorInfo.PromiseOfValueOrEndField); return F.ExpressionStatement(F.Call(promiseField, _asyncIteratorInfo.SetResultMethod, F.Literal(result))); } } private BoundExpressionStatement GenerateCompleteOnBuilder() { // Produce: // this.builder.Complete(); return F.ExpressionStatement( F.Call( F.Field(F.This(), _asyncMethodBuilderField), _asyncMethodBuilderMemberCollection.SetResult, // AsyncIteratorMethodBuilder.Complete is the corresponding method to AsyncTaskMethodBuilder.SetResult ImmutableArray<BoundExpression>.Empty)); } private void AddDisposeCombinedTokensIfNeeded(ArrayBuilder<BoundStatement> builder) { // if (this.combinedTokens != null) { this.combinedTokens.Dispose(); this.combinedTokens = null; } // for enumerables only if (_asyncIteratorInfo.CombinedTokensField is object) { var combinedTokens = F.Field(F.This(), _asyncIteratorInfo.CombinedTokensField); TypeSymbol combinedTokensType = combinedTokens.Type; builder.Add( F.If(F.ObjectNotEqual(combinedTokens, F.Null(combinedTokensType)), thenClause: F.Block( F.ExpressionStatement(F.Call(combinedTokens, F.WellKnownMethod(WellKnownMember.System_Threading_CancellationTokenSource__Dispose))), F.Assignment(combinedTokens, F.Null(combinedTokensType))))); } } protected override BoundStatement GenerateSetExceptionCall(LocalSymbol exceptionLocal) { var builder = ArrayBuilder<BoundStatement>.GetInstance(); // if (this.combinedTokens != null) { this.combinedTokens.Dispose(); this.combinedTokens = null; } // for enumerables only AddDisposeCombinedTokensIfNeeded(builder); // this.builder.Complete(); builder.Add(GenerateCompleteOnBuilder()); // _promiseOfValueOrEnd.SetException(ex); builder.Add(F.ExpressionStatement(F.Call( F.InstanceField(_asyncIteratorInfo.PromiseOfValueOrEndField), _asyncIteratorInfo.SetExceptionMethod, F.Local(exceptionLocal)))); return F.Block(builder.ToImmutableAndFree()); } private BoundStatement GenerateJumpToCurrentDisposalLabel() { Debug.Assert(_currentDisposalLabel is object); return F.If( // if (disposeMode) F.InstanceField(_asyncIteratorInfo.DisposeModeField), // goto currentDisposalLabel; thenClause: F.Goto(_currentDisposalLabel)); } private BoundStatement AppendJumpToCurrentDisposalLabel(BoundStatement node) { Debug.Assert(_currentDisposalLabel is object); // Append: // if (disposeMode) goto currentDisposalLabel; return F.Block( node, GenerateJumpToCurrentDisposalLabel()); } protected override BoundBinaryOperator ShouldEnterFinallyBlock() { // We should skip the finally block when: // - the state is 0 or greater (we're suspending on an `await`) // - the state is -3, -4 or lower (we're suspending on a `yield return`) // We don't care about state = -2 (method already completed) // So we only want to enter the finally when the state is -1 return F.IntEqual(F.Local(cachedState), F.Literal(StateMachineStates.NotStartedStateMachine)); } #region Visitors /// <summary> /// Lower the body, adding an entry state (-3) at the start, /// so that we can differentiate an async-iterator that was never moved forward with MoveNextAsync() /// from one that is running (-1). /// Then we can guard against some bad usages of DisposeAsync. /// </summary> protected override BoundStatement VisitBody(BoundStatement body) { // Produce: // initialStateResumeLabel: // if (disposeMode) goto _exprReturnLabel; // this.state = cachedState = -1; // ... rewritten body var initialState = _nextYieldReturnState--; Debug.Assert(initialState == -3); AddState(initialState, out GeneratedLabelSymbol resumeLabel); var rewrittenBody = (BoundStatement)Visit(body); Debug.Assert(_exprReturnLabel.Equals(_currentDisposalLabel)); return F.Block( F.Label(resumeLabel), // initialStateResumeLabel: GenerateJumpToCurrentDisposalLabel(), // if (disposeMode) goto _exprReturnLabel; GenerateSetBothStates(StateMachineStates.NotStartedStateMachine), // this.state = cachedState = -1; rewrittenBody); } public override BoundNode VisitYieldReturnStatement(BoundYieldReturnStatement node) { // Produce: // _current = expression; // _state = <next_state>; // goto _exprReturnLabelTrue; // <next_state_label>: ; // <hidden sequence point> // this.state = cachedState = NotStartedStateMachine; // if (disposeMode) goto currentDisposalLabel; // Note: at label _exprReturnLabelTrue we have: // _promiseOfValueOrEnd.SetResult(true); // return; var stateNumber = _nextYieldReturnState--; AddState(stateNumber, out GeneratedLabelSymbol resumeLabel); var rewrittenExpression = (BoundExpression)Visit(node.Expression); var blockBuilder = ArrayBuilder<BoundStatement>.GetInstance(); blockBuilder.Add( // _current = expression; F.Assignment(F.InstanceField(_asyncIteratorInfo.CurrentField), rewrittenExpression)); blockBuilder.Add( // this.state = cachedState = stateForLabel GenerateSetBothStates(stateNumber)); blockBuilder.Add( // goto _exprReturnLabelTrue; F.Goto(_exprReturnLabelTrue)); blockBuilder.Add( // <next_state_label>: ; F.Label(resumeLabel)); blockBuilder.Add(F.HiddenSequencePoint()); blockBuilder.Add( // this.state = cachedState = NotStartedStateMachine GenerateSetBothStates(StateMachineStates.NotStartedStateMachine)); Debug.Assert(_currentDisposalLabel is object); // no yield return allowed inside a finally blockBuilder.Add( // if (disposeMode) goto currentDisposalLabel; GenerateJumpToCurrentDisposalLabel()); blockBuilder.Add( F.HiddenSequencePoint()); return F.Block(blockBuilder.ToImmutableAndFree()); } public override BoundNode VisitYieldBreakStatement(BoundYieldBreakStatement node) { Debug.Assert(_asyncIteratorInfo != null); // Produce: // disposeMode = true; // goto currentDisposalLabel; Debug.Assert(_currentDisposalLabel is object); // no yield break allowed inside a finally return F.Block( // disposeMode = true; SetDisposeMode(true), // goto currentDisposalLabel; F.Goto(_currentDisposalLabel)); } private BoundExpressionStatement SetDisposeMode(bool value) { return F.Assignment(F.InstanceField(_asyncIteratorInfo.DisposeModeField), F.Literal(value)); } /// <summary> /// An async-iterator state machine has a flag indicating "dispose mode". /// We enter dispose mode by calling DisposeAsync() when the state machine is paused on a `yield return`. /// DisposeAsync() will resume execution of the state machine from that state (using existing dispatch mechanism /// to restore execution from a given state, without executing other code to get there). /// /// From there, we don't want normal code flow: /// - from `yield return` within a try, we'll jump to its `finally` if it has one (or method exit) /// - after finishing a `finally` within a `finally`, we'll continue /// - after finishing a `finally` within a `try`, jump to the its `finally` if it has one (or method exit) /// /// Some `finally` clauses may have already been rewritten and extracted to a plain block (<see cref="AsyncExceptionHandlerRewriter"/>). /// In those cases, we saved the finally-entry label in <see cref="BoundTryStatement.FinallyLabelOpt"/>. /// </summary> public override BoundNode VisitTryStatement(BoundTryStatement node) { var savedDisposalLabel = _currentDisposalLabel; if (node.FinallyBlockOpt is object) { var finallyEntry = F.GenerateLabel("finallyEntry"); _currentDisposalLabel = finallyEntry; // Add finallyEntry label: // try // { // ... // finallyEntry: // } node = node.Update( tryBlock: F.Block(node.TryBlock, F.Label(finallyEntry)), node.CatchBlocks, node.FinallyBlockOpt, node.FinallyLabelOpt, node.PreferFaultHandler); } else if (node.FinallyLabelOpt is object) { _currentDisposalLabel = node.FinallyLabelOpt; } var result = (BoundStatement)base.VisitTryStatement(node); _currentDisposalLabel = savedDisposalLabel; if (node.FinallyBlockOpt != null && _currentDisposalLabel is object) { // Append: // if (disposeMode) goto currentDisposalLabel; result = AppendJumpToCurrentDisposalLabel(result); } // Note: we add this jump to extracted `finally` blocks as well, using `VisitExtractedFinallyBlock` below return result; } protected override BoundBlock VisitFinally(BoundBlock finallyBlock) { // within a finally, continuing disposal doesn't require any jump var savedDisposalLabel = _currentDisposalLabel; _currentDisposalLabel = null; var result = base.VisitFinally(finallyBlock); _currentDisposalLabel = savedDisposalLabel; return result; } /// <summary> /// Some `finally` clauses may have already been rewritten and extracted to a plain block (<see cref="AsyncExceptionHandlerRewriter"/>). /// The extracted block will have been wrapped as a <see cref="BoundExtractedFinallyBlock"/> so that we can process it as a `finally` block here. /// </summary> public override BoundNode VisitExtractedFinallyBlock(BoundExtractedFinallyBlock extractedFinally) { // Remove the wrapping and optionally append: // if (disposeMode) goto currentDisposalLabel; BoundStatement result = VisitFinally(extractedFinally.FinallyBlock); if (_currentDisposalLabel is object) { result = AppendJumpToCurrentDisposalLabel(result); } return result; } #endregion Visitors } }
// 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 Microsoft.CodeAnalysis.CodeGen; using Microsoft.CodeAnalysis.CSharp.Symbols; using Microsoft.CodeAnalysis.PooledObjects; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp { /// <summary> /// Produces a MoveNext() method for an async-iterator method. /// Compared to an async method, this handles rewriting `yield return` (with states decreasing from -3) and /// `yield break`, and adds special handling for `try` to allow disposal. /// `await` is handled like in async methods (with states 0 and up). /// </summary> internal sealed class AsyncIteratorMethodToStateMachineRewriter : AsyncMethodToStateMachineRewriter { private readonly AsyncIteratorInfo _asyncIteratorInfo; /// <summary> /// Where should we jump to to continue the execution of disposal path. /// /// Initially, this is the method's return value label (<see cref="AsyncMethodToStateMachineRewriter._exprReturnLabel"/>). /// Inside a `try` or `catch` with a `finally`, we'll use the label directly preceding the `finally`. /// Inside a `try` or `catch` with an extracted `finally`, we will use the label preceding the extracted `finally`. /// Inside a `finally`, we'll have no/null label (disposal continues without a jump). /// </summary> private LabelSymbol _currentDisposalLabel; /// <summary> /// We use _exprReturnLabel for normal end of method (ie. no more values) and `yield break;`. /// We use _exprReturnLabelTrue for `yield return;`. /// </summary> private readonly LabelSymbol _exprReturnLabelTrue; /// <summary> /// States for `yield return` are decreasing from -3. /// </summary> private int _nextYieldReturnState = StateMachineStates.InitialAsyncIteratorStateMachine; // -3 internal AsyncIteratorMethodToStateMachineRewriter(MethodSymbol method, int methodOrdinal, AsyncMethodBuilderMemberCollection asyncMethodBuilderMemberCollection, AsyncIteratorInfo asyncIteratorInfo, SyntheticBoundNodeFactory F, FieldSymbol state, FieldSymbol builder, IReadOnlySet<Symbol> hoistedVariables, IReadOnlyDictionary<Symbol, CapturedSymbolReplacement> nonReusableLocalProxies, SynthesizedLocalOrdinalsDispenser synthesizedLocalOrdinals, VariableSlotAllocator slotAllocatorOpt, int nextFreeHoistedLocalSlot, BindingDiagnosticBag diagnostics) : base(method, methodOrdinal, asyncMethodBuilderMemberCollection, F, state, builder, hoistedVariables, nonReusableLocalProxies, synthesizedLocalOrdinals, slotAllocatorOpt, nextFreeHoistedLocalSlot, diagnostics) { Debug.Assert(asyncIteratorInfo != null); _asyncIteratorInfo = asyncIteratorInfo; _currentDisposalLabel = _exprReturnLabel; _exprReturnLabelTrue = F.GenerateLabel("yieldReturn"); } protected override BoundStatement GenerateSetResultCall() { // ... _exprReturnLabel: ... // ... this.state = FinishedState; ... // if (this.combinedTokens != null) { this.combinedTokens.Dispose(); this.combinedTokens = null; } // for enumerables only // this.builder.Complete(); // this.promiseOfValueOrEnd.SetResult(false); // return; // _exprReturnLabelTrue: // this.promiseOfValueOrEnd.SetResult(true); // ... _exitLabel: ... // ... return; ... var builder = ArrayBuilder<BoundStatement>.GetInstance(); // if (this.combinedTokens != null) { this.combinedTokens.Dispose(); this.combinedTokens = null; } // for enumerables only AddDisposeCombinedTokensIfNeeded(builder); builder.AddRange( GenerateCompleteOnBuilder(), // this.promiseOfValueOrEnd.SetResult(false); generateSetResultOnPromise(false), F.Return(), F.Label(_exprReturnLabelTrue), // this.promiseOfValueOrEnd.SetResult(true); generateSetResultOnPromise(true)); return F.Block(builder.ToImmutableAndFree()); BoundExpressionStatement generateSetResultOnPromise(bool result) { // Produce: // this.promiseOfValueOrEnd.SetResult(result); BoundFieldAccess promiseField = F.InstanceField(_asyncIteratorInfo.PromiseOfValueOrEndField); return F.ExpressionStatement(F.Call(promiseField, _asyncIteratorInfo.SetResultMethod, F.Literal(result))); } } private BoundExpressionStatement GenerateCompleteOnBuilder() { // Produce: // this.builder.Complete(); return F.ExpressionStatement( F.Call( F.Field(F.This(), _asyncMethodBuilderField), _asyncMethodBuilderMemberCollection.SetResult, // AsyncIteratorMethodBuilder.Complete is the corresponding method to AsyncTaskMethodBuilder.SetResult ImmutableArray<BoundExpression>.Empty)); } private void AddDisposeCombinedTokensIfNeeded(ArrayBuilder<BoundStatement> builder) { // if (this.combinedTokens != null) { this.combinedTokens.Dispose(); this.combinedTokens = null; } // for enumerables only if (_asyncIteratorInfo.CombinedTokensField is object) { var combinedTokens = F.Field(F.This(), _asyncIteratorInfo.CombinedTokensField); TypeSymbol combinedTokensType = combinedTokens.Type; builder.Add( F.If(F.ObjectNotEqual(combinedTokens, F.Null(combinedTokensType)), thenClause: F.Block( F.ExpressionStatement(F.Call(combinedTokens, F.WellKnownMethod(WellKnownMember.System_Threading_CancellationTokenSource__Dispose))), F.Assignment(combinedTokens, F.Null(combinedTokensType))))); } } protected override BoundStatement GenerateSetExceptionCall(LocalSymbol exceptionLocal) { var builder = ArrayBuilder<BoundStatement>.GetInstance(); // if (this.combinedTokens != null) { this.combinedTokens.Dispose(); this.combinedTokens = null; } // for enumerables only AddDisposeCombinedTokensIfNeeded(builder); // this.builder.Complete(); builder.Add(GenerateCompleteOnBuilder()); // _promiseOfValueOrEnd.SetException(ex); builder.Add(F.ExpressionStatement(F.Call( F.InstanceField(_asyncIteratorInfo.PromiseOfValueOrEndField), _asyncIteratorInfo.SetExceptionMethod, F.Local(exceptionLocal)))); return F.Block(builder.ToImmutableAndFree()); } private BoundStatement GenerateJumpToCurrentDisposalLabel() { Debug.Assert(_currentDisposalLabel is object); return F.If( // if (disposeMode) F.InstanceField(_asyncIteratorInfo.DisposeModeField), // goto currentDisposalLabel; thenClause: F.Goto(_currentDisposalLabel)); } private BoundStatement AppendJumpToCurrentDisposalLabel(BoundStatement node) { Debug.Assert(_currentDisposalLabel is object); // Append: // if (disposeMode) goto currentDisposalLabel; return F.Block( node, GenerateJumpToCurrentDisposalLabel()); } protected override BoundBinaryOperator ShouldEnterFinallyBlock() { // We should skip the finally block when: // - the state is 0 or greater (we're suspending on an `await`) // - the state is -3, -4 or lower (we're suspending on a `yield return`) // We don't care about state = -2 (method already completed) // So we only want to enter the finally when the state is -1 return F.IntEqual(F.Local(cachedState), F.Literal(StateMachineStates.NotStartedStateMachine)); } #region Visitors /// <summary> /// Lower the body, adding an entry state (-3) at the start, /// so that we can differentiate an async-iterator that was never moved forward with MoveNextAsync() /// from one that is running (-1). /// Then we can guard against some bad usages of DisposeAsync. /// </summary> protected override BoundStatement VisitBody(BoundStatement body) { // Produce: // initialStateResumeLabel: // if (disposeMode) goto _exprReturnLabel; // this.state = cachedState = -1; // ... rewritten body var initialState = _nextYieldReturnState--; Debug.Assert(initialState == -3); AddState(initialState, out GeneratedLabelSymbol resumeLabel); var rewrittenBody = (BoundStatement)Visit(body); Debug.Assert(_exprReturnLabel.Equals(_currentDisposalLabel)); return F.Block( F.Label(resumeLabel), // initialStateResumeLabel: GenerateJumpToCurrentDisposalLabel(), // if (disposeMode) goto _exprReturnLabel; GenerateSetBothStates(StateMachineStates.NotStartedStateMachine), // this.state = cachedState = -1; rewrittenBody); } public override BoundNode VisitYieldReturnStatement(BoundYieldReturnStatement node) { // Produce: // _current = expression; // _state = <next_state>; // goto _exprReturnLabelTrue; // <next_state_label>: ; // <hidden sequence point> // this.state = cachedState = NotStartedStateMachine; // if (disposeMode) goto currentDisposalLabel; // Note: at label _exprReturnLabelTrue we have: // _promiseOfValueOrEnd.SetResult(true); // return; var stateNumber = _nextYieldReturnState--; AddState(stateNumber, out GeneratedLabelSymbol resumeLabel); var rewrittenExpression = (BoundExpression)Visit(node.Expression); var blockBuilder = ArrayBuilder<BoundStatement>.GetInstance(); blockBuilder.Add( // _current = expression; F.Assignment(F.InstanceField(_asyncIteratorInfo.CurrentField), rewrittenExpression)); blockBuilder.Add( // this.state = cachedState = stateForLabel GenerateSetBothStates(stateNumber)); blockBuilder.Add( // goto _exprReturnLabelTrue; F.Goto(_exprReturnLabelTrue)); blockBuilder.Add( // <next_state_label>: ; F.Label(resumeLabel)); blockBuilder.Add(F.HiddenSequencePoint()); blockBuilder.Add( // this.state = cachedState = NotStartedStateMachine GenerateSetBothStates(StateMachineStates.NotStartedStateMachine)); Debug.Assert(_currentDisposalLabel is object); // no yield return allowed inside a finally blockBuilder.Add( // if (disposeMode) goto currentDisposalLabel; GenerateJumpToCurrentDisposalLabel()); blockBuilder.Add( F.HiddenSequencePoint()); return F.Block(blockBuilder.ToImmutableAndFree()); } public override BoundNode VisitYieldBreakStatement(BoundYieldBreakStatement node) { Debug.Assert(_asyncIteratorInfo != null); // Produce: // disposeMode = true; // goto currentDisposalLabel; Debug.Assert(_currentDisposalLabel is object); // no yield break allowed inside a finally return F.Block( // disposeMode = true; SetDisposeMode(true), // goto currentDisposalLabel; F.Goto(_currentDisposalLabel)); } private BoundExpressionStatement SetDisposeMode(bool value) { return F.Assignment(F.InstanceField(_asyncIteratorInfo.DisposeModeField), F.Literal(value)); } /// <summary> /// An async-iterator state machine has a flag indicating "dispose mode". /// We enter dispose mode by calling DisposeAsync() when the state machine is paused on a `yield return`. /// DisposeAsync() will resume execution of the state machine from that state (using existing dispatch mechanism /// to restore execution from a given state, without executing other code to get there). /// /// From there, we don't want normal code flow: /// - from `yield return` within a try, we'll jump to its `finally` if it has one (or method exit) /// - after finishing a `finally` within a `finally`, we'll continue /// - after finishing a `finally` within a `try`, jump to the its `finally` if it has one (or method exit) /// /// Some `finally` clauses may have already been rewritten and extracted to a plain block (<see cref="AsyncExceptionHandlerRewriter"/>). /// In those cases, we saved the finally-entry label in <see cref="BoundTryStatement.FinallyLabelOpt"/>. /// </summary> public override BoundNode VisitTryStatement(BoundTryStatement node) { var savedDisposalLabel = _currentDisposalLabel; if (node.FinallyBlockOpt is object) { var finallyEntry = F.GenerateLabel("finallyEntry"); _currentDisposalLabel = finallyEntry; // Add finallyEntry label: // try // { // ... // finallyEntry: // } node = node.Update( tryBlock: F.Block(node.TryBlock, F.Label(finallyEntry)), node.CatchBlocks, node.FinallyBlockOpt, node.FinallyLabelOpt, node.PreferFaultHandler); } else if (node.FinallyLabelOpt is object) { _currentDisposalLabel = node.FinallyLabelOpt; } var result = (BoundStatement)base.VisitTryStatement(node); _currentDisposalLabel = savedDisposalLabel; if (node.FinallyBlockOpt != null && _currentDisposalLabel is object) { // Append: // if (disposeMode) goto currentDisposalLabel; result = AppendJumpToCurrentDisposalLabel(result); } // Note: we add this jump to extracted `finally` blocks as well, using `VisitExtractedFinallyBlock` below return result; } protected override BoundBlock VisitFinally(BoundBlock finallyBlock) { // within a finally, continuing disposal doesn't require any jump var savedDisposalLabel = _currentDisposalLabel; _currentDisposalLabel = null; var result = base.VisitFinally(finallyBlock); _currentDisposalLabel = savedDisposalLabel; return result; } /// <summary> /// Some `finally` clauses may have already been rewritten and extracted to a plain block (<see cref="AsyncExceptionHandlerRewriter"/>). /// The extracted block will have been wrapped as a <see cref="BoundExtractedFinallyBlock"/> so that we can process it as a `finally` block here. /// </summary> public override BoundNode VisitExtractedFinallyBlock(BoundExtractedFinallyBlock extractedFinally) { // Remove the wrapping and optionally append: // if (disposeMode) goto currentDisposalLabel; BoundStatement result = VisitFinally(extractedFinally.FinallyBlock); if (_currentDisposalLabel is object) { result = AppendJumpToCurrentDisposalLabel(result); } return result; } #endregion Visitors } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/EditorFeatures/Test/CodeGeneration/AbstractCodeGenerationTests.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.CodeGeneration; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editing; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Microsoft.CodeAnalysis.VisualBasic.Syntax; using Microsoft.VisualStudio.Composition; using Microsoft.VisualStudio.LanguageServices; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.UnitTests.CodeGeneration { [UseExportProvider] public abstract class AbstractCodeGenerationTests { private static SyntaxNode Simplify( AdhocWorkspace workspace, SyntaxNode syntaxNode, string languageName) { var projectId = ProjectId.CreateNewId(); var project = workspace.CurrentSolution .AddProject(projectId, languageName, $"{languageName}.dll", languageName).GetProject(projectId); var normalizedSyntax = syntaxNode.NormalizeWhitespace().ToFullString(); var document = project.AddMetadataReference(TestMetadata.Net451.mscorlib) .AddDocument("Fake Document", SourceText.From(normalizedSyntax)); var annotatedDocument = document.WithSyntaxRoot( document.GetSyntaxRootAsync().Result.WithAdditionalAnnotations(Simplification.Simplifier.Annotation)); var simplifiedDocument = Simplification.Simplifier.ReduceAsync(annotatedDocument).Result; var rootNode = simplifiedDocument.GetSyntaxRootAsync().Result; return rootNode; } private static SyntaxNode WrapExpressionInBoilerplate(SyntaxNode expression, SyntaxGenerator codeDefFactory) { return codeDefFactory.CompilationUnit( codeDefFactory.NamespaceImportDeclaration(codeDefFactory.IdentifierName("System")), codeDefFactory.ClassDeclaration( "C", members: new[] { codeDefFactory.MethodDeclaration( "Dummy", returnType: null, statements: new[] { codeDefFactory.LocalDeclarationStatement("test", expression) }) }) ); } internal static void Test( Func<SyntaxGenerator, SyntaxNode> nodeCreator, string cs, string csSimple, string vb, string vbSimple) { Assert.True(cs != null || csSimple != null || vb != null || vbSimple != null, $"At least one of {nameof(cs)}, {nameof(csSimple)}, {nameof(vb)}, {nameof(vbSimple)} must be provided"); using var workspace = new AdhocWorkspace(); if (cs != null || csSimple != null) { var codeDefFactory = workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetService<SyntaxGenerator>(); var node = nodeCreator(codeDefFactory); node = node.NormalizeWhitespace(); if (cs != null) { TokenUtilities.AssertTokensEqual(cs, node.ToFullString(), LanguageNames.CSharp); } if (csSimple != null) { var simplifiedRootNode = Simplify(workspace, WrapExpressionInBoilerplate(node, codeDefFactory), LanguageNames.CSharp); var expression = simplifiedRootNode.DescendantNodes().OfType<EqualsValueClauseSyntax>().First().Value; TokenUtilities.AssertTokensEqual(csSimple, expression.NormalizeWhitespace().ToFullString(), LanguageNames.CSharp); } } if (vb != null || vbSimple != null) { var codeDefFactory = workspace.Services.GetLanguageServices(LanguageNames.VisualBasic).GetService<SyntaxGenerator>(); var node = nodeCreator(codeDefFactory); node = node.NormalizeWhitespace(); if (vb != null) { TokenUtilities.AssertTokensEqual(vb, node.ToFullString(), LanguageNames.VisualBasic); } if (vbSimple != null) { var simplifiedRootNode = Simplify(workspace, WrapExpressionInBoilerplate(node, codeDefFactory), LanguageNames.VisualBasic); var expression = simplifiedRootNode.DescendantNodes().OfType<EqualsValueSyntax>().First().Value; TokenUtilities.AssertTokensEqual(vbSimple, expression.NormalizeWhitespace().ToFullString(), LanguageNames.VisualBasic); } } } protected static ITypeSymbol CreateClass(string name) { return CodeGenerationSymbolFactory.CreateNamedTypeSymbol( attributes: default, accessibility: default, modifiers: default, TypeKind.Class, 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; using System.Linq; using Microsoft.CodeAnalysis.CodeGeneration; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editing; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Microsoft.CodeAnalysis.VisualBasic.Syntax; using Microsoft.VisualStudio.Composition; using Microsoft.VisualStudio.LanguageServices; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.UnitTests.CodeGeneration { [UseExportProvider] public abstract class AbstractCodeGenerationTests { private static SyntaxNode Simplify( AdhocWorkspace workspace, SyntaxNode syntaxNode, string languageName) { var projectId = ProjectId.CreateNewId(); var project = workspace.CurrentSolution .AddProject(projectId, languageName, $"{languageName}.dll", languageName).GetProject(projectId); var normalizedSyntax = syntaxNode.NormalizeWhitespace().ToFullString(); var document = project.AddMetadataReference(TestMetadata.Net451.mscorlib) .AddDocument("Fake Document", SourceText.From(normalizedSyntax)); var annotatedDocument = document.WithSyntaxRoot( document.GetSyntaxRootAsync().Result.WithAdditionalAnnotations(Simplification.Simplifier.Annotation)); var simplifiedDocument = Simplification.Simplifier.ReduceAsync(annotatedDocument).Result; var rootNode = simplifiedDocument.GetSyntaxRootAsync().Result; return rootNode; } private static SyntaxNode WrapExpressionInBoilerplate(SyntaxNode expression, SyntaxGenerator codeDefFactory) { return codeDefFactory.CompilationUnit( codeDefFactory.NamespaceImportDeclaration(codeDefFactory.IdentifierName("System")), codeDefFactory.ClassDeclaration( "C", members: new[] { codeDefFactory.MethodDeclaration( "Dummy", returnType: null, statements: new[] { codeDefFactory.LocalDeclarationStatement("test", expression) }) }) ); } internal static void Test( Func<SyntaxGenerator, SyntaxNode> nodeCreator, string cs, string csSimple, string vb, string vbSimple) { Assert.True(cs != null || csSimple != null || vb != null || vbSimple != null, $"At least one of {nameof(cs)}, {nameof(csSimple)}, {nameof(vb)}, {nameof(vbSimple)} must be provided"); using var workspace = new AdhocWorkspace(); if (cs != null || csSimple != null) { var codeDefFactory = workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetService<SyntaxGenerator>(); var node = nodeCreator(codeDefFactory); node = node.NormalizeWhitespace(); if (cs != null) { TokenUtilities.AssertTokensEqual(cs, node.ToFullString(), LanguageNames.CSharp); } if (csSimple != null) { var simplifiedRootNode = Simplify(workspace, WrapExpressionInBoilerplate(node, codeDefFactory), LanguageNames.CSharp); var expression = simplifiedRootNode.DescendantNodes().OfType<EqualsValueClauseSyntax>().First().Value; TokenUtilities.AssertTokensEqual(csSimple, expression.NormalizeWhitespace().ToFullString(), LanguageNames.CSharp); } } if (vb != null || vbSimple != null) { var codeDefFactory = workspace.Services.GetLanguageServices(LanguageNames.VisualBasic).GetService<SyntaxGenerator>(); var node = nodeCreator(codeDefFactory); node = node.NormalizeWhitespace(); if (vb != null) { TokenUtilities.AssertTokensEqual(vb, node.ToFullString(), LanguageNames.VisualBasic); } if (vbSimple != null) { var simplifiedRootNode = Simplify(workspace, WrapExpressionInBoilerplate(node, codeDefFactory), LanguageNames.VisualBasic); var expression = simplifiedRootNode.DescendantNodes().OfType<EqualsValueSyntax>().First().Value; TokenUtilities.AssertTokensEqual(vbSimple, expression.NormalizeWhitespace().ToFullString(), LanguageNames.VisualBasic); } } } protected static ITypeSymbol CreateClass(string name) { return CodeGenerationSymbolFactory.CreateNamedTypeSymbol( attributes: default, accessibility: default, modifiers: default, TypeKind.Class, name); } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Analyzers/Core/CodeFixes/NewLines/ConsecutiveStatementPlacement/ConsecutiveStatementPlacementCodeFixProvider.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.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeActions; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Editing; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Shared.Extensions; namespace Microsoft.CodeAnalysis.NewLines.ConsecutiveStatementPlacement { [ExportCodeFixProvider(LanguageNames.CSharp, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.ConsecutiveStatementPlacement), Shared] internal sealed class ConsecutiveStatementPlacementCodeFixProvider : CodeFixProvider { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public ConsecutiveStatementPlacementCodeFixProvider() { } public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(IDEDiagnosticIds.ConsecutiveStatementPlacementDiagnosticId); public override Task RegisterCodeFixesAsync(CodeFixContext context) { var document = context.Document; var diagnostic = context.Diagnostics.First(); context.RegisterCodeFix(new MyCodeAction( c => UpdateDocumentAsync(document, diagnostic, c)), context.Diagnostics); return Task.CompletedTask; } private static Task<Document> UpdateDocumentAsync(Document document, Diagnostic diagnostic, CancellationToken cancellationToken) => FixAllAsync(document, ImmutableArray.Create(diagnostic), cancellationToken); public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) { var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); #if CODE_STYLE var options = document.Project.AnalyzerOptions.GetAnalyzerOptionSet(root.SyntaxTree, cancellationToken); #else var options = await document.GetOptionsAsync(cancellationToken).ConfigureAwait(false); #endif var newLine = options.GetOption(FormattingOptions2.NewLine, document.Project.Language); var generator = document.GetRequiredLanguageService<SyntaxGeneratorInternal>(); var endOfLineTrivia = generator.EndOfLine(newLine); var nextTokens = diagnostics.Select(d => d.AdditionalLocations[0].FindToken(cancellationToken)); var newRoot = root.ReplaceTokens( nextTokens, (original, current) => current.WithLeadingTrivia(current.LeadingTrivia.Insert(0, endOfLineTrivia))); return document.WithSyntaxRoot(newRoot); } public override FixAllProvider GetFixAllProvider() => FixAllProvider.Create(async (context, document, diagnostics) => await FixAllAsync(document, diagnostics, context.CancellationToken).ConfigureAwait(false)); private class MyCodeAction : CustomCodeActions.DocumentChangeAction { public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument) : base(CodeFixesResources.Add_blank_line_after_block, createChangedDocument, CodeFixesResources.Add_blank_line_after_block) { } } } }
// 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.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis.CodeActions; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Editing; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Shared.Extensions; namespace Microsoft.CodeAnalysis.NewLines.ConsecutiveStatementPlacement { [ExportCodeFixProvider(LanguageNames.CSharp, LanguageNames.VisualBasic, Name = PredefinedCodeFixProviderNames.ConsecutiveStatementPlacement), Shared] internal sealed class ConsecutiveStatementPlacementCodeFixProvider : CodeFixProvider { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public ConsecutiveStatementPlacementCodeFixProvider() { } public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(IDEDiagnosticIds.ConsecutiveStatementPlacementDiagnosticId); public override Task RegisterCodeFixesAsync(CodeFixContext context) { var document = context.Document; var diagnostic = context.Diagnostics.First(); context.RegisterCodeFix(new MyCodeAction( c => UpdateDocumentAsync(document, diagnostic, c)), context.Diagnostics); return Task.CompletedTask; } private static Task<Document> UpdateDocumentAsync(Document document, Diagnostic diagnostic, CancellationToken cancellationToken) => FixAllAsync(document, ImmutableArray.Create(diagnostic), cancellationToken); public static async Task<Document> FixAllAsync(Document document, ImmutableArray<Diagnostic> diagnostics, CancellationToken cancellationToken) { var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); #if CODE_STYLE var options = document.Project.AnalyzerOptions.GetAnalyzerOptionSet(root.SyntaxTree, cancellationToken); #else var options = await document.GetOptionsAsync(cancellationToken).ConfigureAwait(false); #endif var newLine = options.GetOption(FormattingOptions2.NewLine, document.Project.Language); var generator = document.GetRequiredLanguageService<SyntaxGeneratorInternal>(); var endOfLineTrivia = generator.EndOfLine(newLine); var nextTokens = diagnostics.Select(d => d.AdditionalLocations[0].FindToken(cancellationToken)); var newRoot = root.ReplaceTokens( nextTokens, (original, current) => current.WithLeadingTrivia(current.LeadingTrivia.Insert(0, endOfLineTrivia))); return document.WithSyntaxRoot(newRoot); } public override FixAllProvider GetFixAllProvider() => FixAllProvider.Create(async (context, document, diagnostics) => await FixAllAsync(document, diagnostics, context.CancellationToken).ConfigureAwait(false)); private class MyCodeAction : CustomCodeActions.DocumentChangeAction { public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument) : base(CodeFixesResources.Add_blank_line_after_block, createChangedDocument, CodeFixesResources.Add_blank_line_after_block) { } } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/CSharp/Portable/MakeMethodSynchronous/CSharpMakeMethodSynchronousCodeFixProvider.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.Composition; using System.Diagnostics.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.MakeMethodSynchronous; using Microsoft.CodeAnalysis.Shared.Extensions; using static Microsoft.CodeAnalysis.MakeMethodAsynchronous.AbstractMakeMethodAsynchronousCodeFixProvider; namespace Microsoft.CodeAnalysis.CSharp.MakeMethodSynchronous { [ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.MakeMethodSynchronous), Shared] [ExtensionOrder(After = PredefinedCodeFixProviderNames.AddImport)] internal class CSharpMakeMethodSynchronousCodeFixProvider : AbstractMakeMethodSynchronousCodeFixProvider { private const string CS1998 = nameof(CS1998); // This async method lacks 'await' operators and will run synchronously. [ImportingConstructor] [SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification = "Used in test code: https://github.com/dotnet/roslyn/issues/42814")] public CSharpMakeMethodSynchronousCodeFixProvider() { } public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(CS1998); protected override bool IsAsyncSupportingFunctionSyntax(SyntaxNode node) => node.IsAsyncSupportingFunctionSyntax(); protected override SyntaxNode RemoveAsyncTokenAndFixReturnType(IMethodSymbol methodSymbolOpt, SyntaxNode node, KnownTypes knownTypes) { switch (node) { case MethodDeclarationSyntax method: return FixMethod(methodSymbolOpt, method, knownTypes); case LocalFunctionStatementSyntax localFunction: return FixLocalFunction(methodSymbolOpt, localFunction, knownTypes); case AnonymousMethodExpressionSyntax method: return RemoveAsyncModifierHelpers.WithoutAsyncModifier(method); case ParenthesizedLambdaExpressionSyntax lambda: return RemoveAsyncModifierHelpers.WithoutAsyncModifier(lambda); case SimpleLambdaExpressionSyntax lambda: return RemoveAsyncModifierHelpers.WithoutAsyncModifier(lambda); default: return node; } } private static SyntaxNode FixMethod(IMethodSymbol methodSymbol, MethodDeclarationSyntax method, KnownTypes knownTypes) { var newReturnType = FixMethodReturnType(methodSymbol, method.ReturnType, knownTypes); return RemoveAsyncModifierHelpers.WithoutAsyncModifier(method, newReturnType); } private static SyntaxNode FixLocalFunction(IMethodSymbol methodSymbol, LocalFunctionStatementSyntax localFunction, KnownTypes knownTypes) { var newReturnType = FixMethodReturnType(methodSymbol, localFunction.ReturnType, knownTypes); return RemoveAsyncModifierHelpers.WithoutAsyncModifier(localFunction, newReturnType); } private static TypeSyntax FixMethodReturnType(IMethodSymbol methodSymbol, TypeSyntax returnTypeSyntax, KnownTypes knownTypes) { var newReturnType = returnTypeSyntax; var returnType = methodSymbol.ReturnType; if (returnType.OriginalDefinition.Equals(knownTypes._taskType)) { // If the return type is Task, then make the new return type "void". newReturnType = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword)).WithTriviaFrom(returnTypeSyntax); } else if (returnType.OriginalDefinition.Equals(knownTypes._taskOfTType)) { // If the return type is Task<T>, then make the new return type "T". newReturnType = returnType.GetTypeArguments()[0].GenerateTypeSyntax().WithTriviaFrom(returnTypeSyntax); } else if (returnType.OriginalDefinition.Equals(knownTypes._iAsyncEnumerableOfTTypeOpt)) { // If the return type is IAsyncEnumerable<T>, then make the new return type IEnumerable<T>. newReturnType = knownTypes._iEnumerableOfTType.Construct(methodSymbol.ReturnType.GetTypeArguments()[0]).GenerateTypeSyntax(); } else if (returnType.OriginalDefinition.Equals(knownTypes._iAsyncEnumeratorOfTTypeOpt)) { // If the return type is IAsyncEnumerator<T>, then make the new return type IEnumerator<T>. newReturnType = knownTypes._iEnumeratorOfTType.Construct(methodSymbol.ReturnType.GetTypeArguments()[0]).GenerateTypeSyntax(); } return newReturnType; } } }
// 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.Composition; using System.Diagnostics.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.MakeMethodSynchronous; using Microsoft.CodeAnalysis.Shared.Extensions; using static Microsoft.CodeAnalysis.MakeMethodAsynchronous.AbstractMakeMethodAsynchronousCodeFixProvider; namespace Microsoft.CodeAnalysis.CSharp.MakeMethodSynchronous { [ExportCodeFixProvider(LanguageNames.CSharp, Name = PredefinedCodeFixProviderNames.MakeMethodSynchronous), Shared] [ExtensionOrder(After = PredefinedCodeFixProviderNames.AddImport)] internal class CSharpMakeMethodSynchronousCodeFixProvider : AbstractMakeMethodSynchronousCodeFixProvider { private const string CS1998 = nameof(CS1998); // This async method lacks 'await' operators and will run synchronously. [ImportingConstructor] [SuppressMessage("RoslynDiagnosticsReliability", "RS0033:Importing constructor should be [Obsolete]", Justification = "Used in test code: https://github.com/dotnet/roslyn/issues/42814")] public CSharpMakeMethodSynchronousCodeFixProvider() { } public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(CS1998); protected override bool IsAsyncSupportingFunctionSyntax(SyntaxNode node) => node.IsAsyncSupportingFunctionSyntax(); protected override SyntaxNode RemoveAsyncTokenAndFixReturnType(IMethodSymbol methodSymbolOpt, SyntaxNode node, KnownTypes knownTypes) { switch (node) { case MethodDeclarationSyntax method: return FixMethod(methodSymbolOpt, method, knownTypes); case LocalFunctionStatementSyntax localFunction: return FixLocalFunction(methodSymbolOpt, localFunction, knownTypes); case AnonymousMethodExpressionSyntax method: return RemoveAsyncModifierHelpers.WithoutAsyncModifier(method); case ParenthesizedLambdaExpressionSyntax lambda: return RemoveAsyncModifierHelpers.WithoutAsyncModifier(lambda); case SimpleLambdaExpressionSyntax lambda: return RemoveAsyncModifierHelpers.WithoutAsyncModifier(lambda); default: return node; } } private static SyntaxNode FixMethod(IMethodSymbol methodSymbol, MethodDeclarationSyntax method, KnownTypes knownTypes) { var newReturnType = FixMethodReturnType(methodSymbol, method.ReturnType, knownTypes); return RemoveAsyncModifierHelpers.WithoutAsyncModifier(method, newReturnType); } private static SyntaxNode FixLocalFunction(IMethodSymbol methodSymbol, LocalFunctionStatementSyntax localFunction, KnownTypes knownTypes) { var newReturnType = FixMethodReturnType(methodSymbol, localFunction.ReturnType, knownTypes); return RemoveAsyncModifierHelpers.WithoutAsyncModifier(localFunction, newReturnType); } private static TypeSyntax FixMethodReturnType(IMethodSymbol methodSymbol, TypeSyntax returnTypeSyntax, KnownTypes knownTypes) { var newReturnType = returnTypeSyntax; var returnType = methodSymbol.ReturnType; if (returnType.OriginalDefinition.Equals(knownTypes._taskType)) { // If the return type is Task, then make the new return type "void". newReturnType = SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.VoidKeyword)).WithTriviaFrom(returnTypeSyntax); } else if (returnType.OriginalDefinition.Equals(knownTypes._taskOfTType)) { // If the return type is Task<T>, then make the new return type "T". newReturnType = returnType.GetTypeArguments()[0].GenerateTypeSyntax().WithTriviaFrom(returnTypeSyntax); } else if (returnType.OriginalDefinition.Equals(knownTypes._iAsyncEnumerableOfTTypeOpt)) { // If the return type is IAsyncEnumerable<T>, then make the new return type IEnumerable<T>. newReturnType = knownTypes._iEnumerableOfTType.Construct(methodSymbol.ReturnType.GetTypeArguments()[0]).GenerateTypeSyntax(); } else if (returnType.OriginalDefinition.Equals(knownTypes._iAsyncEnumeratorOfTTypeOpt)) { // If the return type is IAsyncEnumerator<T>, then make the new return type IEnumerator<T>. newReturnType = knownTypes._iEnumeratorOfTType.Construct(methodSymbol.ReturnType.GetTypeArguments()[0]).GenerateTypeSyntax(); } return newReturnType; } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Workspaces/Remote/ServiceHub/Services/WorkspaceTelemetry/RemoteWorkspaceTelemetryService.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.Composition; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.Telemetry; using Microsoft.VisualStudio.Telemetry; namespace Microsoft.VisualStudio.LanguageServices.Telemetry { [ExportWorkspaceService(typeof(IWorkspaceTelemetryService)), Shared] internal sealed class RemoteWorkspaceTelemetryService : AbstractWorkspaceTelemetryService { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public RemoteWorkspaceTelemetryService() { } protected override ILogger CreateLogger(TelemetrySession telemetrySession) => AggregateLogger.Create( new VSTelemetryLogger(telemetrySession), Logger.GetLogger()); } }
// 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.Composition; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Internal.Log; using Microsoft.CodeAnalysis.Telemetry; using Microsoft.VisualStudio.Telemetry; namespace Microsoft.VisualStudio.LanguageServices.Telemetry { [ExportWorkspaceService(typeof(IWorkspaceTelemetryService)), Shared] internal sealed class RemoteWorkspaceTelemetryService : AbstractWorkspaceTelemetryService { [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public RemoteWorkspaceTelemetryService() { } protected override ILogger CreateLogger(TelemetrySession telemetrySession) => AggregateLogger.Create( new VSTelemetryLogger(telemetrySession), Logger.GetLogger()); } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/CSharp/Portable/FlowAnalysis/DefiniteAssignment.VariableIdentifier.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; using Microsoft.CodeAnalysis.CSharp.Symbols; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp { internal partial class LocalDataFlowPass<TLocalState, TLocalFunctionState> { internal readonly struct VariableIdentifier : IEquatable<VariableIdentifier> { public readonly Symbol Symbol; /// <summary> /// Indicates whether this variable is nested inside another tracked variable. /// For instance, if a field `x` of a struct is a tracked variable, the symbol is not sufficient /// to uniquely determine which field is being tracked. The containing slot(s) would /// identify which tracked variable the field `x` is part of. /// </summary> public readonly int ContainingSlot; public VariableIdentifier(Symbol symbol, int containingSlot = 0) { Debug.Assert(containingSlot >= 0); Debug.Assert(symbol.Kind switch { SymbolKind.Local => true, SymbolKind.Parameter => true, SymbolKind.Field => true, SymbolKind.Property => true, SymbolKind.Event => true, SymbolKind.ErrorType => true, SymbolKind.Method when symbol is MethodSymbol m && m.MethodKind == MethodKind.LocalFunction => true, _ => false }); Symbol = symbol; ContainingSlot = containingSlot; } public bool Exists { get { return (object)Symbol != null; } } public override int GetHashCode() { Debug.Assert(Exists); int currentKey = ContainingSlot; // MemberIndexOpt, if available, is a fast approach to comparing relative members, // and is necessary in cases such as anonymous types where OriginalDefinition will be distinct. int? thisIndex = Symbol.MemberIndexOpt; return thisIndex.HasValue ? Hash.Combine(thisIndex.GetValueOrDefault(), currentKey) : Hash.Combine(Symbol.OriginalDefinition, currentKey); } public bool Equals(VariableIdentifier other) { Debug.Assert(Exists); Debug.Assert(other.Exists); if (ContainingSlot != other.ContainingSlot) { return false; } // MemberIndexOpt, if available, is a fast approach to comparing relative members, // and is necessary in cases such as anonymous types where OriginalDefinition will be distinct. int? thisIndex = Symbol.MemberIndexOpt; int? otherIndex = other.Symbol.MemberIndexOpt; if (thisIndex != otherIndex) { return false; } if (thisIndex.HasValue) { return true; } return Symbol.Equals(other.Symbol, TypeCompareKind.AllIgnoreOptions); } public override bool Equals(object? obj) { throw ExceptionUtilities.Unreachable; } [Obsolete] public static bool operator ==(VariableIdentifier left, VariableIdentifier right) { throw ExceptionUtilities.Unreachable; } [Obsolete] public static bool operator !=(VariableIdentifier left, VariableIdentifier right) { throw ExceptionUtilities.Unreachable; } public override string ToString() { return $"ContainingSlot={ContainingSlot}, Symbol={Symbol.GetDebuggerDisplay()}"; } } } }
// 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; using Microsoft.CodeAnalysis.CSharp.Symbols; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp { internal partial class LocalDataFlowPass<TLocalState, TLocalFunctionState> { internal readonly struct VariableIdentifier : IEquatable<VariableIdentifier> { public readonly Symbol Symbol; /// <summary> /// Indicates whether this variable is nested inside another tracked variable. /// For instance, if a field `x` of a struct is a tracked variable, the symbol is not sufficient /// to uniquely determine which field is being tracked. The containing slot(s) would /// identify which tracked variable the field `x` is part of. /// </summary> public readonly int ContainingSlot; public VariableIdentifier(Symbol symbol, int containingSlot = 0) { Debug.Assert(containingSlot >= 0); Debug.Assert(symbol.Kind switch { SymbolKind.Local => true, SymbolKind.Parameter => true, SymbolKind.Field => true, SymbolKind.Property => true, SymbolKind.Event => true, SymbolKind.ErrorType => true, SymbolKind.Method when symbol is MethodSymbol m && m.MethodKind == MethodKind.LocalFunction => true, _ => false }); Symbol = symbol; ContainingSlot = containingSlot; } public bool Exists { get { return (object)Symbol != null; } } public override int GetHashCode() { Debug.Assert(Exists); int currentKey = ContainingSlot; // MemberIndexOpt, if available, is a fast approach to comparing relative members, // and is necessary in cases such as anonymous types where OriginalDefinition will be distinct. int? thisIndex = Symbol.MemberIndexOpt; return thisIndex.HasValue ? Hash.Combine(thisIndex.GetValueOrDefault(), currentKey) : Hash.Combine(Symbol.OriginalDefinition, currentKey); } public bool Equals(VariableIdentifier other) { Debug.Assert(Exists); Debug.Assert(other.Exists); if (ContainingSlot != other.ContainingSlot) { return false; } // MemberIndexOpt, if available, is a fast approach to comparing relative members, // and is necessary in cases such as anonymous types where OriginalDefinition will be distinct. int? thisIndex = Symbol.MemberIndexOpt; int? otherIndex = other.Symbol.MemberIndexOpt; if (thisIndex != otherIndex) { return false; } if (thisIndex.HasValue) { return true; } return Symbol.Equals(other.Symbol, TypeCompareKind.AllIgnoreOptions); } public override bool Equals(object? obj) { throw ExceptionUtilities.Unreachable; } [Obsolete] public static bool operator ==(VariableIdentifier left, VariableIdentifier right) { throw ExceptionUtilities.Unreachable; } [Obsolete] public static bool operator !=(VariableIdentifier left, VariableIdentifier right) { throw ExceptionUtilities.Unreachable; } public override string ToString() { return $"ContainingSlot={ContainingSlot}, Symbol={Symbol.GetDebuggerDisplay()}"; } } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/Core/Portable/RQName/Nodes/RQProperty.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; namespace Microsoft.CodeAnalysis.Features.RQName.Nodes { internal class RQProperty : RQPropertyBase { public RQProperty( RQUnconstructedType containingType, RQMethodPropertyOrEventName memberName, int typeParameterCount, IList<RQParameter> parameters) : base(containingType, memberName, typeParameterCount, parameters) { } } }
// 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; namespace Microsoft.CodeAnalysis.Features.RQName.Nodes { internal class RQProperty : RQPropertyBase { public RQProperty( RQUnconstructedType containingType, RQMethodPropertyOrEventName memberName, int typeParameterCount, IList<RQParameter> parameters) : base(containingType, memberName, typeParameterCount, parameters) { } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/CodeStyle/UnusedParametersPreference.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. namespace Microsoft.CodeAnalysis.CodeStyle { /// <summary> /// Preferences for flagging unused parameters. /// </summary> internal enum UnusedParametersPreference { // Ununsed parameters of non-public methods are flagged. NonPublicMethods = 0, // Unused parameters of methods with any accessibility (private/public/protected/internal) are flagged. AllMethods = 1, } }
// 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.CodeStyle { /// <summary> /// Preferences for flagging unused parameters. /// </summary> internal enum UnusedParametersPreference { // Ununsed parameters of non-public methods are flagged. NonPublicMethods = 0, // Unused parameters of methods with any accessibility (private/public/protected/internal) are flagged. AllMethods = 1, } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/EditorFeatures/CSharpTest/EditorConfigSettings/Updater/SettingsUpdaterTests.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.AddImports; using Microsoft.CodeAnalysis.CodeStyle; using Microsoft.CodeAnalysis.CSharp.CodeStyle; using Microsoft.CodeAnalysis.CSharp.Formatting; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Editing; using Microsoft.CodeAnalysis.Editor.EditorConfigSettings; using Microsoft.CodeAnalysis.Editor.EditorConfigSettings.Data; using Microsoft.CodeAnalysis.Editor.EditorConfigSettings.Updater; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.UnitTests { [UseExportProvider] public partial class SettingsUpdaterTests : TestBase { private const string EditorconfigPath = "/a/b/config"; private static Workspace CreateWorkspaceWithProjectAndDocuments() { var projectId = ProjectId.CreateNewId(); var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices(), WorkspaceKind.Host); Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution .AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp) .AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", "public class Goo { }") .AddAdditionalDocument(DocumentId.CreateNewId(projectId), "add.txt", "text") .AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From(""), filePath: EditorconfigPath))); return workspace; } private static AnalyzerConfigDocument CreateAnalyzerConfigDocument(Workspace workspace, string contents) { var solution = workspace.CurrentSolution; var documentId = solution.Projects.Single().State.AnalyzerConfigDocumentStates.Ids.First(); var text = SourceText.From(contents); var newSolution1 = solution.WithAnalyzerConfigDocumentText(documentId, text, PreservationMode.PreserveIdentity); var analyzerConfigDocument = newSolution1.GetAnalyzerConfigDocument(documentId); Assert.True(analyzerConfigDocument!.TryGetText(out var actualText)); Assert.Same(text, actualText); return analyzerConfigDocument; } private static async Task TestAsync(string initialEditorConfig, string updatedEditorConfig, params (IOption2, object)[] options) { using var workspace = CreateWorkspaceWithProjectAndDocuments(); var analyzerConfigDocument = CreateAnalyzerConfigDocument(workspace, initialEditorConfig); var sourcetext = await analyzerConfigDocument.GetTextAsync(default); var result = SettingsUpdateHelper.TryUpdateAnalyzerConfigDocument(sourcetext, analyzerConfigDocument.FilePath!, workspace.Options, options); Assert.Equal(updatedEditorConfig, result?.ToString()); } private static async Task TestAsync(string initialEditorConfig, string updatedEditorConfig, params (AnalyzerSetting, DiagnosticSeverity)[] options) { using var workspace = CreateWorkspaceWithProjectAndDocuments(); var analyzerConfigDocument = CreateAnalyzerConfigDocument(workspace, initialEditorConfig); var sourcetext = await analyzerConfigDocument.GetTextAsync(default); var result = SettingsUpdateHelper.TryUpdateAnalyzerConfigDocument(sourcetext, analyzerConfigDocument.FilePath!, options); Assert.Equal(updatedEditorConfig, result?.ToString()); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddNewWhitespaceOptionAsync() { await TestAsync( string.Empty, "[*.cs]\r\ncsharp_new_line_before_else=true", (CSharpFormattingOptions2.NewLineForElse, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddNewBoolCodeStyleOptionWithSeverityAsync() { ICodeStyleOption option = CSharpCodeStyleOptions.PreferThrowExpression.DefaultValue; option = option.WithValue(true).WithNotification(NotificationOption2.Suggestion); await TestAsync( string.Empty, "[*.cs]\r\ncsharp_style_throw_expression=true:suggestion", (CSharpCodeStyleOptions.PreferThrowExpression, option)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddNewEnumCodeStyleOptionWithSeverityAsync() { ICodeStyleOption option = CSharpCodeStyleOptions.PreferredUsingDirectivePlacement.DefaultValue; option = option.WithValue(AddImportPlacement.InsideNamespace).WithNotification(NotificationOption2.Warning); await TestAsync( string.Empty, "[*.cs]\r\ncsharp_using_directive_placement=inside_namespace:warning", (CSharpCodeStyleOptions.PreferredUsingDirectivePlacement, option)); } [Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] internal async Task TestAddNewAnalyzerOptionOptionAsync( [CombinatorialValues(Language.CSharp, Language.VisualBasic, (Language.CSharp | Language.VisualBasic))] Language language, [CombinatorialValues(DiagnosticSeverity.Warning, DiagnosticSeverity.Error, DiagnosticSeverity.Info, DiagnosticSeverity.Hidden)] DiagnosticSeverity severity) { var expectedHeader = ""; if (language.HasFlag(Language.CSharp) && language.HasFlag(Language.VisualBasic)) { expectedHeader = "[*.{cs,vb}]"; } else if (language.HasFlag(Language.CSharp)) { expectedHeader = "[*.cs]"; } else if (language.HasFlag(Language.VisualBasic)) { expectedHeader = "[*.vb]"; } var expectedSeverity = severity.ToEditorConfigString(); var id = "Test001"; var descriptor = new DiagnosticDescriptor(id: id, title: "", messageFormat: "", category: "Naming", defaultSeverity: DiagnosticSeverity.Warning, isEnabledByDefault: false); var analyzerSetting = new AnalyzerSetting(descriptor, ReportDiagnostic.Suppress, null!, language, new SettingLocation(EditorConfigSettings.LocationKind.VisualStudio, null)); await TestAsync( string.Empty, $"{expectedHeader}\r\ndotnet_diagnostic.{id}.severity={expectedSeverity}", (analyzerSetting, severity)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestUpdateExistingWhitespaceOptionAsync() { await TestAsync( "[*.cs]\r\ncsharp_new_line_before_else=true", "[*.cs]\r\ncsharp_new_line_before_else=false", (CSharpFormattingOptions2.NewLineForElse, false)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddNewWhitespaceOptionToExistingFileAsync() { var initialEditorConfig = @" [*.{cs,vb}] # CA1000: Do not declare static members on generic types dotnet_diagnostic.CA1000.severity=false "; var updatedEditorConfig = @" [*.{cs,vb}] # CA1000: Do not declare static members on generic types dotnet_diagnostic.CA1000.severity=false [*.cs] csharp_new_line_before_else=true"; await TestAsync( initialEditorConfig, updatedEditorConfig, (CSharpFormattingOptions2.NewLineForElse, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddNewWhitespaceOptionToWithNonMathcingGroupsAsync() { var initialEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2"; var updatedEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 [*.cs] csharp_new_line_before_else=true"; await TestAsync( initialEditorConfig, updatedEditorConfig, (CSharpFormattingOptions2.NewLineForElse, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddNewWhitespaceOptionWithStarGroup() { var initialEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 # Dotnet code style settings: [*.{cs,vb}] # CSharp code style settings: [*.cs]"; var updatedEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 # Dotnet code style settings: [*.{cs,vb}] # CSharp code style settings: [*.cs] csharp_new_line_before_else=true"; await TestAsync( initialEditorConfig, updatedEditorConfig, (CSharpFormattingOptions2.NewLineForElse, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddMultimpleNewWhitespaceOptions() { await TestAsync( string.Empty, "[*.cs]\r\ncsharp_new_line_before_else=true\r\ncsharp_new_line_before_catch=true\r\ncsharp_new_line_before_finally=true", (CSharpFormattingOptions2.NewLineForElse, true), (CSharpFormattingOptions2.NewLineForCatch, true), (CSharpFormattingOptions2.NewLineForFinally, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddOptionThatAppliesToBothLanguages() { var initialEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 # Dotnet code style settings: [*.{cs,vb}] # CSharp code style settings: [*.cs]"; var updatedEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 # Dotnet code style settings: [*.{cs,vb}] dotnet_sort_system_directives_first=true # CSharp code style settings: [*.cs]"; await TestAsync( initialEditorConfig, updatedEditorConfig, (GenerationOptions.PlaceSystemNamespaceFirst, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddOptionWithRelativePathGroupingPresent() { var initialEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 # Dotnet code style settings: [*.{cs,vb}] # Test CSharp code style settings: [*Test.cs] # CSharp code style settings: [*.cs]"; var updatedEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 # Dotnet code style settings: [*.{cs,vb}] # Test CSharp code style settings: [*Test.cs] # CSharp code style settings: [*.cs] csharp_new_line_before_else=true"; await TestAsync( initialEditorConfig, updatedEditorConfig, (CSharpFormattingOptions2.NewLineForElse, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAnalyzerSettingsUpdaterService() { var workspace = CreateWorkspaceWithProjectAndDocuments(); var updater = new AnalyzerSettingsUpdater(workspace, "/a/b/config"); var id = "Test001"; var descriptor = new DiagnosticDescriptor(id: id, title: "", messageFormat: "", category: "Naming", defaultSeverity: DiagnosticSeverity.Warning, isEnabledByDefault: false); var analyzerSetting = new AnalyzerSetting(descriptor, ReportDiagnostic.Suppress, updater, Language.CSharp, new SettingLocation(EditorConfigSettings.LocationKind.VisualStudio, null)); analyzerSetting.ChangeSeverity(DiagnosticSeverity.Error); var updates = await updater.GetChangedEditorConfigAsync(default); var update = Assert.Single(updates); Assert.Equal($"[*.cs]\r\ndotnet_diagnostic.{id}.severity=error", update.NewText); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestCodeStyleSettingUpdaterService() { var workspace = CreateWorkspaceWithProjectAndDocuments(); var updater = new OptionUpdater(workspace, EditorconfigPath); var value = "false:silent"; var editorOptions = new TestAnalyzerConfigOptions(key => value); var setting = CodeStyleSetting.Create(CSharpCodeStyleOptions.AllowBlankLineAfterColonInConstructorInitializer, "", editorOptions, workspace.Options, updater, null!); setting.ChangeSeverity(DiagnosticSeverity.Error); var updates = await updater.GetChangedEditorConfigAsync(default); var update = Assert.Single(updates); Assert.Equal("[*.cs]\r\ncsharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental=false:error", update.NewText); value = "false:error"; var editorconfig = workspace.CurrentSolution.Projects.SelectMany(p => p.AnalyzerConfigDocuments.Where(a => a.FilePath == EditorconfigPath)).Single(); var text = await editorconfig.GetTextAsync(); var newSolution = workspace.CurrentSolution.WithAnalyzerConfigDocumentText(editorconfig.Id, text); Assert.True(workspace.TryApplyChanges(newSolution)); setting.ChangeValue(0); updates = await updater.GetChangedEditorConfigAsync(default); update = Assert.Single(updates); Assert.Equal("[*.cs]\r\ncsharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental=true:error", update.NewText); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestWhitespaceSettingUpdaterService() { var workspace = CreateWorkspaceWithProjectAndDocuments(); var updater = new OptionUpdater(workspace, "/a/b/config"); var setting = WhitespaceSetting.Create(CSharpFormattingOptions2.NewLineForElse, "", TestAnalyzerConfigOptions.Instance, workspace.Options, updater, null!); setting.SetValue(false); var updates = await updater.GetChangedEditorConfigAsync(default); var update = Assert.Single(updates); Assert.Equal("[*.cs]\r\ncsharp_new_line_before_else=false", update.NewText); } } }
// 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.AddImports; using Microsoft.CodeAnalysis.CodeStyle; using Microsoft.CodeAnalysis.CSharp.CodeStyle; using Microsoft.CodeAnalysis.CSharp.Formatting; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Editing; using Microsoft.CodeAnalysis.Editor.EditorConfigSettings; using Microsoft.CodeAnalysis.Editor.EditorConfigSettings.Data; using Microsoft.CodeAnalysis.Editor.EditorConfigSettings.Updater; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.Test.Utilities; using Microsoft.CodeAnalysis.Text; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.UnitTests { [UseExportProvider] public partial class SettingsUpdaterTests : TestBase { private const string EditorconfigPath = "/a/b/config"; private static Workspace CreateWorkspaceWithProjectAndDocuments() { var projectId = ProjectId.CreateNewId(); var workspace = new AdhocWorkspace(EditorTestCompositions.EditorFeatures.GetHostServices(), WorkspaceKind.Host); Assert.True(workspace.TryApplyChanges(workspace.CurrentSolution .AddProject(projectId, "proj1", "proj1.dll", LanguageNames.CSharp) .AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", "public class Goo { }") .AddAdditionalDocument(DocumentId.CreateNewId(projectId), "add.txt", "text") .AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From(""), filePath: EditorconfigPath))); return workspace; } private static AnalyzerConfigDocument CreateAnalyzerConfigDocument(Workspace workspace, string contents) { var solution = workspace.CurrentSolution; var documentId = solution.Projects.Single().State.AnalyzerConfigDocumentStates.Ids.First(); var text = SourceText.From(contents); var newSolution1 = solution.WithAnalyzerConfigDocumentText(documentId, text, PreservationMode.PreserveIdentity); var analyzerConfigDocument = newSolution1.GetAnalyzerConfigDocument(documentId); Assert.True(analyzerConfigDocument!.TryGetText(out var actualText)); Assert.Same(text, actualText); return analyzerConfigDocument; } private static async Task TestAsync(string initialEditorConfig, string updatedEditorConfig, params (IOption2, object)[] options) { using var workspace = CreateWorkspaceWithProjectAndDocuments(); var analyzerConfigDocument = CreateAnalyzerConfigDocument(workspace, initialEditorConfig); var sourcetext = await analyzerConfigDocument.GetTextAsync(default); var result = SettingsUpdateHelper.TryUpdateAnalyzerConfigDocument(sourcetext, analyzerConfigDocument.FilePath!, workspace.Options, options); Assert.Equal(updatedEditorConfig, result?.ToString()); } private static async Task TestAsync(string initialEditorConfig, string updatedEditorConfig, params (AnalyzerSetting, DiagnosticSeverity)[] options) { using var workspace = CreateWorkspaceWithProjectAndDocuments(); var analyzerConfigDocument = CreateAnalyzerConfigDocument(workspace, initialEditorConfig); var sourcetext = await analyzerConfigDocument.GetTextAsync(default); var result = SettingsUpdateHelper.TryUpdateAnalyzerConfigDocument(sourcetext, analyzerConfigDocument.FilePath!, options); Assert.Equal(updatedEditorConfig, result?.ToString()); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddNewWhitespaceOptionAsync() { await TestAsync( string.Empty, "[*.cs]\r\ncsharp_new_line_before_else=true", (CSharpFormattingOptions2.NewLineForElse, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddNewBoolCodeStyleOptionWithSeverityAsync() { ICodeStyleOption option = CSharpCodeStyleOptions.PreferThrowExpression.DefaultValue; option = option.WithValue(true).WithNotification(NotificationOption2.Suggestion); await TestAsync( string.Empty, "[*.cs]\r\ncsharp_style_throw_expression=true:suggestion", (CSharpCodeStyleOptions.PreferThrowExpression, option)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddNewEnumCodeStyleOptionWithSeverityAsync() { ICodeStyleOption option = CSharpCodeStyleOptions.PreferredUsingDirectivePlacement.DefaultValue; option = option.WithValue(AddImportPlacement.InsideNamespace).WithNotification(NotificationOption2.Warning); await TestAsync( string.Empty, "[*.cs]\r\ncsharp_using_directive_placement=inside_namespace:warning", (CSharpCodeStyleOptions.PreferredUsingDirectivePlacement, option)); } [Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] internal async Task TestAddNewAnalyzerOptionOptionAsync( [CombinatorialValues(Language.CSharp, Language.VisualBasic, (Language.CSharp | Language.VisualBasic))] Language language, [CombinatorialValues(DiagnosticSeverity.Warning, DiagnosticSeverity.Error, DiagnosticSeverity.Info, DiagnosticSeverity.Hidden)] DiagnosticSeverity severity) { var expectedHeader = ""; if (language.HasFlag(Language.CSharp) && language.HasFlag(Language.VisualBasic)) { expectedHeader = "[*.{cs,vb}]"; } else if (language.HasFlag(Language.CSharp)) { expectedHeader = "[*.cs]"; } else if (language.HasFlag(Language.VisualBasic)) { expectedHeader = "[*.vb]"; } var expectedSeverity = severity.ToEditorConfigString(); var id = "Test001"; var descriptor = new DiagnosticDescriptor(id: id, title: "", messageFormat: "", category: "Naming", defaultSeverity: DiagnosticSeverity.Warning, isEnabledByDefault: false); var analyzerSetting = new AnalyzerSetting(descriptor, ReportDiagnostic.Suppress, null!, language, new SettingLocation(EditorConfigSettings.LocationKind.VisualStudio, null)); await TestAsync( string.Empty, $"{expectedHeader}\r\ndotnet_diagnostic.{id}.severity={expectedSeverity}", (analyzerSetting, severity)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestUpdateExistingWhitespaceOptionAsync() { await TestAsync( "[*.cs]\r\ncsharp_new_line_before_else=true", "[*.cs]\r\ncsharp_new_line_before_else=false", (CSharpFormattingOptions2.NewLineForElse, false)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddNewWhitespaceOptionToExistingFileAsync() { var initialEditorConfig = @" [*.{cs,vb}] # CA1000: Do not declare static members on generic types dotnet_diagnostic.CA1000.severity=false "; var updatedEditorConfig = @" [*.{cs,vb}] # CA1000: Do not declare static members on generic types dotnet_diagnostic.CA1000.severity=false [*.cs] csharp_new_line_before_else=true"; await TestAsync( initialEditorConfig, updatedEditorConfig, (CSharpFormattingOptions2.NewLineForElse, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddNewWhitespaceOptionToWithNonMathcingGroupsAsync() { var initialEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2"; var updatedEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 [*.cs] csharp_new_line_before_else=true"; await TestAsync( initialEditorConfig, updatedEditorConfig, (CSharpFormattingOptions2.NewLineForElse, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddNewWhitespaceOptionWithStarGroup() { var initialEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 # Dotnet code style settings: [*.{cs,vb}] # CSharp code style settings: [*.cs]"; var updatedEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 # Dotnet code style settings: [*.{cs,vb}] # CSharp code style settings: [*.cs] csharp_new_line_before_else=true"; await TestAsync( initialEditorConfig, updatedEditorConfig, (CSharpFormattingOptions2.NewLineForElse, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddMultimpleNewWhitespaceOptions() { await TestAsync( string.Empty, "[*.cs]\r\ncsharp_new_line_before_else=true\r\ncsharp_new_line_before_catch=true\r\ncsharp_new_line_before_finally=true", (CSharpFormattingOptions2.NewLineForElse, true), (CSharpFormattingOptions2.NewLineForCatch, true), (CSharpFormattingOptions2.NewLineForFinally, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddOptionThatAppliesToBothLanguages() { var initialEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 # Dotnet code style settings: [*.{cs,vb}] # CSharp code style settings: [*.cs]"; var updatedEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 # Dotnet code style settings: [*.{cs,vb}] dotnet_sort_system_directives_first=true # CSharp code style settings: [*.cs]"; await TestAsync( initialEditorConfig, updatedEditorConfig, (GenerationOptions.PlaceSystemNamespaceFirst, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAddOptionWithRelativePathGroupingPresent() { var initialEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 # Dotnet code style settings: [*.{cs,vb}] # Test CSharp code style settings: [*Test.cs] # CSharp code style settings: [*.cs]"; var updatedEditorConfig = @" root = true # Xml files [*.xml] indent_size = 2 # Dotnet code style settings: [*.{cs,vb}] # Test CSharp code style settings: [*Test.cs] # CSharp code style settings: [*.cs] csharp_new_line_before_else=true"; await TestAsync( initialEditorConfig, updatedEditorConfig, (CSharpFormattingOptions2.NewLineForElse, true)); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestAnalyzerSettingsUpdaterService() { var workspace = CreateWorkspaceWithProjectAndDocuments(); var updater = new AnalyzerSettingsUpdater(workspace, "/a/b/config"); var id = "Test001"; var descriptor = new DiagnosticDescriptor(id: id, title: "", messageFormat: "", category: "Naming", defaultSeverity: DiagnosticSeverity.Warning, isEnabledByDefault: false); var analyzerSetting = new AnalyzerSetting(descriptor, ReportDiagnostic.Suppress, updater, Language.CSharp, new SettingLocation(EditorConfigSettings.LocationKind.VisualStudio, null)); analyzerSetting.ChangeSeverity(DiagnosticSeverity.Error); var updates = await updater.GetChangedEditorConfigAsync(default); var update = Assert.Single(updates); Assert.Equal($"[*.cs]\r\ndotnet_diagnostic.{id}.severity=error", update.NewText); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestCodeStyleSettingUpdaterService() { var workspace = CreateWorkspaceWithProjectAndDocuments(); var updater = new OptionUpdater(workspace, EditorconfigPath); var value = "false:silent"; var editorOptions = new TestAnalyzerConfigOptions(key => value); var setting = CodeStyleSetting.Create(CSharpCodeStyleOptions.AllowBlankLineAfterColonInConstructorInitializer, "", editorOptions, workspace.Options, updater, null!); setting.ChangeSeverity(DiagnosticSeverity.Error); var updates = await updater.GetChangedEditorConfigAsync(default); var update = Assert.Single(updates); Assert.Equal("[*.cs]\r\ncsharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental=false:error", update.NewText); value = "false:error"; var editorconfig = workspace.CurrentSolution.Projects.SelectMany(p => p.AnalyzerConfigDocuments.Where(a => a.FilePath == EditorconfigPath)).Single(); var text = await editorconfig.GetTextAsync(); var newSolution = workspace.CurrentSolution.WithAnalyzerConfigDocumentText(editorconfig.Id, text); Assert.True(workspace.TryApplyChanges(newSolution)); setting.ChangeValue(0); updates = await updater.GetChangedEditorConfigAsync(default); update = Assert.Single(updates); Assert.Equal("[*.cs]\r\ncsharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental=true:error", update.NewText); } [Fact, Trait(Traits.Feature, Traits.Features.EditorConfigUI)] public async Task TestWhitespaceSettingUpdaterService() { var workspace = CreateWorkspaceWithProjectAndDocuments(); var updater = new OptionUpdater(workspace, "/a/b/config"); var setting = WhitespaceSetting.Create(CSharpFormattingOptions2.NewLineForElse, "", TestAnalyzerConfigOptions.Instance, workspace.Options, updater, null!); setting.SetValue(false); var updates = await updater.GetChangedEditorConfigAsync(default); var update = Assert.Single(updates); Assert.Equal("[*.cs]\r\ncsharp_new_line_before_else=false", update.NewText); } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/VisualStudio/Core/Impl/ProjectSystem/CPS/TempPECompiler.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.ComponentModel.Composition; using System.IO; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.VisualStudio.LanguageServices.ProjectSystem; using Roslyn.Utilities; namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.CPS { [Export(typeof(ITempPECompiler))] internal class TempPECompiler : ITempPECompiler { private readonly VisualStudioWorkspace _workspace; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public TempPECompiler(VisualStudioWorkspace workspace) => _workspace = workspace; public async Task<bool> CompileAsync(IWorkspaceProjectContext context, string outputFileName, ISet<string> filesToInclude, CancellationToken cancellationToken) { if (filesToInclude == null || filesToInclude.Count == 0) { throw new ArgumentException(nameof(filesToInclude), "Must specify some files to compile."); } if (outputFileName == null) { throw new ArgumentException(nameof(outputFileName), "Must specify an output file name."); } var project = _workspace.CurrentSolution.GetRequiredProject(context.Id); // Start by fetching the compilation we have already have that will have references correct var compilation = await project.GetRequiredCompilationAsync(cancellationToken).ConfigureAwait(false); // Update to just the syntax trees we need to keep var syntaxTrees = new List<SyntaxTree>(capacity: filesToInclude.Count); foreach (var document in project.Documents) { if (document.FilePath != null && filesToInclude.Contains(document.FilePath)) { syntaxTrees.Add(await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false)); } cancellationToken.ThrowIfCancellationRequested(); } compilation = compilation.RemoveAllSyntaxTrees().AddSyntaxTrees(syntaxTrees); // We need to inherit most of the projects options, mainly for VB (RootNamespace, GlobalImports etc.), but we need to override about some specific things surrounding the output compilation = compilation.WithOptions(compilation.Options // copied from the old TempPE compiler used by legacy, for parity. // See: https://github.com/dotnet/roslyn/blob/fab7134296816fc80019c60b0f5bef7400cf23ea/src/VisualStudio/CSharp/Impl/ProjectSystemShim/TempPECompilerService.cs#L58 .WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default) .WithSourceReferenceResolver(SourceFileResolver.Default) .WithXmlReferenceResolver(XmlFileResolver.Default) // We always want to produce a debug, AnyCPU DLL .WithOutputKind(OutputKind.DynamicallyLinkedLibrary) .WithPlatform(Platform.AnyCpu) .WithOptimizationLevel(OptimizationLevel.Debug) // Turn off any warnings as errors just in case .WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) .WithReportSuppressedDiagnostics(false) .WithSpecificDiagnosticOptions(null) // Turn off any signing and strong naming .WithDelaySign(false) .WithCryptoKeyFile(null) .WithPublicSign(false) .WithStrongNameProvider(null)); // AssemblyName should be set to the filename of the output file because multiple TempPE DLLs can be created for the same project compilation = compilation.WithAssemblyName(Path.GetFileName(outputFileName)); cancellationToken.ThrowIfCancellationRequested(); var outputPath = Path.GetDirectoryName(outputFileName); Directory.CreateDirectory(outputPath); using var file = FileUtilities.CreateFileStreamChecked(File.Create, outputFileName, nameof(outputFileName)); return compilation.Emit(file, cancellationToken: cancellationToken).Success; } } }
// 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.ComponentModel.Composition; using System.IO; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.VisualStudio.LanguageServices.ProjectSystem; using Roslyn.Utilities; namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.CPS { [Export(typeof(ITempPECompiler))] internal class TempPECompiler : ITempPECompiler { private readonly VisualStudioWorkspace _workspace; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public TempPECompiler(VisualStudioWorkspace workspace) => _workspace = workspace; public async Task<bool> CompileAsync(IWorkspaceProjectContext context, string outputFileName, ISet<string> filesToInclude, CancellationToken cancellationToken) { if (filesToInclude == null || filesToInclude.Count == 0) { throw new ArgumentException(nameof(filesToInclude), "Must specify some files to compile."); } if (outputFileName == null) { throw new ArgumentException(nameof(outputFileName), "Must specify an output file name."); } var project = _workspace.CurrentSolution.GetRequiredProject(context.Id); // Start by fetching the compilation we have already have that will have references correct var compilation = await project.GetRequiredCompilationAsync(cancellationToken).ConfigureAwait(false); // Update to just the syntax trees we need to keep var syntaxTrees = new List<SyntaxTree>(capacity: filesToInclude.Count); foreach (var document in project.Documents) { if (document.FilePath != null && filesToInclude.Contains(document.FilePath)) { syntaxTrees.Add(await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false)); } cancellationToken.ThrowIfCancellationRequested(); } compilation = compilation.RemoveAllSyntaxTrees().AddSyntaxTrees(syntaxTrees); // We need to inherit most of the projects options, mainly for VB (RootNamespace, GlobalImports etc.), but we need to override about some specific things surrounding the output compilation = compilation.WithOptions(compilation.Options // copied from the old TempPE compiler used by legacy, for parity. // See: https://github.com/dotnet/roslyn/blob/fab7134296816fc80019c60b0f5bef7400cf23ea/src/VisualStudio/CSharp/Impl/ProjectSystemShim/TempPECompilerService.cs#L58 .WithAssemblyIdentityComparer(DesktopAssemblyIdentityComparer.Default) .WithSourceReferenceResolver(SourceFileResolver.Default) .WithXmlReferenceResolver(XmlFileResolver.Default) // We always want to produce a debug, AnyCPU DLL .WithOutputKind(OutputKind.DynamicallyLinkedLibrary) .WithPlatform(Platform.AnyCpu) .WithOptimizationLevel(OptimizationLevel.Debug) // Turn off any warnings as errors just in case .WithGeneralDiagnosticOption(ReportDiagnostic.Suppress) .WithReportSuppressedDiagnostics(false) .WithSpecificDiagnosticOptions(null) // Turn off any signing and strong naming .WithDelaySign(false) .WithCryptoKeyFile(null) .WithPublicSign(false) .WithStrongNameProvider(null)); // AssemblyName should be set to the filename of the output file because multiple TempPE DLLs can be created for the same project compilation = compilation.WithAssemblyName(Path.GetFileName(outputFileName)); cancellationToken.ThrowIfCancellationRequested(); var outputPath = Path.GetDirectoryName(outputFileName); Directory.CreateDirectory(outputPath); using var file = FileUtilities.CreateFileStreamChecked(File.Create, outputFileName, nameof(outputFileName)); return compilation.Emit(file, cancellationToken: cancellationToken).Success; } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/Test/Core/Traits/CompilerFeature.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.CodeAnalysis.Test.Utilities { public enum CompilerFeature { Async, Dynamic, ExpressionBody, Determinism, Iterator, LocalFunctions, Params, Var, Tuples, RefLocalsReturns, ReadOnlyReferences, OutVar, Patterns, DefaultLiteral, AsyncMain, IOperation, Dataflow, NonTrailingNamedArgs, PrivateProtected, PEVerifyCompat, RefConditionalOperator, TupleEquality, StackAllocInitializer, NullCoalescingAssignment, AsyncStreams, NullableReferenceTypes, DefaultInterfaceImplementation, LambdaDiscardParameters, StatementAttributes, TopLevelStatements, InitOnlySetters, AnonymousFunctions, ModuleInitializers, FunctionPointers, RecordStructs, } }
// 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.CodeAnalysis.Test.Utilities { public enum CompilerFeature { Async, Dynamic, ExpressionBody, Determinism, Iterator, LocalFunctions, Params, Var, Tuples, RefLocalsReturns, ReadOnlyReferences, OutVar, Patterns, DefaultLiteral, AsyncMain, IOperation, Dataflow, NonTrailingNamedArgs, PrivateProtected, PEVerifyCompat, RefConditionalOperator, TupleEquality, StackAllocInitializer, NullCoalescingAssignment, AsyncStreams, NullableReferenceTypes, DefaultInterfaceImplementation, LambdaDiscardParameters, StatementAttributes, TopLevelStatements, InitOnlySetters, AnonymousFunctions, ModuleInitializers, FunctionPointers, RecordStructs, } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/ExpressionEvaluator/VisualBasic/Source/ExpressionCompiler/CompilationExtensions.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.Collections.ObjectModel Imports System.Reflection.Metadata Imports System.Reflection.Metadata.Ecma335 Imports System.Runtime.CompilerServices Imports Microsoft.CodeAnalysis.ExpressionEvaluator Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Symbols.Metadata.PE Namespace Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator Friend Module CompilationExtensions Private Function [GetType]([module] As PEModuleSymbol, typeHandle As TypeDefinitionHandle) As PENamedTypeSymbol Dim metadataDecoder = New MetadataDecoder([module]) Return DirectCast(metadataDecoder.GetTypeOfToken(typeHandle), PENamedTypeSymbol) End Function <Extension> Friend Function [GetType](compilation As VisualBasicCompilation, moduleVersionId As Guid, typeToken As Integer) As PENamedTypeSymbol Return [GetType](compilation.GetModule(moduleVersionId), CType(MetadataTokens.Handle(typeToken), TypeDefinitionHandle)) End Function <Extension> Friend Function GetSourceMethod(compilation As VisualBasicCompilation, moduleVersionId As Guid, methodHandle As MethodDefinitionHandle) As PEMethodSymbol Dim method = GetMethod(compilation, moduleVersionId, methodHandle) Dim metadataDecoder = New MetadataDecoder(DirectCast(method.ContainingModule, PEModuleSymbol)) Dim containingType = method.ContainingType Dim sourceMethodName As String = Nothing If GeneratedNameParser.TryParseStateMachineTypeName(containingType.Name, sourceMethodName) Then For Each member In containingType.ContainingType.GetMembers(sourceMethodName) Dim candidateMethod = TryCast(member, PEMethodSymbol) If candidateMethod IsNot Nothing Then Dim [module] = metadataDecoder.Module methodHandle = candidateMethod.Handle Dim stateMachineTypeName As String = Nothing If [module].HasStringValuedAttribute(methodHandle, AttributeDescription.AsyncStateMachineAttribute, stateMachineTypeName) OrElse [module].HasStringValuedAttribute(methodHandle, AttributeDescription.IteratorStateMachineAttribute, stateMachineTypeName) _ Then If metadataDecoder.GetTypeSymbolForSerializedType(stateMachineTypeName).OriginalDefinition.Equals(containingType) Then Return candidateMethod End If End If End If Next End If Return method End Function <Extension> Friend Function GetMethod(compilation As VisualBasicCompilation, moduleVersionId As Guid, methodHandle As MethodDefinitionHandle) As PEMethodSymbol Dim [module] = compilation.GetModule(moduleVersionId) Dim reader = [module].Module.MetadataReader Dim typeHandle = reader.GetMethodDefinition(methodHandle).GetDeclaringType() Dim type = [GetType]([module], typeHandle) Dim method = DirectCast(New MetadataDecoder([module], type).GetMethodSymbolForMethodDefOrMemberRef(methodHandle, type), PEMethodSymbol) Return method End Function <Extension> Friend Function GetModule(compilation As VisualBasicCompilation, moduleVersionId As Guid) As PEModuleSymbol For Each pair In compilation.GetBoundReferenceManager().GetReferencedAssemblies() Dim assembly = DirectCast(pair.Value, AssemblySymbol) For Each [module] In assembly.Modules Dim m = DirectCast([module], PEModuleSymbol) Dim id = m.Module.GetModuleVersionIdOrThrow() If id = moduleVersionId Then Return m End If Next Next Throw New ArgumentException($"No module found with MVID '{moduleVersionId}'", NameOf(moduleVersionId)) End Function <Extension> Friend Function ToCompilation(metadataBlocks As ImmutableArray(Of MetadataBlock)) As VisualBasicCompilation Return ToCompilation(metadataBlocks, moduleVersionId:=Nothing, MakeAssemblyReferencesKind.AllAssemblies) End Function <Extension> Friend Function ToCompilationReferencedModulesOnly(metadataBlocks As ImmutableArray(Of MetadataBlock), moduleVersionId As Guid) As VisualBasicCompilation Return ToCompilation(metadataBlocks, moduleVersionId, MakeAssemblyReferencesKind.DirectReferencesOnly) End Function <Extension> Friend Function ToCompilation(metadataBlocks As ImmutableArray(Of MetadataBlock), moduleVersionId As Guid, kind As MakeAssemblyReferencesKind) As VisualBasicCompilation Dim referencesBySimpleName As IReadOnlyDictionary(Of String, ImmutableArray(Of (AssemblyIdentity, MetadataReference))) = Nothing Dim references = metadataBlocks.MakeAssemblyReferences(moduleVersionId, IdentityComparer, kind, referencesBySimpleName) Dim options = s_compilationOptions If referencesBySimpleName IsNot Nothing Then Debug.Assert(kind = MakeAssemblyReferencesKind.AllReferences) Dim resolver = New EEMetadataReferenceResolver(IdentityComparer, referencesBySimpleName) options = options.WithMetadataReferenceResolver(resolver) End If Return VisualBasicCompilation.Create( assemblyName:=ExpressionCompilerUtilities.GenerateUniqueName(), references:=references, options:=options) End Function <Extension> Friend Function GetCustomTypeInfoPayload(compilation As VisualBasicCompilation, type As TypeSymbol) As ReadOnlyCollection(Of Byte) Dim builder = ArrayBuilder(Of String).GetInstance() Dim names = If(VisualBasicCompilation.TupleNamesEncoder.TryGetNames(type, builder) AndAlso compilation.HasTupleNamesAttributes, New ReadOnlyCollection(Of String)(builder.ToArray()), Nothing) builder.Free() Return CustomTypeInfo.Encode(Nothing, names) End Function Friend ReadOnly IdentityComparer As AssemblyIdentityComparer = DesktopAssemblyIdentityComparer.Default ' XML file references, #r directives not supported: Private ReadOnly s_compilationOptions As VisualBasicCompilationOptions = New VisualBasicCompilationOptions( outputKind:=OutputKind.DynamicallyLinkedLibrary, platform:=Platform.AnyCpu, ' Platform should match PEModule.Machine, in this case I386. optimizationLevel:=OptimizationLevel.Release, assemblyIdentityComparer:=IdentityComparer). WithMetadataImportOptions(MetadataImportOptions.All). WithReferencesSupersedeLowerVersions(True). WithSuppressEmbeddedDeclarations(True). WithIgnoreCorLibraryDuplicatedTypes(True) 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.Collections.Immutable Imports System.Collections.ObjectModel Imports System.Reflection.Metadata Imports System.Reflection.Metadata.Ecma335 Imports System.Runtime.CompilerServices Imports Microsoft.CodeAnalysis.ExpressionEvaluator Imports Microsoft.CodeAnalysis.PooledObjects Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Symbols.Metadata.PE Namespace Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator Friend Module CompilationExtensions Private Function [GetType]([module] As PEModuleSymbol, typeHandle As TypeDefinitionHandle) As PENamedTypeSymbol Dim metadataDecoder = New MetadataDecoder([module]) Return DirectCast(metadataDecoder.GetTypeOfToken(typeHandle), PENamedTypeSymbol) End Function <Extension> Friend Function [GetType](compilation As VisualBasicCompilation, moduleVersionId As Guid, typeToken As Integer) As PENamedTypeSymbol Return [GetType](compilation.GetModule(moduleVersionId), CType(MetadataTokens.Handle(typeToken), TypeDefinitionHandle)) End Function <Extension> Friend Function GetSourceMethod(compilation As VisualBasicCompilation, moduleVersionId As Guid, methodHandle As MethodDefinitionHandle) As PEMethodSymbol Dim method = GetMethod(compilation, moduleVersionId, methodHandle) Dim metadataDecoder = New MetadataDecoder(DirectCast(method.ContainingModule, PEModuleSymbol)) Dim containingType = method.ContainingType Dim sourceMethodName As String = Nothing If GeneratedNameParser.TryParseStateMachineTypeName(containingType.Name, sourceMethodName) Then For Each member In containingType.ContainingType.GetMembers(sourceMethodName) Dim candidateMethod = TryCast(member, PEMethodSymbol) If candidateMethod IsNot Nothing Then Dim [module] = metadataDecoder.Module methodHandle = candidateMethod.Handle Dim stateMachineTypeName As String = Nothing If [module].HasStringValuedAttribute(methodHandle, AttributeDescription.AsyncStateMachineAttribute, stateMachineTypeName) OrElse [module].HasStringValuedAttribute(methodHandle, AttributeDescription.IteratorStateMachineAttribute, stateMachineTypeName) _ Then If metadataDecoder.GetTypeSymbolForSerializedType(stateMachineTypeName).OriginalDefinition.Equals(containingType) Then Return candidateMethod End If End If End If Next End If Return method End Function <Extension> Friend Function GetMethod(compilation As VisualBasicCompilation, moduleVersionId As Guid, methodHandle As MethodDefinitionHandle) As PEMethodSymbol Dim [module] = compilation.GetModule(moduleVersionId) Dim reader = [module].Module.MetadataReader Dim typeHandle = reader.GetMethodDefinition(methodHandle).GetDeclaringType() Dim type = [GetType]([module], typeHandle) Dim method = DirectCast(New MetadataDecoder([module], type).GetMethodSymbolForMethodDefOrMemberRef(methodHandle, type), PEMethodSymbol) Return method End Function <Extension> Friend Function GetModule(compilation As VisualBasicCompilation, moduleVersionId As Guid) As PEModuleSymbol For Each pair In compilation.GetBoundReferenceManager().GetReferencedAssemblies() Dim assembly = DirectCast(pair.Value, AssemblySymbol) For Each [module] In assembly.Modules Dim m = DirectCast([module], PEModuleSymbol) Dim id = m.Module.GetModuleVersionIdOrThrow() If id = moduleVersionId Then Return m End If Next Next Throw New ArgumentException($"No module found with MVID '{moduleVersionId}'", NameOf(moduleVersionId)) End Function <Extension> Friend Function ToCompilation(metadataBlocks As ImmutableArray(Of MetadataBlock)) As VisualBasicCompilation Return ToCompilation(metadataBlocks, moduleVersionId:=Nothing, MakeAssemblyReferencesKind.AllAssemblies) End Function <Extension> Friend Function ToCompilationReferencedModulesOnly(metadataBlocks As ImmutableArray(Of MetadataBlock), moduleVersionId As Guid) As VisualBasicCompilation Return ToCompilation(metadataBlocks, moduleVersionId, MakeAssemblyReferencesKind.DirectReferencesOnly) End Function <Extension> Friend Function ToCompilation(metadataBlocks As ImmutableArray(Of MetadataBlock), moduleVersionId As Guid, kind As MakeAssemblyReferencesKind) As VisualBasicCompilation Dim referencesBySimpleName As IReadOnlyDictionary(Of String, ImmutableArray(Of (AssemblyIdentity, MetadataReference))) = Nothing Dim references = metadataBlocks.MakeAssemblyReferences(moduleVersionId, IdentityComparer, kind, referencesBySimpleName) Dim options = s_compilationOptions If referencesBySimpleName IsNot Nothing Then Debug.Assert(kind = MakeAssemblyReferencesKind.AllReferences) Dim resolver = New EEMetadataReferenceResolver(IdentityComparer, referencesBySimpleName) options = options.WithMetadataReferenceResolver(resolver) End If Return VisualBasicCompilation.Create( assemblyName:=ExpressionCompilerUtilities.GenerateUniqueName(), references:=references, options:=options) End Function <Extension> Friend Function GetCustomTypeInfoPayload(compilation As VisualBasicCompilation, type As TypeSymbol) As ReadOnlyCollection(Of Byte) Dim builder = ArrayBuilder(Of String).GetInstance() Dim names = If(VisualBasicCompilation.TupleNamesEncoder.TryGetNames(type, builder) AndAlso compilation.HasTupleNamesAttributes, New ReadOnlyCollection(Of String)(builder.ToArray()), Nothing) builder.Free() Return CustomTypeInfo.Encode(Nothing, names) End Function Friend ReadOnly IdentityComparer As AssemblyIdentityComparer = DesktopAssemblyIdentityComparer.Default ' XML file references, #r directives not supported: Private ReadOnly s_compilationOptions As VisualBasicCompilationOptions = New VisualBasicCompilationOptions( outputKind:=OutputKind.DynamicallyLinkedLibrary, platform:=Platform.AnyCpu, ' Platform should match PEModule.Machine, in this case I386. optimizationLevel:=OptimizationLevel.Release, assemblyIdentityComparer:=IdentityComparer). WithMetadataImportOptions(MetadataImportOptions.All). WithReferencesSupersedeLowerVersions(True). WithSuppressEmbeddedDeclarations(True). WithIgnoreCorLibraryDuplicatedTypes(True) End Module End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/VisualStudio/CSharp/Impl/xlf/CSharpVSResources.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="../CSharpVSResources.resx"> <body> <trans-unit id="Add_missing_using_directives_on_paste"> <source>Add missing using directives on paste</source> <target state="translated">Aggiungi direttive using mancanti dopo operazione Incolla</target> <note>'using' is a C# keyword and should not be localized</note> </trans-unit> <trans-unit id="Allow_bank_line_after_colon_in_constructor_initializer"> <source>Allow blank line after colon in constructor initializer</source> <target state="translated">Consenti riga vuota dopo i due punti nell'inizializzatore del costruttore</target> <note /> </trans-unit> <trans-unit id="Allow_blank_lines_between_consecutive_braces"> <source>Allow blank lines between consecutive braces</source> <target state="translated">Consenti righe vuote tra parentesi graffe consecutive</target> <note /> </trans-unit> <trans-unit id="Allow_embedded_statements_on_same_line"> <source>Allow embedded statements on same line</source> <target state="translated">Consenti istruzioni incorporate sulla stessa riga</target> <note /> </trans-unit> <trans-unit id="Apply_all_csharp_formatting_rules_indentation_wrapping_spacing"> <source>Apply all C# formatting rules (indentation, wrapping, spacing)</source> <target state="translated">Applica tutte le regole di formattazione di C# (rientro, ritorno a capo, spaziatura)</target> <note /> </trans-unit> <trans-unit id="Automatically_complete_statement_on_semicolon"> <source>Automatically complete statement on semicolon</source> <target state="translated">Completa automaticamente istruzione dopo punto e virgola</target> <note /> </trans-unit> <trans-unit id="Automatically_show_completion_list_in_argument_lists"> <source>Automatically show completion list in argument lists</source> <target state="translated">Mostra automaticamente l'elenco di completamento negli elenchi di argomenti</target> <note /> </trans-unit> <trans-unit id="Block_scoped"> <source>Block scoped</source> <target state="new">Block scoped</target> <note /> </trans-unit> <trans-unit id="CSharp"> <source>C#</source> <target state="translated">C#</target> <note /> </trans-unit> <trans-unit id="CSharp_Coding_Conventions"> <source>C# Coding Conventions</source> <target state="translated">Convenzioni di scrittura codice C#</target> <note /> </trans-unit> <trans-unit id="CSharp_Formatting_Rules"> <source>C# Formatting Rules</source> <target state="translated">Regole di formattazione C#</target> <note /> </trans-unit> <trans-unit id="Completion"> <source>Completion</source> <target state="translated">Completamento</target> <note /> </trans-unit> <trans-unit id="Discard"> <source>Discard</source> <target state="translated">Variabile discard</target> <note /> </trans-unit> <trans-unit id="Edit_color_scheme"> <source>Edit color scheme</source> <target state="translated">Modifica combinazione colori</target> <note /> </trans-unit> <trans-unit id="File_scoped"> <source>File scoped</source> <target state="new">File scoped</target> <note /> </trans-unit> <trans-unit id="Format_document_settings"> <source>Format Document Settings (Experiment) </source> <target state="translated">Impostazioni formattazione documento (sperimentale)</target> <note /> </trans-unit> <trans-unit id="General"> <source>General</source> <target state="translated">Generale</target> <note>Title of the control group on the General Formatting options page</note> </trans-unit> <trans-unit id="In_relational_binary_operators"> <source>In relational operators: &lt; &gt; &lt;= &gt;= is as == !=</source> <target state="translated">In operatori relazionali: &lt; &gt; &lt;= &gt;= is as == !=</target> <note>'is' and 'as' are C# keywords and should not be localized</note> </trans-unit> <trans-unit id="Insert_slash_slash_at_the_start_of_new_lines_when_writing_slash_slash_comments"> <source>Insert // at the start of new lines when writing // comments</source> <target state="translated">Inserisci * all'inizio di nuove righe quando si scrivono commenti //</target> <note /> </trans-unit> <trans-unit id="Inside_namespace"> <source>Inside namespace</source> <target state="translated">All'interno di namespace</target> <note>'namespace' is a C# keyword and should not be localized</note> </trans-unit> <trans-unit id="Outside_namespace"> <source>Outside namespace</source> <target state="translated">All'esterno di namespace</target> <note>'namespace' is a C# keyword and should not be localized</note> </trans-unit> <trans-unit id="Pattern_matching_preferences_colon"> <source>Pattern matching preferences:</source> <target state="translated">Preferenze per criteri di ricerca:</target> <note /> </trans-unit> <trans-unit id="Perform_additional_code_cleanup_during_formatting"> <source>Perform additional code cleanup during formatting</source> <target state="translated">Esegui la pulizia del codice aggiuntiva durante la formattazione</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_object_collection_array_and_with_initializers"> <source>Place open brace on new line for object, collection, array, and with initializers</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per oggetto, raccolta, matrice e inizializzatori with</target> <note>{Locked="with"}</note> </trans-unit> <trans-unit id="Prefer_implicit_object_creation_when_type_is_apparent"> <source>Prefer implicit object creation when type is apparent</source> <target state="translated">Preferisci la creazione implicita di oggetti quando il tipo è apparente</target> <note /> </trans-unit> <trans-unit id="Prefer_is_null_for_reference_equality_checks"> <source>Prefer 'is null' for reference equality checks</source> <target state="translated">Preferisci 'is null' per i controlli di uguaglianza dei riferimenti</target> <note>'is null' is a C# string and should not be localized.</note> </trans-unit> <trans-unit id="Prefer_null_check_over_type_check"> <source>Prefer 'null' check over type check</source> <target state="new">Prefer 'null' check over type check</target> <note /> </trans-unit> <trans-unit id="Prefer_pattern_matching"> <source>Prefer pattern matching</source> <target state="translated">Preferisci i criteri di ricerca</target> <note /> </trans-unit> <trans-unit id="Prefer_pattern_matching_over_mixed_type_check"> <source>Prefer pattern matching over mixed type check</source> <target state="translated">Preferisci criteri di ricerca al controllo dei tipi misti</target> <note /> </trans-unit> <trans-unit id="Prefer_switch_expression"> <source>Prefer switch expression</source> <target state="translated">Preferisci espressione switch</target> <note /> </trans-unit> <trans-unit id="Preferred_using_directive_placement"> <source>Preferred 'using' directive placement</source> <target state="translated">Posizione preferita della direttiva 'using'</target> <note>'using' is a C# keyword and should not be localized</note> </trans-unit> <trans-unit id="Remove_unnecessary_usings"> <source>Remove unnecessary usings</source> <target state="translated">Rimuovi istruzioni using non necessarie</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_new_expressions"> <source>Show hints for 'new' expressions</source> <target state="translated">Mostra suggerimenti per le espressioni 'new'</target> <note /> </trans-unit> <trans-unit id="Show_items_from_unimported_namespaces"> <source>Show items from unimported namespaces</source> <target state="translated">Mostra elementi da spazi dei nomi non importati</target> <note /> </trans-unit> <trans-unit id="Show_remarks_in_Quick_Info"> <source>Show remarks in Quick Info</source> <target state="translated">Mostra i commenti in Informazioni rapide</target> <note /> </trans-unit> <trans-unit id="Sort_usings"> <source>Sort usings</source> <target state="translated">Ordina using</target> <note /> </trans-unit> <trans-unit id="Suggest_usings_for_types_in_dotnet_framework_assemblies"> <source>Suggest usings for types in .NET Framework assemblies</source> <target state="translated">Suggerisci le direttive using per i tipi in assembly .NET Framework</target> <note /> </trans-unit> <trans-unit id="Surround_With"> <source>Surround With</source> <target state="translated">Racchiudi tra</target> <note /> </trans-unit> <trans-unit id="Insert_Snippet"> <source>Insert Snippet</source> <target state="translated">Inserisci frammento</target> <note /> </trans-unit> <trans-unit id="Automatically_format_block_on_close_brace"> <source>Automatically format _block on }</source> <target state="translated">Formatta automaticamente _blocco dopo }</target> <note /> </trans-unit> <trans-unit id="Automatically_format_on_paste"> <source>Automatically format on _paste</source> <target state="translated">Formatta automaticamente dopo _operazione Incolla</target> <note /> </trans-unit> <trans-unit id="Automatically_format_statement_on_semicolon"> <source>Automatically format _statement on ;</source> <target state="translated">Formatta automaticamente i_struzione dopo ;</target> <note /> </trans-unit> <trans-unit id="Place_members_in_anonymous_types_on_new_line"> <source>Place members in anonymous types on new line</source> <target state="translated">Inserisci membri di tipi anonimi in una nuova riga</target> <note /> </trans-unit> <trans-unit id="Leave_block_on_single_line"> <source>Leave block on single line</source> <target state="translated">Lascia blocco su una sola riga</target> <note /> </trans-unit> <trans-unit id="Place_catch_on_new_line"> <source>Place "catch" on new line</source> <target state="translated">Inserisci "catch" in una nuova riga</target> <note /> </trans-unit> <trans-unit id="Place_else_on_new_line"> <source>Place "else" on new line</source> <target state="translated">Inserisci "else" in una nuova riga</target> <note /> </trans-unit> <trans-unit id="Indent_block_contents"> <source>Indent block contents</source> <target state="translated">Rientra contenuto blocco</target> <note /> </trans-unit> <trans-unit id="Indent_open_and_close_braces"> <source>Indent open and close braces</source> <target state="translated">Rientra parentesi graffe di apertura e chiusura</target> <note /> </trans-unit> <trans-unit id="Indent_case_contents"> <source>Indent case contents</source> <target state="translated">Rientra contenuto case</target> <note /> </trans-unit> <trans-unit id="Indent_case_labels"> <source>Indent case labels</source> <target state="translated">Rientra etichette case</target> <note /> </trans-unit> <trans-unit id="Place_finally_on_new_line"> <source>Place "finally" on new line</source> <target state="translated">Inserisci "finally" in una nuova riga</target> <note /> </trans-unit> <trans-unit id="Place_goto_labels_in_leftmost_column"> <source>Place goto labels in leftmost column</source> <target state="translated">Inserisci etichette goto nella colonna più a sinistra</target> <note /> </trans-unit> <trans-unit id="Indent_labels_normally"> <source>Indent labels normally</source> <target state="translated">Rientra etichette normalmente</target> <note /> </trans-unit> <trans-unit id="Place_goto_labels_one_indent_less_than_current"> <source>Place goto labels one indent less than current</source> <target state="translated">Inserisci etichette goto con un livello di rientro inferiore al corrente</target> <note /> </trans-unit> <trans-unit id="Label_Indentation"> <source>Label Indentation</source> <target state="translated">Rientro etichetta</target> <note /> </trans-unit> <trans-unit id="Place_members_in_object_initializers_on_new_line"> <source>Place members in object initializers on new line</source> <target state="translated">Inserisci membri di inizializzatori di oggetto in una nuova riga</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_anonymous_methods"> <source>Place open brace on new line for anonymous methods</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per i metodi anonimi</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_anonymous_types"> <source>Place open brace on new line for anonymous types</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per i tipi anonimi</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_control_blocks"> <source>Place open brace on new line for control blocks</source> <target state="translated">Inserisci parentesi graffa di apertura su nuova riga per i blocchi di controllo</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_lambda_expression"> <source>Place open brace on new line for lambda expression</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per espressioni lambda</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_methods_local_functions"> <source>Place open brace on new line for methods and local functions</source> <target state="translated">Inserisci parentesi graffa di apertura su nuova riga per metodi e funzioni locali</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_types"> <source>Place open brace on new line for types</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per i tipi</target> <note /> </trans-unit> <trans-unit id="Place_query_expression_clauses_on_new_line"> <source>Place query expression clauses on new line</source> <target state="translated">Inserisci clausole di espressione di query in una nuova riga</target> <note /> </trans-unit> <trans-unit id="Leave_statements_and_member_declarations_on_the_same_line"> <source>Leave statements and member declarations on the same line</source> <target state="translated">Lascia istruzioni e dichiarazioni di membri sulla stessa riga</target> <note /> </trans-unit> <trans-unit id="Insert_space_before_and_after_binary_operators"> <source>Insert space before and after binary operators</source> <target state="translated">Inserisci spazio prima e dopo gli operatori binari</target> <note /> </trans-unit> <trans-unit id="Ignore_spaces_around_binary_operators"> <source>Ignore spaces around binary operators</source> <target state="translated">Ignora spazi intorno agli operatori binari</target> <note /> </trans-unit> <trans-unit id="Remove_spaces_before_and_after_binary_operators"> <source>Remove spaces before and after binary operators</source> <target state="translated">Rimuovi gli spazi prima e dopo gli operatori binari</target> <note /> </trans-unit> <trans-unit id="Insert_space_after_colon_for_base_or_interface_in_type_declaration"> <source>Insert space after colon for base or interface in type declaration</source> <target state="translated">Inserisci spazio dopo i due punti per base o interfaccia nella dichiarazione di tipo</target> <note /> </trans-unit> <trans-unit id="Insert_space_after_comma"> <source>Insert space after comma</source> <target state="translated">Inserisci spazio dopo la virgola</target> <note /> </trans-unit> <trans-unit id="Insert_space_after_dot"> <source>Insert space after dot</source> <target state="translated">Inserisci spazio dopo il punto</target> <note /> </trans-unit> <trans-unit id="Insert_space_after_semicolon_in_for_statement"> <source>Insert space after semicolon in "for" statement</source> <target state="translated">Inserisci spazio dopo il punto e virgola nell'istruzione "for"</target> <note /> </trans-unit> <trans-unit id="Insert_space_before_colon_for_base_or_interface_in_type_declaration"> <source>Insert space before colon for base or interface in type declaration</source> <target state="translated">Inserisci spazio prima dei due punti per base o interfaccia nella dichiarazione di tipo</target> <note /> </trans-unit> <trans-unit id="Insert_space_before_comma"> <source>Insert space before comma</source> <target state="translated">Inserisci spazio prima della virgola</target> <note /> </trans-unit> <trans-unit id="Insert_space_before_dot"> <source>Insert space before dot</source> <target state="translated">Inserisci spazio prima del punto</target> <note /> </trans-unit> <trans-unit id="Insert_space_before_semicolon_in_for_statement"> <source>Insert space before semicolon in "for" statement</source> <target state="translated">Inserisci spazio prima del punto e virgola nell'istruzione "for"</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_argument_list_parentheses"> <source>Insert space within argument list parentheses</source> <target state="translated">Inserisci spazio tra le parentesi dell'elenco di argomenti</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_empty_argument_list_parentheses"> <source>Insert space within empty argument list parentheses</source> <target state="translated">Inserisci spazio tra le parentesi dell'elenco di argomenti vuoto</target> <note /> </trans-unit> <trans-unit id="Insert_space_between_method_name_and_its_opening_parenthesis1"> <source>Insert space between method name and its opening parenthesis</source> <target state="translated">Inserisci spazio tra il nome del metodo e la parentesi di apertura corrispondente</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_empty_parameter_list_parentheses"> <source>Insert space within empty parameter list parentheses</source> <target state="translated">Inserisci spazio tra le parentesi dell'elenco di parametri vuoto</target> <note /> </trans-unit> <trans-unit id="Insert_space_between_method_name_and_its_opening_parenthesis2"> <source>Insert space between method name and its opening parenthesis</source> <target state="translated">Inserisci spazio tra il nome del metodo e la parentesi di apertura corrispondente</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_parameter_list_parentheses"> <source>Insert space within parameter list parentheses</source> <target state="translated">Inserisci spazio tra le parentesi dell'elenco di parametri</target> <note /> </trans-unit> <trans-unit id="Insert_space_after_keywords_in_control_flow_statements"> <source>Insert space after keywords in control flow statements</source> <target state="translated">Inserisci spazio dopo le parole chiave nelle istruzioni del flusso di controllo</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_parentheses_of_expressions"> <source>Insert space within parentheses of expressions</source> <target state="translated">Inserisci spazio tra le parentesi delle espressioni</target> <note /> </trans-unit> <trans-unit id="Insert_space_after_cast"> <source>Insert space after cast</source> <target state="translated">Inserisci spazio dopo il cast</target> <note /> </trans-unit> <trans-unit id="Insert_spaces_within_parentheses_of_control_flow_statements"> <source>Insert spaces within parentheses of control flow statements</source> <target state="translated">Inserisci spazi all'interno delle parentesi delle istruzioni del flusso di controllo</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_parentheses_of_type_casts"> <source>Insert space within parentheses of type casts</source> <target state="translated">Inserisci spazio tra le parentesi dei cast di tipo</target> <note /> </trans-unit> <trans-unit id="Ignore_spaces_in_declaration_statements"> <source>Ignore spaces in declaration statements</source> <target state="translated">Ignora gli spazi nelle istruzioni di dichiarazione</target> <note /> </trans-unit> <trans-unit id="Set_other_spacing_options"> <source>Set other spacing options</source> <target state="translated">Imposta altre opzioni di spaziatura</target> <note /> </trans-unit> <trans-unit id="Set_spacing_for_brackets"> <source>Set spacing for brackets</source> <target state="translated">Imposta spaziatura per parentesi quadre</target> <note /> </trans-unit> <trans-unit id="Set_spacing_for_delimiters"> <source>Set spacing for delimiters</source> <target state="translated">Imposta spaziatura per delimitatori</target> <note /> </trans-unit> <trans-unit id="Set_spacing_for_method_calls"> <source>Set spacing for method calls</source> <target state="translated">Imposta spaziatura per le chiamate a un metodo</target> <note /> </trans-unit> <trans-unit id="Set_spacing_for_method_declarations"> <source>Set spacing for method declarations</source> <target state="translated">Imposta spaziatura per dichiarazioni di metodi</target> <note /> </trans-unit> <trans-unit id="Set_spacing_for_operators"> <source>Set spacing for operators</source> <target state="translated">Imposta spaziatura per operatori</target> <note /> </trans-unit> <trans-unit id="Insert_spaces_within_square_brackets"> <source>Insert spaces within square brackets</source> <target state="translated">Inserisci spazi tra parentesi quadre</target> <note /> </trans-unit> <trans-unit id="Insert_space_before_open_square_bracket"> <source>Insert space before open square bracket</source> <target state="translated">Inserisci spazio prima della parentesi quadra di apertura</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_empty_square_brackets"> <source>Insert space within empty square brackets</source> <target state="translated">Inserisci spazio tra parentesi quadre vuote</target> <note /> </trans-unit> <trans-unit id="New_line_options_for_braces"> <source>New line options for braces</source> <target state="translated">Opzioni relative alla nuova riga per parentesi graffe</target> <note /> </trans-unit> <trans-unit id="New_line_options_for_expressions"> <source>New line options for expressions</source> <target state="translated">Opzioni relative alla nuova riga per espressioni</target> <note /> </trans-unit> <trans-unit id="New_line_options_for_keywords"> <source>New line options for keywords</source> <target state="translated">Opzioni relative alla nuova riga per parole chiave</target> <note /> </trans-unit> <trans-unit id="Unused_local"> <source>Unused local</source> <target state="translated">Variabile locale inutilizzata</target> <note /> </trans-unit> <trans-unit id="Use_var_when_generating_locals"> <source>Use 'var' when generating locals</source> <target state="translated">Usa 'var' durante la generazione di variabili locali</target> <note /> </trans-unit> <trans-unit id="Show_procedure_line_separators"> <source>_Show procedure line separators</source> <target state="translated">_Mostra separatori di riga routine</target> <note /> </trans-unit> <trans-unit id="Don_t_put_ref_or_out_on_custom_struct"> <source>_Don't put ref or out on custom struct</source> <target state="translated">_Non inserire out o ref in struct personalizzato</target> <note /> </trans-unit> <trans-unit id="Editor_Help"> <source>Editor Help</source> <target state="translated">Guida Editor</target> <note /> </trans-unit> <trans-unit id="Highlight_related_keywords_under_cursor"> <source>Highlight related _keywords under cursor</source> <target state="translated">Evidenzia _parole chiave correlate sotto il cursore</target> <note /> </trans-unit> <trans-unit id="Highlight_references_to_symbol_under_cursor"> <source>_Highlight references to symbol under cursor</source> <target state="translated">_Evidenzia riferimenti a simbolo sotto il cursore</target> <note /> </trans-unit> <trans-unit id="Enter_outlining_mode_when_files_open"> <source>Enter _outlining mode when files open</source> <target state="translated">_Attiva modalità struttura all'apertura del file</target> <note /> </trans-unit> <trans-unit id="Extract_Method"> <source>Extract Method</source> <target state="translated">Estrai metodo</target> <note /> </trans-unit> <trans-unit id="Generate_XML_documentation_comments_for"> <source>_Generate XML documentation comments for ///</source> <target state="translated">_Genera commenti in formato documentazione XML per ///</target> <note /> </trans-unit> <trans-unit id="Highlighting"> <source>Highlighting</source> <target state="translated">Evidenziazione</target> <note /> </trans-unit> <trans-unit id="Insert_at_the_start_of_new_lines_when_writing_comments"> <source>_Insert * at the start of new lines when writing /* */ comments</source> <target state="translated">_Inserisci * all'inizio di nuove righe quando si scrivono commenti /* */</target> <note /> </trans-unit> <trans-unit id="Optimize_for_solution_size"> <source>Optimize for solution size</source> <target state="translated">Ottimizza in base alle dimensioni della soluzione</target> <note /> </trans-unit> <trans-unit id="Large"> <source>Large</source> <target state="translated">Grande</target> <note /> </trans-unit> <trans-unit id="Regular"> <source>Regular</source> <target state="translated">Normale</target> <note /> </trans-unit> <trans-unit id="Small"> <source>Small</source> <target state="translated">Piccola</target> <note /> </trans-unit> <trans-unit id="Using_Directives"> <source>Using Directives</source> <target state="translated">Direttive using</target> <note /> </trans-unit> <trans-unit id="Performance"> <source>Performance</source> <target state="translated">Prestazioni</target> <note /> </trans-unit> <trans-unit id="Place_System_directives_first_when_sorting_usings"> <source>_Place 'System' directives first when sorting usings</source> <target state="translated">_Inserisci prima le direttive 'System' durante l'ordinamento delle direttive using</target> <note /> </trans-unit> <trans-unit id="Show_completion_list_after_a_character_is_typed"> <source>_Show completion list after a character is typed</source> <target state="translated">Mo_stra elenco di completamento dopo la digitazione di un carattere</target> <note /> </trans-unit> <trans-unit id="Place_keywords_in_completion_lists"> <source>Place _keywords in completion lists</source> <target state="translated">Inserisci parole c_hiave in elenchi di completamento</target> <note /> </trans-unit> <trans-unit id="Place_code_snippets_in_completion_lists"> <source>Place _code snippets in completion lists</source> <target state="translated">Inserisci _frammenti di codice in elenchi di completamento</target> <note /> </trans-unit> <trans-unit id="Selection_In_Completion_List"> <source>Selection In Completion List</source> <target state="translated">Selezione in elenco di completamento</target> <note /> </trans-unit> <trans-unit id="Show_preview_for_rename_tracking"> <source>Show preview for rename _tracking</source> <target state="translated">Mostra anteprima per verifica _ridenominazione</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_property_indexer_and_event_accessors"> <source>Place open brace on new line for property, indexer, and event accessors</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per funzioni di accesso a proprietà, indicizzatori ed eventi</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_properties_indexers_and_events"> <source>Place open brace on new line for properties, indexers, and events</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per proprietà, indicizzatori ed eventi</target> <note /> </trans-unit> <trans-unit id="Suggest_usings_for_types_in_NuGet_packages"> <source>Suggest usings for types in _NuGet packages</source> <target state="translated">Suggerisci le direttive using per i tipi in pacchetti _NuGet</target> <note /> </trans-unit> <trans-unit id="Type_Inference_preferences_colon"> <source>Type Inference preferences:</source> <target state="translated">Preferenze per inferenza del tipo:</target> <note /> </trans-unit> <trans-unit id="For_built_in_types"> <source>For built-in types</source> <target state="translated">Per tipi predefiniti</target> <note /> </trans-unit> <trans-unit id="Elsewhere"> <source>Elsewhere</source> <target state="translated">Altrove</target> <note /> </trans-unit> <trans-unit id="When_on_multiple_lines"> <source>When on multiple lines</source> <target state="translated">In presenza di più righe</target> <note /> </trans-unit> <trans-unit id="When_variable_type_is_apparent"> <source>When variable type is apparent</source> <target state="translated">Quando il tipo della variabile è apparente</target> <note /> </trans-unit> <trans-unit id="Qualify_event_access_with_this"> <source>Qualify event access with 'this'</source> <target state="translated">Qualifica l'accesso agli eventi con 'this'</target> <note /> </trans-unit> <trans-unit id="Qualify_field_access_with_this"> <source>Qualify field access with 'this'</source> <target state="translated">Qualifica l'accesso ai campi con 'this'</target> <note /> </trans-unit> <trans-unit id="Qualify_method_access_with_this"> <source>Qualify method access with 'this'</source> <target state="translated">Qualifica l'accesso ai metodi con 'this'</target> <note /> </trans-unit> <trans-unit id="Qualify_property_access_with_this"> <source>Qualify property access with 'this'</source> <target state="translated">Qualifica l'accesso alle proprietà con 'this'</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_type"> <source>Prefer explicit type</source> <target state="translated">Preferisci tipo esplicito</target> <note /> </trans-unit> <trans-unit id="Prefer_this"> <source>Prefer 'this.'</source> <target state="translated">Preferisci 'this.'</target> <note /> </trans-unit> <trans-unit id="Prefer_var"> <source>Prefer 'var'</source> <target state="translated">Preferisci 'var'</target> <note /> </trans-unit> <trans-unit id="this_preferences_colon"> <source>'this.' preferences:</source> <target state="translated">'Preferenze per 'this.':</target> <note /> </trans-unit> <trans-unit id="using_preferences_colon"> <source>'using' preferences:</source> <target state="translated">Preferenze per 'using':</target> <note>'using' is a C# keyword and should not be localized</note> </trans-unit> <trans-unit id="var_preferences_colon"> <source>'var' preferences:</source> <target state="translated">'Preferenze per 'var':</target> <note /> </trans-unit> <trans-unit id="Do_not_prefer_this"> <source>Do not prefer 'this.'</source> <target state="translated">Non preferire 'this.'</target> <note /> </trans-unit> <trans-unit id="predefined_type_preferences_colon"> <source>predefined type preferences:</source> <target state="translated">Preferenze per tipi predefiniti:</target> <note /> </trans-unit> <trans-unit id="Split_string_literals_on_enter"> <source>Split string literals on _enter</source> <target state="translated">Dividi valori letterali stringa dopo _INVIO</target> <note /> </trans-unit> <trans-unit id="Highlight_matching_portions_of_completion_list_items"> <source>_Highlight matching portions of completion list items</source> <target state="translated">_Evidenzia le parti corrispondenti di voci dell'elenco di completamento</target> <note /> </trans-unit> <trans-unit id="Show_completion_item_filters"> <source>Show completion item _filters</source> <target state="translated">Mostra i _filtri per le voci di completamento</target> <note /> </trans-unit> <trans-unit id="Enter_key_behavior_colon"> <source>Enter key behavior:</source> <target state="translated">Comportamento del tasto INVIO:</target> <note /> </trans-unit> <trans-unit id="Only_add_new_line_on_enter_after_end_of_fully_typed_word"> <source>_Only add new line on enter after end of fully typed word</source> <target state="translated">Aggi_ungi una nuova riga dopo INVIO alla fine della parola digitata</target> <note /> </trans-unit> <trans-unit id="Always_add_new_line_on_enter"> <source>_Always add new line on enter</source> <target state="translated">_Aggiungi sempre una nuova riga dopo INVIO</target> <note /> </trans-unit> <trans-unit id="Never_add_new_line_on_enter"> <source>_Never add new line on enter</source> <target state="translated">_Non aggiungere mai una nuova riga dopo INVIO</target> <note /> </trans-unit> <trans-unit id="Always_include_snippets"> <source>Always include snippets</source> <target state="translated">Includi sempre i frammenti</target> <note /> </trans-unit> <trans-unit id="Include_snippets_when_Tab_is_typed_after_an_identifier"> <source>Include snippets when ?-Tab is typed after an identifier</source> <target state="translated">Includi i frammenti quando si digita ?+TAB dopo un identificatore</target> <note /> </trans-unit> <trans-unit id="Never_include_snippets"> <source>Never include snippets</source> <target state="translated">Non includere mai i frammenti</target> <note /> </trans-unit> <trans-unit id="Snippets_behavior"> <source>Snippets behavior</source> <target state="translated">Comportamento dei frammenti</target> <note /> </trans-unit> <trans-unit id="Show_completion_list_after_a_character_is_deleted"> <source>Show completion list after a character is _deleted</source> <target state="translated">Mostra _elenco di completamento dopo l'eliminazione di un carattere</target> <note /> </trans-unit> <trans-unit id="null_checking_colon"> <source>'null' checking:</source> <target state="translated">'Controllo 'null':</target> <note /> </trans-unit> <trans-unit id="Prefer_throw_expression"> <source>Prefer throw-expression</source> <target state="translated">Preferisci l'espressione throw</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_delegate_call"> <source>Prefer conditional delegate call</source> <target state="translated">Preferisci la chiamata al delegato condizionale</target> <note /> </trans-unit> <trans-unit id="Prefer_pattern_matching_over_is_with_cast_check"> <source>Prefer pattern matching over 'is' with 'cast' check</source> <target state="translated">Preferisci criteri di ricerca a 'is' con controllo 'cast'</target> <note /> </trans-unit> <trans-unit id="Prefer_pattern_matching_over_as_with_null_check"> <source>Prefer pattern matching over 'as' with 'null' check</source> <target state="translated">Preferisci criteri di ricerca a 'as' con controllo 'null'</target> <note /> </trans-unit> <trans-unit id="Prefer_block_body"> <source>Prefer block body</source> <target state="translated">Preferisci corpo del blocco</target> <note /> </trans-unit> <trans-unit id="Prefer_expression_body"> <source>Prefer expression body</source> <target state="translated">Preferisci corpo dell'espressione</target> <note /> </trans-unit> <trans-unit id="Automatically_format_on_return"> <source>Automatically format on return</source> <target state="translated">Formatta automaticamente dopo INVIO</target> <note /> </trans-unit> <trans-unit id="Automatically_format_when_typing"> <source>Automatically format when typing</source> <target state="translated">Formatta automaticamente durante la digitazione</target> <note /> </trans-unit> <trans-unit id="Never"> <source>Never</source> <target state="translated">Mai</target> <note /> </trans-unit> <trans-unit id="When_on_single_line"> <source>When on single line</source> <target state="translated">Se su riga singola</target> <note /> </trans-unit> <trans-unit id="When_possible"> <source>When possible</source> <target state="translated">Quando possibile</target> <note /> </trans-unit> <trans-unit id="Indent_case_contents_when_block"> <source>Indent case contents (when block)</source> <target state="translated">Imposta rientro per contenuto case (quando è un blocco)</target> <note /> </trans-unit> <trans-unit id="Fade_out_unused_usings"> <source>Fade out unused usings</source> <target state="translated">Applica dissolvenza a direttive using non usate</target> <note /> </trans-unit> <trans-unit id="Report_invalid_placeholders_in_string_dot_format_calls"> <source>Report invalid placeholders in 'string.Format' calls</source> <target state="translated">Segnala segnaposto non validi in chiamate 'String.Format'</target> <note /> </trans-unit> <trans-unit id="Separate_using_directive_groups"> <source>Separate using directive groups</source> <target state="translated">Separa gruppi di direttive using</target> <note /> </trans-unit> <trans-unit id="Show_name_suggestions"> <source>Show name s_uggestions</source> <target state="translated">Mostra s_uggerimenti per nomi</target> <note /> </trans-unit> <trans-unit id="In_arithmetic_binary_operators"> <source>In arithmetic operators: * / % + - &lt;&lt; &gt;&gt; &amp; ^ |</source> <target state="translated">In operatori aritmetici: * / % + - &lt;&lt; &gt;&gt; &amp; ^ |</target> <note /> </trans-unit> <trans-unit id="In_other_binary_operators"> <source>In other binary operators: &amp;&amp; || ?? and or</source> <target state="translated">In altri operatori binari: &amp;&amp; || ?? and or</target> <note>'and' and 'or' are C# keywords and should not be localized</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="../CSharpVSResources.resx"> <body> <trans-unit id="Add_missing_using_directives_on_paste"> <source>Add missing using directives on paste</source> <target state="translated">Aggiungi direttive using mancanti dopo operazione Incolla</target> <note>'using' is a C# keyword and should not be localized</note> </trans-unit> <trans-unit id="Allow_bank_line_after_colon_in_constructor_initializer"> <source>Allow blank line after colon in constructor initializer</source> <target state="translated">Consenti riga vuota dopo i due punti nell'inizializzatore del costruttore</target> <note /> </trans-unit> <trans-unit id="Allow_blank_lines_between_consecutive_braces"> <source>Allow blank lines between consecutive braces</source> <target state="translated">Consenti righe vuote tra parentesi graffe consecutive</target> <note /> </trans-unit> <trans-unit id="Allow_embedded_statements_on_same_line"> <source>Allow embedded statements on same line</source> <target state="translated">Consenti istruzioni incorporate sulla stessa riga</target> <note /> </trans-unit> <trans-unit id="Apply_all_csharp_formatting_rules_indentation_wrapping_spacing"> <source>Apply all C# formatting rules (indentation, wrapping, spacing)</source> <target state="translated">Applica tutte le regole di formattazione di C# (rientro, ritorno a capo, spaziatura)</target> <note /> </trans-unit> <trans-unit id="Automatically_complete_statement_on_semicolon"> <source>Automatically complete statement on semicolon</source> <target state="translated">Completa automaticamente istruzione dopo punto e virgola</target> <note /> </trans-unit> <trans-unit id="Automatically_show_completion_list_in_argument_lists"> <source>Automatically show completion list in argument lists</source> <target state="translated">Mostra automaticamente l'elenco di completamento negli elenchi di argomenti</target> <note /> </trans-unit> <trans-unit id="Block_scoped"> <source>Block scoped</source> <target state="new">Block scoped</target> <note /> </trans-unit> <trans-unit id="CSharp"> <source>C#</source> <target state="translated">C#</target> <note /> </trans-unit> <trans-unit id="CSharp_Coding_Conventions"> <source>C# Coding Conventions</source> <target state="translated">Convenzioni di scrittura codice C#</target> <note /> </trans-unit> <trans-unit id="CSharp_Formatting_Rules"> <source>C# Formatting Rules</source> <target state="translated">Regole di formattazione C#</target> <note /> </trans-unit> <trans-unit id="Completion"> <source>Completion</source> <target state="translated">Completamento</target> <note /> </trans-unit> <trans-unit id="Discard"> <source>Discard</source> <target state="translated">Variabile discard</target> <note /> </trans-unit> <trans-unit id="Edit_color_scheme"> <source>Edit color scheme</source> <target state="translated">Modifica combinazione colori</target> <note /> </trans-unit> <trans-unit id="File_scoped"> <source>File scoped</source> <target state="new">File scoped</target> <note /> </trans-unit> <trans-unit id="Format_document_settings"> <source>Format Document Settings (Experiment) </source> <target state="translated">Impostazioni formattazione documento (sperimentale)</target> <note /> </trans-unit> <trans-unit id="General"> <source>General</source> <target state="translated">Generale</target> <note>Title of the control group on the General Formatting options page</note> </trans-unit> <trans-unit id="In_relational_binary_operators"> <source>In relational operators: &lt; &gt; &lt;= &gt;= is as == !=</source> <target state="translated">In operatori relazionali: &lt; &gt; &lt;= &gt;= is as == !=</target> <note>'is' and 'as' are C# keywords and should not be localized</note> </trans-unit> <trans-unit id="Insert_slash_slash_at_the_start_of_new_lines_when_writing_slash_slash_comments"> <source>Insert // at the start of new lines when writing // comments</source> <target state="translated">Inserisci * all'inizio di nuove righe quando si scrivono commenti //</target> <note /> </trans-unit> <trans-unit id="Inside_namespace"> <source>Inside namespace</source> <target state="translated">All'interno di namespace</target> <note>'namespace' is a C# keyword and should not be localized</note> </trans-unit> <trans-unit id="Outside_namespace"> <source>Outside namespace</source> <target state="translated">All'esterno di namespace</target> <note>'namespace' is a C# keyword and should not be localized</note> </trans-unit> <trans-unit id="Pattern_matching_preferences_colon"> <source>Pattern matching preferences:</source> <target state="translated">Preferenze per criteri di ricerca:</target> <note /> </trans-unit> <trans-unit id="Perform_additional_code_cleanup_during_formatting"> <source>Perform additional code cleanup during formatting</source> <target state="translated">Esegui la pulizia del codice aggiuntiva durante la formattazione</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_object_collection_array_and_with_initializers"> <source>Place open brace on new line for object, collection, array, and with initializers</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per oggetto, raccolta, matrice e inizializzatori with</target> <note>{Locked="with"}</note> </trans-unit> <trans-unit id="Prefer_implicit_object_creation_when_type_is_apparent"> <source>Prefer implicit object creation when type is apparent</source> <target state="translated">Preferisci la creazione implicita di oggetti quando il tipo è apparente</target> <note /> </trans-unit> <trans-unit id="Prefer_is_null_for_reference_equality_checks"> <source>Prefer 'is null' for reference equality checks</source> <target state="translated">Preferisci 'is null' per i controlli di uguaglianza dei riferimenti</target> <note>'is null' is a C# string and should not be localized.</note> </trans-unit> <trans-unit id="Prefer_null_check_over_type_check"> <source>Prefer 'null' check over type check</source> <target state="new">Prefer 'null' check over type check</target> <note /> </trans-unit> <trans-unit id="Prefer_pattern_matching"> <source>Prefer pattern matching</source> <target state="translated">Preferisci i criteri di ricerca</target> <note /> </trans-unit> <trans-unit id="Prefer_pattern_matching_over_mixed_type_check"> <source>Prefer pattern matching over mixed type check</source> <target state="translated">Preferisci criteri di ricerca al controllo dei tipi misti</target> <note /> </trans-unit> <trans-unit id="Prefer_switch_expression"> <source>Prefer switch expression</source> <target state="translated">Preferisci espressione switch</target> <note /> </trans-unit> <trans-unit id="Preferred_using_directive_placement"> <source>Preferred 'using' directive placement</source> <target state="translated">Posizione preferita della direttiva 'using'</target> <note>'using' is a C# keyword and should not be localized</note> </trans-unit> <trans-unit id="Remove_unnecessary_usings"> <source>Remove unnecessary usings</source> <target state="translated">Rimuovi istruzioni using non necessarie</target> <note /> </trans-unit> <trans-unit id="Show_hints_for_new_expressions"> <source>Show hints for 'new' expressions</source> <target state="translated">Mostra suggerimenti per le espressioni 'new'</target> <note /> </trans-unit> <trans-unit id="Show_items_from_unimported_namespaces"> <source>Show items from unimported namespaces</source> <target state="translated">Mostra elementi da spazi dei nomi non importati</target> <note /> </trans-unit> <trans-unit id="Show_remarks_in_Quick_Info"> <source>Show remarks in Quick Info</source> <target state="translated">Mostra i commenti in Informazioni rapide</target> <note /> </trans-unit> <trans-unit id="Sort_usings"> <source>Sort usings</source> <target state="translated">Ordina using</target> <note /> </trans-unit> <trans-unit id="Suggest_usings_for_types_in_dotnet_framework_assemblies"> <source>Suggest usings for types in .NET Framework assemblies</source> <target state="translated">Suggerisci le direttive using per i tipi in assembly .NET Framework</target> <note /> </trans-unit> <trans-unit id="Surround_With"> <source>Surround With</source> <target state="translated">Racchiudi tra</target> <note /> </trans-unit> <trans-unit id="Insert_Snippet"> <source>Insert Snippet</source> <target state="translated">Inserisci frammento</target> <note /> </trans-unit> <trans-unit id="Automatically_format_block_on_close_brace"> <source>Automatically format _block on }</source> <target state="translated">Formatta automaticamente _blocco dopo }</target> <note /> </trans-unit> <trans-unit id="Automatically_format_on_paste"> <source>Automatically format on _paste</source> <target state="translated">Formatta automaticamente dopo _operazione Incolla</target> <note /> </trans-unit> <trans-unit id="Automatically_format_statement_on_semicolon"> <source>Automatically format _statement on ;</source> <target state="translated">Formatta automaticamente i_struzione dopo ;</target> <note /> </trans-unit> <trans-unit id="Place_members_in_anonymous_types_on_new_line"> <source>Place members in anonymous types on new line</source> <target state="translated">Inserisci membri di tipi anonimi in una nuova riga</target> <note /> </trans-unit> <trans-unit id="Leave_block_on_single_line"> <source>Leave block on single line</source> <target state="translated">Lascia blocco su una sola riga</target> <note /> </trans-unit> <trans-unit id="Place_catch_on_new_line"> <source>Place "catch" on new line</source> <target state="translated">Inserisci "catch" in una nuova riga</target> <note /> </trans-unit> <trans-unit id="Place_else_on_new_line"> <source>Place "else" on new line</source> <target state="translated">Inserisci "else" in una nuova riga</target> <note /> </trans-unit> <trans-unit id="Indent_block_contents"> <source>Indent block contents</source> <target state="translated">Rientra contenuto blocco</target> <note /> </trans-unit> <trans-unit id="Indent_open_and_close_braces"> <source>Indent open and close braces</source> <target state="translated">Rientra parentesi graffe di apertura e chiusura</target> <note /> </trans-unit> <trans-unit id="Indent_case_contents"> <source>Indent case contents</source> <target state="translated">Rientra contenuto case</target> <note /> </trans-unit> <trans-unit id="Indent_case_labels"> <source>Indent case labels</source> <target state="translated">Rientra etichette case</target> <note /> </trans-unit> <trans-unit id="Place_finally_on_new_line"> <source>Place "finally" on new line</source> <target state="translated">Inserisci "finally" in una nuova riga</target> <note /> </trans-unit> <trans-unit id="Place_goto_labels_in_leftmost_column"> <source>Place goto labels in leftmost column</source> <target state="translated">Inserisci etichette goto nella colonna più a sinistra</target> <note /> </trans-unit> <trans-unit id="Indent_labels_normally"> <source>Indent labels normally</source> <target state="translated">Rientra etichette normalmente</target> <note /> </trans-unit> <trans-unit id="Place_goto_labels_one_indent_less_than_current"> <source>Place goto labels one indent less than current</source> <target state="translated">Inserisci etichette goto con un livello di rientro inferiore al corrente</target> <note /> </trans-unit> <trans-unit id="Label_Indentation"> <source>Label Indentation</source> <target state="translated">Rientro etichetta</target> <note /> </trans-unit> <trans-unit id="Place_members_in_object_initializers_on_new_line"> <source>Place members in object initializers on new line</source> <target state="translated">Inserisci membri di inizializzatori di oggetto in una nuova riga</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_anonymous_methods"> <source>Place open brace on new line for anonymous methods</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per i metodi anonimi</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_anonymous_types"> <source>Place open brace on new line for anonymous types</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per i tipi anonimi</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_control_blocks"> <source>Place open brace on new line for control blocks</source> <target state="translated">Inserisci parentesi graffa di apertura su nuova riga per i blocchi di controllo</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_lambda_expression"> <source>Place open brace on new line for lambda expression</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per espressioni lambda</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_methods_local_functions"> <source>Place open brace on new line for methods and local functions</source> <target state="translated">Inserisci parentesi graffa di apertura su nuova riga per metodi e funzioni locali</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_types"> <source>Place open brace on new line for types</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per i tipi</target> <note /> </trans-unit> <trans-unit id="Place_query_expression_clauses_on_new_line"> <source>Place query expression clauses on new line</source> <target state="translated">Inserisci clausole di espressione di query in una nuova riga</target> <note /> </trans-unit> <trans-unit id="Leave_statements_and_member_declarations_on_the_same_line"> <source>Leave statements and member declarations on the same line</source> <target state="translated">Lascia istruzioni e dichiarazioni di membri sulla stessa riga</target> <note /> </trans-unit> <trans-unit id="Insert_space_before_and_after_binary_operators"> <source>Insert space before and after binary operators</source> <target state="translated">Inserisci spazio prima e dopo gli operatori binari</target> <note /> </trans-unit> <trans-unit id="Ignore_spaces_around_binary_operators"> <source>Ignore spaces around binary operators</source> <target state="translated">Ignora spazi intorno agli operatori binari</target> <note /> </trans-unit> <trans-unit id="Remove_spaces_before_and_after_binary_operators"> <source>Remove spaces before and after binary operators</source> <target state="translated">Rimuovi gli spazi prima e dopo gli operatori binari</target> <note /> </trans-unit> <trans-unit id="Insert_space_after_colon_for_base_or_interface_in_type_declaration"> <source>Insert space after colon for base or interface in type declaration</source> <target state="translated">Inserisci spazio dopo i due punti per base o interfaccia nella dichiarazione di tipo</target> <note /> </trans-unit> <trans-unit id="Insert_space_after_comma"> <source>Insert space after comma</source> <target state="translated">Inserisci spazio dopo la virgola</target> <note /> </trans-unit> <trans-unit id="Insert_space_after_dot"> <source>Insert space after dot</source> <target state="translated">Inserisci spazio dopo il punto</target> <note /> </trans-unit> <trans-unit id="Insert_space_after_semicolon_in_for_statement"> <source>Insert space after semicolon in "for" statement</source> <target state="translated">Inserisci spazio dopo il punto e virgola nell'istruzione "for"</target> <note /> </trans-unit> <trans-unit id="Insert_space_before_colon_for_base_or_interface_in_type_declaration"> <source>Insert space before colon for base or interface in type declaration</source> <target state="translated">Inserisci spazio prima dei due punti per base o interfaccia nella dichiarazione di tipo</target> <note /> </trans-unit> <trans-unit id="Insert_space_before_comma"> <source>Insert space before comma</source> <target state="translated">Inserisci spazio prima della virgola</target> <note /> </trans-unit> <trans-unit id="Insert_space_before_dot"> <source>Insert space before dot</source> <target state="translated">Inserisci spazio prima del punto</target> <note /> </trans-unit> <trans-unit id="Insert_space_before_semicolon_in_for_statement"> <source>Insert space before semicolon in "for" statement</source> <target state="translated">Inserisci spazio prima del punto e virgola nell'istruzione "for"</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_argument_list_parentheses"> <source>Insert space within argument list parentheses</source> <target state="translated">Inserisci spazio tra le parentesi dell'elenco di argomenti</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_empty_argument_list_parentheses"> <source>Insert space within empty argument list parentheses</source> <target state="translated">Inserisci spazio tra le parentesi dell'elenco di argomenti vuoto</target> <note /> </trans-unit> <trans-unit id="Insert_space_between_method_name_and_its_opening_parenthesis1"> <source>Insert space between method name and its opening parenthesis</source> <target state="translated">Inserisci spazio tra il nome del metodo e la parentesi di apertura corrispondente</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_empty_parameter_list_parentheses"> <source>Insert space within empty parameter list parentheses</source> <target state="translated">Inserisci spazio tra le parentesi dell'elenco di parametri vuoto</target> <note /> </trans-unit> <trans-unit id="Insert_space_between_method_name_and_its_opening_parenthesis2"> <source>Insert space between method name and its opening parenthesis</source> <target state="translated">Inserisci spazio tra il nome del metodo e la parentesi di apertura corrispondente</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_parameter_list_parentheses"> <source>Insert space within parameter list parentheses</source> <target state="translated">Inserisci spazio tra le parentesi dell'elenco di parametri</target> <note /> </trans-unit> <trans-unit id="Insert_space_after_keywords_in_control_flow_statements"> <source>Insert space after keywords in control flow statements</source> <target state="translated">Inserisci spazio dopo le parole chiave nelle istruzioni del flusso di controllo</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_parentheses_of_expressions"> <source>Insert space within parentheses of expressions</source> <target state="translated">Inserisci spazio tra le parentesi delle espressioni</target> <note /> </trans-unit> <trans-unit id="Insert_space_after_cast"> <source>Insert space after cast</source> <target state="translated">Inserisci spazio dopo il cast</target> <note /> </trans-unit> <trans-unit id="Insert_spaces_within_parentheses_of_control_flow_statements"> <source>Insert spaces within parentheses of control flow statements</source> <target state="translated">Inserisci spazi all'interno delle parentesi delle istruzioni del flusso di controllo</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_parentheses_of_type_casts"> <source>Insert space within parentheses of type casts</source> <target state="translated">Inserisci spazio tra le parentesi dei cast di tipo</target> <note /> </trans-unit> <trans-unit id="Ignore_spaces_in_declaration_statements"> <source>Ignore spaces in declaration statements</source> <target state="translated">Ignora gli spazi nelle istruzioni di dichiarazione</target> <note /> </trans-unit> <trans-unit id="Set_other_spacing_options"> <source>Set other spacing options</source> <target state="translated">Imposta altre opzioni di spaziatura</target> <note /> </trans-unit> <trans-unit id="Set_spacing_for_brackets"> <source>Set spacing for brackets</source> <target state="translated">Imposta spaziatura per parentesi quadre</target> <note /> </trans-unit> <trans-unit id="Set_spacing_for_delimiters"> <source>Set spacing for delimiters</source> <target state="translated">Imposta spaziatura per delimitatori</target> <note /> </trans-unit> <trans-unit id="Set_spacing_for_method_calls"> <source>Set spacing for method calls</source> <target state="translated">Imposta spaziatura per le chiamate a un metodo</target> <note /> </trans-unit> <trans-unit id="Set_spacing_for_method_declarations"> <source>Set spacing for method declarations</source> <target state="translated">Imposta spaziatura per dichiarazioni di metodi</target> <note /> </trans-unit> <trans-unit id="Set_spacing_for_operators"> <source>Set spacing for operators</source> <target state="translated">Imposta spaziatura per operatori</target> <note /> </trans-unit> <trans-unit id="Insert_spaces_within_square_brackets"> <source>Insert spaces within square brackets</source> <target state="translated">Inserisci spazi tra parentesi quadre</target> <note /> </trans-unit> <trans-unit id="Insert_space_before_open_square_bracket"> <source>Insert space before open square bracket</source> <target state="translated">Inserisci spazio prima della parentesi quadra di apertura</target> <note /> </trans-unit> <trans-unit id="Insert_space_within_empty_square_brackets"> <source>Insert space within empty square brackets</source> <target state="translated">Inserisci spazio tra parentesi quadre vuote</target> <note /> </trans-unit> <trans-unit id="New_line_options_for_braces"> <source>New line options for braces</source> <target state="translated">Opzioni relative alla nuova riga per parentesi graffe</target> <note /> </trans-unit> <trans-unit id="New_line_options_for_expressions"> <source>New line options for expressions</source> <target state="translated">Opzioni relative alla nuova riga per espressioni</target> <note /> </trans-unit> <trans-unit id="New_line_options_for_keywords"> <source>New line options for keywords</source> <target state="translated">Opzioni relative alla nuova riga per parole chiave</target> <note /> </trans-unit> <trans-unit id="Unused_local"> <source>Unused local</source> <target state="translated">Variabile locale inutilizzata</target> <note /> </trans-unit> <trans-unit id="Use_var_when_generating_locals"> <source>Use 'var' when generating locals</source> <target state="translated">Usa 'var' durante la generazione di variabili locali</target> <note /> </trans-unit> <trans-unit id="Show_procedure_line_separators"> <source>_Show procedure line separators</source> <target state="translated">_Mostra separatori di riga routine</target> <note /> </trans-unit> <trans-unit id="Don_t_put_ref_or_out_on_custom_struct"> <source>_Don't put ref or out on custom struct</source> <target state="translated">_Non inserire out o ref in struct personalizzato</target> <note /> </trans-unit> <trans-unit id="Editor_Help"> <source>Editor Help</source> <target state="translated">Guida Editor</target> <note /> </trans-unit> <trans-unit id="Highlight_related_keywords_under_cursor"> <source>Highlight related _keywords under cursor</source> <target state="translated">Evidenzia _parole chiave correlate sotto il cursore</target> <note /> </trans-unit> <trans-unit id="Highlight_references_to_symbol_under_cursor"> <source>_Highlight references to symbol under cursor</source> <target state="translated">_Evidenzia riferimenti a simbolo sotto il cursore</target> <note /> </trans-unit> <trans-unit id="Enter_outlining_mode_when_files_open"> <source>Enter _outlining mode when files open</source> <target state="translated">_Attiva modalità struttura all'apertura del file</target> <note /> </trans-unit> <trans-unit id="Extract_Method"> <source>Extract Method</source> <target state="translated">Estrai metodo</target> <note /> </trans-unit> <trans-unit id="Generate_XML_documentation_comments_for"> <source>_Generate XML documentation comments for ///</source> <target state="translated">_Genera commenti in formato documentazione XML per ///</target> <note /> </trans-unit> <trans-unit id="Highlighting"> <source>Highlighting</source> <target state="translated">Evidenziazione</target> <note /> </trans-unit> <trans-unit id="Insert_at_the_start_of_new_lines_when_writing_comments"> <source>_Insert * at the start of new lines when writing /* */ comments</source> <target state="translated">_Inserisci * all'inizio di nuove righe quando si scrivono commenti /* */</target> <note /> </trans-unit> <trans-unit id="Optimize_for_solution_size"> <source>Optimize for solution size</source> <target state="translated">Ottimizza in base alle dimensioni della soluzione</target> <note /> </trans-unit> <trans-unit id="Large"> <source>Large</source> <target state="translated">Grande</target> <note /> </trans-unit> <trans-unit id="Regular"> <source>Regular</source> <target state="translated">Normale</target> <note /> </trans-unit> <trans-unit id="Small"> <source>Small</source> <target state="translated">Piccola</target> <note /> </trans-unit> <trans-unit id="Using_Directives"> <source>Using Directives</source> <target state="translated">Direttive using</target> <note /> </trans-unit> <trans-unit id="Performance"> <source>Performance</source> <target state="translated">Prestazioni</target> <note /> </trans-unit> <trans-unit id="Place_System_directives_first_when_sorting_usings"> <source>_Place 'System' directives first when sorting usings</source> <target state="translated">_Inserisci prima le direttive 'System' durante l'ordinamento delle direttive using</target> <note /> </trans-unit> <trans-unit id="Show_completion_list_after_a_character_is_typed"> <source>_Show completion list after a character is typed</source> <target state="translated">Mo_stra elenco di completamento dopo la digitazione di un carattere</target> <note /> </trans-unit> <trans-unit id="Place_keywords_in_completion_lists"> <source>Place _keywords in completion lists</source> <target state="translated">Inserisci parole c_hiave in elenchi di completamento</target> <note /> </trans-unit> <trans-unit id="Place_code_snippets_in_completion_lists"> <source>Place _code snippets in completion lists</source> <target state="translated">Inserisci _frammenti di codice in elenchi di completamento</target> <note /> </trans-unit> <trans-unit id="Selection_In_Completion_List"> <source>Selection In Completion List</source> <target state="translated">Selezione in elenco di completamento</target> <note /> </trans-unit> <trans-unit id="Show_preview_for_rename_tracking"> <source>Show preview for rename _tracking</source> <target state="translated">Mostra anteprima per verifica _ridenominazione</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_property_indexer_and_event_accessors"> <source>Place open brace on new line for property, indexer, and event accessors</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per funzioni di accesso a proprietà, indicizzatori ed eventi</target> <note /> </trans-unit> <trans-unit id="Place_open_brace_on_new_line_for_properties_indexers_and_events"> <source>Place open brace on new line for properties, indexers, and events</source> <target state="translated">Inserisci parentesi graffa di apertura in una nuova riga per proprietà, indicizzatori ed eventi</target> <note /> </trans-unit> <trans-unit id="Suggest_usings_for_types_in_NuGet_packages"> <source>Suggest usings for types in _NuGet packages</source> <target state="translated">Suggerisci le direttive using per i tipi in pacchetti _NuGet</target> <note /> </trans-unit> <trans-unit id="Type_Inference_preferences_colon"> <source>Type Inference preferences:</source> <target state="translated">Preferenze per inferenza del tipo:</target> <note /> </trans-unit> <trans-unit id="For_built_in_types"> <source>For built-in types</source> <target state="translated">Per tipi predefiniti</target> <note /> </trans-unit> <trans-unit id="Elsewhere"> <source>Elsewhere</source> <target state="translated">Altrove</target> <note /> </trans-unit> <trans-unit id="When_on_multiple_lines"> <source>When on multiple lines</source> <target state="translated">In presenza di più righe</target> <note /> </trans-unit> <trans-unit id="When_variable_type_is_apparent"> <source>When variable type is apparent</source> <target state="translated">Quando il tipo della variabile è apparente</target> <note /> </trans-unit> <trans-unit id="Qualify_event_access_with_this"> <source>Qualify event access with 'this'</source> <target state="translated">Qualifica l'accesso agli eventi con 'this'</target> <note /> </trans-unit> <trans-unit id="Qualify_field_access_with_this"> <source>Qualify field access with 'this'</source> <target state="translated">Qualifica l'accesso ai campi con 'this'</target> <note /> </trans-unit> <trans-unit id="Qualify_method_access_with_this"> <source>Qualify method access with 'this'</source> <target state="translated">Qualifica l'accesso ai metodi con 'this'</target> <note /> </trans-unit> <trans-unit id="Qualify_property_access_with_this"> <source>Qualify property access with 'this'</source> <target state="translated">Qualifica l'accesso alle proprietà con 'this'</target> <note /> </trans-unit> <trans-unit id="Prefer_explicit_type"> <source>Prefer explicit type</source> <target state="translated">Preferisci tipo esplicito</target> <note /> </trans-unit> <trans-unit id="Prefer_this"> <source>Prefer 'this.'</source> <target state="translated">Preferisci 'this.'</target> <note /> </trans-unit> <trans-unit id="Prefer_var"> <source>Prefer 'var'</source> <target state="translated">Preferisci 'var'</target> <note /> </trans-unit> <trans-unit id="this_preferences_colon"> <source>'this.' preferences:</source> <target state="translated">'Preferenze per 'this.':</target> <note /> </trans-unit> <trans-unit id="using_preferences_colon"> <source>'using' preferences:</source> <target state="translated">Preferenze per 'using':</target> <note>'using' is a C# keyword and should not be localized</note> </trans-unit> <trans-unit id="var_preferences_colon"> <source>'var' preferences:</source> <target state="translated">'Preferenze per 'var':</target> <note /> </trans-unit> <trans-unit id="Do_not_prefer_this"> <source>Do not prefer 'this.'</source> <target state="translated">Non preferire 'this.'</target> <note /> </trans-unit> <trans-unit id="predefined_type_preferences_colon"> <source>predefined type preferences:</source> <target state="translated">Preferenze per tipi predefiniti:</target> <note /> </trans-unit> <trans-unit id="Split_string_literals_on_enter"> <source>Split string literals on _enter</source> <target state="translated">Dividi valori letterali stringa dopo _INVIO</target> <note /> </trans-unit> <trans-unit id="Highlight_matching_portions_of_completion_list_items"> <source>_Highlight matching portions of completion list items</source> <target state="translated">_Evidenzia le parti corrispondenti di voci dell'elenco di completamento</target> <note /> </trans-unit> <trans-unit id="Show_completion_item_filters"> <source>Show completion item _filters</source> <target state="translated">Mostra i _filtri per le voci di completamento</target> <note /> </trans-unit> <trans-unit id="Enter_key_behavior_colon"> <source>Enter key behavior:</source> <target state="translated">Comportamento del tasto INVIO:</target> <note /> </trans-unit> <trans-unit id="Only_add_new_line_on_enter_after_end_of_fully_typed_word"> <source>_Only add new line on enter after end of fully typed word</source> <target state="translated">Aggi_ungi una nuova riga dopo INVIO alla fine della parola digitata</target> <note /> </trans-unit> <trans-unit id="Always_add_new_line_on_enter"> <source>_Always add new line on enter</source> <target state="translated">_Aggiungi sempre una nuova riga dopo INVIO</target> <note /> </trans-unit> <trans-unit id="Never_add_new_line_on_enter"> <source>_Never add new line on enter</source> <target state="translated">_Non aggiungere mai una nuova riga dopo INVIO</target> <note /> </trans-unit> <trans-unit id="Always_include_snippets"> <source>Always include snippets</source> <target state="translated">Includi sempre i frammenti</target> <note /> </trans-unit> <trans-unit id="Include_snippets_when_Tab_is_typed_after_an_identifier"> <source>Include snippets when ?-Tab is typed after an identifier</source> <target state="translated">Includi i frammenti quando si digita ?+TAB dopo un identificatore</target> <note /> </trans-unit> <trans-unit id="Never_include_snippets"> <source>Never include snippets</source> <target state="translated">Non includere mai i frammenti</target> <note /> </trans-unit> <trans-unit id="Snippets_behavior"> <source>Snippets behavior</source> <target state="translated">Comportamento dei frammenti</target> <note /> </trans-unit> <trans-unit id="Show_completion_list_after_a_character_is_deleted"> <source>Show completion list after a character is _deleted</source> <target state="translated">Mostra _elenco di completamento dopo l'eliminazione di un carattere</target> <note /> </trans-unit> <trans-unit id="null_checking_colon"> <source>'null' checking:</source> <target state="translated">'Controllo 'null':</target> <note /> </trans-unit> <trans-unit id="Prefer_throw_expression"> <source>Prefer throw-expression</source> <target state="translated">Preferisci l'espressione throw</target> <note /> </trans-unit> <trans-unit id="Prefer_conditional_delegate_call"> <source>Prefer conditional delegate call</source> <target state="translated">Preferisci la chiamata al delegato condizionale</target> <note /> </trans-unit> <trans-unit id="Prefer_pattern_matching_over_is_with_cast_check"> <source>Prefer pattern matching over 'is' with 'cast' check</source> <target state="translated">Preferisci criteri di ricerca a 'is' con controllo 'cast'</target> <note /> </trans-unit> <trans-unit id="Prefer_pattern_matching_over_as_with_null_check"> <source>Prefer pattern matching over 'as' with 'null' check</source> <target state="translated">Preferisci criteri di ricerca a 'as' con controllo 'null'</target> <note /> </trans-unit> <trans-unit id="Prefer_block_body"> <source>Prefer block body</source> <target state="translated">Preferisci corpo del blocco</target> <note /> </trans-unit> <trans-unit id="Prefer_expression_body"> <source>Prefer expression body</source> <target state="translated">Preferisci corpo dell'espressione</target> <note /> </trans-unit> <trans-unit id="Automatically_format_on_return"> <source>Automatically format on return</source> <target state="translated">Formatta automaticamente dopo INVIO</target> <note /> </trans-unit> <trans-unit id="Automatically_format_when_typing"> <source>Automatically format when typing</source> <target state="translated">Formatta automaticamente durante la digitazione</target> <note /> </trans-unit> <trans-unit id="Never"> <source>Never</source> <target state="translated">Mai</target> <note /> </trans-unit> <trans-unit id="When_on_single_line"> <source>When on single line</source> <target state="translated">Se su riga singola</target> <note /> </trans-unit> <trans-unit id="When_possible"> <source>When possible</source> <target state="translated">Quando possibile</target> <note /> </trans-unit> <trans-unit id="Indent_case_contents_when_block"> <source>Indent case contents (when block)</source> <target state="translated">Imposta rientro per contenuto case (quando è un blocco)</target> <note /> </trans-unit> <trans-unit id="Fade_out_unused_usings"> <source>Fade out unused usings</source> <target state="translated">Applica dissolvenza a direttive using non usate</target> <note /> </trans-unit> <trans-unit id="Report_invalid_placeholders_in_string_dot_format_calls"> <source>Report invalid placeholders in 'string.Format' calls</source> <target state="translated">Segnala segnaposto non validi in chiamate 'String.Format'</target> <note /> </trans-unit> <trans-unit id="Separate_using_directive_groups"> <source>Separate using directive groups</source> <target state="translated">Separa gruppi di direttive using</target> <note /> </trans-unit> <trans-unit id="Show_name_suggestions"> <source>Show name s_uggestions</source> <target state="translated">Mostra s_uggerimenti per nomi</target> <note /> </trans-unit> <trans-unit id="In_arithmetic_binary_operators"> <source>In arithmetic operators: * / % + - &lt;&lt; &gt;&gt; &amp; ^ |</source> <target state="translated">In operatori aritmetici: * / % + - &lt;&lt; &gt;&gt; &amp; ^ |</target> <note /> </trans-unit> <trans-unit id="In_other_binary_operators"> <source>In other binary operators: &amp;&amp; || ?? and or</source> <target state="translated">In altri operatori binari: &amp;&amp; || ?? and or</target> <note>'and' and 'or' are C# keywords and should not be localized</note> </trans-unit> </body> </file> </xliff>
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/Core/Portable/SymbolDisplay/AbstractSymbolDisplayVisitor_Minimal.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 Roslyn.Utilities; namespace Microsoft.CodeAnalysis.SymbolDisplay { internal abstract partial class AbstractSymbolDisplayVisitor : SymbolVisitor { protected abstract bool ShouldRestrictMinimallyQualifyLookupToNamespacesAndTypes(); protected bool IsMinimizing { get { return this.semanticModelOpt != null; } } protected bool NameBoundSuccessfullyToSameSymbol(INamedTypeSymbol symbol) { ImmutableArray<ISymbol> normalSymbols = ShouldRestrictMinimallyQualifyLookupToNamespacesAndTypes() ? semanticModelOpt.LookupNamespacesAndTypes(positionOpt, name: symbol.Name) : semanticModelOpt.LookupSymbols(positionOpt, name: symbol.Name); ISymbol normalSymbol = SingleSymbolWithArity(normalSymbols, symbol.Arity); if (normalSymbol == null) { return false; } // Binding normally ended up with the right symbol. We can definitely use the // simplified name. if (normalSymbol.Equals(symbol.OriginalDefinition)) { return true; } // Binding normally failed. We may be in a "Color Color" situation where 'Color' // will bind to the field, but we could still allow simplification here. ImmutableArray<ISymbol> typeOnlySymbols = semanticModelOpt.LookupNamespacesAndTypes(positionOpt, name: symbol.Name); ISymbol typeOnlySymbol = SingleSymbolWithArity(typeOnlySymbols, symbol.Arity); if (typeOnlySymbol == null) { return false; } var type1 = GetSymbolType(normalSymbol); var type2 = GetSymbolType(typeOnlySymbol); return type1 != null && type2 != null && type1.Equals(type2) && typeOnlySymbol.Equals(symbol.OriginalDefinition); } private static ISymbol SingleSymbolWithArity(ImmutableArray<ISymbol> candidates, int desiredArity) { ISymbol singleSymbol = null; foreach (ISymbol candidate in candidates) { int arity; switch (candidate.Kind) { case SymbolKind.NamedType: arity = ((INamedTypeSymbol)candidate).Arity; break; case SymbolKind.Method: arity = ((IMethodSymbol)candidate).Arity; break; default: arity = 0; break; } if (arity == desiredArity) { if (singleSymbol == null) { singleSymbol = candidate; } else { singleSymbol = null; break; } } } return singleSymbol; } protected static ITypeSymbol GetSymbolType(ISymbol symbol) { var localSymbol = symbol as ILocalSymbol; if (localSymbol != null) { return localSymbol.Type; } var fieldSymbol = symbol as IFieldSymbol; if (fieldSymbol != null) { return fieldSymbol.Type; } var propertySymbol = symbol as IPropertySymbol; if (propertySymbol != null) { return propertySymbol.Type; } var parameterSymbol = symbol as IParameterSymbol; if (parameterSymbol != null) { return parameterSymbol.Type; } var aliasSymbol = symbol as IAliasSymbol; if (aliasSymbol != null) { return aliasSymbol.Target as ITypeSymbol; } return symbol as ITypeSymbol; } } }
// 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 Roslyn.Utilities; namespace Microsoft.CodeAnalysis.SymbolDisplay { internal abstract partial class AbstractSymbolDisplayVisitor : SymbolVisitor { protected abstract bool ShouldRestrictMinimallyQualifyLookupToNamespacesAndTypes(); protected bool IsMinimizing { get { return this.semanticModelOpt != null; } } protected bool NameBoundSuccessfullyToSameSymbol(INamedTypeSymbol symbol) { ImmutableArray<ISymbol> normalSymbols = ShouldRestrictMinimallyQualifyLookupToNamespacesAndTypes() ? semanticModelOpt.LookupNamespacesAndTypes(positionOpt, name: symbol.Name) : semanticModelOpt.LookupSymbols(positionOpt, name: symbol.Name); ISymbol normalSymbol = SingleSymbolWithArity(normalSymbols, symbol.Arity); if (normalSymbol == null) { return false; } // Binding normally ended up with the right symbol. We can definitely use the // simplified name. if (normalSymbol.Equals(symbol.OriginalDefinition)) { return true; } // Binding normally failed. We may be in a "Color Color" situation where 'Color' // will bind to the field, but we could still allow simplification here. ImmutableArray<ISymbol> typeOnlySymbols = semanticModelOpt.LookupNamespacesAndTypes(positionOpt, name: symbol.Name); ISymbol typeOnlySymbol = SingleSymbolWithArity(typeOnlySymbols, symbol.Arity); if (typeOnlySymbol == null) { return false; } var type1 = GetSymbolType(normalSymbol); var type2 = GetSymbolType(typeOnlySymbol); return type1 != null && type2 != null && type1.Equals(type2) && typeOnlySymbol.Equals(symbol.OriginalDefinition); } private static ISymbol SingleSymbolWithArity(ImmutableArray<ISymbol> candidates, int desiredArity) { ISymbol singleSymbol = null; foreach (ISymbol candidate in candidates) { int arity; switch (candidate.Kind) { case SymbolKind.NamedType: arity = ((INamedTypeSymbol)candidate).Arity; break; case SymbolKind.Method: arity = ((IMethodSymbol)candidate).Arity; break; default: arity = 0; break; } if (arity == desiredArity) { if (singleSymbol == null) { singleSymbol = candidate; } else { singleSymbol = null; break; } } } return singleSymbol; } protected static ITypeSymbol GetSymbolType(ISymbol symbol) { var localSymbol = symbol as ILocalSymbol; if (localSymbol != null) { return localSymbol.Type; } var fieldSymbol = symbol as IFieldSymbol; if (fieldSymbol != null) { return fieldSymbol.Type; } var propertySymbol = symbol as IPropertySymbol; if (propertySymbol != null) { return propertySymbol.Type; } var parameterSymbol = symbol as IParameterSymbol; if (parameterSymbol != null) { return parameterSymbol.Type; } var aliasSymbol = symbol as IAliasSymbol; if (aliasSymbol != null) { return aliasSymbol.Target as ITypeSymbol; } return symbol as ITypeSymbol; } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/VisualBasic/Portable/Syntax/InternalSyntax/SyntaxTrivia.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.ObjectModel Imports System.Text Imports System.Threading Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax Partial Friend Class SyntaxTrivia Inherits VisualBasicSyntaxNode Private ReadOnly _text As String Friend Sub New(kind As SyntaxKind, errors As DiagnosticInfo(), annotations As SyntaxAnnotation(), text As String) MyBase.New(kind, errors, annotations, text.Length) Me._text = text If text.Length > 0 Then Me.SetFlags(NodeFlags.IsNotMissing) End If End Sub Friend Sub New(kind As SyntaxKind, text As String, context As ISyntaxFactoryContext) Me.New(kind, text) Me.SetFactoryContext(context) End Sub Friend Sub New(kind As SyntaxKind, text As String) MyBase.New(kind, text.Length) Me._text = text If text.Length > 0 Then Me.SetFlags(NodeFlags.IsNotMissing) End If End Sub Friend Sub New(reader As ObjectReader) MyBase.New(reader) Me._text = reader.ReadString() Me.FullWidth = Me._text.Length If Text.Length > 0 Then Me.SetFlags(NodeFlags.IsNotMissing) End If End Sub Shared Sub New() ObjectBinder.RegisterTypeReader(GetType(SyntaxTrivia), Function(r) New SyntaxTrivia(r)) End Sub Friend Overrides ReadOnly Property ShouldReuseInSerialization As Boolean Get Select Case Me.Kind Case SyntaxKind.WhitespaceTrivia, SyntaxKind.EndOfLineTrivia, SyntaxKind.LineContinuationTrivia, SyntaxKind.DocumentationCommentExteriorTrivia, SyntaxKind.ColonTrivia Return True Case Else Return False End Select End Get End Property Friend Overrides Sub WriteTo(writer As ObjectWriter) MyBase.WriteTo(writer) writer.WriteString(Me._text) End Sub Friend ReadOnly Property Text As String Get Return Me._text End Get End Property Public Overrides ReadOnly Property IsTrivia As Boolean Get Return True End Get End Property Friend NotOverridable Overrides Function GetSlot(index As Integer) As GreenNode Throw ExceptionUtilities.Unreachable End Function Friend NotOverridable Overrides Function GetTrailingTrivia() As GreenNode Return Nothing End Function Public NotOverridable Overrides Function GetTrailingTriviaWidth() As Integer Return 0 End Function Friend NotOverridable Overrides Function GetLeadingTrivia() As GreenNode Return Nothing End Function Public NotOverridable Overrides Function GetLeadingTriviaWidth() As Integer Return 0 End Function Protected Overrides Sub WriteTriviaTo(writer As System.IO.TextWriter) writer.Write(Text) 'write text of trivia itself End Sub Public NotOverridable Overrides Function ToFullString() As String Return Me._text End Function Public Overrides Function ToString() As String Return Me._text End Function Friend NotOverridable Overrides Sub AddSyntaxErrors(accumulatedErrors As List(Of DiagnosticInfo)) If Me.GetDiagnostics IsNot Nothing Then accumulatedErrors.AddRange(Me.GetDiagnostics) End If End Sub Public NotOverridable Overrides Function Accept(visitor As VisualBasicSyntaxVisitor) As VisualBasicSyntaxNode Return visitor.VisitSyntaxTrivia(Me) End Function Public Shared Narrowing Operator CType(trivia As SyntaxTrivia) As Microsoft.CodeAnalysis.SyntaxTrivia Return New Microsoft.CodeAnalysis.SyntaxTrivia(Nothing, trivia, position:=0, index:=0) End Operator Public Overrides Function IsEquivalentTo(other As GreenNode) As Boolean If Not MyBase.IsEquivalentTo(other) Then Return False End If Dim otherTrivia = DirectCast(other, SyntaxTrivia) Return String.Equals(Me.Text, otherTrivia.Text, StringComparison.Ordinal) End Function Friend Overrides Function CreateRed(parent As SyntaxNode, position As Integer) As SyntaxNode 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.Collections.ObjectModel Imports System.Text Imports System.Threading Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax Partial Friend Class SyntaxTrivia Inherits VisualBasicSyntaxNode Private ReadOnly _text As String Friend Sub New(kind As SyntaxKind, errors As DiagnosticInfo(), annotations As SyntaxAnnotation(), text As String) MyBase.New(kind, errors, annotations, text.Length) Me._text = text If text.Length > 0 Then Me.SetFlags(NodeFlags.IsNotMissing) End If End Sub Friend Sub New(kind As SyntaxKind, text As String, context As ISyntaxFactoryContext) Me.New(kind, text) Me.SetFactoryContext(context) End Sub Friend Sub New(kind As SyntaxKind, text As String) MyBase.New(kind, text.Length) Me._text = text If text.Length > 0 Then Me.SetFlags(NodeFlags.IsNotMissing) End If End Sub Friend Sub New(reader As ObjectReader) MyBase.New(reader) Me._text = reader.ReadString() Me.FullWidth = Me._text.Length If Text.Length > 0 Then Me.SetFlags(NodeFlags.IsNotMissing) End If End Sub Shared Sub New() ObjectBinder.RegisterTypeReader(GetType(SyntaxTrivia), Function(r) New SyntaxTrivia(r)) End Sub Friend Overrides ReadOnly Property ShouldReuseInSerialization As Boolean Get Select Case Me.Kind Case SyntaxKind.WhitespaceTrivia, SyntaxKind.EndOfLineTrivia, SyntaxKind.LineContinuationTrivia, SyntaxKind.DocumentationCommentExteriorTrivia, SyntaxKind.ColonTrivia Return True Case Else Return False End Select End Get End Property Friend Overrides Sub WriteTo(writer As ObjectWriter) MyBase.WriteTo(writer) writer.WriteString(Me._text) End Sub Friend ReadOnly Property Text As String Get Return Me._text End Get End Property Public Overrides ReadOnly Property IsTrivia As Boolean Get Return True End Get End Property Friend NotOverridable Overrides Function GetSlot(index As Integer) As GreenNode Throw ExceptionUtilities.Unreachable End Function Friend NotOverridable Overrides Function GetTrailingTrivia() As GreenNode Return Nothing End Function Public NotOverridable Overrides Function GetTrailingTriviaWidth() As Integer Return 0 End Function Friend NotOverridable Overrides Function GetLeadingTrivia() As GreenNode Return Nothing End Function Public NotOverridable Overrides Function GetLeadingTriviaWidth() As Integer Return 0 End Function Protected Overrides Sub WriteTriviaTo(writer As System.IO.TextWriter) writer.Write(Text) 'write text of trivia itself End Sub Public NotOverridable Overrides Function ToFullString() As String Return Me._text End Function Public Overrides Function ToString() As String Return Me._text End Function Friend NotOverridable Overrides Sub AddSyntaxErrors(accumulatedErrors As List(Of DiagnosticInfo)) If Me.GetDiagnostics IsNot Nothing Then accumulatedErrors.AddRange(Me.GetDiagnostics) End If End Sub Public NotOverridable Overrides Function Accept(visitor As VisualBasicSyntaxVisitor) As VisualBasicSyntaxNode Return visitor.VisitSyntaxTrivia(Me) End Function Public Shared Narrowing Operator CType(trivia As SyntaxTrivia) As Microsoft.CodeAnalysis.SyntaxTrivia Return New Microsoft.CodeAnalysis.SyntaxTrivia(Nothing, trivia, position:=0, index:=0) End Operator Public Overrides Function IsEquivalentTo(other As GreenNode) As Boolean If Not MyBase.IsEquivalentTo(other) Then Return False End If Dim otherTrivia = DirectCast(other, SyntaxTrivia) Return String.Equals(Me.Text, otherTrivia.Text, StringComparison.Ordinal) End Function Friend Overrides Function CreateRed(parent As SyntaxNode, position As Integer) As SyntaxNode Throw ExceptionUtilities.Unreachable End Function End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/VisualBasic/Portable/Symbols/Source/SynthesizedEventBackingFieldSymbol.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.Threading Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols ''' <summary> ''' Represents a compiler generated backing field for an event. ''' </summary> Friend NotInheritable Class SynthesizedEventBackingFieldSymbol Inherits SynthesizedBackingFieldBase(Of SourceEventSymbol) Private _lazyType As TypeSymbol Public Sub New(propertyOrEvent As SourceEventSymbol, name As String, isShared As Boolean) MyBase.New(propertyOrEvent, name, isShared) End Sub ''' <summary> ''' System.NonSerializedAttribute applied on an event and determines serializability of its backing field. ''' </summary> Friend Overrides ReadOnly Property IsNotSerialized As Boolean Get Dim eventData = _propertyOrEvent.GetDecodedWellKnownAttributeData() Return eventData IsNot Nothing AndAlso eventData.HasNonSerializedAttribute End Get End Property Public Overrides ReadOnly Property Type As TypeSymbol Get If _lazyType Is Nothing Then Dim diagnostics = BindingDiagnosticBag.GetInstance() Dim result = _propertyOrEvent.Type If _propertyOrEvent.IsWindowsRuntimeEvent Then Dim tokenType = Me.DeclaringCompilation.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_WindowsRuntime_EventRegistrationTokenTable_T) diagnostics.Add(Binder.GetUseSiteInfoForWellKnownType(tokenType), _propertyOrEvent.Locations(0)) result = tokenType.Construct(result) End If DirectCast(ContainingModule, SourceModuleSymbol).AtomicStoreReferenceAndDiagnostics(_lazyType, result, diagnostics) diagnostics.Free() End If Debug.Assert(_lazyType IsNot Nothing) Return _lazyType End Get End Property Friend Overrides Sub GenerateDeclarationErrors(cancellationToken As CancellationToken) MyBase.GenerateDeclarationErrors(cancellationToken) cancellationToken.ThrowIfCancellationRequested() Dim unusedType = Me.Type 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.Threading Imports Microsoft.CodeAnalysis.Text Imports Microsoft.CodeAnalysis.VisualBasic.Symbols Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols ''' <summary> ''' Represents a compiler generated backing field for an event. ''' </summary> Friend NotInheritable Class SynthesizedEventBackingFieldSymbol Inherits SynthesizedBackingFieldBase(Of SourceEventSymbol) Private _lazyType As TypeSymbol Public Sub New(propertyOrEvent As SourceEventSymbol, name As String, isShared As Boolean) MyBase.New(propertyOrEvent, name, isShared) End Sub ''' <summary> ''' System.NonSerializedAttribute applied on an event and determines serializability of its backing field. ''' </summary> Friend Overrides ReadOnly Property IsNotSerialized As Boolean Get Dim eventData = _propertyOrEvent.GetDecodedWellKnownAttributeData() Return eventData IsNot Nothing AndAlso eventData.HasNonSerializedAttribute End Get End Property Public Overrides ReadOnly Property Type As TypeSymbol Get If _lazyType Is Nothing Then Dim diagnostics = BindingDiagnosticBag.GetInstance() Dim result = _propertyOrEvent.Type If _propertyOrEvent.IsWindowsRuntimeEvent Then Dim tokenType = Me.DeclaringCompilation.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_WindowsRuntime_EventRegistrationTokenTable_T) diagnostics.Add(Binder.GetUseSiteInfoForWellKnownType(tokenType), _propertyOrEvent.Locations(0)) result = tokenType.Construct(result) End If DirectCast(ContainingModule, SourceModuleSymbol).AtomicStoreReferenceAndDiagnostics(_lazyType, result, diagnostics) diagnostics.Free() End If Debug.Assert(_lazyType IsNot Nothing) Return _lazyType End Get End Property Friend Overrides Sub GenerateDeclarationErrors(cancellationToken As CancellationToken) MyBase.GenerateDeclarationErrors(cancellationToken) cancellationToken.ThrowIfCancellationRequested() Dim unusedType = Me.Type End Sub End Class End Namespace
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/FlowAnalysis/SymbolUsageAnalysis/SymbolUsageAnalysis.DataFlowAnalyzer.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.Diagnostics; using System.Threading; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.FlowAnalysis.SymbolUsageAnalysis { internal static partial class SymbolUsageAnalysis { /// <summary> /// Dataflow analysis to compute symbol usage information (i.e. reads/writes) for locals/parameters /// in a given control flow graph, along with the information of whether or not the writes /// may be read on some control flow path. /// </summary> private sealed partial class DataFlowAnalyzer : DataFlowAnalyzer<BasicBlockAnalysisData> { private readonly FlowGraphAnalysisData _analysisData; private DataFlowAnalyzer(ControlFlowGraph cfg, ISymbol owningSymbol) => _analysisData = FlowGraphAnalysisData.Create(cfg, owningSymbol, AnalyzeLocalFunctionOrLambdaInvocation); private DataFlowAnalyzer( ControlFlowGraph cfg, IMethodSymbol lambdaOrLocalFunction, FlowGraphAnalysisData parentAnalysisData) { _analysisData = FlowGraphAnalysisData.Create(cfg, lambdaOrLocalFunction, parentAnalysisData); var entryBlockAnalysisData = GetEmptyAnalysisData(); entryBlockAnalysisData.SetAnalysisDataFrom(parentAnalysisData.CurrentBlockAnalysisData); _analysisData.SetBlockAnalysisData(cfg.EntryBlock(), entryBlockAnalysisData); } public static SymbolUsageResult RunAnalysis(ControlFlowGraph cfg, ISymbol owningSymbol, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); using var analyzer = new DataFlowAnalyzer(cfg, owningSymbol); _ = CustomDataFlowAnalysis<BasicBlockAnalysisData>.Run(cfg, analyzer, cancellationToken); return analyzer._analysisData.ToResult(); } public override void Dispose() => _analysisData.Dispose(); private static BasicBlockAnalysisData AnalyzeLocalFunctionOrLambdaInvocation( IMethodSymbol localFunctionOrLambda, ControlFlowGraph cfg, AnalysisData parentAnalysisData, CancellationToken cancellationToken) { Debug.Assert(localFunctionOrLambda.IsLocalFunction() || localFunctionOrLambda.IsAnonymousFunction()); cancellationToken.ThrowIfCancellationRequested(); using var analyzer = new DataFlowAnalyzer(cfg, localFunctionOrLambda, (FlowGraphAnalysisData)parentAnalysisData); var resultBlockAnalysisData = CustomDataFlowAnalysis<BasicBlockAnalysisData>.Run(cfg, analyzer, cancellationToken); if (resultBlockAnalysisData == null) { // Unreachable exit block from lambda/local. // So use our current analysis data. return parentAnalysisData.CurrentBlockAnalysisData; } // We need to return a cloned basic block analysis data as disposing the DataFlowAnalyzer // created above will dispose all basic block analysis data instances allocated by it. var clonedBasicBlockData = parentAnalysisData.CreateBlockAnalysisData(); clonedBasicBlockData.SetAnalysisDataFrom(resultBlockAnalysisData); return clonedBasicBlockData; } // Don't analyze blocks which are unreachable, as any write // in such a block which has a read outside will be marked redundant, which will just be noise for users. // For example, // int x; // if (true) // x = 0; // else // x = 1; // This will be marked redundant if "AnalyzeUnreachableBlocks = true" // return x; public override bool AnalyzeUnreachableBlocks => false; public override BasicBlockAnalysisData AnalyzeBlock(BasicBlock basicBlock, CancellationToken cancellationToken) { BeforeBlockAnalysis(); Walker.AnalyzeOperationsAndUpdateData(_analysisData.OwningSymbol, basicBlock.Operations, _analysisData, cancellationToken); AfterBlockAnalysis(); return _analysisData.CurrentBlockAnalysisData; // Local functions. void BeforeBlockAnalysis() { // Initialize current block analysis data. _analysisData.SetCurrentBlockAnalysisDataFrom(basicBlock, cancellationToken); // At start of entry block, handle parameter definitions from method declaration. if (basicBlock.Kind == BasicBlockKind.Entry) { _analysisData.SetAnalysisDataOnEntryBlockStart(); } } void AfterBlockAnalysis() { // If we are exiting the control flow graph, handle ref/out parameter definitions from method declaration. if (basicBlock.FallThroughSuccessor?.Destination == null && basicBlock.ConditionalSuccessor?.Destination == null) { _analysisData.SetAnalysisDataOnMethodExit(); } } } public override BasicBlockAnalysisData AnalyzeNonConditionalBranch( BasicBlock basicBlock, BasicBlockAnalysisData currentBlockAnalysisData, CancellationToken cancellationToken) => AnalyzeBranch(basicBlock.FallThroughSuccessor, basicBlock, currentBlockAnalysisData, cancellationToken); public override (BasicBlockAnalysisData fallThroughSuccessorData, BasicBlockAnalysisData conditionalSuccessorData) AnalyzeConditionalBranch( BasicBlock basicBlock, BasicBlockAnalysisData currentAnalysisData, CancellationToken cancellationToken) { // Ensure that we use distinct input BasicBlockAnalysisData instances with identical analysis data for both AnalyzeBranch invocations. using var savedCurrentAnalysisData = BasicBlockAnalysisData.GetInstance(); savedCurrentAnalysisData.SetAnalysisDataFrom(currentAnalysisData); var newCurrentAnalysisData = AnalyzeBranch(basicBlock.FallThroughSuccessor, basicBlock, currentAnalysisData, cancellationToken); // Ensure that we use different instances of block analysis data for fall through successor and conditional successor. _analysisData.AdditionalConditionalBranchAnalysisData.SetAnalysisDataFrom(newCurrentAnalysisData); var fallThroughSuccessorData = _analysisData.AdditionalConditionalBranchAnalysisData; var conditionalSuccessorData = AnalyzeBranch(basicBlock.ConditionalSuccessor, basicBlock, savedCurrentAnalysisData, cancellationToken); return (fallThroughSuccessorData, conditionalSuccessorData); } private BasicBlockAnalysisData AnalyzeBranch( ControlFlowBranch branch, BasicBlock basicBlock, BasicBlockAnalysisData currentBlockAnalysisData, CancellationToken cancellationToken) { // Initialize current analysis data _analysisData.SetCurrentBlockAnalysisDataFrom(currentBlockAnalysisData); // Analyze the branch value var operations = SpecializedCollections.SingletonEnumerable(basicBlock.BranchValue); Walker.AnalyzeOperationsAndUpdateData(_analysisData.OwningSymbol, operations, _analysisData, cancellationToken); ProcessOutOfScopeLocals(); return _analysisData.CurrentBlockAnalysisData; // Local functions void ProcessOutOfScopeLocals() { if (branch == null) { return; } if (basicBlock.EnclosingRegion.Kind == ControlFlowRegionKind.Catch && !branch.FinallyRegions.IsEmpty) { // Bail out for branches from the catch block // as the locals are still accessible in the finally region. return; } foreach (var region in branch.LeavingRegions) { foreach (var local in region.Locals) { _analysisData.CurrentBlockAnalysisData.Clear(local); } if (region.Kind == ControlFlowRegionKind.TryAndFinally) { // Locals defined in the outer regions of try/finally might be used in finally region. break; } } } } public override BasicBlockAnalysisData GetCurrentAnalysisData(BasicBlock basicBlock) => _analysisData.GetBlockAnalysisData(basicBlock) ?? GetEmptyAnalysisData(); public override BasicBlockAnalysisData GetEmptyAnalysisData() => _analysisData.CreateBlockAnalysisData(); public override void SetCurrentAnalysisData(BasicBlock basicBlock, BasicBlockAnalysisData data, CancellationToken cancellationToken) => _analysisData.SetBlockAnalysisDataFrom(basicBlock, data, cancellationToken); public override bool IsEqual(BasicBlockAnalysisData analysisData1, BasicBlockAnalysisData analysisData2) => analysisData1 == null ? analysisData2 == null : analysisData1.Equals(analysisData2); public override BasicBlockAnalysisData Merge( BasicBlockAnalysisData analysisData1, BasicBlockAnalysisData analysisData2, CancellationToken cancellationToken) => BasicBlockAnalysisData.Merge(analysisData1, analysisData2, _analysisData.TrackAllocatedBlockAnalysisData); } } }
// 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.Diagnostics; using System.Threading; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.FlowAnalysis.SymbolUsageAnalysis { internal static partial class SymbolUsageAnalysis { /// <summary> /// Dataflow analysis to compute symbol usage information (i.e. reads/writes) for locals/parameters /// in a given control flow graph, along with the information of whether or not the writes /// may be read on some control flow path. /// </summary> private sealed partial class DataFlowAnalyzer : DataFlowAnalyzer<BasicBlockAnalysisData> { private readonly FlowGraphAnalysisData _analysisData; private DataFlowAnalyzer(ControlFlowGraph cfg, ISymbol owningSymbol) => _analysisData = FlowGraphAnalysisData.Create(cfg, owningSymbol, AnalyzeLocalFunctionOrLambdaInvocation); private DataFlowAnalyzer( ControlFlowGraph cfg, IMethodSymbol lambdaOrLocalFunction, FlowGraphAnalysisData parentAnalysisData) { _analysisData = FlowGraphAnalysisData.Create(cfg, lambdaOrLocalFunction, parentAnalysisData); var entryBlockAnalysisData = GetEmptyAnalysisData(); entryBlockAnalysisData.SetAnalysisDataFrom(parentAnalysisData.CurrentBlockAnalysisData); _analysisData.SetBlockAnalysisData(cfg.EntryBlock(), entryBlockAnalysisData); } public static SymbolUsageResult RunAnalysis(ControlFlowGraph cfg, ISymbol owningSymbol, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); using var analyzer = new DataFlowAnalyzer(cfg, owningSymbol); _ = CustomDataFlowAnalysis<BasicBlockAnalysisData>.Run(cfg, analyzer, cancellationToken); return analyzer._analysisData.ToResult(); } public override void Dispose() => _analysisData.Dispose(); private static BasicBlockAnalysisData AnalyzeLocalFunctionOrLambdaInvocation( IMethodSymbol localFunctionOrLambda, ControlFlowGraph cfg, AnalysisData parentAnalysisData, CancellationToken cancellationToken) { Debug.Assert(localFunctionOrLambda.IsLocalFunction() || localFunctionOrLambda.IsAnonymousFunction()); cancellationToken.ThrowIfCancellationRequested(); using var analyzer = new DataFlowAnalyzer(cfg, localFunctionOrLambda, (FlowGraphAnalysisData)parentAnalysisData); var resultBlockAnalysisData = CustomDataFlowAnalysis<BasicBlockAnalysisData>.Run(cfg, analyzer, cancellationToken); if (resultBlockAnalysisData == null) { // Unreachable exit block from lambda/local. // So use our current analysis data. return parentAnalysisData.CurrentBlockAnalysisData; } // We need to return a cloned basic block analysis data as disposing the DataFlowAnalyzer // created above will dispose all basic block analysis data instances allocated by it. var clonedBasicBlockData = parentAnalysisData.CreateBlockAnalysisData(); clonedBasicBlockData.SetAnalysisDataFrom(resultBlockAnalysisData); return clonedBasicBlockData; } // Don't analyze blocks which are unreachable, as any write // in such a block which has a read outside will be marked redundant, which will just be noise for users. // For example, // int x; // if (true) // x = 0; // else // x = 1; // This will be marked redundant if "AnalyzeUnreachableBlocks = true" // return x; public override bool AnalyzeUnreachableBlocks => false; public override BasicBlockAnalysisData AnalyzeBlock(BasicBlock basicBlock, CancellationToken cancellationToken) { BeforeBlockAnalysis(); Walker.AnalyzeOperationsAndUpdateData(_analysisData.OwningSymbol, basicBlock.Operations, _analysisData, cancellationToken); AfterBlockAnalysis(); return _analysisData.CurrentBlockAnalysisData; // Local functions. void BeforeBlockAnalysis() { // Initialize current block analysis data. _analysisData.SetCurrentBlockAnalysisDataFrom(basicBlock, cancellationToken); // At start of entry block, handle parameter definitions from method declaration. if (basicBlock.Kind == BasicBlockKind.Entry) { _analysisData.SetAnalysisDataOnEntryBlockStart(); } } void AfterBlockAnalysis() { // If we are exiting the control flow graph, handle ref/out parameter definitions from method declaration. if (basicBlock.FallThroughSuccessor?.Destination == null && basicBlock.ConditionalSuccessor?.Destination == null) { _analysisData.SetAnalysisDataOnMethodExit(); } } } public override BasicBlockAnalysisData AnalyzeNonConditionalBranch( BasicBlock basicBlock, BasicBlockAnalysisData currentBlockAnalysisData, CancellationToken cancellationToken) => AnalyzeBranch(basicBlock.FallThroughSuccessor, basicBlock, currentBlockAnalysisData, cancellationToken); public override (BasicBlockAnalysisData fallThroughSuccessorData, BasicBlockAnalysisData conditionalSuccessorData) AnalyzeConditionalBranch( BasicBlock basicBlock, BasicBlockAnalysisData currentAnalysisData, CancellationToken cancellationToken) { // Ensure that we use distinct input BasicBlockAnalysisData instances with identical analysis data for both AnalyzeBranch invocations. using var savedCurrentAnalysisData = BasicBlockAnalysisData.GetInstance(); savedCurrentAnalysisData.SetAnalysisDataFrom(currentAnalysisData); var newCurrentAnalysisData = AnalyzeBranch(basicBlock.FallThroughSuccessor, basicBlock, currentAnalysisData, cancellationToken); // Ensure that we use different instances of block analysis data for fall through successor and conditional successor. _analysisData.AdditionalConditionalBranchAnalysisData.SetAnalysisDataFrom(newCurrentAnalysisData); var fallThroughSuccessorData = _analysisData.AdditionalConditionalBranchAnalysisData; var conditionalSuccessorData = AnalyzeBranch(basicBlock.ConditionalSuccessor, basicBlock, savedCurrentAnalysisData, cancellationToken); return (fallThroughSuccessorData, conditionalSuccessorData); } private BasicBlockAnalysisData AnalyzeBranch( ControlFlowBranch branch, BasicBlock basicBlock, BasicBlockAnalysisData currentBlockAnalysisData, CancellationToken cancellationToken) { // Initialize current analysis data _analysisData.SetCurrentBlockAnalysisDataFrom(currentBlockAnalysisData); // Analyze the branch value var operations = SpecializedCollections.SingletonEnumerable(basicBlock.BranchValue); Walker.AnalyzeOperationsAndUpdateData(_analysisData.OwningSymbol, operations, _analysisData, cancellationToken); ProcessOutOfScopeLocals(); return _analysisData.CurrentBlockAnalysisData; // Local functions void ProcessOutOfScopeLocals() { if (branch == null) { return; } if (basicBlock.EnclosingRegion.Kind == ControlFlowRegionKind.Catch && !branch.FinallyRegions.IsEmpty) { // Bail out for branches from the catch block // as the locals are still accessible in the finally region. return; } foreach (var region in branch.LeavingRegions) { foreach (var local in region.Locals) { _analysisData.CurrentBlockAnalysisData.Clear(local); } if (region.Kind == ControlFlowRegionKind.TryAndFinally) { // Locals defined in the outer regions of try/finally might be used in finally region. break; } } } } public override BasicBlockAnalysisData GetCurrentAnalysisData(BasicBlock basicBlock) => _analysisData.GetBlockAnalysisData(basicBlock) ?? GetEmptyAnalysisData(); public override BasicBlockAnalysisData GetEmptyAnalysisData() => _analysisData.CreateBlockAnalysisData(); public override void SetCurrentAnalysisData(BasicBlock basicBlock, BasicBlockAnalysisData data, CancellationToken cancellationToken) => _analysisData.SetBlockAnalysisDataFrom(basicBlock, data, cancellationToken); public override bool IsEqual(BasicBlockAnalysisData analysisData1, BasicBlockAnalysisData analysisData2) => analysisData1 == null ? analysisData2 == null : analysisData1.Equals(analysisData2); public override BasicBlockAnalysisData Merge( BasicBlockAnalysisData analysisData1, BasicBlockAnalysisData analysisData2, CancellationToken cancellationToken) => BasicBlockAnalysisData.Merge(analysisData1, analysisData2, _analysisData.TrackAllocatedBlockAnalysisData); } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./eng/common/internal/Tools.csproj
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. --> <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net472</TargetFramework> <ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets> <AutomaticallyUseReferenceAssemblyPackages>false</AutomaticallyUseReferenceAssemblyPackages> </PropertyGroup> <ItemGroup> <!-- Clear references, the SDK may add some depending on UsuingToolXxx settings, but we only want to restore the following --> <PackageReference Remove="@(PackageReference)"/> <PackageReference Include="Microsoft.DotNet.IBCMerge" Version="$(MicrosoftDotNetIBCMergeVersion)" Condition="'$(UsingToolIbcOptimization)' == 'true'" /> <PackageReference Include="Drop.App" Version="$(DropAppVersion)" ExcludeAssets="all" Condition="'$(UsingToolVisualStudioIbcTraining)' == 'true'"/> </ItemGroup> <PropertyGroup> <RestoreSources></RestoreSources> <RestoreSources Condition="'$(UsingToolIbcOptimization)' == 'true'"> https://devdiv.pkgs.visualstudio.com/_packaging/dotnet-core-internal-tooling/nuget/v3/index.json; </RestoreSources> <RestoreSources Condition="'$(UsingToolVisualStudioIbcTraining)' == 'true'"> $(RestoreSources); https://devdiv.pkgs.visualstudio.com/_packaging/VS/nuget/v3/index.json; </RestoreSources> </PropertyGroup> <!-- Repository extensibility point --> <Import Project="$(RepositoryEngineeringDir)InternalTools.props" Condition="Exists('$(RepositoryEngineeringDir)InternalTools.props')" /> </Project>
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. --> <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net472</TargetFramework> <ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets> <AutomaticallyUseReferenceAssemblyPackages>false</AutomaticallyUseReferenceAssemblyPackages> </PropertyGroup> <ItemGroup> <!-- Clear references, the SDK may add some depending on UsuingToolXxx settings, but we only want to restore the following --> <PackageReference Remove="@(PackageReference)"/> <PackageReference Include="Microsoft.DotNet.IBCMerge" Version="$(MicrosoftDotNetIBCMergeVersion)" Condition="'$(UsingToolIbcOptimization)' == 'true'" /> <PackageReference Include="Drop.App" Version="$(DropAppVersion)" ExcludeAssets="all" Condition="'$(UsingToolVisualStudioIbcTraining)' == 'true'"/> </ItemGroup> <PropertyGroup> <RestoreSources></RestoreSources> <RestoreSources Condition="'$(UsingToolIbcOptimization)' == 'true'"> https://devdiv.pkgs.visualstudio.com/_packaging/dotnet-core-internal-tooling/nuget/v3/index.json; </RestoreSources> <RestoreSources Condition="'$(UsingToolVisualStudioIbcTraining)' == 'true'"> $(RestoreSources); https://devdiv.pkgs.visualstudio.com/_packaging/VS/nuget/v3/index.json; </RestoreSources> </PropertyGroup> <!-- Repository extensibility point --> <Import Project="$(RepositoryEngineeringDir)InternalTools.props" Condition="Exists('$(RepositoryEngineeringDir)InternalTools.props')" /> </Project>
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Workspaces/CSharp/Portable/Simplification/Reducers/CSharpNameReducer.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; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Simplification.Simplifiers; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Simplification; namespace Microsoft.CodeAnalysis.CSharp.Simplification { internal partial class CSharpNameReducer : AbstractCSharpReducer { private static readonly ObjectPool<IReductionRewriter> s_pool = new( () => new Rewriter(s_pool)); public CSharpNameReducer() : base(s_pool) { } private static readonly Func<SyntaxNode, SemanticModel, OptionSet, CancellationToken, SyntaxNode> s_simplifyName = SimplifyName; private static SyntaxNode SimplifyName( SyntaxNode node, SemanticModel semanticModel, OptionSet optionSet, CancellationToken cancellationToken) { SyntaxNode replacementNode; if (node.IsKind(SyntaxKind.QualifiedCref, out QualifiedCrefSyntax crefSyntax)) { if (!QualifiedCrefSimplifier.Instance.TrySimplify( crefSyntax, semanticModel, optionSet, out var crefReplacement, out _, cancellationToken)) { return node; } replacementNode = crefReplacement; } else { var expressionSyntax = (ExpressionSyntax)node; if (!ExpressionSimplifier.Instance.TrySimplify(expressionSyntax, semanticModel, optionSet, out var expressionReplacement, out _, cancellationToken)) { return node; } replacementNode = expressionReplacement; } node = node.CopyAnnotationsTo(replacementNode).WithAdditionalAnnotations(Formatter.Annotation); return node.WithoutAnnotations(Simplifier.Annotation); } } }
// 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; using Microsoft.CodeAnalysis.CSharp.Extensions; using Microsoft.CodeAnalysis.CSharp.Simplification.Simplifiers; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Formatting; using Microsoft.CodeAnalysis.Options; using Microsoft.CodeAnalysis.PooledObjects; using Microsoft.CodeAnalysis.Simplification; namespace Microsoft.CodeAnalysis.CSharp.Simplification { internal partial class CSharpNameReducer : AbstractCSharpReducer { private static readonly ObjectPool<IReductionRewriter> s_pool = new( () => new Rewriter(s_pool)); public CSharpNameReducer() : base(s_pool) { } private static readonly Func<SyntaxNode, SemanticModel, OptionSet, CancellationToken, SyntaxNode> s_simplifyName = SimplifyName; private static SyntaxNode SimplifyName( SyntaxNode node, SemanticModel semanticModel, OptionSet optionSet, CancellationToken cancellationToken) { SyntaxNode replacementNode; if (node.IsKind(SyntaxKind.QualifiedCref, out QualifiedCrefSyntax crefSyntax)) { if (!QualifiedCrefSimplifier.Instance.TrySimplify( crefSyntax, semanticModel, optionSet, out var crefReplacement, out _, cancellationToken)) { return node; } replacementNode = crefReplacement; } else { var expressionSyntax = (ExpressionSyntax)node; if (!ExpressionSimplifier.Instance.TrySimplify(expressionSyntax, semanticModel, optionSet, out var expressionReplacement, out _, cancellationToken)) { return node; } replacementNode = expressionReplacement; } node = node.CopyAnnotationsTo(replacementNode).WithAdditionalAnnotations(Formatter.Annotation); return node.WithoutAnnotations(Simplifier.Annotation); } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/ExpressionEvaluator/VisualBasic/Source/ExpressionCompiler/xlf/Resources.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="../Resources.resx"> <body> <trans-unit id="InvalidDebuggerStatement"> <source>Statements of type '{0}' are not allowed in the Immediate window.</source> <target state="translated">Le istruzioni di tipo '{0}' non sono consentite nella finestra Immediato.</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="../Resources.resx"> <body> <trans-unit id="InvalidDebuggerStatement"> <source>Statements of type '{0}' are not allowed in the Immediate window.</source> <target state="translated">Le istruzioni di tipo '{0}' non sono consentite nella finestra Immediato.</target> <note /> </trans-unit> </body> </file> </xliff>
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/Test/Core/Syntax/NodeInfo.FieldInfo.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.Text; namespace Microsoft.CodeAnalysis.Test.Utilities { public partial class NodeInfo { //Package of information containing the name, type, and value of a field on a syntax node. public class FieldInfo { private readonly string _propertyName; private readonly Type _fieldType; private readonly object _value; public string PropertyName { get { return _propertyName; } } public Type FieldType { get { return _fieldType; } } public object Value { get { return _value; } } public FieldInfo(string propertyName, Type fieldType, object value) { _propertyName = propertyName; _fieldType = fieldType; _value = 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 Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.Test.Utilities { public partial class NodeInfo { //Package of information containing the name, type, and value of a field on a syntax node. public class FieldInfo { private readonly string _propertyName; private readonly Type _fieldType; private readonly object _value; public string PropertyName { get { return _propertyName; } } public Type FieldType { get { return _fieldType; } } public object Value { get { return _value; } } public FieldInfo(string propertyName, Type fieldType, object value) { _propertyName = propertyName; _fieldType = fieldType; _value = value; } } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/EditorFeatures/CSharpTest/Diagnostics/GenerateMethod/GenerateConversionTests.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.CodeFixes; using Microsoft.CodeAnalysis.CSharp.CodeFixes.GenerateMethod; using Microsoft.CodeAnalysis.CSharp.CodeStyle; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; using Xunit.Abstractions; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Diagnostics.GenerateMethod { public class GenerateConversionTest : AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest { public GenerateConversionTest(ITestOutputHelper logger) : base(logger) { } internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace) => (null, new GenerateConversionCodeFixProvider()); [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateImplicitConversionGenericClass() { await TestInRegularAndScriptAsync( @"class Program { void Test(int[] a) { C<int> x1 = [|1|]; } } class C<T> { }", @"using System; class Program { void Test(int[] a) { C<int> x1 = 1; } } class C<T> { public static implicit operator C<T>(int v) { throw new NotImplementedException(); } }"); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateImplicitConversionClass() { await TestInRegularAndScriptAsync( @"class Program { void Test(int[] a) { C x1 = [|1|]; } } class C { }", @"using System; class Program { void Test(int[] a) { C x1 = 1; } } class C { public static implicit operator C(int v) { throw new NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateImplicitConversionClass_CodeStyle() { await TestInRegularAndScriptAsync( @"class Program { void Test(int[] a) { C x1 = [|1|]; } } class C { }", @"using System; class Program { void Test(int[] a) { C x1 = 1; } } class C { public static implicit operator C(int v) => throw new NotImplementedException(); }", options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedOperators, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement)); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateImplicitConversionAwaitExpression() { await TestInRegularAndScriptAsync( @"using System; using System.Threading.Tasks; class Program { async void Test() { var a = Task.FromResult(1); Program x1 = [|await a|]; } }", @"using System; using System.Threading.Tasks; class Program { async void Test() { var a = Task.FromResult(1); Program x1 = await a; } public static implicit operator Program(int v) { throw new NotImplementedException(); } }"); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateImplicitConversionTargetTypeNotInSource() { await TestInRegularAndScriptAsync( @"class Digit { public Digit(double d) { val = d; } public double val; } class Program { static void Main(string[] args) { Digit dig = new Digit(7); double num = [|dig|]; } }", @"using System; class Digit { public Digit(double d) { val = d; } public double val; public static implicit operator double(Digit v) { throw new NotImplementedException(); } } class Program { static void Main(string[] args) { Digit dig = new Digit(7); double num = dig; } }"); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateExplicitConversionGenericClass() { await TestInRegularAndScriptAsync( @"class Program { void Test(int[] a) { C<int> x1 = [|(C<int>)1|]; } } class C<T> { }", @"using System; class Program { void Test(int[] a) { C<int> x1 = (C<int>)1; } } class C<T> { public static explicit operator C<T>(int v) { throw new NotImplementedException(); } }"); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateExplicitConversionClass() { await TestInRegularAndScriptAsync( @"class Program { void Test(int[] a) { C x1 = [|(C)1|]; } } class C { }", @"using System; class Program { void Test(int[] a) { C x1 = (C)1; } } class C { public static explicit operator C(int v) { throw new NotImplementedException(); } }"); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateExplicitConversionAwaitExpression() { await TestInRegularAndScriptAsync( @"using System; using System.Threading.Tasks; class Program { async void Test() { var a = Task.FromResult(1); Program x1 = [|(Program)await a|]; } }", @"using System; using System.Threading.Tasks; class Program { async void Test() { var a = Task.FromResult(1); Program x1 = (Program)await a; } public static explicit operator Program(int v) { throw new NotImplementedException(); } }"); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateExplicitConversionTargetTypeNotInSource() { await TestInRegularAndScriptAsync( @"class Digit { public Digit(double d) { val = d; } public double val; } class Program { static void Main(string[] args) { Digit dig = new Digit(7); double num = [|(double)dig|]; } }", @"using System; class Digit { public Digit(double d) { val = d; } public double val; public static explicit operator double(Digit v) { throw new NotImplementedException(); } } class Program { static void Main(string[] args) { Digit dig = new Digit(7); double num = (double)dig; } }"); } } }
// 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.CodeFixes; using Microsoft.CodeAnalysis.CSharp.CodeFixes.GenerateMethod; using Microsoft.CodeAnalysis.CSharp.CodeStyle; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Test.Utilities; using Roslyn.Test.Utilities; using Xunit; using Xunit.Abstractions; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Diagnostics.GenerateMethod { public class GenerateConversionTest : AbstractCSharpDiagnosticProviderBasedUserDiagnosticTest { public GenerateConversionTest(ITestOutputHelper logger) : base(logger) { } internal override (DiagnosticAnalyzer, CodeFixProvider) CreateDiagnosticProviderAndFixer(Workspace workspace) => (null, new GenerateConversionCodeFixProvider()); [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateImplicitConversionGenericClass() { await TestInRegularAndScriptAsync( @"class Program { void Test(int[] a) { C<int> x1 = [|1|]; } } class C<T> { }", @"using System; class Program { void Test(int[] a) { C<int> x1 = 1; } } class C<T> { public static implicit operator C<T>(int v) { throw new NotImplementedException(); } }"); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateImplicitConversionClass() { await TestInRegularAndScriptAsync( @"class Program { void Test(int[] a) { C x1 = [|1|]; } } class C { }", @"using System; class Program { void Test(int[] a) { C x1 = 1; } } class C { public static implicit operator C(int v) { throw new NotImplementedException(); } }"); } [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateImplicitConversionClass_CodeStyle() { await TestInRegularAndScriptAsync( @"class Program { void Test(int[] a) { C x1 = [|1|]; } } class C { }", @"using System; class Program { void Test(int[] a) { C x1 = 1; } } class C { public static implicit operator C(int v) => throw new NotImplementedException(); }", options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedOperators, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement)); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateImplicitConversionAwaitExpression() { await TestInRegularAndScriptAsync( @"using System; using System.Threading.Tasks; class Program { async void Test() { var a = Task.FromResult(1); Program x1 = [|await a|]; } }", @"using System; using System.Threading.Tasks; class Program { async void Test() { var a = Task.FromResult(1); Program x1 = await a; } public static implicit operator Program(int v) { throw new NotImplementedException(); } }"); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateImplicitConversionTargetTypeNotInSource() { await TestInRegularAndScriptAsync( @"class Digit { public Digit(double d) { val = d; } public double val; } class Program { static void Main(string[] args) { Digit dig = new Digit(7); double num = [|dig|]; } }", @"using System; class Digit { public Digit(double d) { val = d; } public double val; public static implicit operator double(Digit v) { throw new NotImplementedException(); } } class Program { static void Main(string[] args) { Digit dig = new Digit(7); double num = dig; } }"); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateExplicitConversionGenericClass() { await TestInRegularAndScriptAsync( @"class Program { void Test(int[] a) { C<int> x1 = [|(C<int>)1|]; } } class C<T> { }", @"using System; class Program { void Test(int[] a) { C<int> x1 = (C<int>)1; } } class C<T> { public static explicit operator C<T>(int v) { throw new NotImplementedException(); } }"); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateExplicitConversionClass() { await TestInRegularAndScriptAsync( @"class Program { void Test(int[] a) { C x1 = [|(C)1|]; } } class C { }", @"using System; class Program { void Test(int[] a) { C x1 = (C)1; } } class C { public static explicit operator C(int v) { throw new NotImplementedException(); } }"); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateExplicitConversionAwaitExpression() { await TestInRegularAndScriptAsync( @"using System; using System.Threading.Tasks; class Program { async void Test() { var a = Task.FromResult(1); Program x1 = [|(Program)await a|]; } }", @"using System; using System.Threading.Tasks; class Program { async void Test() { var a = Task.FromResult(1); Program x1 = (Program)await a; } public static explicit operator Program(int v) { throw new NotImplementedException(); } }"); } [WorkItem(774321, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/774321")] [Fact, Trait(Traits.Feature, Traits.Features.CodeActionsGenerateMethod)] public async Task TestGenerateExplicitConversionTargetTypeNotInSource() { await TestInRegularAndScriptAsync( @"class Digit { public Digit(double d) { val = d; } public double val; } class Program { static void Main(string[] args) { Digit dig = new Digit(7); double num = [|(double)dig|]; } }", @"using System; class Digit { public Digit(double d) { val = d; } public double val; public static explicit operator double(Digit v) { throw new NotImplementedException(); } } class Program { static void Main(string[] args) { Digit dig = new Digit(7); double num = (double)dig; } }"); } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Tools/Source/CompilerGeneratorTools/Source/VisualBasicSyntaxGenerator/XML/ParseTreeDescription.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. '----------------------------------------------------------------------------------------------------------- ' Defines the in-memory format of the parse tree description. Many of the structures also ' contain some of the code for reading themselves from the input file. '----------------------------------------------------------------------------------------------------------- Imports System.Globalization Imports System.Text Imports System.Xml Imports <xmlns="http://schemas.microsoft.com/VisualStudio/Roslyn/Compiler"> ' Root class of the parse tree. All information about the parse tree is in ' stuff accessible from here. In particular, contains dictionaries of all ' the various parts (structures, node kinds, enumerations, etc.) Public Class ParseTree Public FileName As String ' my file name Public NamespaceName As String ' name of the namespace to put stuff in Public VisitorName As String ' name of the visitor class Public RewriteVisitorName As String ' name of the rewriting visitor class Public FactoryClassName As String ' name of the factory class Public ContextualFactoryClassName As String ' name of the contextual factory class ' Dictionary of all node-structure's, indexed by name Public NodeStructures As New Dictionary(Of String, ParseNodeStructure) ' Dictionary of all node-kinds, indexed by name Public NodeKinds As New Dictionary(Of String, ParseNodeKind) ' Dictionary of all enumerations, indexed by name Public Enumerations As New Dictionary(Of String, ParseEnumeration) ' Dictionary of all node-kind-alias's, indexed by name Public Aliases As New Dictionary(Of String, ParseNodeKindAlias) ' Determines which structures are abstract Public IsAbstract As New Dictionary(Of ParseNodeStructure, Boolean) ' Get the root structure. Public RootStructure As ParseNodeStructure ' Get the root structure for Tokens, Trivia Public RootToken, RootTrivia As ParseNodeStructure ' Remember nodes with errors so we only report one error per node. Private ReadOnly _elementsWithErrors As New Dictionary(Of XNode, Boolean) ' Report an error. Public Sub ReportError(referencingNode As XNode, message As String, ParamArray args As Object()) Dim fullMessage As String = FileName If referencingNode IsNot Nothing Then If _elementsWithErrors.ContainsKey(referencingNode) Then ' We already reported an error on this node. Exit Sub End If _elementsWithErrors(referencingNode) = True ' remember this so we only report errors on this node once. Dim lineInfo = CType(referencingNode, IXmlLineInfo) fullMessage += String.Format("({0})", lineInfo.LineNumber) End If fullMessage += String.Format(": " + message, args) Console.WriteLine(fullMessage) End Sub ' Does this struct have any children (including parents? Public Function HasAnyChildren(struct As ParseNodeStructure) As Boolean Return struct.Children.Count > 0 OrElse (struct.ParentStructure IsNot Nothing AndAlso HasAnyChildren(struct.ParentStructure)) End Function ' We finished reading the tree. Do a bit of pre-processing. Public Sub FinishedReading() ' Go through each node-structure and check for the root. RootStructure = Nothing For Each struct In NodeStructures.Values If struct.IsRoot Then If RootStructure IsNot Nothing Then ReportError(RootStructure.Element, "More than one root node specified.") ReportError(struct.Element, "More than one root node specified.") End If RootStructure = struct Else ' this node is derived from something else. Remember that. struct.ParentStructure.HasDerivedStructure = Not String.IsNullOrEmpty(struct.ParentStructureId) End If ' Check for token root. If struct.IsTokenRoot Then If RootToken IsNot Nothing Then ReportError(struct.Element, "More than one token root specified.") RootToken = struct End If ' Check for trivia root. If struct.IsTriviaRoot Then If RootTrivia IsNot Nothing Then ReportError(struct.Element, "More than one trivia root specified.") RootTrivia = struct End If IsAbstract(struct) = True ' Determine "tokens" and trivia by walking the hierarchy SetIsTokenAndIsTrivia(struct) Next ' Figure out abstract nodes - they have no kinds associated with them. For Each kind In NodeKinds.Values IsAbstract(kind.NodeStructure) = False Next End Sub ' Set the IsToken and IsTrivia flags on a struct Private Sub SetIsTokenAndIsTrivia(struct As ParseNodeStructure) ' Walk the hierarchy. Dim parent = struct While parent IsNot Nothing If parent.IsTokenRoot Then struct.IsToken = True Return End If If parent.IsTriviaRoot Then struct.IsTrivia = True End If parent = parent.ParentStructure End While End Sub Public Function ParseEnumType(enumString As String, referencingElement As XNode) As Object If (Enumerations.ContainsKey(enumString)) Then Return Enumerations(enumString) End If ReportError(referencingElement, "{0} is not a valid field type. You should add a node-kind entry in the syntax.xml.", enumString) Return Nothing End Function Public Function ParseOneNodeKind(typeString As String, referencingNode As XNode) As ParseNodeKind If (NodeKinds.ContainsKey(typeString)) Then Return NodeKinds(typeString) End If ReportError(referencingNode, "{0} is not a valid node kind", typeString) Return Nothing End Function Public Function ParseNodeKind(typeParts As IList(Of String), referencingNode As XNode) As Object Dim typeList As New List(Of ParseNodeKind) For Each typePart In typeParts Dim foundType = ParseNodeKind(typePart, referencingNode) If (TypeOf foundType Is List(Of ParseNodeKind)) Then typeList.AddRange(CType(foundType, List(Of ParseNodeKind))) Else If Not TypeOf foundType Is ParseNodeKind Then ReportError(referencingNode, "{0} cannot be used in a alternation of types; it is not a node kind", typePart) Else typeList.Add(CType(foundType, ParseNodeKind)) End If End If Next If typeList.Count = 1 Then Return typeList(0) End If Return typeList End Function Public Function ParseNodeKind(typeString As String, referencingNode As XNode) As Object If (typeString.Contains("|")) Then Dim typeList As New List(Of ParseNodeKind) For Each typePart As String In typeString.Split("|"c) Dim foundType = ParseNodeKind(typePart, referencingNode) If (TypeOf foundType Is List(Of ParseNodeKind)) Then typeList.AddRange(CType(foundType, List(Of ParseNodeKind))) Else If Not TypeOf foundType Is ParseNodeKind Then ReportError(referencingNode, "{0} cannot be used in a alternation of types; it is not a node kind", typePart) Else typeList.Add(CType(foundType, ParseNodeKind)) End If End If Next Return typeList End If If typeString.StartsWith("@", StringComparison.Ordinal) Then Dim nodeTypeString = typeString.Substring(1) If Not NodeStructures.ContainsKey(nodeTypeString) Then ReportError(referencingNode, "Unknown structure '@{0}'", nodeTypeString) Return Nothing End If Return NodeStructures(nodeTypeString).GetAllKinds() End If If Aliases.ContainsKey(typeString) Then Return ParseNodeKind(Aliases(typeString).AliasKinds, referencingNode) End If Return ParseOneNodeKind(typeString, referencingNode) End Function ' Is this structure some base structure of another, or the same Public Function IsAncestorOrSame(parent As ParseNodeStructure, child As ParseNodeStructure) As Boolean Do If (parent Is child) Then Return True End If child = child.ParentStructure Loop While (child IsNot Nothing) Return False End Function End Class ' Base class for things in the parse trees. Each one has a reference back ' to the containing parse tree, and also the XML element it was loaded from. Public MustInherit Class ParseTreeDefinition Private _parseTree As ParseTree Public Overridable Property ParseTree() As ParseTree Get Return Me._parseTree End Get Set(value As ParseTree) Me._parseTree = value End Set End Property ' The element this was loaded from. Primarily useful for getting line/col info for errors. Public Element As XElement End Class ' Information defined in a node-structure element. Defines a node class in the parse tree. Public Class ParseNodeStructure Inherits ParseTreeDefinition ' name of the structure. Public Name As String ' parent as a string. Public ParentStructureId As String Public ReadOnly Property ParentStructure() As ParseNodeStructure Get If String.IsNullOrEmpty(ParentStructureId) Then Return Nothing Else If Not ParseTree.NodeStructures.ContainsKey(ParentStructureId) Then ParseTree.ReportError(Element, "Unknown parent structure '{0}' for node-structure '{1}'", ParentStructureId, Name) Return Nothing End If Return ParseTree.NodeStructures(ParentStructureId) End If End Get End Property ' Information about the structure. Public Description As String Public Abstract As Boolean Public PartialClass As Boolean Public IsPredefined As Boolean Public IsRoot As Boolean Public IsTokenRoot, IsTriviaRoot As Boolean ' is this the root of tokens, trivia? Public NoFactory As Boolean ' if true, don't create factory method Public NodeKinds As List(Of ParseNodeKind) Public Fields As List(Of ParseNodeField) Public Children As List(Of ParseNodeChild) Public HasDerivedStructure As Boolean ' does this node have any nodes derived from it? Public ReadOnly InternalSyntaxFacts As Boolean Public ReadOnly HasDefaultFactory As Boolean Public IsToken As Boolean ' true if node derives from token root Public IsTrivia As Boolean ' true if node derives from trivia root Public ReadOnly Property IsTerminal As Boolean Get Return IsToken OrElse (Not ParseTree.HasAnyChildren(Me) AndAlso Not Me.Abstract) End Get End Property Public DefaultTrailingTrivia As String ' default trailing trivia for the simplified factory. ' Create a new structure in the give tree and load it from the give XElement. Public Sub New(el As XElement, tree As ParseTree) Me.ParseTree = tree Me.Element = el Name = el.@name ParentStructureId = el.@parent Description = el.<description>.Value DefaultTrailingTrivia = el.@<default-trailing-trivia> Abstract = If(CType(el.Attribute("abstract"), Boolean?), False) PartialClass = If(CType(el.Attribute("partial"), Boolean?), False) IsPredefined = If(CType(el.Attribute("predefined"), Boolean?), False) IsRoot = If(CType(el.Attribute("root"), Boolean?), False) IsTokenRoot = If(CType(el.Attribute("token-root"), Boolean?), False) IsTriviaRoot = If(CType(el.Attribute("trivia-root"), Boolean?), False) NoFactory = If(CType(el.Attribute("no-factory"), Boolean?), False) HasDefaultFactory = If(CType(el.Attribute("has-default-factory"), Boolean?), False) InternalSyntaxFacts = If(CType(el.Attribute("syntax-facts-internal"), Boolean?), False) NodeKinds = (From nk In el.<node-kind> Select New ParseNodeKind(nk, Me)).ToList() For Each nk In NodeKinds If tree.NodeKinds.ContainsKey(nk.Name) Then tree.ReportError(Element, "node-kind ""{0}"" already defined.", nk.Name) Else tree.NodeKinds.Add(nk.Name, nk) End If Next Fields = (From f In el.<field> Select New ParseNodeField(f, Me)).ToList() Children = (From c In el.<child> Select New ParseNodeChild(c, Me)).ToList() End Sub Public Function GetAllKinds() As List(Of ParseNodeKind) Return New List(Of ParseNodeKind)(From kvPair In ParseTree.NodeKinds Where ParseTree.IsAncestorOrSame(Me, kvPair.Value.NodeStructure) Select kvPair.Value) End Function Public Function DerivesFrom(baseClassName As String) As Boolean Dim nodeStructure As ParseNodeStructure = Me While nodeStructure IsNot Nothing If String.Compare(nodeStructure.Name, baseClassName, True) = 0 Then Return True End If nodeStructure = nodeStructure.ParentStructure End While Return False End Function Public Overrides Function ToString() As String Return Name End Function End Class ' Defines a single node kind in the tree. Every node kind is associated with a structure, but ' a structure can have multiple node kinds. Kinds must be unique in the whole tree. Public Class ParseNodeKind Inherits ParseTreeDefinition Public Name As String Public StructureId As String Public TokenText As String Public NoFactory As Boolean ' if true, don't create factory method for this kind. Public ReadOnly Property NodeStructure() As ParseNodeStructure Get If String.IsNullOrEmpty(StructureId) Then Return Nothing Else If Not ParseTree.NodeStructures.ContainsKey(StructureId) Then ParseTree.ReportError(Element, "Unknown structure '{0}' for node-kind '{1}'", StructureId, Name) Return Nothing End If Return ParseTree.NodeStructures(StructureId) End If End Get End Property Public Description As String Public Sub New(el As XElement, struct As ParseNodeStructure) Me.ParseTree = struct.ParseTree Me.Element = el Name = el.@name TokenText = el.@<token-text> NoFactory = If(CType(el.Attribute("no-factory"), Boolean?), False) StructureId = struct.Name Description = If(el.<description>.Value, struct.Description) End Sub End Class ' Defines an alias for one or more node kinds. Public Class ParseNodeKindAlias Inherits ParseTreeDefinition Public Name As String Public AliasKinds As String Public Description As String Public Sub New(el As XElement, tree As ParseTree) ParseTree = tree Me.Element = el Name = el.@name AliasKinds = el.@alias Description = el.<description>.Value End Sub End Class ' A field in a node structure. A field is a property that stores data like integer, ' text, etc, not a child node. Its type can be a simple type or an enumeration type. Public Class ParseNodeField Inherits ParseTreeDefinition Public ReadOnly Name As String Public ReadOnly ContainingStructure As ParseNodeStructure Public ReadOnly IsOptional As Boolean Public ReadOnly FieldTypeId As String Public ReadOnly Description As String Public Sub New(el As XElement, struct As ParseNodeStructure) Me.ParseTree = struct.ParseTree Me.Element = el Me.ContainingStructure = struct Name = el.@name IsOptional = If(CType(el.Attribute("optional"), Boolean?), False) FieldTypeId = el.@type Description = el.<description>.Value End Sub ' Gets the field type. Could return a SimpleType, Enumeration Public ReadOnly Property FieldType() As Object Get Select Case FieldTypeId.ToLowerInvariant() Case "boolean" Return SimpleType.Bool Case "text" Return SimpleType.Text Case "character" Return SimpleType.Character Case "int32" Return SimpleType.Int32 Case "uint32" Return SimpleType.UInt32 Case "int64" Return SimpleType.Int64 Case "uint64" Return SimpleType.UInt64 Case "float32" Return SimpleType.Float32 Case "float64" Return SimpleType.Float64 Case "decimal" Return SimpleType.Decimal Case "datetime" Return SimpleType.DateTime Case "textspan" Return SimpleType.TextSpan Case "nodekind" Return SimpleType.NodeKind Case Else Return ParseTree.ParseEnumType(FieldTypeId, Element) End Select End Get End Property End Class ' Defines a child node with a node structure. A child can be a single child ' node of a list of child nodes. Public Class ParseNodeChild Inherits ParseTreeDefinition Public ReadOnly Name As String Public ReadOnly ContainingStructure As ParseNodeStructure Public ReadOnly IsOptional As Boolean Public ReadOnly MinCount As Integer Public ReadOnly IsList As Boolean Public ReadOnly IsSeparated As Boolean Public ReadOnly SeparatorsName As String Private ReadOnly _childKindNames As New Dictionary(Of String, List(Of String)) Private _childKind As Object Public ReadOnly SeparatorsTypeId As String Public ReadOnly Description As String Public ReadOnly Order As Single Public ReadOnly NotInFactory As Boolean Public ReadOnly GenerateWith As Boolean Public ReadOnly InternalSyntaxFacts As Boolean Public KindForNodeKind As Dictionary(Of String, ParseNodeKind) Private ReadOnly _defaultChildKindName As String Private _defaultChildKind As ParseNodeKind Public Sub New(el As XElement, struct As ParseNodeStructure) Me.ParseTree = struct.ParseTree Me.Element = el Me.ContainingStructure = struct Single.TryParse(el.@order, NumberStyles.Any, CultureInfo.InvariantCulture, Me.Order) Name = el.@name SeparatorsName = el.@<separator-name> SeparatorsTypeId = el.@<separator-kind> IsList = If(CType(el.Attribute("list"), Boolean?), False) IsSeparated = el.@<separator-kind> <> "" IsOptional = If(CType(el.Attribute("optional"), Boolean?), False) MinCount = If(CType(el.Attribute("min-count"), Integer?), 0) Description = el.<description>.Value NotInFactory = If(CType(el.Attribute("not-in-factory"), Boolean?), False) GenerateWith = If(CType(el.Attribute("generate-with"), Boolean?), False) InternalSyntaxFacts = If(CType(el.Attribute("syntax-facts-internal"), Boolean?), False) _defaultChildKindName = CType(el.Attribute("default-kind"), String) For Each kind In el.<kind> ' The kind may be duplicated Dim nodeKinds As List(Of String) = Nothing If _childKindNames.TryGetValue(kind.@name, nodeKinds) Then nodeKinds.Add(kind.@<node-kind>) Else nodeKinds = New List(Of String) nodeKinds.Add(kind.@<node-kind>) _childKindNames.Add(kind.@name, nodeKinds) End If Next If _childKindNames.Count = 0 Then Dim kindsString = el.@kind For Each kind As String In kindsString.Split("|"c) _childKindNames.Add(kind, Nothing) 'New List(Of String)(From nodeKind In struct.NodeKinds Select nodeKind.Name)) Next ElseIf el.@kind IsNot Nothing Then ParseTree.ReportError(el, "Cannot have both kind attribute on child and also have kind sub element in child.") End If End Sub Public ReadOnly Property ChildKind(kind As String) As ParseNodeKind Get If KindForNodeKind Is Nothing Then KindForNodeKind = New Dictionary(Of String, ParseNodeKind) For Each key In _childKindNames.Keys Dim nodeNames = _childKindNames(key) If nodeNames IsNot Nothing Then Dim child = ParseTree.ParseOneNodeKind(key, Element) For Each nodeName In nodeNames Dim node = ParseTree.ParseOneNodeKind(nodeName, Element) KindForNodeKind.Add(node.Name, child) Next End If Next End If Dim result As ParseNodeKind = Nothing KindForNodeKind.TryGetValue(kind, result) Return result End Get End Property Public ReadOnly Property ChildKind(containerKinds As IList(Of ParseNodeKind)) As List(Of ParseNodeKind) Get Dim allChildkinds As List(Of ParseNodeKind) = TryCast(ChildKind(), List(Of ParseNodeKind)) If allChildkinds Is Nothing Then Return Nothing End If Dim childkindsForContainer = New List(Of ParseNodeKind) For Each containerKind In containerKinds Dim propertyKind = ChildKind(containerKind.Name) If propertyKind IsNot Nothing Then childkindsForContainer.Add(propertyKind) End If Next If childkindsForContainer.Count > 0 Then Return childkindsForContainer End If Return allChildkinds End Get End Property ' Gets the child type. Could return a NodeKind, List(NodeKind) containing the allowable node kinds of the child. Public ReadOnly Property ChildKind() As Object Get If _childKind Is Nothing Then Dim names(_childKindNames.Count - 1) As String _childKindNames.Keys.CopyTo(names, 0) _childKind = ParseTree.ParseNodeKind(names, Element) End If Return _childKind End Get End Property Public Function WithChildKind(childKind As Object) As ParseNodeChild Dim copy = New ParseNodeChild(Me.Element, Me.ContainingStructure) copy._childKind = childKind Return copy End Function Public ReadOnly Property DefaultChildKind() As ParseNodeKind Get If _defaultChildKind Is Nothing AndAlso _defaultChildKindName IsNot Nothing Then _defaultChildKind = CType(ParseTree.ParseNodeKind(_defaultChildKindName, Element), ParseNodeKind) End If Return _defaultChildKind End Get End Property ' Gets the separators type. Could return a NodeKind, List(NodeKind) containing the allowable node kinds of the child. Public ReadOnly Property SeparatorsKind() As Object Get Return ParseTree.ParseNodeKind(SeparatorsTypeId, Element) End Get End Property Public Overrides Function ToString() As String Return Name End Function End Class ' Defines an enumeration type, so that fields of this type can be defined. Public Class ParseEnumeration Inherits ParseTreeDefinition Public Name As String Public IsFlags As Boolean Public Description As String Public Enumerators As List(Of ParseEnumerator) Public Sub New(el As XElement, tree As ParseTree) ParseTree = tree Me.Element = el Name = el.@name IsFlags = If(CType(el.Attribute("flags"), Boolean?), False) Description = el.<description>.Value Enumerators = (From en In el.<enumerators>.<enumerator> Select New ParseEnumerator(en, Me)).ToList() End Sub End Class ' Defines a single enumerator inside an enumeration type. Public Class ParseEnumerator Public Name As String Public ValueString As String Public Description As String Public Sub New(el As XElement, enumeration As ParseEnumeration) Name = el.@name ValueString = el.@hexvalue Description = el.<description>.Value End Sub Public ReadOnly Property Value() As Long Get Return Convert.ToInt64(ValueString, 16) End Get End Property End Class ' THe kinds of simple types for fields. Public Enum SimpleType Bool Text Character Int32 UInt32 Int64 UInt64 Float32 Float64 [Decimal] DateTime TextSpan NodeKind End Enum
' 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. '----------------------------------------------------------------------------------------------------------- ' Defines the in-memory format of the parse tree description. Many of the structures also ' contain some of the code for reading themselves from the input file. '----------------------------------------------------------------------------------------------------------- Imports System.Globalization Imports System.Text Imports System.Xml Imports <xmlns="http://schemas.microsoft.com/VisualStudio/Roslyn/Compiler"> ' Root class of the parse tree. All information about the parse tree is in ' stuff accessible from here. In particular, contains dictionaries of all ' the various parts (structures, node kinds, enumerations, etc.) Public Class ParseTree Public FileName As String ' my file name Public NamespaceName As String ' name of the namespace to put stuff in Public VisitorName As String ' name of the visitor class Public RewriteVisitorName As String ' name of the rewriting visitor class Public FactoryClassName As String ' name of the factory class Public ContextualFactoryClassName As String ' name of the contextual factory class ' Dictionary of all node-structure's, indexed by name Public NodeStructures As New Dictionary(Of String, ParseNodeStructure) ' Dictionary of all node-kinds, indexed by name Public NodeKinds As New Dictionary(Of String, ParseNodeKind) ' Dictionary of all enumerations, indexed by name Public Enumerations As New Dictionary(Of String, ParseEnumeration) ' Dictionary of all node-kind-alias's, indexed by name Public Aliases As New Dictionary(Of String, ParseNodeKindAlias) ' Determines which structures are abstract Public IsAbstract As New Dictionary(Of ParseNodeStructure, Boolean) ' Get the root structure. Public RootStructure As ParseNodeStructure ' Get the root structure for Tokens, Trivia Public RootToken, RootTrivia As ParseNodeStructure ' Remember nodes with errors so we only report one error per node. Private ReadOnly _elementsWithErrors As New Dictionary(Of XNode, Boolean) ' Report an error. Public Sub ReportError(referencingNode As XNode, message As String, ParamArray args As Object()) Dim fullMessage As String = FileName If referencingNode IsNot Nothing Then If _elementsWithErrors.ContainsKey(referencingNode) Then ' We already reported an error on this node. Exit Sub End If _elementsWithErrors(referencingNode) = True ' remember this so we only report errors on this node once. Dim lineInfo = CType(referencingNode, IXmlLineInfo) fullMessage += String.Format("({0})", lineInfo.LineNumber) End If fullMessage += String.Format(": " + message, args) Console.WriteLine(fullMessage) End Sub ' Does this struct have any children (including parents? Public Function HasAnyChildren(struct As ParseNodeStructure) As Boolean Return struct.Children.Count > 0 OrElse (struct.ParentStructure IsNot Nothing AndAlso HasAnyChildren(struct.ParentStructure)) End Function ' We finished reading the tree. Do a bit of pre-processing. Public Sub FinishedReading() ' Go through each node-structure and check for the root. RootStructure = Nothing For Each struct In NodeStructures.Values If struct.IsRoot Then If RootStructure IsNot Nothing Then ReportError(RootStructure.Element, "More than one root node specified.") ReportError(struct.Element, "More than one root node specified.") End If RootStructure = struct Else ' this node is derived from something else. Remember that. struct.ParentStructure.HasDerivedStructure = Not String.IsNullOrEmpty(struct.ParentStructureId) End If ' Check for token root. If struct.IsTokenRoot Then If RootToken IsNot Nothing Then ReportError(struct.Element, "More than one token root specified.") RootToken = struct End If ' Check for trivia root. If struct.IsTriviaRoot Then If RootTrivia IsNot Nothing Then ReportError(struct.Element, "More than one trivia root specified.") RootTrivia = struct End If IsAbstract(struct) = True ' Determine "tokens" and trivia by walking the hierarchy SetIsTokenAndIsTrivia(struct) Next ' Figure out abstract nodes - they have no kinds associated with them. For Each kind In NodeKinds.Values IsAbstract(kind.NodeStructure) = False Next End Sub ' Set the IsToken and IsTrivia flags on a struct Private Sub SetIsTokenAndIsTrivia(struct As ParseNodeStructure) ' Walk the hierarchy. Dim parent = struct While parent IsNot Nothing If parent.IsTokenRoot Then struct.IsToken = True Return End If If parent.IsTriviaRoot Then struct.IsTrivia = True End If parent = parent.ParentStructure End While End Sub Public Function ParseEnumType(enumString As String, referencingElement As XNode) As Object If (Enumerations.ContainsKey(enumString)) Then Return Enumerations(enumString) End If ReportError(referencingElement, "{0} is not a valid field type. You should add a node-kind entry in the syntax.xml.", enumString) Return Nothing End Function Public Function ParseOneNodeKind(typeString As String, referencingNode As XNode) As ParseNodeKind If (NodeKinds.ContainsKey(typeString)) Then Return NodeKinds(typeString) End If ReportError(referencingNode, "{0} is not a valid node kind", typeString) Return Nothing End Function Public Function ParseNodeKind(typeParts As IList(Of String), referencingNode As XNode) As Object Dim typeList As New List(Of ParseNodeKind) For Each typePart In typeParts Dim foundType = ParseNodeKind(typePart, referencingNode) If (TypeOf foundType Is List(Of ParseNodeKind)) Then typeList.AddRange(CType(foundType, List(Of ParseNodeKind))) Else If Not TypeOf foundType Is ParseNodeKind Then ReportError(referencingNode, "{0} cannot be used in a alternation of types; it is not a node kind", typePart) Else typeList.Add(CType(foundType, ParseNodeKind)) End If End If Next If typeList.Count = 1 Then Return typeList(0) End If Return typeList End Function Public Function ParseNodeKind(typeString As String, referencingNode As XNode) As Object If (typeString.Contains("|")) Then Dim typeList As New List(Of ParseNodeKind) For Each typePart As String In typeString.Split("|"c) Dim foundType = ParseNodeKind(typePart, referencingNode) If (TypeOf foundType Is List(Of ParseNodeKind)) Then typeList.AddRange(CType(foundType, List(Of ParseNodeKind))) Else If Not TypeOf foundType Is ParseNodeKind Then ReportError(referencingNode, "{0} cannot be used in a alternation of types; it is not a node kind", typePart) Else typeList.Add(CType(foundType, ParseNodeKind)) End If End If Next Return typeList End If If typeString.StartsWith("@", StringComparison.Ordinal) Then Dim nodeTypeString = typeString.Substring(1) If Not NodeStructures.ContainsKey(nodeTypeString) Then ReportError(referencingNode, "Unknown structure '@{0}'", nodeTypeString) Return Nothing End If Return NodeStructures(nodeTypeString).GetAllKinds() End If If Aliases.ContainsKey(typeString) Then Return ParseNodeKind(Aliases(typeString).AliasKinds, referencingNode) End If Return ParseOneNodeKind(typeString, referencingNode) End Function ' Is this structure some base structure of another, or the same Public Function IsAncestorOrSame(parent As ParseNodeStructure, child As ParseNodeStructure) As Boolean Do If (parent Is child) Then Return True End If child = child.ParentStructure Loop While (child IsNot Nothing) Return False End Function End Class ' Base class for things in the parse trees. Each one has a reference back ' to the containing parse tree, and also the XML element it was loaded from. Public MustInherit Class ParseTreeDefinition Private _parseTree As ParseTree Public Overridable Property ParseTree() As ParseTree Get Return Me._parseTree End Get Set(value As ParseTree) Me._parseTree = value End Set End Property ' The element this was loaded from. Primarily useful for getting line/col info for errors. Public Element As XElement End Class ' Information defined in a node-structure element. Defines a node class in the parse tree. Public Class ParseNodeStructure Inherits ParseTreeDefinition ' name of the structure. Public Name As String ' parent as a string. Public ParentStructureId As String Public ReadOnly Property ParentStructure() As ParseNodeStructure Get If String.IsNullOrEmpty(ParentStructureId) Then Return Nothing Else If Not ParseTree.NodeStructures.ContainsKey(ParentStructureId) Then ParseTree.ReportError(Element, "Unknown parent structure '{0}' for node-structure '{1}'", ParentStructureId, Name) Return Nothing End If Return ParseTree.NodeStructures(ParentStructureId) End If End Get End Property ' Information about the structure. Public Description As String Public Abstract As Boolean Public PartialClass As Boolean Public IsPredefined As Boolean Public IsRoot As Boolean Public IsTokenRoot, IsTriviaRoot As Boolean ' is this the root of tokens, trivia? Public NoFactory As Boolean ' if true, don't create factory method Public NodeKinds As List(Of ParseNodeKind) Public Fields As List(Of ParseNodeField) Public Children As List(Of ParseNodeChild) Public HasDerivedStructure As Boolean ' does this node have any nodes derived from it? Public ReadOnly InternalSyntaxFacts As Boolean Public ReadOnly HasDefaultFactory As Boolean Public IsToken As Boolean ' true if node derives from token root Public IsTrivia As Boolean ' true if node derives from trivia root Public ReadOnly Property IsTerminal As Boolean Get Return IsToken OrElse (Not ParseTree.HasAnyChildren(Me) AndAlso Not Me.Abstract) End Get End Property Public DefaultTrailingTrivia As String ' default trailing trivia for the simplified factory. ' Create a new structure in the give tree and load it from the give XElement. Public Sub New(el As XElement, tree As ParseTree) Me.ParseTree = tree Me.Element = el Name = el.@name ParentStructureId = el.@parent Description = el.<description>.Value DefaultTrailingTrivia = el.@<default-trailing-trivia> Abstract = If(CType(el.Attribute("abstract"), Boolean?), False) PartialClass = If(CType(el.Attribute("partial"), Boolean?), False) IsPredefined = If(CType(el.Attribute("predefined"), Boolean?), False) IsRoot = If(CType(el.Attribute("root"), Boolean?), False) IsTokenRoot = If(CType(el.Attribute("token-root"), Boolean?), False) IsTriviaRoot = If(CType(el.Attribute("trivia-root"), Boolean?), False) NoFactory = If(CType(el.Attribute("no-factory"), Boolean?), False) HasDefaultFactory = If(CType(el.Attribute("has-default-factory"), Boolean?), False) InternalSyntaxFacts = If(CType(el.Attribute("syntax-facts-internal"), Boolean?), False) NodeKinds = (From nk In el.<node-kind> Select New ParseNodeKind(nk, Me)).ToList() For Each nk In NodeKinds If tree.NodeKinds.ContainsKey(nk.Name) Then tree.ReportError(Element, "node-kind ""{0}"" already defined.", nk.Name) Else tree.NodeKinds.Add(nk.Name, nk) End If Next Fields = (From f In el.<field> Select New ParseNodeField(f, Me)).ToList() Children = (From c In el.<child> Select New ParseNodeChild(c, Me)).ToList() End Sub Public Function GetAllKinds() As List(Of ParseNodeKind) Return New List(Of ParseNodeKind)(From kvPair In ParseTree.NodeKinds Where ParseTree.IsAncestorOrSame(Me, kvPair.Value.NodeStructure) Select kvPair.Value) End Function Public Function DerivesFrom(baseClassName As String) As Boolean Dim nodeStructure As ParseNodeStructure = Me While nodeStructure IsNot Nothing If String.Compare(nodeStructure.Name, baseClassName, True) = 0 Then Return True End If nodeStructure = nodeStructure.ParentStructure End While Return False End Function Public Overrides Function ToString() As String Return Name End Function End Class ' Defines a single node kind in the tree. Every node kind is associated with a structure, but ' a structure can have multiple node kinds. Kinds must be unique in the whole tree. Public Class ParseNodeKind Inherits ParseTreeDefinition Public Name As String Public StructureId As String Public TokenText As String Public NoFactory As Boolean ' if true, don't create factory method for this kind. Public ReadOnly Property NodeStructure() As ParseNodeStructure Get If String.IsNullOrEmpty(StructureId) Then Return Nothing Else If Not ParseTree.NodeStructures.ContainsKey(StructureId) Then ParseTree.ReportError(Element, "Unknown structure '{0}' for node-kind '{1}'", StructureId, Name) Return Nothing End If Return ParseTree.NodeStructures(StructureId) End If End Get End Property Public Description As String Public Sub New(el As XElement, struct As ParseNodeStructure) Me.ParseTree = struct.ParseTree Me.Element = el Name = el.@name TokenText = el.@<token-text> NoFactory = If(CType(el.Attribute("no-factory"), Boolean?), False) StructureId = struct.Name Description = If(el.<description>.Value, struct.Description) End Sub End Class ' Defines an alias for one or more node kinds. Public Class ParseNodeKindAlias Inherits ParseTreeDefinition Public Name As String Public AliasKinds As String Public Description As String Public Sub New(el As XElement, tree As ParseTree) ParseTree = tree Me.Element = el Name = el.@name AliasKinds = el.@alias Description = el.<description>.Value End Sub End Class ' A field in a node structure. A field is a property that stores data like integer, ' text, etc, not a child node. Its type can be a simple type or an enumeration type. Public Class ParseNodeField Inherits ParseTreeDefinition Public ReadOnly Name As String Public ReadOnly ContainingStructure As ParseNodeStructure Public ReadOnly IsOptional As Boolean Public ReadOnly FieldTypeId As String Public ReadOnly Description As String Public Sub New(el As XElement, struct As ParseNodeStructure) Me.ParseTree = struct.ParseTree Me.Element = el Me.ContainingStructure = struct Name = el.@name IsOptional = If(CType(el.Attribute("optional"), Boolean?), False) FieldTypeId = el.@type Description = el.<description>.Value End Sub ' Gets the field type. Could return a SimpleType, Enumeration Public ReadOnly Property FieldType() As Object Get Select Case FieldTypeId.ToLowerInvariant() Case "boolean" Return SimpleType.Bool Case "text" Return SimpleType.Text Case "character" Return SimpleType.Character Case "int32" Return SimpleType.Int32 Case "uint32" Return SimpleType.UInt32 Case "int64" Return SimpleType.Int64 Case "uint64" Return SimpleType.UInt64 Case "float32" Return SimpleType.Float32 Case "float64" Return SimpleType.Float64 Case "decimal" Return SimpleType.Decimal Case "datetime" Return SimpleType.DateTime Case "textspan" Return SimpleType.TextSpan Case "nodekind" Return SimpleType.NodeKind Case Else Return ParseTree.ParseEnumType(FieldTypeId, Element) End Select End Get End Property End Class ' Defines a child node with a node structure. A child can be a single child ' node of a list of child nodes. Public Class ParseNodeChild Inherits ParseTreeDefinition Public ReadOnly Name As String Public ReadOnly ContainingStructure As ParseNodeStructure Public ReadOnly IsOptional As Boolean Public ReadOnly MinCount As Integer Public ReadOnly IsList As Boolean Public ReadOnly IsSeparated As Boolean Public ReadOnly SeparatorsName As String Private ReadOnly _childKindNames As New Dictionary(Of String, List(Of String)) Private _childKind As Object Public ReadOnly SeparatorsTypeId As String Public ReadOnly Description As String Public ReadOnly Order As Single Public ReadOnly NotInFactory As Boolean Public ReadOnly GenerateWith As Boolean Public ReadOnly InternalSyntaxFacts As Boolean Public KindForNodeKind As Dictionary(Of String, ParseNodeKind) Private ReadOnly _defaultChildKindName As String Private _defaultChildKind As ParseNodeKind Public Sub New(el As XElement, struct As ParseNodeStructure) Me.ParseTree = struct.ParseTree Me.Element = el Me.ContainingStructure = struct Single.TryParse(el.@order, NumberStyles.Any, CultureInfo.InvariantCulture, Me.Order) Name = el.@name SeparatorsName = el.@<separator-name> SeparatorsTypeId = el.@<separator-kind> IsList = If(CType(el.Attribute("list"), Boolean?), False) IsSeparated = el.@<separator-kind> <> "" IsOptional = If(CType(el.Attribute("optional"), Boolean?), False) MinCount = If(CType(el.Attribute("min-count"), Integer?), 0) Description = el.<description>.Value NotInFactory = If(CType(el.Attribute("not-in-factory"), Boolean?), False) GenerateWith = If(CType(el.Attribute("generate-with"), Boolean?), False) InternalSyntaxFacts = If(CType(el.Attribute("syntax-facts-internal"), Boolean?), False) _defaultChildKindName = CType(el.Attribute("default-kind"), String) For Each kind In el.<kind> ' The kind may be duplicated Dim nodeKinds As List(Of String) = Nothing If _childKindNames.TryGetValue(kind.@name, nodeKinds) Then nodeKinds.Add(kind.@<node-kind>) Else nodeKinds = New List(Of String) nodeKinds.Add(kind.@<node-kind>) _childKindNames.Add(kind.@name, nodeKinds) End If Next If _childKindNames.Count = 0 Then Dim kindsString = el.@kind For Each kind As String In kindsString.Split("|"c) _childKindNames.Add(kind, Nothing) 'New List(Of String)(From nodeKind In struct.NodeKinds Select nodeKind.Name)) Next ElseIf el.@kind IsNot Nothing Then ParseTree.ReportError(el, "Cannot have both kind attribute on child and also have kind sub element in child.") End If End Sub Public ReadOnly Property ChildKind(kind As String) As ParseNodeKind Get If KindForNodeKind Is Nothing Then KindForNodeKind = New Dictionary(Of String, ParseNodeKind) For Each key In _childKindNames.Keys Dim nodeNames = _childKindNames(key) If nodeNames IsNot Nothing Then Dim child = ParseTree.ParseOneNodeKind(key, Element) For Each nodeName In nodeNames Dim node = ParseTree.ParseOneNodeKind(nodeName, Element) KindForNodeKind.Add(node.Name, child) Next End If Next End If Dim result As ParseNodeKind = Nothing KindForNodeKind.TryGetValue(kind, result) Return result End Get End Property Public ReadOnly Property ChildKind(containerKinds As IList(Of ParseNodeKind)) As List(Of ParseNodeKind) Get Dim allChildkinds As List(Of ParseNodeKind) = TryCast(ChildKind(), List(Of ParseNodeKind)) If allChildkinds Is Nothing Then Return Nothing End If Dim childkindsForContainer = New List(Of ParseNodeKind) For Each containerKind In containerKinds Dim propertyKind = ChildKind(containerKind.Name) If propertyKind IsNot Nothing Then childkindsForContainer.Add(propertyKind) End If Next If childkindsForContainer.Count > 0 Then Return childkindsForContainer End If Return allChildkinds End Get End Property ' Gets the child type. Could return a NodeKind, List(NodeKind) containing the allowable node kinds of the child. Public ReadOnly Property ChildKind() As Object Get If _childKind Is Nothing Then Dim names(_childKindNames.Count - 1) As String _childKindNames.Keys.CopyTo(names, 0) _childKind = ParseTree.ParseNodeKind(names, Element) End If Return _childKind End Get End Property Public Function WithChildKind(childKind As Object) As ParseNodeChild Dim copy = New ParseNodeChild(Me.Element, Me.ContainingStructure) copy._childKind = childKind Return copy End Function Public ReadOnly Property DefaultChildKind() As ParseNodeKind Get If _defaultChildKind Is Nothing AndAlso _defaultChildKindName IsNot Nothing Then _defaultChildKind = CType(ParseTree.ParseNodeKind(_defaultChildKindName, Element), ParseNodeKind) End If Return _defaultChildKind End Get End Property ' Gets the separators type. Could return a NodeKind, List(NodeKind) containing the allowable node kinds of the child. Public ReadOnly Property SeparatorsKind() As Object Get Return ParseTree.ParseNodeKind(SeparatorsTypeId, Element) End Get End Property Public Overrides Function ToString() As String Return Name End Function End Class ' Defines an enumeration type, so that fields of this type can be defined. Public Class ParseEnumeration Inherits ParseTreeDefinition Public Name As String Public IsFlags As Boolean Public Description As String Public Enumerators As List(Of ParseEnumerator) Public Sub New(el As XElement, tree As ParseTree) ParseTree = tree Me.Element = el Name = el.@name IsFlags = If(CType(el.Attribute("flags"), Boolean?), False) Description = el.<description>.Value Enumerators = (From en In el.<enumerators>.<enumerator> Select New ParseEnumerator(en, Me)).ToList() End Sub End Class ' Defines a single enumerator inside an enumeration type. Public Class ParseEnumerator Public Name As String Public ValueString As String Public Description As String Public Sub New(el As XElement, enumeration As ParseEnumeration) Name = el.@name ValueString = el.@hexvalue Description = el.<description>.Value End Sub Public ReadOnly Property Value() As Long Get Return Convert.ToInt64(ValueString, 16) End Get End Property End Class ' THe kinds of simple types for fields. Public Enum SimpleType Bool Text Character Int32 UInt32 Int64 UInt64 Float32 Float64 [Decimal] DateTime TextSpan NodeKind End Enum
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/VisualStudio/Core/Impl/CodeModel/ExternalElements/ExternalCodeVariable.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.Runtime.InteropServices; using Microsoft.CodeAnalysis; using Microsoft.VisualStudio.LanguageServices.Implementation.Interop; using Microsoft.VisualStudio.LanguageServices.Implementation.Utilities; namespace Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.ExternalElements { [ComVisible(true)] [ComDefaultInterface(typeof(EnvDTE.CodeVariable))] public sealed class ExternalCodeVariable : AbstractExternalCodeMember, EnvDTE.CodeVariable, EnvDTE80.CodeVariable2 { internal static EnvDTE.CodeVariable Create(CodeModelState state, ProjectId projectId, ISymbol symbol) { var element = new ExternalCodeVariable(state, projectId, symbol); return (EnvDTE.CodeVariable)ComAggregate.CreateAggregatedObject(element); } private ExternalCodeVariable(CodeModelState state, ProjectId projectId, ISymbol symbol) : base(state, projectId, symbol) { } private ITypeSymbol GetSymbolType() { var symbol = LookupSymbol(); if (symbol != null) { switch (symbol.Kind) { case SymbolKind.Field: return ((IFieldSymbol)symbol).Type; case SymbolKind.Property: // Note: VB WithEvents fields are represented as properties return ((IPropertySymbol)symbol).Type; } } return null; } public override EnvDTE.vsCMElement Kind { get { return EnvDTE.vsCMElement.vsCMElementVariable; } } public object InitExpression { get { throw Exceptions.ThrowEFail(); } set { throw Exceptions.ThrowEFail(); } } public bool IsConstant { get { if (!(LookupSymbol() is IFieldSymbol fieldSymbol)) { return false; } return fieldSymbol.IsConst || fieldSymbol.IsReadOnly; } set { throw Exceptions.ThrowEFail(); } } public EnvDTE.CodeTypeRef Type { get { var type = GetSymbolType(); if (type == null) { throw Exceptions.ThrowEFail(); } return CodeTypeRef.Create(this.State, this, this.ProjectId, type); } set { throw Exceptions.ThrowEFail(); } } public EnvDTE80.vsCMConstKind ConstKind { get { if (!(LookupSymbol() is IFieldSymbol fieldSymbol)) { return EnvDTE80.vsCMConstKind.vsCMConstKindNone; } if (fieldSymbol.IsConst) { return EnvDTE80.vsCMConstKind.vsCMConstKindConst; } else if (fieldSymbol.IsReadOnly) { return EnvDTE80.vsCMConstKind.vsCMConstKindReadOnly; } else { return EnvDTE80.vsCMConstKind.vsCMConstKindNone; } } set { throw Exceptions.ThrowEFail(); } } public bool IsGeneric { get { // TODO: C# checks whether the field Type is generic. What does VB do? return GetSymbolType() is INamedTypeSymbol namedType ? namedType.IsGenericType : 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.Runtime.InteropServices; using Microsoft.CodeAnalysis; using Microsoft.VisualStudio.LanguageServices.Implementation.Interop; using Microsoft.VisualStudio.LanguageServices.Implementation.Utilities; namespace Microsoft.VisualStudio.LanguageServices.Implementation.CodeModel.ExternalElements { [ComVisible(true)] [ComDefaultInterface(typeof(EnvDTE.CodeVariable))] public sealed class ExternalCodeVariable : AbstractExternalCodeMember, EnvDTE.CodeVariable, EnvDTE80.CodeVariable2 { internal static EnvDTE.CodeVariable Create(CodeModelState state, ProjectId projectId, ISymbol symbol) { var element = new ExternalCodeVariable(state, projectId, symbol); return (EnvDTE.CodeVariable)ComAggregate.CreateAggregatedObject(element); } private ExternalCodeVariable(CodeModelState state, ProjectId projectId, ISymbol symbol) : base(state, projectId, symbol) { } private ITypeSymbol GetSymbolType() { var symbol = LookupSymbol(); if (symbol != null) { switch (symbol.Kind) { case SymbolKind.Field: return ((IFieldSymbol)symbol).Type; case SymbolKind.Property: // Note: VB WithEvents fields are represented as properties return ((IPropertySymbol)symbol).Type; } } return null; } public override EnvDTE.vsCMElement Kind { get { return EnvDTE.vsCMElement.vsCMElementVariable; } } public object InitExpression { get { throw Exceptions.ThrowEFail(); } set { throw Exceptions.ThrowEFail(); } } public bool IsConstant { get { if (!(LookupSymbol() is IFieldSymbol fieldSymbol)) { return false; } return fieldSymbol.IsConst || fieldSymbol.IsReadOnly; } set { throw Exceptions.ThrowEFail(); } } public EnvDTE.CodeTypeRef Type { get { var type = GetSymbolType(); if (type == null) { throw Exceptions.ThrowEFail(); } return CodeTypeRef.Create(this.State, this, this.ProjectId, type); } set { throw Exceptions.ThrowEFail(); } } public EnvDTE80.vsCMConstKind ConstKind { get { if (!(LookupSymbol() is IFieldSymbol fieldSymbol)) { return EnvDTE80.vsCMConstKind.vsCMConstKindNone; } if (fieldSymbol.IsConst) { return EnvDTE80.vsCMConstKind.vsCMConstKindConst; } else if (fieldSymbol.IsReadOnly) { return EnvDTE80.vsCMConstKind.vsCMConstKindReadOnly; } else { return EnvDTE80.vsCMConstKind.vsCMConstKindNone; } } set { throw Exceptions.ThrowEFail(); } } public bool IsGeneric { get { // TODO: C# checks whether the field Type is generic. What does VB do? return GetSymbolType() is INamedTypeSymbol namedType ? namedType.IsGenericType : false; } } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Compilers/CSharp/Portable/Symbols/Attributes/PEAttributeData.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.Diagnostics.CodeAnalysis; using System.Reflection.Metadata; using System.Threading; namespace Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE { /// <summary> /// Represents a PE custom attribute /// </summary> internal sealed class PEAttributeData : CSharpAttributeData { private readonly MetadataDecoder _decoder; private readonly CustomAttributeHandle _handle; private NamedTypeSymbol? _lazyAttributeClass = ErrorTypeSymbol.UnknownResultType; // Indicates uninitialized. private MethodSymbol? _lazyAttributeConstructor; private ImmutableArray<TypedConstant> _lazyConstructorArguments; private ImmutableArray<KeyValuePair<string, TypedConstant>> _lazyNamedArguments; private ThreeState _lazyHasErrors = ThreeState.Unknown; internal PEAttributeData(PEModuleSymbol moduleSymbol, CustomAttributeHandle handle) { _decoder = new MetadataDecoder(moduleSymbol); _handle = handle; } public override NamedTypeSymbol? AttributeClass { get { EnsureClassAndConstructorSymbolsAreLoaded(); return _lazyAttributeClass; } } public override MethodSymbol? AttributeConstructor { get { EnsureClassAndConstructorSymbolsAreLoaded(); return _lazyAttributeConstructor; } } public override SyntaxReference? ApplicationSyntaxReference { get { return null; } } protected internal override ImmutableArray<TypedConstant> CommonConstructorArguments { get { EnsureAttributeArgumentsAreLoaded(); return _lazyConstructorArguments; } } protected internal override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments { get { EnsureAttributeArgumentsAreLoaded(); return _lazyNamedArguments; } } private void EnsureClassAndConstructorSymbolsAreLoaded() { #pragma warning disable 0252 if ((object?)_lazyAttributeClass == ErrorTypeSymbol.UnknownResultType) { TypeSymbol? attributeClass; MethodSymbol? attributeConstructor; if (!_decoder.GetCustomAttribute(_handle, out attributeClass, out attributeConstructor)) { // TODO: should we create CSErrorTypeSymbol for attribute class?? _lazyHasErrors = ThreeState.True; } else if ((object)attributeClass == null || attributeClass.IsErrorType() || (object)attributeConstructor == null) { _lazyHasErrors = ThreeState.True; } Interlocked.CompareExchange(ref _lazyAttributeConstructor, attributeConstructor, null); Interlocked.CompareExchange(ref _lazyAttributeClass, (NamedTypeSymbol?)attributeClass, ErrorTypeSymbol.UnknownResultType); // Serves as a flag, so do it last. } #pragma warning restore 0252 } private void EnsureAttributeArgumentsAreLoaded() { if (_lazyConstructorArguments.IsDefault || _lazyNamedArguments.IsDefault) { TypedConstant[]? lazyConstructorArguments = null; KeyValuePair<string, TypedConstant>[]? lazyNamedArguments = null; if (!_decoder.GetCustomAttribute(_handle, out lazyConstructorArguments, out lazyNamedArguments)) { _lazyHasErrors = ThreeState.True; } Debug.Assert(lazyConstructorArguments != null && lazyNamedArguments != null); ImmutableInterlocked.InterlockedInitialize(ref _lazyConstructorArguments, ImmutableArray.Create<TypedConstant>(lazyConstructorArguments)); ImmutableInterlocked.InterlockedInitialize(ref _lazyNamedArguments, ImmutableArray.Create<KeyValuePair<string, TypedConstant>>(lazyNamedArguments)); } } /// <summary> /// Matches an attribute by metadata namespace, metadata type name. Does not load the type symbol for /// the attribute. /// </summary> /// <param name="namespaceName"></param> /// <param name="typeName"></param> /// <returns>True if the attribute data matches.</returns> internal override bool IsTargetAttribute(string namespaceName, string typeName) { // Matching an attribute by name should not load the attribute class. return _decoder.IsTargetAttribute(_handle, namespaceName, typeName); } /// <summary> /// Matches an attribute by metadata namespace, metadata type name and metadata signature. Does not load the /// type symbol for the attribute. /// </summary> /// <param name="targetSymbol">Target symbol.</param> /// <param name="description">Attribute to match.</param> /// <returns> /// An index of the target constructor signature in /// signatures array, -1 if /// this is not the target attribute. /// </returns> internal override int GetTargetAttributeSignatureIndex(Symbol targetSymbol, AttributeDescription description) { // Matching an attribute by name should not load the attribute class. return _decoder.GetTargetAttributeSignatureIndex(_handle, description); } [MemberNotNullWhen(true, nameof(AttributeClass), nameof(AttributeConstructor))] internal override bool HasErrors { get { if (_lazyHasErrors == ThreeState.Unknown) { EnsureClassAndConstructorSymbolsAreLoaded(); EnsureAttributeArgumentsAreLoaded(); if (_lazyHasErrors == ThreeState.Unknown) { _lazyHasErrors = ThreeState.False; } } return _lazyHasErrors.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.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Reflection.Metadata; using System.Threading; namespace Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE { /// <summary> /// Represents a PE custom attribute /// </summary> internal sealed class PEAttributeData : CSharpAttributeData { private readonly MetadataDecoder _decoder; private readonly CustomAttributeHandle _handle; private NamedTypeSymbol? _lazyAttributeClass = ErrorTypeSymbol.UnknownResultType; // Indicates uninitialized. private MethodSymbol? _lazyAttributeConstructor; private ImmutableArray<TypedConstant> _lazyConstructorArguments; private ImmutableArray<KeyValuePair<string, TypedConstant>> _lazyNamedArguments; private ThreeState _lazyHasErrors = ThreeState.Unknown; internal PEAttributeData(PEModuleSymbol moduleSymbol, CustomAttributeHandle handle) { _decoder = new MetadataDecoder(moduleSymbol); _handle = handle; } public override NamedTypeSymbol? AttributeClass { get { EnsureClassAndConstructorSymbolsAreLoaded(); return _lazyAttributeClass; } } public override MethodSymbol? AttributeConstructor { get { EnsureClassAndConstructorSymbolsAreLoaded(); return _lazyAttributeConstructor; } } public override SyntaxReference? ApplicationSyntaxReference { get { return null; } } protected internal override ImmutableArray<TypedConstant> CommonConstructorArguments { get { EnsureAttributeArgumentsAreLoaded(); return _lazyConstructorArguments; } } protected internal override ImmutableArray<KeyValuePair<string, TypedConstant>> CommonNamedArguments { get { EnsureAttributeArgumentsAreLoaded(); return _lazyNamedArguments; } } private void EnsureClassAndConstructorSymbolsAreLoaded() { #pragma warning disable 0252 if ((object?)_lazyAttributeClass == ErrorTypeSymbol.UnknownResultType) { TypeSymbol? attributeClass; MethodSymbol? attributeConstructor; if (!_decoder.GetCustomAttribute(_handle, out attributeClass, out attributeConstructor)) { // TODO: should we create CSErrorTypeSymbol for attribute class?? _lazyHasErrors = ThreeState.True; } else if ((object)attributeClass == null || attributeClass.IsErrorType() || (object)attributeConstructor == null) { _lazyHasErrors = ThreeState.True; } Interlocked.CompareExchange(ref _lazyAttributeConstructor, attributeConstructor, null); Interlocked.CompareExchange(ref _lazyAttributeClass, (NamedTypeSymbol?)attributeClass, ErrorTypeSymbol.UnknownResultType); // Serves as a flag, so do it last. } #pragma warning restore 0252 } private void EnsureAttributeArgumentsAreLoaded() { if (_lazyConstructorArguments.IsDefault || _lazyNamedArguments.IsDefault) { TypedConstant[]? lazyConstructorArguments = null; KeyValuePair<string, TypedConstant>[]? lazyNamedArguments = null; if (!_decoder.GetCustomAttribute(_handle, out lazyConstructorArguments, out lazyNamedArguments)) { _lazyHasErrors = ThreeState.True; } Debug.Assert(lazyConstructorArguments != null && lazyNamedArguments != null); ImmutableInterlocked.InterlockedInitialize(ref _lazyConstructorArguments, ImmutableArray.Create<TypedConstant>(lazyConstructorArguments)); ImmutableInterlocked.InterlockedInitialize(ref _lazyNamedArguments, ImmutableArray.Create<KeyValuePair<string, TypedConstant>>(lazyNamedArguments)); } } /// <summary> /// Matches an attribute by metadata namespace, metadata type name. Does not load the type symbol for /// the attribute. /// </summary> /// <param name="namespaceName"></param> /// <param name="typeName"></param> /// <returns>True if the attribute data matches.</returns> internal override bool IsTargetAttribute(string namespaceName, string typeName) { // Matching an attribute by name should not load the attribute class. return _decoder.IsTargetAttribute(_handle, namespaceName, typeName); } /// <summary> /// Matches an attribute by metadata namespace, metadata type name and metadata signature. Does not load the /// type symbol for the attribute. /// </summary> /// <param name="targetSymbol">Target symbol.</param> /// <param name="description">Attribute to match.</param> /// <returns> /// An index of the target constructor signature in /// signatures array, -1 if /// this is not the target attribute. /// </returns> internal override int GetTargetAttributeSignatureIndex(Symbol targetSymbol, AttributeDescription description) { // Matching an attribute by name should not load the attribute class. return _decoder.GetTargetAttributeSignatureIndex(_handle, description); } [MemberNotNullWhen(true, nameof(AttributeClass), nameof(AttributeConstructor))] internal override bool HasErrors { get { if (_lazyHasErrors == ThreeState.Unknown) { EnsureClassAndConstructorSymbolsAreLoaded(); EnsureAttributeArgumentsAreLoaded(); if (_lazyHasErrors == ThreeState.Unknown) { _lazyHasErrors = ThreeState.False; } } return _lazyHasErrors.Value(); } } } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./src/Features/Core/Portable/Completion/ICompletionHelperService.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.CodeAnalysis.Host; namespace Microsoft.CodeAnalysis.Completion { internal interface ICompletionHelperService : IWorkspaceService { CompletionHelper GetCompletionHelper(Document document); } }
// 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.CodeAnalysis.Host; namespace Microsoft.CodeAnalysis.Completion { internal interface ICompletionHelperService : IWorkspaceService { CompletionHelper GetCompletionHelper(Document document); } }
-1
dotnet/roslyn
56,139
Remove declaration-only-compilation from CompilationTracker
We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
CyrusNajmabadi
"2021-09-02T21:35:54Z"
"2021-09-08T23:38:33Z"
ef6e65fa1185f7aff571277420227446bf6eafa0
e0909cfd0157f3d1e20fb7275c533a8cf40f50fa
Remove declaration-only-compilation from CompilationTracker. We used this compilation to speed up some string searches for certain features (and some public APIs we have). Turns out we don't need this given the indices we already have for features like FAR and NavTo. Given this, we can remove this compilation and simplify the compilation tracker a bunch.
./.gitattributes
############################################################################### # Set default behavior to automatically normalize line endings. ############################################################################### * text=auto encoding=UTF-8 *.sh text eol=lf ############################################################################### # Set default behavior for command prompt diff. # # This is need for earlier builds of msysgit that does not have it on by # default for csharp files. # Note: This is only used by command line ############################################################################### *.cs diff=csharp text *.vb text ############################################################################### # Set the merge driver for project and solution files # # Merging from the command prompt will add diff markers to the files if there # are conflicts (Merging from VS is not affected by the settings below, in VS # the diff markers are never inserted). Diff markers may cause the following # file extensions to fail to load in VS. An alternative would be to treat # these files as binary and thus will always conflict and require user # intervention with every merge. To do so, just uncomment the entries below ############################################################################### #*.sln merge=binary #*.csproj merge=binary #*.vbproj merge=binary #*.vcxproj merge=binary #*.vcproj merge=binary #*.dbproj merge=binary #*.fsproj merge=binary #*.lsproj merge=binary #*.wixproj merge=binary #*.modelproj merge=binary #*.sqlproj merge=binary #*.wwaproj merge=binary ############################################################################### # behavior for image files # # image files are treated as binary by default. ############################################################################### #*.jpg binary #*.png binary #*.gif binary ############################################################################### # diff behavior for common document formats # # Convert binary document formats to text before diffing them. This feature # is only available from the command line. Turn it on by uncommenting the # entries below. ############################################################################### #*.doc diff=astextplain #*.DOC diff=astextplain #*.docx diff=astextplain #*.DOCX diff=astextplain #*.dot diff=astextplain #*.DOT diff=astextplain #*.pdf diff=astextplain #*.PDF diff=astextplain #*.rtf diff=astextplain #*.RTF diff=astextplain # Generated files src/Compilers/CSharp/Portable/Generated/* linguist-generated=true src/Compilers/CSharp/Portable/CSharpResources.Designer.cs linguist-generated=true src/Compilers/VisualBasic/Portable/Generated/* linguist-generated=true src/Compilers/VisualBasic/Portable/VBResources.Designer.vb linguist-generated=true *.xlf linguist-generated=true
############################################################################### # Set default behavior to automatically normalize line endings. ############################################################################### * text=auto encoding=UTF-8 *.sh text eol=lf ############################################################################### # Set default behavior for command prompt diff. # # This is need for earlier builds of msysgit that does not have it on by # default for csharp files. # Note: This is only used by command line ############################################################################### *.cs diff=csharp text *.vb text ############################################################################### # Set the merge driver for project and solution files # # Merging from the command prompt will add diff markers to the files if there # are conflicts (Merging from VS is not affected by the settings below, in VS # the diff markers are never inserted). Diff markers may cause the following # file extensions to fail to load in VS. An alternative would be to treat # these files as binary and thus will always conflict and require user # intervention with every merge. To do so, just uncomment the entries below ############################################################################### #*.sln merge=binary #*.csproj merge=binary #*.vbproj merge=binary #*.vcxproj merge=binary #*.vcproj merge=binary #*.dbproj merge=binary #*.fsproj merge=binary #*.lsproj merge=binary #*.wixproj merge=binary #*.modelproj merge=binary #*.sqlproj merge=binary #*.wwaproj merge=binary ############################################################################### # behavior for image files # # image files are treated as binary by default. ############################################################################### #*.jpg binary #*.png binary #*.gif binary ############################################################################### # diff behavior for common document formats # # Convert binary document formats to text before diffing them. This feature # is only available from the command line. Turn it on by uncommenting the # entries below. ############################################################################### #*.doc diff=astextplain #*.DOC diff=astextplain #*.docx diff=astextplain #*.DOCX diff=astextplain #*.dot diff=astextplain #*.DOT diff=astextplain #*.pdf diff=astextplain #*.PDF diff=astextplain #*.rtf diff=astextplain #*.RTF diff=astextplain # Generated files src/Compilers/CSharp/Portable/Generated/* linguist-generated=true src/Compilers/CSharp/Portable/CSharpResources.Designer.cs linguist-generated=true src/Compilers/VisualBasic/Portable/Generated/* linguist-generated=true src/Compilers/VisualBasic/Portable/VBResources.Designer.vb linguist-generated=true *.xlf linguist-generated=true
-1
dotnet/roslyn
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./src/EditorFeatures/Core/EditorConfigSettings/Data/AnalyzerSetting.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.Globalization; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Editor.EditorConfigSettings.Updater; namespace Microsoft.CodeAnalysis.Editor.EditorConfigSettings.Data { internal class AnalyzerSetting { private readonly DiagnosticDescriptor _descriptor; private readonly AnalyzerSettingsUpdater _settingsUpdater; public AnalyzerSetting(DiagnosticDescriptor descriptor, ReportDiagnostic effectiveSeverity, AnalyzerSettingsUpdater settingsUpdater, Language language, SettingLocation location) { _descriptor = descriptor; _settingsUpdater = settingsUpdater; DiagnosticSeverity severity = default; if (effectiveSeverity == ReportDiagnostic.Default) { severity = descriptor.DefaultSeverity; } else if (effectiveSeverity.ToDiagnosticSeverity() is DiagnosticSeverity severity1) { severity = severity1; } var enabled = effectiveSeverity != ReportDiagnostic.Suppress; IsEnabled = enabled; Severity = severity; Language = language; Location = location; } public string Id => _descriptor.Id; public string Title => _descriptor.Title.ToString(CultureInfo.CurrentUICulture); public string Description => _descriptor.Description.ToString(CultureInfo.CurrentUICulture); public string Category => _descriptor.Category; public DiagnosticSeverity Severity { get; private set; } public bool IsEnabled { get; private set; } public Language Language { get; } public SettingLocation Location { get; } internal void ChangeSeverity(DiagnosticSeverity severity) { if (severity == Severity) return; Severity = severity; _settingsUpdater.QueueUpdate(this, severity); } } }
// 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.Globalization; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Editor.EditorConfigSettings.Updater; namespace Microsoft.CodeAnalysis.Editor.EditorConfigSettings.Data { internal class AnalyzerSetting { private readonly DiagnosticDescriptor _descriptor; private readonly AnalyzerSettingsUpdater _settingsUpdater; public AnalyzerSetting(DiagnosticDescriptor descriptor, ReportDiagnostic effectiveSeverity, AnalyzerSettingsUpdater settingsUpdater, Language language, SettingLocation location) { _descriptor = descriptor; _settingsUpdater = settingsUpdater; DiagnosticSeverity severity = default; if (effectiveSeverity == ReportDiagnostic.Default) { severity = descriptor.DefaultSeverity; } else if (effectiveSeverity.ToDiagnosticSeverity() is DiagnosticSeverity severity1) { severity = severity1; } var enabled = effectiveSeverity != ReportDiagnostic.Suppress; IsEnabled = enabled; Severity = severity; Language = language; IsNotConfigurable = descriptor.CustomTags.Any(t => t == WellKnownDiagnosticTags.NotConfigurable); Location = location; } public string Id => _descriptor.Id; public string Title => _descriptor.Title.ToString(CultureInfo.CurrentUICulture); public string Description => _descriptor.Description.ToString(CultureInfo.CurrentUICulture); public string Category => _descriptor.Category; public DiagnosticSeverity Severity { get; private set; } public bool IsEnabled { get; private set; } public Language Language { get; } public bool IsNotConfigurable { get; set; } public SettingLocation Location { get; } internal void ChangeSeverity(DiagnosticSeverity severity) { if (severity == Severity) return; Severity = severity; _settingsUpdater.QueueUpdate(this, severity); } } }
1
dotnet/roslyn
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./src/VisualStudio/Core/Def/EditorConfigSettings/Analyzers/View/SeverityControl.xaml.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.Windows; using System.Windows.Automation; using System.Windows.Controls; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Editor.EditorConfigSettings.Data; using Microsoft.VisualStudio.Imaging; using Microsoft.VisualStudio.Imaging.Interop; namespace Microsoft.VisualStudio.LanguageServices.EditorConfigSettings.Analyzers.View { /// <summary> /// Interaction logic for SeverityControl.xaml /// </summary> internal partial class SeverityControl : UserControl { private readonly ComboBox _comboBox; private readonly AnalyzerSetting _setting; public SeverityControl(AnalyzerSetting setting) { InitializeComponent(); _comboBox = new ComboBox() { ItemsSource = new[] { ServicesVSResources.Disabled, ServicesVSResources.Suggestion, ServicesVSResources.Warning, ServicesVSResources.Error } }; switch (setting.Severity) { case DiagnosticSeverity.Hidden: _comboBox.SelectedIndex = 0; break; case DiagnosticSeverity.Info: _comboBox.SelectedIndex = 1; break; case DiagnosticSeverity.Warning: _comboBox.SelectedIndex = 2; break; case DiagnosticSeverity.Error: _comboBox.SelectedIndex = 3; break; default: break; } _comboBox.SelectionChanged += ComboBox_SelectionChanged; _comboBox.SetValue(AutomationProperties.NameProperty, ServicesVSResources.Severity); _ = RootGrid.Children.Add(_comboBox); _setting = setting; } private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { var severity = _comboBox.SelectedIndex switch { 0 => DiagnosticSeverity.Hidden, 1 => DiagnosticSeverity.Info, 2 => DiagnosticSeverity.Warning, 3 => DiagnosticSeverity.Error, _ => throw new InvalidOperationException(), }; if (_setting.Severity != severity) { _setting.ChangeSeverity(severity); } } } }
// 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.Windows; using System.Windows.Automation; using System.Windows.Controls; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Editor.EditorConfigSettings.Data; using Microsoft.VisualStudio.Imaging; using Microsoft.VisualStudio.Imaging.Interop; namespace Microsoft.VisualStudio.LanguageServices.EditorConfigSettings.Analyzers.View { /// <summary> /// Interaction logic for SeverityControl.xaml /// </summary> internal partial class SeverityControl : UserControl { private readonly ComboBox _comboBox; private readonly AnalyzerSetting _setting; public SeverityControl(AnalyzerSetting setting) { InitializeComponent(); _comboBox = new ComboBox() { ItemsSource = new[] { ServicesVSResources.Disabled, ServicesVSResources.Suggestion, ServicesVSResources.Warning, ServicesVSResources.Error } }; switch (setting.Severity) { case DiagnosticSeverity.Hidden: _comboBox.SelectedIndex = 0; break; case DiagnosticSeverity.Info: _comboBox.SelectedIndex = 1; break; case DiagnosticSeverity.Warning: _comboBox.SelectedIndex = 2; break; case DiagnosticSeverity.Error: _comboBox.SelectedIndex = 3; break; default: break; } _comboBox.SelectionChanged += ComboBox_SelectionChanged; _comboBox.SetValue(AutomationProperties.NameProperty, ServicesVSResources.Severity); if (setting.IsNotConfigurable) { _comboBox.IsEnabled = false; ToolTip = ServicesVSResources.This_rule_is_not_configurable; } _ = RootGrid.Children.Add(_comboBox); _setting = setting; } private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { var severity = _comboBox.SelectedIndex switch { 0 => DiagnosticSeverity.Hidden, 1 => DiagnosticSeverity.Info, 2 => DiagnosticSeverity.Warning, 3 => DiagnosticSeverity.Error, _ => throw new InvalidOperationException(), }; if (_setting.Severity != severity) { _setting.ChangeSeverity(severity); } } } }
1
dotnet/roslyn
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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="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="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" xml:space="preserve"> <value>Inline Hints</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" xml:space="preserve"> <value>Inheritance Margin</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> <data name="Show_hints_for_indexers" xml:space="preserve"> <value>Show hints for indexers</value> </data> <data name="Sync_Namespaces" xml:space="preserve"> <value>Sync Namespaces</value> <comment>"Namespaces" is the programming language concept</comment> </data> <data name="Updating_namspaces" xml:space="preserve"> <value>Updating namespaces...</value> <comment>"namespaces" is the programming language concept</comment> </data> <data name="Namespaces_have_been_updated" xml:space="preserve"> <value>Namespaces have been updated.</value> <comment>"Namespaces" is the programming language concept</comment> </data> <data name="No_namespaces_needed_updating" xml:space="preserve"> <value>No namespaces needed updating.</value> <comment>"Namespaces" is the programming language concept</comment> </data> <data name="Run_code_analysis_in_separate_process_requires_restart" xml:space="preserve"> <value>Run code analysis in separate process (requires restart)</value> </data> <data name="Compute_Quick_Actions_asynchronously_experimental" xml:space="preserve"> <value>Compute Quick Actions asynchronously (experimental, requires restart)</value> </data> <data name="Quick_Actions" xml:space="preserve"> <value>Quick Actions</value> </data> <data name="Language_client_initialization_failed" xml:space="preserve"> <value>{0} failed to initialize. Status = {1}. Exception = {2}</value> <comment>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</comment> </data> <data name="Combine_inheritance_margin_with_indicator_margin" xml:space="preserve"> <value>Combine inheritance margin with indicator margin</value> </data> <data name="Package_install_canceled" xml:space="preserve"> <value>Package install canceled</value> </data> <data name="Package_uninstall_canceled" xml:space="preserve"> <value>Package uninstall canceled</value> </data> <data name="Default_Current_Document" xml:space="preserve"> <value>Default (Current Document)</value> <comment>This text is a menu command</comment> </data> <data name="Default_Entire_Solution" xml:space="preserve"> <value>Default (Entire Solution)</value> <comment>This text is a menu command</comment> </data> <data name="Default_Open_Documents" xml:space="preserve"> <value>Default (Open Documents)</value> <comment>This text is a menu command</comment> </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="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" xml:space="preserve"> <value>Inline Hints</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" xml:space="preserve"> <value>Inheritance Margin</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="This_rule_is_not_configurable" xml:space="preserve"> <value>This rule is not configurable</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> <data name="Show_hints_for_indexers" xml:space="preserve"> <value>Show hints for indexers</value> </data> <data name="Sync_Namespaces" xml:space="preserve"> <value>Sync Namespaces</value> <comment>"Namespaces" is the programming language concept</comment> </data> <data name="Updating_namspaces" xml:space="preserve"> <value>Updating namespaces...</value> <comment>"namespaces" is the programming language concept</comment> </data> <data name="Namespaces_have_been_updated" xml:space="preserve"> <value>Namespaces have been updated.</value> <comment>"Namespaces" is the programming language concept</comment> </data> <data name="No_namespaces_needed_updating" xml:space="preserve"> <value>No namespaces needed updating.</value> <comment>"Namespaces" is the programming language concept</comment> </data> <data name="Run_code_analysis_in_separate_process_requires_restart" xml:space="preserve"> <value>Run code analysis in separate process (requires restart)</value> </data> <data name="Compute_Quick_Actions_asynchronously_experimental" xml:space="preserve"> <value>Compute Quick Actions asynchronously (experimental, requires restart)</value> </data> <data name="Quick_Actions" xml:space="preserve"> <value>Quick Actions</value> </data> <data name="Language_client_initialization_failed" xml:space="preserve"> <value>{0} failed to initialize. Status = {1}. Exception = {2}</value> <comment>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</comment> </data> <data name="Combine_inheritance_margin_with_indicator_margin" xml:space="preserve"> <value>Combine inheritance margin with indicator margin</value> </data> <data name="Package_install_canceled" xml:space="preserve"> <value>Package install canceled</value> </data> <data name="Package_uninstall_canceled" xml:space="preserve"> <value>Package uninstall canceled</value> </data> <data name="Default_Current_Document" xml:space="preserve"> <value>Default (Current Document)</value> <comment>This text is a menu command</comment> </data> <data name="Default_Entire_Solution" xml:space="preserve"> <value>Default (Entire Solution)</value> <comment>This text is a menu command</comment> </data> <data name="Default_Open_Documents" xml:space="preserve"> <value>Default (Open Documents)</value> <comment>This text is a menu command</comment> </data> </root>
1
dotnet/roslyn
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Komentáře</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Komentáře</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Kommentare</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Kommentare</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Comentarios</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Comentarios</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Commentaires</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Commentaires</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Commenti</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Commenti</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">コメント</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">コメント</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">설명</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">설명</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Komentarze</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Komentarze</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Comentários</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Comentários</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Комментарии</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Комментарии</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Açıklamalar</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">Açıklamalar</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">备注</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">备注</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">註解</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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="Combine_inheritance_margin_with_indicator_margin"> <source>Combine inheritance margin with indicator margin</source> <target state="new">Combine inheritance margin with indicator margin</target> <note /> </trans-unit> <trans-unit id="Comments"> <source>Comments</source> <target state="translated">註解</target> <note /> </trans-unit> <trans-unit id="Compute_Quick_Actions_asynchronously_experimental"> <source>Compute Quick Actions asynchronously (experimental, requires restart)</source> <target state="new">Compute Quick Actions asynchronously (experimental, requires restart)</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="Default_Current_Document"> <source>Default (Current Document)</source> <target state="new">Default (Current Document)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Entire_Solution"> <source>Default (Entire Solution)</source> <target state="new">Default (Entire Solution)</target> <note>This text is a menu command</note> </trans-unit> <trans-unit id="Default_Open_Documents"> <source>Default (Open Documents)</source> <target state="new">Default (Open Documents)</target> <note>This text is a menu command</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"> <source>Inheritance Margin</source> <target state="new">Inheritance Margin</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"> <source>Inline Hints</source> <target state="new">Inline Hints</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="Language_client_initialization_failed"> <source>{0} failed to initialize. Status = {1}. Exception = {2}</source> <target state="new">{0} failed to initialize. Status = {1}. Exception = {2}</target> <note>{0} is the language server name. Status is the status of the initialization. Exception is the exception encountered during initialization.</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="Namespaces_have_been_updated"> <source>Namespaces have been updated.</source> <target state="new">Namespaces have been updated.</target> <note>"Namespaces" is the programming language concept</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_namespaces_needed_updating"> <source>No namespaces needed updating.</source> <target state="new">No namespaces needed updating.</target> <note>"Namespaces" is the programming language concept</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="Package_install_canceled"> <source>Package install canceled</source> <target state="new">Package install canceled</target> <note /> </trans-unit> <trans-unit id="Package_uninstall_canceled"> <source>Package uninstall canceled</source> <target state="new">Package uninstall canceled</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="Quick_Actions"> <source>Quick Actions</source> <target state="new">Quick Actions</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="Run_code_analysis_in_separate_process_requires_restart"> <source>Run code analysis in separate process (requires restart)</source> <target state="new">Run code analysis in separate process (requires restart)</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_indexers"> <source>Show hints for indexers</source> <target state="new">Show hints for indexers</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="Sync_Namespaces"> <source>Sync Namespaces</source> <target state="new">Sync Namespaces</target> <note>"Namespaces" is the programming language concept</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="This_rule_is_not_configurable"> <source>This rule is not configurable</source> <target state="new">This rule is not configurable</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_namspaces"> <source>Updating namespaces...</source> <target state="new">Updating namespaces...</target> <note>"namespaces" is the programming language concept</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_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
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./src/Compilers/CSharp/Portable/Utilities/TypeSymbolExtensions.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.Diagnostics; using System.Linq; using Microsoft.CodeAnalysis.PooledObjects; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Symbols { internal static partial class TypeSymbolExtensions { /// <summary> /// Count the custom modifiers within the specified TypeSymbol. /// Potentially non-zero for arrays, pointers, and generic instantiations. /// </summary> public static int CustomModifierCount(this TypeSymbol type) { if ((object)type == null) { return 0; } // Custom modifiers can be inside arrays, pointers and generic instantiations switch (type.Kind) { case SymbolKind.ArrayType: { var array = (ArrayTypeSymbol)type; return customModifierCountForTypeWithAnnotations(array.ElementTypeWithAnnotations); } case SymbolKind.PointerType: { var pointer = (PointerTypeSymbol)type; return customModifierCountForTypeWithAnnotations(pointer.PointedAtTypeWithAnnotations); } case SymbolKind.FunctionPointerType: { return ((FunctionPointerTypeSymbol)type).Signature.CustomModifierCount(); } case SymbolKind.ErrorType: case SymbolKind.NamedType: { bool isDefinition = type.IsDefinition; if (!isDefinition) { var namedType = (NamedTypeSymbol)type; int count = 0; while ((object)namedType != null) { ImmutableArray<TypeWithAnnotations> typeArgs = namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; foreach (TypeWithAnnotations typeArg in typeArgs) { count += customModifierCountForTypeWithAnnotations(typeArg); } namedType = namedType.ContainingType; } return count; } break; } } return 0; static int customModifierCountForTypeWithAnnotations(TypeWithAnnotations typeWithAnnotations) => typeWithAnnotations.CustomModifiers.Length + typeWithAnnotations.Type.CustomModifierCount(); } /// <summary> /// Check for custom modifiers within the specified TypeSymbol. /// Potentially true for arrays, pointers, and generic instantiations. /// </summary> /// <remarks> /// A much less efficient implementation would be CustomModifierCount() == 0. /// CONSIDER: Could share a backing method with CustomModifierCount. /// </remarks> public static bool HasCustomModifiers(this TypeSymbol type, bool flagNonDefaultArraySizesOrLowerBounds) { if ((object)type == null) { return false; } // Custom modifiers can be inside arrays, pointers and generic instantiations switch (type.Kind) { case SymbolKind.ArrayType: { var array = (ArrayTypeSymbol)type; TypeWithAnnotations elementType = array.ElementTypeWithAnnotations; return checkTypeWithAnnotations(elementType, flagNonDefaultArraySizesOrLowerBounds) || (flagNonDefaultArraySizesOrLowerBounds && !array.HasDefaultSizesAndLowerBounds); } case SymbolKind.PointerType: { var pointer = (PointerTypeSymbol)type; TypeWithAnnotations pointedAtType = pointer.PointedAtTypeWithAnnotations; return checkTypeWithAnnotations(pointedAtType, flagNonDefaultArraySizesOrLowerBounds); } case SymbolKind.FunctionPointerType: { var funcPtr = (FunctionPointerTypeSymbol)type; if (!funcPtr.Signature.RefCustomModifiers.IsEmpty || checkTypeWithAnnotations(funcPtr.Signature.ReturnTypeWithAnnotations, flagNonDefaultArraySizesOrLowerBounds)) { return true; } foreach (var param in funcPtr.Signature.Parameters) { if (!param.RefCustomModifiers.IsEmpty || checkTypeWithAnnotations(param.TypeWithAnnotations, flagNonDefaultArraySizesOrLowerBounds)) { return true; } } return false; } case SymbolKind.ErrorType: case SymbolKind.NamedType: { bool isDefinition = type.IsDefinition; if (!isDefinition) { var namedType = (NamedTypeSymbol)type; while ((object)namedType != null) { ImmutableArray<TypeWithAnnotations> typeArgs = namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; foreach (TypeWithAnnotations typeArg in typeArgs) { if (checkTypeWithAnnotations(typeArg, flagNonDefaultArraySizesOrLowerBounds)) { return true; } } namedType = namedType.ContainingType; } } break; } } return false; static bool checkTypeWithAnnotations(TypeWithAnnotations typeWithAnnotations, bool flagNonDefaultArraySizesOrLowerBounds) => typeWithAnnotations.CustomModifiers.Any() || typeWithAnnotations.Type.HasCustomModifiers(flagNonDefaultArraySizesOrLowerBounds); } /// <summary> /// Return true if this type can unify with the specified type /// (i.e. is the same for some substitution of type parameters). /// </summary> public static bool CanUnifyWith(this TypeSymbol thisType, TypeSymbol otherType) { return TypeUnification.CanUnify(thisType, otherType); } /// <summary> /// Used when iterating through base types in contexts in which the caller needs to avoid cycles and can't use BaseType /// (perhaps because BaseType is in the process of being computed) /// </summary> /// <param name="type"></param> /// <param name="basesBeingResolved"></param> /// <param name="compilation"></param> /// <param name="visited"></param> /// <returns></returns> internal static TypeSymbol GetNextBaseTypeNoUseSiteDiagnostics(this TypeSymbol type, ConsList<TypeSymbol> basesBeingResolved, CSharpCompilation compilation, ref PooledHashSet<NamedTypeSymbol> visited) { switch (type.TypeKind) { case TypeKind.TypeParameter: return ((TypeParameterSymbol)type).EffectiveBaseClassNoUseSiteDiagnostics; case TypeKind.Class: case TypeKind.Struct: case TypeKind.Error: case TypeKind.Interface: return GetNextDeclaredBase((NamedTypeSymbol)type, basesBeingResolved, compilation, ref visited); default: // Enums and delegates know their own base types // intrinsically (and do not include interface lists) // so there is no possibility of a cycle. return type.BaseTypeNoUseSiteDiagnostics; } } private static TypeSymbol GetNextDeclaredBase(NamedTypeSymbol type, ConsList<TypeSymbol> basesBeingResolved, CSharpCompilation compilation, ref PooledHashSet<NamedTypeSymbol> visited) { // We shouldn't have visited this type earlier. Debug.Assert(visited == null || !visited.Contains(type.OriginalDefinition)); if (basesBeingResolved != null && basesBeingResolved.ContainsReference(type.OriginalDefinition)) { return null; } if (type.SpecialType == SpecialType.System_Object) { type.SetKnownToHaveNoDeclaredBaseCycles(); return null; } var nextType = type.GetDeclaredBaseType(basesBeingResolved); // types with no declared bases inherit object's members if ((object)nextType == null) { SetKnownToHaveNoDeclaredBaseCycles(ref visited); return GetDefaultBaseOrNull(type, compilation); } var origType = type.OriginalDefinition; if (nextType.KnownToHaveNoDeclaredBaseCycles) { origType.SetKnownToHaveNoDeclaredBaseCycles(); SetKnownToHaveNoDeclaredBaseCycles(ref visited); } else { // start cycle tracking visited = visited ?? PooledHashSet<NamedTypeSymbol>.GetInstance(); visited.Add(origType); if (visited.Contains(nextType.OriginalDefinition)) { return GetDefaultBaseOrNull(type, compilation); } } return nextType; } private static void SetKnownToHaveNoDeclaredBaseCycles(ref PooledHashSet<NamedTypeSymbol> visited) { if (visited != null) { foreach (var v in visited) { v.SetKnownToHaveNoDeclaredBaseCycles(); } visited.Free(); visited = null; } } private static NamedTypeSymbol GetDefaultBaseOrNull(NamedTypeSymbol type, CSharpCompilation compilation) { if (compilation == null) { return null; } switch (type.TypeKind) { case TypeKind.Class: case TypeKind.Error: return compilation.Assembly.GetSpecialType(SpecialType.System_Object); case TypeKind.Interface: return null; case TypeKind.Struct: return compilation.Assembly.GetSpecialType(SpecialType.System_ValueType); default: throw ExceptionUtilities.UnexpectedValue(type.TypeKind); } } } }
// 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.Diagnostics; using System.Linq; using Microsoft.CodeAnalysis.PooledObjects; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.CSharp.Symbols { internal static partial class TypeSymbolExtensions { /// <summary> /// Count the custom modifiers within the specified TypeSymbol. /// Potentially non-zero for arrays, pointers, and generic instantiations. /// </summary> public static int CustomModifierCount(this TypeSymbol type) { if ((object)type == null) { return 0; } // Custom modifiers can be inside arrays, pointers and generic instantiations switch (type.Kind) { case SymbolKind.ArrayType: { var array = (ArrayTypeSymbol)type; return customModifierCountForTypeWithAnnotations(array.ElementTypeWithAnnotations); } case SymbolKind.PointerType: { var pointer = (PointerTypeSymbol)type; return customModifierCountForTypeWithAnnotations(pointer.PointedAtTypeWithAnnotations); } case SymbolKind.FunctionPointerType: { return ((FunctionPointerTypeSymbol)type).Signature.CustomModifierCount(); } case SymbolKind.ErrorType: case SymbolKind.NamedType: { bool isDefinition = type.IsDefinition; if (!isDefinition) { var namedType = (NamedTypeSymbol)type; int count = 0; while ((object)namedType != null) { ImmutableArray<TypeWithAnnotations> typeArgs = namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; foreach (TypeWithAnnotations typeArg in typeArgs) { count += customModifierCountForTypeWithAnnotations(typeArg); } namedType = namedType.ContainingType; } return count; } break; } } return 0; static int customModifierCountForTypeWithAnnotations(TypeWithAnnotations typeWithAnnotations) => typeWithAnnotations.CustomModifiers.Length + typeWithAnnotations.Type.CustomModifierCount(); } /// <summary> /// Check for custom modifiers within the specified TypeSymbol. /// Potentially true for arrays, pointers, and generic instantiations. /// </summary> /// <remarks> /// A much less efficient implementation would be CustomModifierCount() == 0. /// CONSIDER: Could share a backing method with CustomModifierCount. /// </remarks> public static bool HasCustomModifiers(this TypeSymbol type, bool flagNonDefaultArraySizesOrLowerBounds) { if ((object)type == null) { return false; } // Custom modifiers can be inside arrays, pointers and generic instantiations switch (type.Kind) { case SymbolKind.ArrayType: { var array = (ArrayTypeSymbol)type; TypeWithAnnotations elementType = array.ElementTypeWithAnnotations; return checkTypeWithAnnotations(elementType, flagNonDefaultArraySizesOrLowerBounds) || (flagNonDefaultArraySizesOrLowerBounds && !array.HasDefaultSizesAndLowerBounds); } case SymbolKind.PointerType: { var pointer = (PointerTypeSymbol)type; TypeWithAnnotations pointedAtType = pointer.PointedAtTypeWithAnnotations; return checkTypeWithAnnotations(pointedAtType, flagNonDefaultArraySizesOrLowerBounds); } case SymbolKind.FunctionPointerType: { var funcPtr = (FunctionPointerTypeSymbol)type; if (!funcPtr.Signature.RefCustomModifiers.IsEmpty || checkTypeWithAnnotations(funcPtr.Signature.ReturnTypeWithAnnotations, flagNonDefaultArraySizesOrLowerBounds)) { return true; } foreach (var param in funcPtr.Signature.Parameters) { if (!param.RefCustomModifiers.IsEmpty || checkTypeWithAnnotations(param.TypeWithAnnotations, flagNonDefaultArraySizesOrLowerBounds)) { return true; } } return false; } case SymbolKind.ErrorType: case SymbolKind.NamedType: { bool isDefinition = type.IsDefinition; if (!isDefinition) { var namedType = (NamedTypeSymbol)type; while ((object)namedType != null) { ImmutableArray<TypeWithAnnotations> typeArgs = namedType.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics; foreach (TypeWithAnnotations typeArg in typeArgs) { if (checkTypeWithAnnotations(typeArg, flagNonDefaultArraySizesOrLowerBounds)) { return true; } } namedType = namedType.ContainingType; } } break; } } return false; static bool checkTypeWithAnnotations(TypeWithAnnotations typeWithAnnotations, bool flagNonDefaultArraySizesOrLowerBounds) => typeWithAnnotations.CustomModifiers.Any() || typeWithAnnotations.Type.HasCustomModifiers(flagNonDefaultArraySizesOrLowerBounds); } /// <summary> /// Return true if this type can unify with the specified type /// (i.e. is the same for some substitution of type parameters). /// </summary> public static bool CanUnifyWith(this TypeSymbol thisType, TypeSymbol otherType) { return TypeUnification.CanUnify(thisType, otherType); } /// <summary> /// Used when iterating through base types in contexts in which the caller needs to avoid cycles and can't use BaseType /// (perhaps because BaseType is in the process of being computed) /// </summary> /// <param name="type"></param> /// <param name="basesBeingResolved"></param> /// <param name="compilation"></param> /// <param name="visited"></param> /// <returns></returns> internal static TypeSymbol GetNextBaseTypeNoUseSiteDiagnostics(this TypeSymbol type, ConsList<TypeSymbol> basesBeingResolved, CSharpCompilation compilation, ref PooledHashSet<NamedTypeSymbol> visited) { switch (type.TypeKind) { case TypeKind.TypeParameter: return ((TypeParameterSymbol)type).EffectiveBaseClassNoUseSiteDiagnostics; case TypeKind.Class: case TypeKind.Struct: case TypeKind.Error: case TypeKind.Interface: return GetNextDeclaredBase((NamedTypeSymbol)type, basesBeingResolved, compilation, ref visited); default: // Enums and delegates know their own base types // intrinsically (and do not include interface lists) // so there is no possibility of a cycle. return type.BaseTypeNoUseSiteDiagnostics; } } private static TypeSymbol GetNextDeclaredBase(NamedTypeSymbol type, ConsList<TypeSymbol> basesBeingResolved, CSharpCompilation compilation, ref PooledHashSet<NamedTypeSymbol> visited) { // We shouldn't have visited this type earlier. Debug.Assert(visited == null || !visited.Contains(type.OriginalDefinition)); if (basesBeingResolved != null && basesBeingResolved.ContainsReference(type.OriginalDefinition)) { return null; } if (type.SpecialType == SpecialType.System_Object) { type.SetKnownToHaveNoDeclaredBaseCycles(); return null; } var nextType = type.GetDeclaredBaseType(basesBeingResolved); // types with no declared bases inherit object's members if ((object)nextType == null) { SetKnownToHaveNoDeclaredBaseCycles(ref visited); return GetDefaultBaseOrNull(type, compilation); } var origType = type.OriginalDefinition; if (nextType.KnownToHaveNoDeclaredBaseCycles) { origType.SetKnownToHaveNoDeclaredBaseCycles(); SetKnownToHaveNoDeclaredBaseCycles(ref visited); } else { // start cycle tracking visited = visited ?? PooledHashSet<NamedTypeSymbol>.GetInstance(); visited.Add(origType); if (visited.Contains(nextType.OriginalDefinition)) { return GetDefaultBaseOrNull(type, compilation); } } return nextType; } private static void SetKnownToHaveNoDeclaredBaseCycles(ref PooledHashSet<NamedTypeSymbol> visited) { if (visited != null) { foreach (var v in visited) { v.SetKnownToHaveNoDeclaredBaseCycles(); } visited.Free(); visited = null; } } private static NamedTypeSymbol GetDefaultBaseOrNull(NamedTypeSymbol type, CSharpCompilation compilation) { if (compilation == null) { return null; } switch (type.TypeKind) { case TypeKind.Class: case TypeKind.Error: return compilation.Assembly.GetSpecialType(SpecialType.System_Object); case TypeKind.Interface: return null; case TypeKind.Struct: return compilation.Assembly.GetSpecialType(SpecialType.System_ValueType); default: throw ExceptionUtilities.UnexpectedValue(type.TypeKind); } } } }
-1
dotnet/roslyn
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./src/Workspaces/SharedUtilitiesAndExtensions/Workspace/CSharp/Extensions/ContextQuery/SyntaxTreeExtensions.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.CodeAnalysis; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Utilities; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; #pragma warning disable IDE0060 // Remove unused parameter - Majority of extension methods in this file have an unused 'SyntaxTree' this parameter for consistency with other Context related extension methods. namespace Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery { internal static partial class SyntaxTreeExtensions { private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) { SyntaxKind.ExternKeyword, SyntaxKind.StaticKeyword, SyntaxKind.AsyncKeyword, SyntaxKind.UnsafeKeyword, }; public static bool IsAttributeNameContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); // cases: // [ | if (token.IsKind(SyntaxKind.OpenBracketToken) && token.Parent.IsKind(SyntaxKind.AttributeList)) { return true; } // cases: // [Goo(1), | if (token.IsKind(SyntaxKind.CommaToken) && token.Parent.IsKind(SyntaxKind.AttributeList)) { return true; } // cases: // [specifier: | if (token.IsKind(SyntaxKind.ColonToken) && token.Parent.IsKind(SyntaxKind.AttributeTargetSpecifier)) { return true; } // cases: // [Namespace.| if (token.Parent.IsKind(SyntaxKind.QualifiedName) && token.Parent.IsParentKind(SyntaxKind.Attribute)) { return true; } // cases: // [global::| if (token.Parent.IsKind(SyntaxKind.AliasQualifiedName) && token.Parent.IsParentKind(SyntaxKind.Attribute)) { return true; } return false; } public static bool IsGlobalMemberDeclarationContext( this SyntaxTree syntaxTree, int position, ISet<SyntaxKind> validModifiers, CancellationToken cancellationToken) { if (!syntaxTree.IsScript()) { return false; } var tokenOnLeftOfPosition = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); var parent = token.Parent; var modifierTokens = syntaxTree.GetPrecedingModifiers(position, tokenOnLeftOfPosition); if (modifierTokens.IsEmpty()) { if (token.IsKind(SyntaxKind.CloseBracketToken) && parent.IsKind(SyntaxKind.AttributeList, out AttributeListSyntax? attributeList) && !IsGlobalAttributeList(attributeList)) { // Allow empty modifier tokens if we have an attribute list parent = attributeList.Parent; } else { return false; } } if (modifierTokens.IsSubsetOf(validModifiers)) { // the parent is the member // the grandparent is the container of the member // in interactive, it's possible that there might be an intervening "incomplete" member for partially // typed declarations that parse ambiguously. For example, "internal e". It's also possible for a // complete member to be parsed based on data after the caret, e.g. "unsafe $$ void L() { }". if (parent.IsKind(SyntaxKind.CompilationUnit) || (parent is MemberDeclarationSyntax && parent.IsParentKind(SyntaxKind.CompilationUnit))) { return true; } } return false; // Local functions static bool IsGlobalAttributeList(AttributeListSyntax attributeList) { if (attributeList.Target is { Identifier: { RawKind: var kind } }) { return kind == (int)SyntaxKind.AssemblyKeyword || kind == (int)SyntaxKind.ModuleKeyword; } return false; } } public static bool IsMemberDeclarationContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { // cases: // class C { // | // class C { // void Goo() { // } // | // class C { // int i; // | // class C { // [Goo] // | var originalToken = tokenOnLeftOfPosition; var token = originalToken; // If we're touching the right of an identifier, move back to // previous token. token = token.GetPreviousTokenIfTouchingWord(position); // class C { // | if (token.IsKind(SyntaxKind.OpenBraceToken)) { if (token.Parent is BaseTypeDeclarationSyntax) { return true; } } // class C { // int i; // | if (token.IsKind(SyntaxKind.SemicolonToken)) { if (token.Parent is MemberDeclarationSyntax && token.Parent.Parent is BaseTypeDeclarationSyntax) { return true; } } // class A { // class C {} // | // class C { // void Goo() { // } // | if (token.IsKind(SyntaxKind.CloseBraceToken)) { if (token.Parent is BaseTypeDeclarationSyntax && token.Parent.Parent is BaseTypeDeclarationSyntax) { // after a nested type return true; } else if (token.Parent is AccessorListSyntax) { // after a property return true; } else if ( token.Parent.IsKind(SyntaxKind.Block) && token.Parent.Parent is MemberDeclarationSyntax) { // after a method/operator/etc. return true; } } // namespace Goo { // [Bar] // | if (token.IsKind(SyntaxKind.CloseBracketToken) && token.Parent.IsKind(SyntaxKind.AttributeList)) { // attributes belong to a member which itself is in a // container. // the parent is the attribute // the grandparent is the owner of the attribute // the great-grandparent is the container that the owner is in var container = token.Parent.Parent?.Parent; if (container is BaseTypeDeclarationSyntax) { return true; } } return false; } public static bool IsMemberDeclarationContext( this SyntaxTree syntaxTree, int position, CSharpSyntaxContext? contextOpt, ISet<SyntaxKind>? validModifiers, ISet<SyntaxKind>? validTypeDeclarations, bool canBePartial, CancellationToken cancellationToken) { var typeDecl = contextOpt != null ? contextOpt.ContainingTypeOrEnumDeclaration : syntaxTree.GetContainingTypeOrEnumDeclaration(position, cancellationToken); if (typeDecl == null) { return false; } validTypeDeclarations ??= SpecializedCollections.EmptySet<SyntaxKind>(); if (!validTypeDeclarations.Contains(typeDecl.Kind())) { return false; } // Check many of the simple cases first. var leftToken = contextOpt != null ? contextOpt.LeftToken : syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); var token = contextOpt != null ? contextOpt.TargetToken : leftToken.GetPreviousTokenIfTouchingWord(position); if (token.IsAnyAccessorDeclarationContext(position)) { return false; } if (syntaxTree.IsMemberDeclarationContext(position, leftToken)) { return true; } // A member can also show up after certain types of modifiers if (canBePartial && token.IsKindOrHasMatchingText(SyntaxKind.PartialKeyword)) { return true; } var modifierTokens = contextOpt != null ? contextOpt.PrecedingModifiers : syntaxTree.GetPrecedingModifiers(position, leftToken); if (modifierTokens.IsEmpty()) { return false; } validModifiers ??= SpecializedCollections.EmptySet<SyntaxKind>(); if (modifierTokens.IsSubsetOf(validModifiers)) { var member = token.Parent; if (token.HasMatchingText(SyntaxKind.AsyncKeyword)) { // second appearance of "async", not followed by modifier: treat it as type if (syntaxTree.GetPrecedingModifiers(token.SpanStart, token).Any(x => x == SyntaxKind.AsyncKeyword)) { return false; } // rule out async lambdas inside a method if (token.GetAncestor<StatementSyntax>() == null) { member = token.GetAncestor<MemberDeclarationSyntax>(); } } // cases: // public | // async | // public async | return member != null && member.Parent is BaseTypeDeclarationSyntax; } return false; } public static bool IsLambdaDeclarationContext( this SyntaxTree syntaxTree, int position, SyntaxKind otherModifier, CancellationToken cancellationToken) { var leftToken = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); var token = leftToken.GetPreviousTokenIfTouchingWord(position); if (syntaxTree.IsExpressionContext(position, leftToken, attributes: false, cancellationToken)) { return true; } var modifierTokens = syntaxTree.GetPrecedingModifiers(position, token, out var beforeModifiersPosition); if (modifierTokens.Count == 1 && modifierTokens.Contains(otherModifier)) { if (token.HasMatchingText(SyntaxKind.AsyncKeyword)) { // second appearance of "async" not followed by modifier: treat as parameter name if (syntaxTree.GetPrecedingModifiers(token.SpanStart, token).Contains(SyntaxKind.AsyncKeyword)) { return false; } } leftToken = syntaxTree.FindTokenOnLeftOfPosition(beforeModifiersPosition, cancellationToken); token = leftToken.GetPreviousTokenIfTouchingWord(beforeModifiersPosition); return syntaxTree.IsExpressionContext(beforeModifiersPosition, token, attributes: false, cancellationToken); } return false; } public static bool IsLocalFunctionDeclarationContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) => syntaxTree.IsLocalFunctionDeclarationContext(position, s_validLocalFunctionModifiers, cancellationToken); public static bool IsLocalFunctionDeclarationContext( this SyntaxTree syntaxTree, int position, ISet<SyntaxKind> validModifiers, CancellationToken cancellationToken) { var leftToken = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); var token = leftToken.GetPreviousTokenIfTouchingWord(position); // Local functions are always valid in a statement context. They are also valid for top-level statements (as // opposed to global functions which are defined in the global statement context of scripts). if (syntaxTree.IsStatementContext(position, leftToken, cancellationToken) || (!syntaxTree.IsScript() && syntaxTree.IsGlobalStatementContext(position, cancellationToken))) { return true; } // Also valid after certain modifiers var modifierTokens = syntaxTree.GetPrecedingModifiers( position, token, out var beforeModifiersPosition); if (modifierTokens.IsSubsetOf(validModifiers)) { if (token.HasMatchingText(SyntaxKind.AsyncKeyword)) { // second appearance of "async" not followed by modifier: treat as type if (syntaxTree.GetPrecedingModifiers(token.SpanStart, token) .Contains(SyntaxKind.AsyncKeyword)) { return false; } } leftToken = syntaxTree.FindTokenOnLeftOfPosition(beforeModifiersPosition, cancellationToken); token = leftToken.GetPreviousTokenIfTouchingWord(beforeModifiersPosition); // If one or more attribute lists are present before the caret, check to see if those attribute lists // were written in a local function declaration context. while (token.IsKind(SyntaxKind.CloseBracketToken) && token.Parent.IsKind(SyntaxKind.AttributeList, out AttributeListSyntax? attributeList)) { beforeModifiersPosition = attributeList.OpenBracketToken.SpanStart; leftToken = syntaxTree.FindTokenOnLeftOfPosition(beforeModifiersPosition, cancellationToken); token = leftToken.GetPreviousTokenIfTouchingWord(beforeModifiersPosition); } return syntaxTree.IsStatementContext(beforeModifiersPosition, token, cancellationToken) || (!syntaxTree.IsScript() && syntaxTree.IsGlobalStatementContext(beforeModifiersPosition, cancellationToken)); } return false; } public static bool IsTypeDeclarationContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { // cases: // root: | // extern alias a; // | // using Goo; // | // using Goo = Bar; // | // namespace N {} // | // namespace N { // | // class C {} // | // class C { // | // class C { // void Goo() { // } // | // class C { // int i; // | // class C { // [Goo] // | // (all the class cases apply to structs, interfaces and records). var originalToken = tokenOnLeftOfPosition; var token = originalToken; // If we're touching the right of an identifier, move back to // previous token. token = token.GetPreviousTokenIfTouchingWord(position); // a type decl can't come before usings/externs var nextToken = originalToken.GetNextToken(includeSkipped: true); if (nextToken.IsUsingOrExternKeyword() || (nextToken.Kind() == SyntaxKind.GlobalKeyword && nextToken.GetAncestor<UsingDirectiveSyntax>()?.GlobalKeyword == nextToken)) { return false; } // root: | if (token.IsKind(SyntaxKind.None)) { // root namespace // a type decl can't come before usings/externs if (syntaxTree.GetRoot(cancellationToken) is CompilationUnitSyntax compilationUnit && (compilationUnit.Externs.Count > 0 || compilationUnit.Usings.Count > 0)) { return false; } return true; } if (token.IsKind(SyntaxKind.OpenBraceToken) && token.Parent is NamespaceDeclarationSyntax or TypeDeclarationSyntax) return true; // extern alias a; // | // using Goo; // | // class C { // int i; // | // namespace NS; // | if (token.IsKind(SyntaxKind.SemicolonToken)) { if (token.Parent.IsKind(SyntaxKind.ExternAliasDirective, SyntaxKind.UsingDirective)) { return true; } else if (token.Parent is MemberDeclarationSyntax) { return true; } } // class C {} // | // namespace N {} // | // class C { // void Goo() { // } // | if (token.IsKind(SyntaxKind.CloseBraceToken)) { if (token.Parent is BaseTypeDeclarationSyntax) { return true; } else if (token.Parent.IsKind(SyntaxKind.NamespaceDeclaration)) { return true; } else if (token.Parent is AccessorListSyntax) { return true; } else if ( token.Parent.IsKind(SyntaxKind.Block) && token.Parent.Parent is MemberDeclarationSyntax) { return true; } } // namespace Goo { // [Bar] // | // namespace NS; // [Attr] // | if (token.IsKind(SyntaxKind.CloseBracketToken) && token.Parent.IsKind(SyntaxKind.AttributeList)) { // assembly attributes belong to the containing compilation unit if (token.Parent.IsParentKind(SyntaxKind.CompilationUnit)) return true; // other attributes belong to a member which itself is in a // container. // the parent is the attribute // the grandparent is the owner of the attribute // the great-grandparent is the container that the owner is in var container = token.Parent?.Parent?.Parent; if (container is CompilationUnitSyntax or BaseNamespaceDeclarationSyntax or TypeDeclarationSyntax) return true; } return false; } public static bool IsTypeDeclarationContext( this SyntaxTree syntaxTree, int position, CSharpSyntaxContext? contextOpt, ISet<SyntaxKind>? validModifiers, ISet<SyntaxKind>? validTypeDeclarations, bool canBePartial, CancellationToken cancellationToken) { // We only allow nested types inside a class, struct, or interface, not inside a // an enum. var typeDecl = contextOpt != null ? contextOpt.ContainingTypeDeclaration : syntaxTree.GetContainingTypeDeclaration(position, cancellationToken); validTypeDeclarations ??= SpecializedCollections.EmptySet<SyntaxKind>(); if (typeDecl != null) { if (!validTypeDeclarations.Contains(typeDecl.Kind())) { return false; } } // Check many of the simple cases first. var leftToken = contextOpt != null ? contextOpt.LeftToken : syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); // If we're touching the right of an identifier, move back to // previous token. var token = contextOpt != null ? contextOpt.TargetToken : leftToken.GetPreviousTokenIfTouchingWord(position); if (token.IsAnyAccessorDeclarationContext(position)) { return false; } if (syntaxTree.IsTypeDeclarationContext(position, leftToken, cancellationToken)) { return true; } // A type can also show up after certain types of modifiers if (canBePartial && token.IsKindOrHasMatchingText(SyntaxKind.PartialKeyword)) { return true; } // using static | is never a type declaration context if (token.IsStaticKeywordInUsingDirective()) { return false; } var modifierTokens = contextOpt != null ? contextOpt.PrecedingModifiers : syntaxTree.GetPrecedingModifiers(position, leftToken); if (modifierTokens.IsEmpty()) { return false; } validModifiers ??= SpecializedCollections.EmptySet<SyntaxKind>(); if (modifierTokens.IsProperSubsetOf(validModifiers)) { // the parent is the member // the grandparent is the container of the member var container = token.Parent?.Parent; // ref $$ // readonly ref $$ if (container.IsKind(SyntaxKind.IncompleteMember, out IncompleteMemberSyntax? incompleteMember)) return incompleteMember.Type.IsKind(SyntaxKind.RefType); if (container is CompilationUnitSyntax or BaseNamespaceDeclarationSyntax or TypeDeclarationSyntax) return true; } return false; } public static bool IsNamespaceContext( this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken, SemanticModel? semanticModelOpt = null) { // first do quick exit check if (syntaxTree.IsInNonUserCode(position, cancellationToken) || syntaxTree.IsRightOfDotOrArrow(position, cancellationToken)) { return false; } var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) .GetPreviousTokenIfTouchingWord(position); // global:: if (token.IsKind(SyntaxKind.ColonColonToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.GlobalKeyword)) { return true; } // using | // but not: // using | = Bar // Note: we take care of the using alias case in the IsTypeContext // call below. if (token.IsKind(SyntaxKind.UsingKeyword)) { var usingDirective = token.GetAncestor<UsingDirectiveSyntax>(); if (usingDirective != null) { if (token.GetNextToken(includeSkipped: true).Kind() != SyntaxKind.EqualsToken && usingDirective.Alias == null) { return true; } } } // using static | if (token.IsStaticKeywordInUsingDirective()) { return true; } // if it is not using directive location, most of places where // type can appear, namespace can appear as well return syntaxTree.IsTypeContext(position, cancellationToken, semanticModelOpt); } public static bool IsNamespaceDeclarationNameContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { if (syntaxTree.IsScript() || syntaxTree.IsInNonUserCode(position, cancellationToken)) return false; var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) .GetPreviousTokenIfTouchingWord(position); if (token == default) return false; var declaration = token.GetAncestor<BaseNamespaceDeclarationSyntax>(); if (declaration?.NamespaceKeyword == token) return true; return declaration?.Name.Span.IntersectsWith(position) == true; } public static bool IsPartialTypeDeclarationNameContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken, [NotNullWhen(true)] out TypeDeclarationSyntax? declarationSyntax) { if (!syntaxTree.IsInNonUserCode(position, cancellationToken)) { var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) .GetPreviousTokenIfTouchingWord(position); if ((token.IsKind(SyntaxKind.ClassKeyword) || token.IsKind(SyntaxKind.StructKeyword) || token.IsKind(SyntaxKind.InterfaceKeyword)) && token.GetPreviousToken().IsKind(SyntaxKind.PartialKeyword)) { declarationSyntax = token.GetAncestor<TypeDeclarationSyntax>(); return declarationSyntax != null && declarationSyntax.Keyword == token; } } declarationSyntax = null; return false; } public static bool IsDefinitelyNotTypeContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { return syntaxTree.IsInNonUserCode(position, cancellationToken) || syntaxTree.IsRightOfDotOrArrow(position, cancellationToken); } public static bool IsTypeContext( this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken, SemanticModel? semanticModelOpt = null) { // first do quick exit check if (syntaxTree.IsDefinitelyNotTypeContext(position, cancellationToken)) { return false; } // okay, now it is a case where we can't use parse tree (valid or error recovery) to // determine whether it is a right place to put type. use lex based one Cyrus created. var tokenOnLeftOfPosition = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); return syntaxTree.IsAfterKeyword(position, SyntaxKind.ConstKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.RefKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.ReadOnlyKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.CaseKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.EventKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) || syntaxTree.IsAttributeNameContext(position, cancellationToken) || syntaxTree.IsBaseClassOrInterfaceContext(position, cancellationToken) || syntaxTree.IsCatchVariableDeclarationContext(position, cancellationToken) || syntaxTree.IsDefiniteCastTypeContext(position, tokenOnLeftOfPosition) || syntaxTree.IsDelegateReturnTypeContext(position, tokenOnLeftOfPosition) || syntaxTree.IsExpressionContext(position, tokenOnLeftOfPosition, attributes: true, cancellationToken: cancellationToken, semanticModelOpt: semanticModelOpt) || syntaxTree.IsPrimaryFunctionExpressionContext(position, tokenOnLeftOfPosition) || syntaxTree.IsGenericTypeArgumentContext(position, tokenOnLeftOfPosition, cancellationToken, semanticModelOpt) || syntaxTree.IsFunctionPointerTypeArgumentContext(position, tokenOnLeftOfPosition, cancellationToken) || syntaxTree.IsFixedVariableDeclarationContext(position, tokenOnLeftOfPosition) || syntaxTree.IsImplicitOrExplicitOperatorTypeContext(position, tokenOnLeftOfPosition) || syntaxTree.IsIsOrAsTypeContext(position, tokenOnLeftOfPosition) || syntaxTree.IsLocalVariableDeclarationContext(position, tokenOnLeftOfPosition, cancellationToken) || syntaxTree.IsObjectCreationTypeContext(position, tokenOnLeftOfPosition, cancellationToken) || syntaxTree.IsParameterTypeContext(position, tokenOnLeftOfPosition) || syntaxTree.IsPossibleLambdaOrAnonymousMethodParameterTypeContext(position, tokenOnLeftOfPosition, cancellationToken) || syntaxTree.IsStatementContext(position, tokenOnLeftOfPosition, cancellationToken) || syntaxTree.IsGlobalStatementContext(position, cancellationToken) || syntaxTree.IsTypeParameterConstraintContext(position, tokenOnLeftOfPosition) || syntaxTree.IsUsingAliasContext(position, cancellationToken) || syntaxTree.IsUsingStaticContext(position, cancellationToken) || syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || syntaxTree.IsPossibleTupleContext(tokenOnLeftOfPosition, position) || syntaxTree.IsMemberDeclarationContext( position, contextOpt: null, validModifiers: SyntaxKindSet.AllMemberModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken) || syntaxTree.IsLocalFunctionDeclarationContext(position, cancellationToken); } public static bool IsBaseClassOrInterfaceContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { // class C : | // class C : Bar, | var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.ColonToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.BaseList)) { return true; } } return false; } public static bool IsUsingAliasContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { // using Goo = | var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.EqualsToken) && token.GetAncestor<UsingDirectiveSyntax>() != null) { return true; } return false; } public static bool IsUsingStaticContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { // using static | var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); return token.IsStaticKeywordInUsingDirective(); } public static bool IsTypeArgumentOfConstraintClause( this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { // cases: // where | // class Goo<T> : Object where | var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.WhereKeyword) && token.Parent.IsKind(SyntaxKind.TypeParameterConstraintClause)) { return true; } if (token.IsKind(SyntaxKind.IdentifierToken) && token.HasMatchingText(SyntaxKind.WhereKeyword) && token.Parent.IsKind(SyntaxKind.IdentifierName) && token.Parent.IsParentKind(SyntaxKind.SimpleBaseType) && token.Parent.Parent.IsParentKind(SyntaxKind.BaseList)) { return true; } return false; } public static bool IsTypeParameterConstraintStartContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { // cases: // where T : | var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.ColonToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.IdentifierToken) && token.GetPreviousToken(includeSkipped: true).GetPreviousToken().IsKind(SyntaxKind.WhereKeyword)) { return true; } return false; } public static bool IsTypeParameterConstraintContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { if (syntaxTree.IsTypeParameterConstraintStartContext(position, tokenOnLeftOfPosition)) { return true; } var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); // Can't come after new() // // where T : | // where T : class, | // where T : struct, | // where T : Goo, | if (token.IsKind(SyntaxKind.CommaToken) && token.Parent.IsKind(SyntaxKind.TypeParameterConstraintClause, out TypeParameterConstraintClauseSyntax? constraintClause)) { // Check if there's a 'new()' constraint. If there isn't, or we're before it, then // this is a type parameter constraint context. var firstConstructorConstraint = constraintClause.Constraints.FirstOrDefault(t => t is ConstructorConstraintSyntax); if (firstConstructorConstraint == null || firstConstructorConstraint.SpanStart > token.Span.End) { return true; } } return false; } public static bool IsTypeOfExpressionContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.TypeOfExpression)) { return true; } return false; } public static bool IsDefaultExpressionContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.DefaultExpression)) { return true; } return false; } public static bool IsSizeOfExpressionContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.SizeOfExpression)) { return true; } return false; } public static bool IsFunctionPointerTypeArgumentContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); switch (token.Kind()) { case SyntaxKind.LessThanToken: case SyntaxKind.CommaToken: return token.Parent.IsKind(SyntaxKind.FunctionPointerParameterList); } return token switch { // ref modifiers { Parent: { RawKind: (int)SyntaxKind.FunctionPointerParameter } } => true, // Regular type specifiers { Parent: TypeSyntax { Parent: { RawKind: (int)SyntaxKind.FunctionPointerParameter } } } => true, _ => false }; } public static bool IsGenericTypeArgumentContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken, SemanticModel? semanticModelOpt = null) { // cases: // Goo<| // Goo<Bar,| // Goo<Bar<Baz<int[],| var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.Kind() != SyntaxKind.LessThanToken && token.Kind() != SyntaxKind.CommaToken) { return false; } if (token.Parent is TypeArgumentListSyntax) { // Easy case, it was known to be a generic name, so this is a type argument context. return true; } if (!syntaxTree.IsInPartiallyWrittenGeneric(position, cancellationToken, out var nameToken)) { return false; } if (!(nameToken.Parent is NameSyntax name)) { return false; } // Looks viable! If they provided a binding, then check if it binds properly to // an actual generic entity. if (semanticModelOpt == null) { // No binding. Just make the decision based on the syntax tree. return true; } // '?' is syntactically ambiguous in incomplete top-level statements: // // T ? goo<| // // Might be an incomplete conditional expression or an incomplete declaration of a method returning a nullable type. // Bind T to see if it is a type. If it is we don't show signature help. if (name.IsParentKind(SyntaxKind.LessThanExpression) && name.Parent.IsParentKind(SyntaxKind.ConditionalExpression, out ConditionalExpressionSyntax? conditional) && conditional.IsParentKind(SyntaxKind.ExpressionStatement) && conditional.Parent.IsParentKind(SyntaxKind.GlobalStatement)) { var conditionOrType = semanticModelOpt.GetSymbolInfo(conditional.Condition, cancellationToken); if (conditionOrType.GetBestOrAllSymbols().FirstOrDefault() is { Kind: SymbolKind.NamedType }) { return false; } } var symbols = semanticModelOpt.LookupName(nameToken, cancellationToken); return symbols.Any(s => { switch (s) { case INamedTypeSymbol nt: return nt.Arity > 0; case IMethodSymbol m: return m.Arity > 0; default: return false; } }); } public static bool IsParameterModifierContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, bool includeOperators, out int parameterIndex, out SyntaxKind previousModifier) { // cases: // Goo(| // Goo(int i, | // Goo([Bar]| var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); parameterIndex = -1; previousModifier = SyntaxKind.None; if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsDelegateOrConstructorOrLocalFunctionOrMethodOrOperatorParameterList(includeOperators)) { parameterIndex = 0; return true; } if (token.IsKind(SyntaxKind.LessThanToken) && token.Parent.IsKind(SyntaxKind.FunctionPointerParameterList)) { parameterIndex = 0; return true; } if (token.IsKind(SyntaxKind.CommaToken) && token.Parent.IsKind(SyntaxKind.ParameterList, out ParameterListSyntax? parameterList) && parameterList.IsDelegateOrConstructorOrLocalFunctionOrMethodOrOperatorParameterList(includeOperators)) { var commaIndex = parameterList.Parameters.GetWithSeparators().IndexOf(token); parameterIndex = commaIndex / 2 + 1; return true; } if (token.IsKind(SyntaxKind.CommaToken) && token.Parent.IsKind(SyntaxKind.FunctionPointerParameterList, out FunctionPointerParameterListSyntax? funcPtrParamList)) { var commaIndex = funcPtrParamList.Parameters.GetWithSeparators().IndexOf(token); parameterIndex = commaIndex / 2 + 1; return true; } if (token.IsKind(SyntaxKind.CloseBracketToken) && token.Parent.IsKind(SyntaxKind.AttributeList) && token.Parent.IsParentKind(SyntaxKind.Parameter, out ParameterSyntax? parameter) && parameter.IsParentKind(SyntaxKind.ParameterList, out parameterList) && parameterList.IsDelegateOrConstructorOrLocalFunctionOrMethodOrOperatorParameterList(includeOperators)) { parameterIndex = parameterList.Parameters.IndexOf(parameter); return true; } if (token.IsKind(SyntaxKind.RefKeyword, SyntaxKind.InKeyword, SyntaxKind.OutKeyword, SyntaxKind.ThisKeyword, SyntaxKind.ParamsKeyword) && token.Parent.IsKind(SyntaxKind.Parameter, out parameter) && parameter.IsParentKind(SyntaxKind.ParameterList, out parameterList) && parameterList.IsDelegateOrConstructorOrLocalFunctionOrMethodOrOperatorParameterList(includeOperators)) { parameterIndex = parameterList.Parameters.IndexOf(parameter); previousModifier = token.Kind(); return true; } return false; } public static bool IsParamsModifierContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { if (syntaxTree.IsParameterModifierContext(position, tokenOnLeftOfPosition, includeOperators: false, out _, out var previousModifier) && previousModifier == SyntaxKind.None) { return true; } var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenBracketToken) || token.IsKind(SyntaxKind.CommaToken)) { return token.Parent.IsKind(SyntaxKind.BracketedParameterList); } return false; } public static bool IsDelegateReturnTypeContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.DelegateKeyword) && token.Parent.IsKind(SyntaxKind.DelegateDeclaration)) { return true; } return false; } public static bool IsImplicitOrExplicitOperatorTypeContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OperatorKeyword)) { if (token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.ImplicitKeyword) || token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.ExplicitKeyword)) { return true; } } return false; } public static bool IsParameterTypeContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (syntaxTree.IsParameterModifierContext(position, tokenOnLeftOfPosition, includeOperators: true, out _, out _)) { return true; } // int this[ | // int this[int i, | if (token.IsKind(SyntaxKind.OpenParenToken) || token.IsKind(SyntaxKind.OpenBracketToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.ParameterList, SyntaxKind.BracketedParameterList)) { return true; } } return false; } public static bool IsPossibleExtensionMethodContext(this SyntaxTree syntaxTree, SyntaxToken tokenOnLeftOfPosition) { var method = tokenOnLeftOfPosition.Parent.GetAncestorOrThis<MethodDeclarationSyntax>(); var typeDecl = method.GetAncestorOrThis<TypeDeclarationSyntax>(); return method != null && typeDecl != null && typeDecl.IsKind(SyntaxKind.ClassDeclaration) && method.Modifiers.Any(SyntaxKind.StaticKeyword) && typeDecl.Modifiers.Any(SyntaxKind.StaticKeyword); } public static bool IsPossibleLambdaParameterModifierContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.ParameterList) && token.Parent.IsParentKind(SyntaxKind.ParenthesizedLambdaExpression)) { return true; } // TODO(cyrusn): Tie into semantic analysis system to only // consider this a lambda if this is a location where the // lambda's type would be inferred because of a delegate // or Expression<T> type. if (token.Parent.IsKind(SyntaxKind.ParenthesizedExpression) || token.Parent.IsKind(SyntaxKind.TupleExpression)) { return true; } } return false; } public static bool IsAnonymousMethodParameterModifierContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.ParameterList) && token.Parent.IsParentKind(SyntaxKind.AnonymousMethodExpression)) { return true; } } return false; } public static bool IsPossibleLambdaOrAnonymousMethodParameterTypeContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.RefKeyword) || token.IsKind(SyntaxKind.InKeyword) || token.IsKind(SyntaxKind.OutKeyword)) { position = token.SpanStart; tokenOnLeftOfPosition = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); } if (IsAnonymousMethodParameterModifierContext(syntaxTree, position, tokenOnLeftOfPosition) || IsPossibleLambdaParameterModifierContext(syntaxTree, position, tokenOnLeftOfPosition)) { return true; } return false; } /// <summary> /// Are you possibly typing a tuple type or expression? /// This is used to suppress colon as a completion trigger (so that you can type element names). /// This is also used to recommend some keywords (like var). /// </summary> public static bool IsPossibleTupleContext(this SyntaxTree syntaxTree, SyntaxToken leftToken, int position) { leftToken = leftToken.GetPreviousTokenIfTouchingWord(position); // ($$ // (a, $$ if (IsPossibleTupleOpenParenOrComma(leftToken)) { return true; } // ((a, b) $$ // (..., (a, b) $$ if (leftToken.IsKind(SyntaxKind.CloseParenToken)) { if (leftToken.Parent.IsKind( SyntaxKind.ParenthesizedExpression, SyntaxKind.TupleExpression, SyntaxKind.TupleType)) { var possibleCommaOrParen = FindTokenOnLeftOfNode(leftToken.Parent); if (IsPossibleTupleOpenParenOrComma(possibleCommaOrParen)) { return true; } } } // (a $$ // (..., b $$ if (leftToken.IsKind(SyntaxKind.IdentifierToken)) { var possibleCommaOrParen = FindTokenOnLeftOfNode(leftToken.Parent!); if (IsPossibleTupleOpenParenOrComma(possibleCommaOrParen)) { return true; } } // (a.b $$ // (..., a.b $$ if (leftToken.IsKind(SyntaxKind.IdentifierToken) && leftToken.Parent.IsKind(SyntaxKind.IdentifierName) && leftToken.Parent.Parent.IsKind(SyntaxKind.QualifiedName, SyntaxKind.SimpleMemberAccessExpression)) { var possibleCommaOrParen = FindTokenOnLeftOfNode(leftToken.Parent.Parent); if (IsPossibleTupleOpenParenOrComma(possibleCommaOrParen)) { return true; } } return false; } public static bool IsAtStartOfPattern(this SyntaxTree syntaxTree, SyntaxToken leftToken, int position) { leftToken = leftToken.GetPreviousTokenIfTouchingWord(position); if (leftToken.IsKind(SyntaxKind.OpenParenToken)) { if (leftToken.Parent.IsKind(SyntaxKind.ParenthesizedExpression, out ParenthesizedExpressionSyntax? parenthesizedExpression)) { // If we're dealing with an expression surrounded by one or more sets of open parentheses, we need to // walk up the parens in order to see if we're actually at the start of a valid pattern or not. return IsAtStartOfPattern(syntaxTree, parenthesizedExpression.GetFirstToken().GetPreviousToken(), parenthesizedExpression.SpanStart); } // e is ((($$ 1 or 2))) if (leftToken.Parent.IsKind(SyntaxKind.ParenthesizedPattern)) { return true; } } // case $$ // is $$ if (leftToken.IsKind(SyntaxKind.CaseKeyword, SyntaxKind.IsKeyword)) { return true; } // e switch { $$ // e switch { ..., $$ if (leftToken.IsKind(SyntaxKind.OpenBraceToken, SyntaxKind.CommaToken) && leftToken.Parent.IsKind(SyntaxKind.SwitchExpression)) { return true; } // e is ($$ // e is (..., $$ if (leftToken.IsKind(SyntaxKind.OpenParenToken, SyntaxKind.CommaToken) && leftToken.Parent.IsKind(SyntaxKind.PositionalPatternClause)) { return true; } // e is { P: $$ // e is { ..., P: $$ // e is { ..., P.P2: $$ if (leftToken.IsKind(SyntaxKind.ColonToken) && leftToken.Parent.IsKind(SyntaxKind.NameColon, SyntaxKind.ExpressionColon) && leftToken.Parent.IsParentKind(SyntaxKind.Subpattern)) { return true; } // e is 1 and $$ // e is 1 or $$ if (leftToken.IsKind(SyntaxKind.AndKeyword) || leftToken.IsKind(SyntaxKind.OrKeyword)) { return leftToken.Parent is BinaryPatternSyntax; } // e is not $$ if (leftToken.IsKind(SyntaxKind.NotKeyword) && leftToken.Parent.IsKind(SyntaxKind.NotPattern)) { return true; } return false; } public static bool IsAtEndOfPattern(this SyntaxTree syntaxTree, SyntaxToken leftToken, int position) { var originalLeftToken = leftToken; leftToken = leftToken.GetPreviousTokenIfTouchingWord(position); // For instance: // e is { A.$$ } if (leftToken.IsKind(SyntaxKind.DotToken)) { return false; } var patternSyntax = leftToken.GetAncestor<PatternSyntax>(); if (patternSyntax != null) { var lastTokenInPattern = patternSyntax.GetLastToken(); // This check should cover the majority of cases, e.g.: // e is 1 $$ // e is >= 0 $$ // e is { P: (1 $$ // e is { P: (1) $$ if (leftToken == lastTokenInPattern) { // Patterns such as 'e is not $$', 'e is 1 or $$', 'e is ($$', and 'e is null or global::$$' should be invalid here // as they are incomplete patterns. return !(leftToken.IsKind(SyntaxKind.OrKeyword) || leftToken.IsKind(SyntaxKind.AndKeyword) || leftToken.IsKind(SyntaxKind.NotKeyword) || leftToken.IsKind(SyntaxKind.OpenParenToken) || leftToken.IsKind(SyntaxKind.ColonColonToken)); } // We want to make sure that IsAtEndOfPattern returns true even when the user is in the middle of typing a keyword // after a pattern. // For example, with the keyword 'and', we want to make sure that 'e is int an$$' is still recognized as valid. if (lastTokenInPattern.Parent is SingleVariableDesignationSyntax variableDesignationSyntax && originalLeftToken.Parent == variableDesignationSyntax) { return patternSyntax is DeclarationPatternSyntax || patternSyntax is RecursivePatternSyntax; } } // e is C.P $$ // e is int $$ if (leftToken.IsLastTokenOfNode<TypeSyntax>(out var typeSyntax)) { // If typeSyntax is part of a qualified name, we want to get the fully-qualified name so that we can // later accurately perform the check comparing the right side of the BinaryExpressionSyntax to // the typeSyntax. while (typeSyntax.Parent is TypeSyntax parentTypeSyntax) { typeSyntax = parentTypeSyntax; } if (typeSyntax.Parent is BinaryExpressionSyntax binaryExpressionSyntax && binaryExpressionSyntax.OperatorToken.IsKind(SyntaxKind.IsKeyword) && binaryExpressionSyntax.Right == typeSyntax && !typeSyntax.IsVar) { return true; } } // We need to include a special case for switch statement cases, as some are not currently parsed as patterns, e.g. case (1 $$ if (IsAtEndOfSwitchStatementPattern(leftToken)) { return true; } return false; static bool IsAtEndOfSwitchStatementPattern(SyntaxToken leftToken) { SyntaxNode? node = leftToken.Parent as ExpressionSyntax; if (node == null) return false; // Walk up the right edge of all complete expressions. while (node is ExpressionSyntax && node.GetLastToken(includeZeroWidth: true) == leftToken) node = node.GetRequiredParent(); // Getting rid of the extra parentheses to deal with cases such as 'case (((1 $$' while (node is ParenthesizedExpressionSyntax) node = node.GetRequiredParent(); // case (1 $$ if (node is CaseSwitchLabelSyntax { Parent: SwitchSectionSyntax }) return true; return false; } } private static SyntaxToken FindTokenOnLeftOfNode(SyntaxNode node) => node.FindTokenOnLeftOfPosition(node.SpanStart); public static bool IsPossibleTupleOpenParenOrComma(this SyntaxToken possibleCommaOrParen) { if (!possibleCommaOrParen.IsKind(SyntaxKind.OpenParenToken, SyntaxKind.CommaToken)) { return false; } if (possibleCommaOrParen.Parent.IsKind( SyntaxKind.ParenthesizedExpression, SyntaxKind.TupleExpression, SyntaxKind.TupleType, SyntaxKind.CastExpression)) { return true; } // in script if (possibleCommaOrParen.Parent.IsKind(SyntaxKind.ParameterList) && possibleCommaOrParen.Parent.IsParentKind(SyntaxKind.ParenthesizedLambdaExpression, out ParenthesizedLambdaExpressionSyntax? parenthesizedLambda)) { if (parenthesizedLambda.ArrowToken.IsMissing) { return true; } } return false; } /// <summary> /// Are you possibly in the designation part of a deconstruction? /// This is used to enter suggestion mode (suggestions become soft-selected). /// </summary> public static bool IsPossibleDeconstructionDesignation(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { var leftToken = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); leftToken = leftToken.GetPreviousTokenIfTouchingWord(position); // The well-formed cases: // var ($$, y) = e; // (var $$, var y) = e; if (leftToken.Parent.IsKind(SyntaxKind.ParenthesizedVariableDesignation) || leftToken.Parent.IsParentKind(SyntaxKind.ParenthesizedVariableDesignation)) { return true; } // (var $$, var y) // (var x, var y) if (syntaxTree.IsPossibleTupleContext(leftToken, position) && !IsPossibleTupleOpenParenOrComma(leftToken)) { return true; } // var ($$) // var (x, $$) if (IsPossibleVarDeconstructionOpenParenOrComma(leftToken)) { return true; } // var (($$), y) if (leftToken.IsKind(SyntaxKind.OpenParenToken) && leftToken.Parent.IsKind(SyntaxKind.ParenthesizedExpression)) { if (IsPossibleVarDeconstructionOpenParenOrComma(FindTokenOnLeftOfNode(leftToken.Parent))) { return true; } } // var ((x, $$), y) // var (($$, x), y) if (leftToken.IsKind(SyntaxKind.OpenParenToken, SyntaxKind.CommaToken) && leftToken.Parent.IsKind(SyntaxKind.TupleExpression)) { if (IsPossibleVarDeconstructionOpenParenOrComma(FindTokenOnLeftOfNode(leftToken.Parent))) { return true; } } // foreach (var ($$ // foreach (var ((x, $$), y) if (leftToken.IsKind(SyntaxKind.OpenParenToken, SyntaxKind.CommaToken)) { var outer = UnwrapPossibleTuple(leftToken.Parent!); if (outer.Parent.IsKind(SyntaxKind.ForEachStatement, out ForEachStatementSyntax? @foreach)) { if (@foreach.Expression == outer && @foreach.Type.IsKind(SyntaxKind.IdentifierName, out IdentifierNameSyntax? identifierName) && identifierName.Identifier.ValueText == "var") { return true; } } } return false; } /// <summary> /// If inside a parenthesized or tuple expression, unwrap the nestings and return the container. /// </summary> private static SyntaxNode UnwrapPossibleTuple(SyntaxNode node) { while (true) { if (node.Parent.IsKind(SyntaxKind.ParenthesizedExpression)) { node = node.Parent; continue; } if (node.Parent.IsKind(SyntaxKind.Argument) && node.Parent.Parent.IsKind(SyntaxKind.TupleExpression)) { node = node.Parent.Parent; continue; } return node; } } private static bool IsPossibleVarDeconstructionOpenParenOrComma(SyntaxToken leftToken) { if (leftToken.IsKind(SyntaxKind.OpenParenToken, SyntaxKind.CommaToken) && leftToken.Parent.IsKind(SyntaxKind.ArgumentList) && leftToken.Parent.IsParentKind(SyntaxKind.InvocationExpression, out InvocationExpressionSyntax? invocation)) { if (invocation.Expression.IsKind(SyntaxKind.IdentifierName, out IdentifierNameSyntax? identifierName) && identifierName.Identifier.ValueText == "var") { return true; } } return false; } public static bool HasNames(this TupleExpressionSyntax tuple) => tuple.Arguments.Any(a => a.NameColon != null); public static bool IsValidContextForFromClause( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken, SemanticModel? semanticModelOpt = null) { if (syntaxTree.IsExpressionContext(position, tokenOnLeftOfPosition, attributes: false, cancellationToken: cancellationToken, semanticModelOpt: semanticModelOpt) && !syntaxTree.IsConstantExpressionContext(position, tokenOnLeftOfPosition)) { return true; } // cases: // var q = | // var q = f| // // var q = from x in y // | // // var q = from x in y // f| // // this list is *not* exhaustive. // the first two are handled by 'IsExpressionContext' var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); // var q = from x in y // | if (!token.IntersectsWith(position) && token.IsLastTokenOfQueryClause()) { return true; } return false; } public static bool IsValidContextForJoinClause( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); // var q = from x in y // | if (!token.IntersectsWith(position) && token.IsLastTokenOfQueryClause()) { return true; } return false; } public static bool IsDeclarationExpressionContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { // cases: // M(out var // var x = var var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.OutKeyword) && token.Parent.IsKind(SyntaxKind.Argument)) { return true; } if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.EqualsToken) && token.Parent.IsKind(SyntaxKind.EqualsValueClause) && token.Parent.IsParentKind(SyntaxKind.VariableDeclarator)) { return true; } return false; } public static bool IsLocalVariableDeclarationContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { // cases: // const var // out var // for (var // foreach (var // await foreach (var // using (var // await using (var // from var // join var var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); // const | if (token.IsKind(SyntaxKind.ConstKeyword) && token.Parent.IsKind(SyntaxKind.LocalDeclarationStatement)) { return true; } // ref | // ref readonly | // for ( ref | // foreach ( ref | x if (token.IsKind(SyntaxKind.RefKeyword, SyntaxKind.ReadOnlyKeyword)) { var parent = token.Parent; if (parent.IsKind(SyntaxKind.RefType, SyntaxKind.RefExpression, SyntaxKind.LocalDeclarationStatement)) { if (parent.IsParentKind(SyntaxKind.VariableDeclaration) && parent.Parent.IsParentKind(SyntaxKind.LocalDeclarationStatement, SyntaxKind.ForStatement, SyntaxKind.ForEachVariableStatement)) { return true; } if (parent.IsParentKind(SyntaxKind.ForEachStatement, SyntaxKind.ForEachVariableStatement)) { return true; } } } // out | if (token.IsKind(SyntaxKind.OutKeyword) && token.Parent.IsKind(SyntaxKind.Argument, out ArgumentSyntax? argument) && argument.RefKindKeyword == token) { return true; } if (token.IsKind(SyntaxKind.OpenParenToken)) { // for ( | // foreach ( | // await foreach ( | // using ( | // await using ( | var previous = token.GetPreviousToken(includeSkipped: true); if (previous.IsKind(SyntaxKind.ForKeyword) || previous.IsKind(SyntaxKind.ForEachKeyword) || previous.IsKind(SyntaxKind.UsingKeyword)) { return true; } } // from | var tokenOnLeftOfStart = syntaxTree.FindTokenOnLeftOfPosition(token.SpanStart, cancellationToken); if (token.IsKindOrHasMatchingText(SyntaxKind.FromKeyword) && syntaxTree.IsValidContextForFromClause(token.SpanStart, tokenOnLeftOfStart, cancellationToken)) { return true; } // join | if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.JoinKeyword) && syntaxTree.IsValidContextForJoinClause(token.SpanStart, tokenOnLeftOfStart)) { return true; } return false; } public static bool IsFixedVariableDeclarationContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { // cases: // fixed (var var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.FixedKeyword)) { return true; } return false; } public static bool IsCatchVariableDeclarationContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { // cases: // catch (var var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.CatchKeyword)) { return true; } return false; } public static bool IsIsOrAsTypeContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.IsKeyword) || token.IsKind(SyntaxKind.AsKeyword)) { return true; } return false; } public static bool IsObjectCreationTypeContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.NewKeyword)) { // we can follow a 'new' if it's the 'new' for an expression. var start = token.SpanStart; var tokenOnLeftOfStart = syntaxTree.FindTokenOnLeftOfPosition(start, cancellationToken); return IsNonConstantExpressionContext(syntaxTree, token.SpanStart, tokenOnLeftOfStart, cancellationToken) || syntaxTree.IsStatementContext(token.SpanStart, tokenOnLeftOfStart, cancellationToken) || syntaxTree.IsGlobalStatementContext(token.SpanStart, cancellationToken); } return false; } private static bool IsNonConstantExpressionContext(SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { return syntaxTree.IsExpressionContext(position, tokenOnLeftOfPosition, attributes: true, cancellationToken: cancellationToken) && !syntaxTree.IsConstantExpressionContext(position, tokenOnLeftOfPosition); } public static bool IsPreProcessorDirectiveContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { var leftToken = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken, includeDirectives: true); return syntaxTree.IsPreProcessorDirectiveContext(position, leftToken, cancellationToken); } public static bool IsPreProcessorKeywordContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { return IsPreProcessorKeywordContext( syntaxTree, position, syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken, includeDirectives: true)); } public static bool IsPreProcessorKeywordContext(this SyntaxTree syntaxTree, int position, SyntaxToken preProcessorTokenOnLeftOfPosition) { // cases: // #| // #d| // # | // # d| // note: comments are not allowed between the # and item. var token = preProcessorTokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.HashToken)) { return true; } return false; } public static bool IsStatementContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { #if false // we're in a statement if the thing that comes before allows for // statements to follow. Or if we're on a just started identifier // in the first position where a statement can go. if (syntaxTree.IsInPreprocessorDirectiveContext(position, cancellationToken)) { return false; } #endif var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); return token.IsBeginningOfStatementContext(); } public static bool IsGlobalStatementContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) .GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.None)) { // global statements can't come before usings/externs if (syntaxTree.GetRoot(cancellationToken) is CompilationUnitSyntax compilationUnit && (compilationUnit.Externs.Count > 0 || compilationUnit.Usings.Count > 0)) { return false; } return true; } return token.IsBeginningOfGlobalStatementContext(); } public static bool IsInstanceContext(this SyntaxTree syntaxTree, SyntaxToken targetToken, SemanticModel semanticModel, CancellationToken cancellationToken) { #if false if (syntaxTree.IsInPreprocessorDirectiveContext(position, cancellationToken)) { return false; } #endif var enclosingSymbol = semanticModel.GetEnclosingSymbol(targetToken.SpanStart, cancellationToken); while (enclosingSymbol is IMethodSymbol method && (method.MethodKind == MethodKind.LocalFunction || method.MethodKind == MethodKind.AnonymousFunction)) { if (method.IsStatic) { return false; } // It is allowed to reference the instance (`this`) within a local function or anonymous function, as long as the containing method allows it enclosingSymbol = enclosingSymbol.ContainingSymbol; } return enclosingSymbol is { IsStatic: false }; } public static bool IsPossibleCastTypeContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.OpenParenToken) && syntaxTree.IsExpressionContext(token.SpanStart, syntaxTree.FindTokenOnLeftOfPosition(token.SpanStart, cancellationToken), false, cancellationToken)) { return true; } return false; } public static bool IsDefiniteCastTypeContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.CastExpression)) { return true; } return false; } public static bool IsConstantExpressionContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { if (IsAtStartOfPattern(syntaxTree, tokenOnLeftOfPosition, position)) { return true; } var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); // goto case | if (token.IsKind(SyntaxKind.CaseKeyword) && token.Parent.IsKind(SyntaxKind.GotoCaseStatement)) { return true; } if (token.IsKind(SyntaxKind.EqualsToken) && token.Parent.IsKind(SyntaxKind.EqualsValueClause, out EqualsValueClauseSyntax? equalsValue)) { if (equalsValue.IsParentKind(SyntaxKind.VariableDeclarator) && equalsValue.Parent.IsParentKind(SyntaxKind.VariableDeclaration)) { // class C { const int i = | var fieldDeclaration = equalsValue.GetAncestor<FieldDeclarationSyntax>(); if (fieldDeclaration != null) { return fieldDeclaration.Modifiers.Any(SyntaxKind.ConstKeyword); } // void M() { const int i = | var localDeclaration = equalsValue.GetAncestor<LocalDeclarationStatementSyntax>(); if (localDeclaration != null) { return localDeclaration.Modifiers.Any(SyntaxKind.ConstKeyword); } } // enum E { A = | if (equalsValue.IsParentKind(SyntaxKind.EnumMemberDeclaration)) { return true; } // void M(int i = | if (equalsValue.IsParentKind(SyntaxKind.Parameter)) { return true; } } // [Goo( | // [Goo(x, | if (token.Parent.IsKind(SyntaxKind.AttributeArgumentList) && (token.IsKind(SyntaxKind.CommaToken) || token.IsKind(SyntaxKind.OpenParenToken))) { return true; } // [Goo(x: | if (token.IsKind(SyntaxKind.ColonToken) && token.Parent.IsKind(SyntaxKind.NameColon) && token.Parent.IsParentKind(SyntaxKind.AttributeArgument)) { return true; } // [Goo(X = | if (token.IsKind(SyntaxKind.EqualsToken) && token.Parent.IsKind(SyntaxKind.NameEquals) && token.Parent.IsParentKind(SyntaxKind.AttributeArgument)) { return true; } // TODO: Fixed-size buffer declarations return false; } public static bool IsLabelContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); var gotoStatement = token.GetAncestor<GotoStatementSyntax>(); if (gotoStatement != null) { if (gotoStatement.GotoKeyword == token) { return true; } if (gotoStatement.Expression != null && !gotoStatement.Expression.IsMissing && gotoStatement.Expression is IdentifierNameSyntax && ((IdentifierNameSyntax)gotoStatement.Expression).Identifier == token && token.IntersectsWith(position)) { return true; } } return false; } public static bool IsExpressionContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, bool attributes, CancellationToken cancellationToken, SemanticModel? semanticModelOpt = null) { // cases: // var q = | // var q = a| // this list is *not* exhaustive. var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (token.GetAncestor<ConditionalDirectiveTriviaSyntax>() != null) { return false; } if (!attributes) { if (token.GetAncestor<AttributeListSyntax>() != null) { return false; } } if (syntaxTree.IsConstantExpressionContext(position, tokenOnLeftOfPosition)) { return true; } // no expressions after . :: -> if (token.IsKind(SyntaxKind.DotToken) || token.IsKind(SyntaxKind.ColonColonToken) || token.IsKind(SyntaxKind.MinusGreaterThanToken)) { return false; } // Normally you can have any sort of expression after an equals. However, this does not // apply to a "using Goo = ..." situation. if (token.IsKind(SyntaxKind.EqualsToken)) { if (token.Parent.IsKind(SyntaxKind.NameEquals) && token.Parent.IsParentKind(SyntaxKind.UsingDirective)) { return false; } } // q = | // q -= | // q *= | // q += | // q /= | // q ^= | // q %= | // q &= | // q |= | // q <<= | // q >>= | // q ??= | if (token.IsKind(SyntaxKind.EqualsToken) || token.IsKind(SyntaxKind.MinusEqualsToken) || token.IsKind(SyntaxKind.AsteriskEqualsToken) || token.IsKind(SyntaxKind.PlusEqualsToken) || token.IsKind(SyntaxKind.SlashEqualsToken) || token.IsKind(SyntaxKind.ExclamationEqualsToken) || token.IsKind(SyntaxKind.CaretEqualsToken) || token.IsKind(SyntaxKind.AmpersandEqualsToken) || token.IsKind(SyntaxKind.BarEqualsToken) || token.IsKind(SyntaxKind.PercentEqualsToken) || token.IsKind(SyntaxKind.LessThanLessThanEqualsToken) || token.IsKind(SyntaxKind.GreaterThanGreaterThanEqualsToken) || token.IsKind(SyntaxKind.QuestionQuestionEqualsToken)) { return true; } // ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.ParenthesizedExpression)) { return true; } // - | // + | // ~ | // ! | if (token.Parent is PrefixUnaryExpressionSyntax prefix) { return prefix.OperatorToken == token; } // not sure about these: // ++ | // -- | #if false token.Kind == SyntaxKind.PlusPlusToken || token.Kind == SyntaxKind.DashDashToken) #endif // await | if (token.Parent is AwaitExpressionSyntax awaitExpression) { return awaitExpression.AwaitKeyword == token; } // Check for binary operators. // Note: // - We handle < specially as it can be ambiguous with generics. // - We handle * specially because it can be ambiguous with pointer types. // a * // a / // a % // a + // a - // a << // a >> // a < // a > // a && // a || // a & // a | // a ^ if (token.Parent is BinaryExpressionSyntax binary) { // If the client provided a binding, then check if this is actually generic. If so, // then this is not an expression context. i.e. if we have "Goo < |" then it could // be an expression context, or it could be a type context if Goo binds to a type or // method. if (semanticModelOpt != null && syntaxTree.IsGenericTypeArgumentContext(position, tokenOnLeftOfPosition, cancellationToken, semanticModelOpt)) { return false; } if (binary.OperatorToken == token) { // If this is a multiplication expression and a semantic model was passed in, // check to see if the expression to the left is a type name. If it is, treat // this as a pointer type. if (token.IsKind(SyntaxKind.AsteriskToken) && semanticModelOpt != null) { if (binary.Left is TypeSyntax type && type.IsPotentialTypeName(semanticModelOpt, cancellationToken)) { return false; } } return true; } } // Special case: // Goo * bar // Goo ? bar // This parses as a local decl called bar of type Goo* or Goo? if (tokenOnLeftOfPosition.IntersectsWith(position) && tokenOnLeftOfPosition.IsKind(SyntaxKind.IdentifierToken)) { var previousToken = tokenOnLeftOfPosition.GetPreviousToken(includeSkipped: true); if (previousToken.IsKind(SyntaxKind.AsteriskToken) || previousToken.IsKind(SyntaxKind.QuestionToken)) { if (previousToken.Parent.IsKind(SyntaxKind.PointerType) || previousToken.Parent.IsKind(SyntaxKind.NullableType)) { var type = previousToken.Parent as TypeSyntax; if (type.IsParentKind(SyntaxKind.VariableDeclaration) && type.Parent.IsParentKind(SyntaxKind.LocalDeclarationStatement, out LocalDeclarationStatementSyntax? declStatement)) { // note, this doesn't apply for cases where we know it // absolutely is not multiplication or a conditional expression. var underlyingType = type is PointerTypeSyntax pointerType ? pointerType.ElementType : ((NullableTypeSyntax)type).ElementType; if (!underlyingType.IsPotentialTypeName(semanticModelOpt, cancellationToken)) { return true; } } } } } // new int[| // new int[expr, | if (token.IsKind(SyntaxKind.OpenBracketToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.ArrayRankSpecifier)) { return true; } } // goo ? | if (token.IsKind(SyntaxKind.QuestionToken) && token.Parent.IsKind(SyntaxKind.ConditionalExpression, out ConditionalExpressionSyntax? conditionalExpression)) { // If the condition is simply a TypeSyntax that binds to a type, treat this as a nullable type. return !(conditionalExpression.Condition is TypeSyntax type) || !type.IsPotentialTypeName(semanticModelOpt, cancellationToken); } // goo ? bar : | if (token.IsKind(SyntaxKind.ColonToken) && token.Parent.IsKind(SyntaxKind.ConditionalExpression)) { return true; } // typeof(| // default(| // sizeof(| if (token.IsKind(SyntaxKind.OpenParenToken)) { if (token.Parent.IsKind(SyntaxKind.TypeOfExpression, SyntaxKind.DefaultExpression, SyntaxKind.SizeOfExpression)) { return false; } } // var(| // var(id, | // Those are more likely to be deconstruction-declarations being typed than invocations a method "var" if (token.IsKind(SyntaxKind.OpenParenToken, SyntaxKind.CommaToken) && token.IsInvocationOfVarExpression()) { return false; } // Goo(| // Goo(expr, | // this[| // var t = (1, | // var t = (| , 2) if (token.IsKind(SyntaxKind.OpenParenToken) || token.IsKind(SyntaxKind.OpenBracketToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.ArgumentList, SyntaxKind.BracketedArgumentList, SyntaxKind.TupleExpression)) { return true; } } // [Goo(| // [Goo(expr, | if (attributes) { if (token.IsKind(SyntaxKind.OpenParenToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.AttributeArgumentList)) { return true; } } } // Goo(ref | // Goo(in | // Goo(out | // ref var x = ref | if (token.IsKind(SyntaxKind.RefKeyword) || token.IsKind(SyntaxKind.InKeyword) || token.IsKind(SyntaxKind.OutKeyword)) { if (token.Parent.IsKind(SyntaxKind.Argument)) { return true; } else if (token.Parent.IsKind(SyntaxKind.RefExpression)) { // ( ref | // parenthesized expressions can't directly contain RefExpression, unless the user is typing an incomplete lambda expression. if (token.Parent.IsParentKind(SyntaxKind.ParenthesizedExpression)) { return false; } return true; } } // Goo(bar: | if (token.IsKind(SyntaxKind.ColonToken) && token.Parent.IsKind(SyntaxKind.NameColon) && token.Parent.IsParentKind(SyntaxKind.Argument)) { return true; } // a => | if (token.IsKind(SyntaxKind.EqualsGreaterThanToken)) { return true; } // new List<int> { | // new List<int> { expr, | if (token.IsKind(SyntaxKind.OpenBraceToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent is InitializerExpressionSyntax) { // The compiler treats the ambiguous case as an object initializer, so we'll say // expressions are legal here if (token.Parent.IsKind(SyntaxKind.ObjectInitializerExpression) && token.IsKind(SyntaxKind.OpenBraceToken)) { // In this position { a$$ =, the user is trying to type an object initializer. if (!token.IntersectsWith(position) && token.GetNextToken().GetNextToken().IsKind(SyntaxKind.EqualsToken)) { return false; } return true; } // Perform a semantic check to determine whether or not the type being created // can support a collection initializer. If not, this must be an object initializer // and can't be an expression context. if (semanticModelOpt != null && token.Parent.IsParentKind(SyntaxKind.ObjectCreationExpression, out ObjectCreationExpressionSyntax? objectCreation)) { var containingSymbol = semanticModelOpt.GetEnclosingNamedTypeOrAssembly(position, cancellationToken); if (semanticModelOpt.GetSymbolInfo(objectCreation.Type, cancellationToken).Symbol is ITypeSymbol type && !type.CanSupportCollectionInitializer(containingSymbol)) { return false; } } return true; } } // for (; | // for (; ; | if (token.IsKind(SyntaxKind.SemicolonToken) && token.Parent.IsKind(SyntaxKind.ForStatement, out ForStatementSyntax? forStatement)) { if (token == forStatement.FirstSemicolonToken || token == forStatement.SecondSemicolonToken) { return true; } } // for ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.ForStatement, out forStatement) && token == forStatement.OpenParenToken) { return true; } // for (; ; Goo(), | // for ( Goo(), | if (token.IsKind(SyntaxKind.CommaToken) && token.Parent.IsKind(SyntaxKind.ForStatement)) { return true; } // foreach (var v in | // await foreach (var v in | // from a in | // join b in | if (token.IsKind(SyntaxKind.InKeyword)) { if (token.Parent.IsKind(SyntaxKind.ForEachStatement, SyntaxKind.ForEachVariableStatement, SyntaxKind.FromClause, SyntaxKind.JoinClause)) { return true; } } // join x in y on | // join x in y on a equals | if (token.IsKind(SyntaxKind.OnKeyword) || token.IsKind(SyntaxKind.EqualsKeyword)) { if (token.Parent.IsKind(SyntaxKind.JoinClause)) { return true; } } // where | if (token.IsKind(SyntaxKind.WhereKeyword) && token.Parent.IsKind(SyntaxKind.WhereClause)) { return true; } // orderby | // orderby a, | if (token.IsKind(SyntaxKind.OrderByKeyword) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.OrderByClause)) { return true; } } // select | if (token.IsKind(SyntaxKind.SelectKeyword) && token.Parent.IsKind(SyntaxKind.SelectClause)) { return true; } // group | // group expr by | if (token.IsKind(SyntaxKind.GroupKeyword) || token.IsKind(SyntaxKind.ByKeyword)) { if (token.Parent.IsKind(SyntaxKind.GroupClause)) { return true; } } // return | // yield return | // but not: [return | if (token.IsKind(SyntaxKind.ReturnKeyword)) { if (token.GetPreviousToken(includeSkipped: true).Kind() != SyntaxKind.OpenBracketToken) { return true; } } // throw | if (token.IsKind(SyntaxKind.ThrowKeyword)) { return true; } // while ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.WhileKeyword)) { return true; } // todo: handle 'for' cases. // using ( | // await using ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.UsingStatement)) { return true; } // lock ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.LockKeyword)) { return true; } // lock ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.IfKeyword)) { return true; } // switch ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.SwitchKeyword)) { return true; } // checked ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.CheckedKeyword)) { return true; } // unchecked ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.UncheckedKeyword)) { return true; } // when ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.WhenKeyword)) { return true; } // case ... when | if (token.IsKind(SyntaxKind.WhenKeyword) && token.Parent.IsKind(SyntaxKind.WhenClause)) { return true; } // (SomeType) | if (token.IsAfterPossibleCast()) { return true; } // In anonymous type initializer. // // new { | We allow new inside of anonymous object member declarators, so that the user // can dot into a member afterward. For example: // // var a = new { new C().Goo }; if (token.IsKind(SyntaxKind.OpenBraceToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression)) { return true; } } // $"{ | // $@"{ | // $"{x} { | // $@"{x} { | if (token.IsKind(SyntaxKind.OpenBraceToken)) { return token.Parent.IsKind(SyntaxKind.Interpolation, out InterpolationSyntax? interpolation) && interpolation.OpenBraceToken == token; } return false; } public static bool IsInvocationOfVarExpression(this SyntaxToken token) => token.Parent.IsParentKind(SyntaxKind.InvocationExpression, out InvocationExpressionSyntax? invocation) && invocation.Expression.ToString() == "var"; public static bool IsNameOfContext(this SyntaxTree syntaxTree, int position, SemanticModel? semanticModelOpt = null, CancellationToken cancellationToken = default) { var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); // nameof(Goo.| // nameof(Goo.Bar.| // Locate the open paren. if (token.IsKind(SyntaxKind.DotToken)) { // Could have been parsed as member access if (token.Parent.IsKind(SyntaxKind.SimpleMemberAccessExpression)) { var parentMemberAccess = token.Parent; while (parentMemberAccess.Parent.IsKind(SyntaxKind.SimpleMemberAccessExpression)) { parentMemberAccess = parentMemberAccess.Parent; } if (parentMemberAccess.Parent.IsKind(SyntaxKind.Argument) && parentMemberAccess.Parent.IsChildNode<ArgumentListSyntax>(a => a.Arguments.FirstOrDefault())) { token = ((ArgumentListSyntax)parentMemberAccess.Parent.Parent!).OpenParenToken; } } // Could have been parsed as a qualified name. if (token.Parent.IsKind(SyntaxKind.QualifiedName)) { var parentQualifiedName = token.Parent; while (parentQualifiedName.Parent.IsKind(SyntaxKind.QualifiedName)) { parentQualifiedName = parentQualifiedName.Parent; } if (parentQualifiedName.Parent.IsKind(SyntaxKind.Argument) && parentQualifiedName.Parent.IsChildNode<ArgumentListSyntax>(a => a.Arguments.FirstOrDefault())) { token = ((ArgumentListSyntax)parentQualifiedName.Parent.Parent!).OpenParenToken; } } } ExpressionSyntax? parentExpression = null; // if the nameof expression has a missing close paren, it is parsed as an invocation expression. if (token.Parent.IsKind(SyntaxKind.ArgumentList) && token.Parent.Parent is InvocationExpressionSyntax invocationExpression && invocationExpression.IsNameOfInvocation()) { parentExpression = invocationExpression; } if (parentExpression != null) { if (semanticModelOpt == null) { return true; } return semanticModelOpt.GetSymbolInfo(parentExpression, cancellationToken).Symbol == null; } return false; } public static bool IsIsOrAsOrSwitchOrWithExpressionContext( this SyntaxTree syntaxTree, SemanticModel semanticModel, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { // cases: // expr | var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); // Not if the position is a numeric literal if (token.IsKind(SyntaxKind.NumericLiteralToken)) { return false; } if (token.GetAncestor<BlockSyntax>() == null && token.GetAncestor<ArrowExpressionClauseSyntax>() == null) { return false; } // is/as/with are valid after expressions. if (token.IsLastTokenOfNode<ExpressionSyntax>(out var expression)) { // 'is/as/with' not allowed after a anonymous-method/lambda/method-group. if (expression.IsAnyLambdaOrAnonymousMethod()) return false; var symbol = semanticModel.GetSymbolInfo(expression, cancellationToken).GetAnySymbol(); if (symbol is IMethodSymbol) return false; // However, many names look like expressions. For example: // foreach (var | // ('var' is a TypeSyntax which is an expression syntax. var type = token.GetAncestors<TypeSyntax>().LastOrDefault(); if (type == null) { return true; } if (type.IsKind(SyntaxKind.GenericName) || type.IsKind(SyntaxKind.AliasQualifiedName) || type.IsKind(SyntaxKind.PredefinedType)) { return false; } ExpressionSyntax nameExpr = type; if (IsRightSideName(nameExpr)) { nameExpr = (ExpressionSyntax)nameExpr.Parent!; } // If this name is the start of a local variable declaration context, we // shouldn't show is or as. For example: for(var | if (syntaxTree.IsLocalVariableDeclarationContext(token.SpanStart, syntaxTree.FindTokenOnLeftOfPosition(token.SpanStart, cancellationToken), cancellationToken)) { return false; } // Not on the left hand side of an object initializer if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.IdentifierToken) && token.Parent.IsKind(SyntaxKind.IdentifierName) && (token.Parent.IsParentKind(SyntaxKind.ObjectInitializerExpression) || token.Parent.IsParentKind(SyntaxKind.CollectionInitializerExpression))) { return false; } // Not after an 'out' declaration expression. For example: M(out var | if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.IdentifierToken) && token.Parent.IsKind(SyntaxKind.IdentifierName)) { if (token.Parent.IsParentKind(SyntaxKind.Argument, out ArgumentSyntax? argument) && argument.RefOrOutKeyword.IsKind(SyntaxKind.OutKeyword)) { return false; } } if (token.Text == SyntaxFacts.GetText(SyntaxKind.AsyncKeyword)) { // async $$ // // 'async' will look like a normal identifier. But we don't want to follow it // with 'is' or 'as' or 'with' if it's actually the start of a lambda. var delegateType = CSharpTypeInferenceService.Instance.InferDelegateType( semanticModel, token.SpanStart, cancellationToken); if (delegateType != null) { return false; } } // Now, make sure the name was actually in a location valid for // an expression. If so, then we know we can follow it. if (syntaxTree.IsExpressionContext(nameExpr.SpanStart, syntaxTree.FindTokenOnLeftOfPosition(nameExpr.SpanStart, cancellationToken), attributes: false, cancellationToken: cancellationToken)) { return true; } return false; } return false; } private static bool IsRightSideName(ExpressionSyntax name) { if (name.Parent != null) { switch (name.Parent.Kind()) { case SyntaxKind.QualifiedName: return ((QualifiedNameSyntax)name.Parent).Right == name; case SyntaxKind.AliasQualifiedName: return ((AliasQualifiedNameSyntax)name.Parent).Name == name; case SyntaxKind.SimpleMemberAccessExpression: return ((MemberAccessExpressionSyntax)name.Parent).Name == name; } } return false; } public static bool IsCatchOrFinallyContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { // cases: // try { // } | // try { // } c| // try { // } catch { // } | // try { // } catch { // } c| var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.CloseBraceToken)) { var block = token.GetAncestor<BlockSyntax>(); if (block != null && token == block.GetLastToken(includeSkipped: true)) { if (block.IsParentKind(SyntaxKind.TryStatement) || block.IsParentKind(SyntaxKind.CatchClause)) { return true; } } } return false; } public static bool IsCatchFilterContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { // cases: // catch | // catch i| // catch (declaration) | // catch (declaration) i| var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.CatchKeyword)) { return true; } if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.CloseParenToken) && token.Parent.IsKind(SyntaxKind.CatchDeclaration)) { return true; } return false; } public static bool IsEnumBaseListContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); // Options: // enum E : | // enum E : i| return token.IsKind(SyntaxKind.ColonToken) && token.Parent.IsKind(SyntaxKind.BaseList) && token.Parent.IsParentKind(SyntaxKind.EnumDeclaration); } public static bool IsEnumTypeMemberAccessContext(this SyntaxTree syntaxTree, SemanticModel semanticModel, int position, CancellationToken cancellationToken) { var token = syntaxTree .FindTokenOnLeftOfPosition(position, cancellationToken) .GetPreviousTokenIfTouchingWord(position); if (!token.IsKind(SyntaxKind.DotToken)) { return false; } SymbolInfo leftHandBinding; if (token.Parent.IsKind(SyntaxKind.SimpleMemberAccessExpression)) { var memberAccess = (MemberAccessExpressionSyntax)token.Parent; leftHandBinding = semanticModel.GetSymbolInfo(memberAccess.Expression, cancellationToken); } else if (token.Parent.IsKind(SyntaxKind.QualifiedName, out QualifiedNameSyntax? qualifiedName) && token.Parent.IsParentKind(SyntaxKind.IsExpression, out BinaryExpressionSyntax? binaryExpression) && binaryExpression.Right == qualifiedName) { // The right-hand side of an is expression could be an enum leftHandBinding = semanticModel.GetSymbolInfo(qualifiedName.Left, cancellationToken); } else if (token.Parent.IsKind(SyntaxKind.QualifiedName, out QualifiedNameSyntax? qualifiedName1) && token.Parent.IsParentKind(SyntaxKind.DeclarationPattern, out DeclarationPatternSyntax? declarationExpression) && declarationExpression.Type == qualifiedName1) { // The right-hand side of an is declaration expression could be an enum leftHandBinding = semanticModel.GetSymbolInfo(qualifiedName1.Left, cancellationToken); } else { return false; } var symbol = leftHandBinding.GetBestOrAllSymbols().FirstOrDefault(); if (symbol == null) { return false; } switch (symbol.Kind) { case SymbolKind.NamedType: return ((INamedTypeSymbol)symbol).TypeKind == TypeKind.Enum; case SymbolKind.Alias: var target = ((IAliasSymbol)symbol).Target; return target.IsType && ((ITypeSymbol)target).TypeKind == TypeKind.Enum; } return false; } public static bool IsFunctionPointerCallingConventionContext(this SyntaxTree syntaxTree, SyntaxToken targetToken) { return targetToken.IsKind(SyntaxKind.AsteriskToken) && targetToken.Parent is FunctionPointerTypeSyntax functionPointerType && targetToken == functionPointerType.AsteriskToken; } } }
// 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.CodeAnalysis; using System.Linq; using System.Threading; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Utilities; using Microsoft.CodeAnalysis.Shared.Extensions; using Roslyn.Utilities; #pragma warning disable IDE0060 // Remove unused parameter - Majority of extension methods in this file have an unused 'SyntaxTree' this parameter for consistency with other Context related extension methods. namespace Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery { internal static partial class SyntaxTreeExtensions { private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) { SyntaxKind.ExternKeyword, SyntaxKind.StaticKeyword, SyntaxKind.AsyncKeyword, SyntaxKind.UnsafeKeyword, }; public static bool IsAttributeNameContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); // cases: // [ | if (token.IsKind(SyntaxKind.OpenBracketToken) && token.Parent.IsKind(SyntaxKind.AttributeList)) { return true; } // cases: // [Goo(1), | if (token.IsKind(SyntaxKind.CommaToken) && token.Parent.IsKind(SyntaxKind.AttributeList)) { return true; } // cases: // [specifier: | if (token.IsKind(SyntaxKind.ColonToken) && token.Parent.IsKind(SyntaxKind.AttributeTargetSpecifier)) { return true; } // cases: // [Namespace.| if (token.Parent.IsKind(SyntaxKind.QualifiedName) && token.Parent.IsParentKind(SyntaxKind.Attribute)) { return true; } // cases: // [global::| if (token.Parent.IsKind(SyntaxKind.AliasQualifiedName) && token.Parent.IsParentKind(SyntaxKind.Attribute)) { return true; } return false; } public static bool IsGlobalMemberDeclarationContext( this SyntaxTree syntaxTree, int position, ISet<SyntaxKind> validModifiers, CancellationToken cancellationToken) { if (!syntaxTree.IsScript()) { return false; } var tokenOnLeftOfPosition = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); var parent = token.Parent; var modifierTokens = syntaxTree.GetPrecedingModifiers(position, tokenOnLeftOfPosition); if (modifierTokens.IsEmpty()) { if (token.IsKind(SyntaxKind.CloseBracketToken) && parent.IsKind(SyntaxKind.AttributeList, out AttributeListSyntax? attributeList) && !IsGlobalAttributeList(attributeList)) { // Allow empty modifier tokens if we have an attribute list parent = attributeList.Parent; } else { return false; } } if (modifierTokens.IsSubsetOf(validModifiers)) { // the parent is the member // the grandparent is the container of the member // in interactive, it's possible that there might be an intervening "incomplete" member for partially // typed declarations that parse ambiguously. For example, "internal e". It's also possible for a // complete member to be parsed based on data after the caret, e.g. "unsafe $$ void L() { }". if (parent.IsKind(SyntaxKind.CompilationUnit) || (parent is MemberDeclarationSyntax && parent.IsParentKind(SyntaxKind.CompilationUnit))) { return true; } } return false; // Local functions static bool IsGlobalAttributeList(AttributeListSyntax attributeList) { if (attributeList.Target is { Identifier: { RawKind: var kind } }) { return kind == (int)SyntaxKind.AssemblyKeyword || kind == (int)SyntaxKind.ModuleKeyword; } return false; } } public static bool IsMemberDeclarationContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { // cases: // class C { // | // class C { // void Goo() { // } // | // class C { // int i; // | // class C { // [Goo] // | var originalToken = tokenOnLeftOfPosition; var token = originalToken; // If we're touching the right of an identifier, move back to // previous token. token = token.GetPreviousTokenIfTouchingWord(position); // class C { // | if (token.IsKind(SyntaxKind.OpenBraceToken)) { if (token.Parent is BaseTypeDeclarationSyntax) { return true; } } // class C { // int i; // | if (token.IsKind(SyntaxKind.SemicolonToken)) { if (token.Parent is MemberDeclarationSyntax && token.Parent.Parent is BaseTypeDeclarationSyntax) { return true; } } // class A { // class C {} // | // class C { // void Goo() { // } // | if (token.IsKind(SyntaxKind.CloseBraceToken)) { if (token.Parent is BaseTypeDeclarationSyntax && token.Parent.Parent is BaseTypeDeclarationSyntax) { // after a nested type return true; } else if (token.Parent is AccessorListSyntax) { // after a property return true; } else if ( token.Parent.IsKind(SyntaxKind.Block) && token.Parent.Parent is MemberDeclarationSyntax) { // after a method/operator/etc. return true; } } // namespace Goo { // [Bar] // | if (token.IsKind(SyntaxKind.CloseBracketToken) && token.Parent.IsKind(SyntaxKind.AttributeList)) { // attributes belong to a member which itself is in a // container. // the parent is the attribute // the grandparent is the owner of the attribute // the great-grandparent is the container that the owner is in var container = token.Parent.Parent?.Parent; if (container is BaseTypeDeclarationSyntax) { return true; } } return false; } public static bool IsMemberDeclarationContext( this SyntaxTree syntaxTree, int position, CSharpSyntaxContext? contextOpt, ISet<SyntaxKind>? validModifiers, ISet<SyntaxKind>? validTypeDeclarations, bool canBePartial, CancellationToken cancellationToken) { var typeDecl = contextOpt != null ? contextOpt.ContainingTypeOrEnumDeclaration : syntaxTree.GetContainingTypeOrEnumDeclaration(position, cancellationToken); if (typeDecl == null) { return false; } validTypeDeclarations ??= SpecializedCollections.EmptySet<SyntaxKind>(); if (!validTypeDeclarations.Contains(typeDecl.Kind())) { return false; } // Check many of the simple cases first. var leftToken = contextOpt != null ? contextOpt.LeftToken : syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); var token = contextOpt != null ? contextOpt.TargetToken : leftToken.GetPreviousTokenIfTouchingWord(position); if (token.IsAnyAccessorDeclarationContext(position)) { return false; } if (syntaxTree.IsMemberDeclarationContext(position, leftToken)) { return true; } // A member can also show up after certain types of modifiers if (canBePartial && token.IsKindOrHasMatchingText(SyntaxKind.PartialKeyword)) { return true; } var modifierTokens = contextOpt != null ? contextOpt.PrecedingModifiers : syntaxTree.GetPrecedingModifiers(position, leftToken); if (modifierTokens.IsEmpty()) { return false; } validModifiers ??= SpecializedCollections.EmptySet<SyntaxKind>(); if (modifierTokens.IsSubsetOf(validModifiers)) { var member = token.Parent; if (token.HasMatchingText(SyntaxKind.AsyncKeyword)) { // second appearance of "async", not followed by modifier: treat it as type if (syntaxTree.GetPrecedingModifiers(token.SpanStart, token).Any(x => x == SyntaxKind.AsyncKeyword)) { return false; } // rule out async lambdas inside a method if (token.GetAncestor<StatementSyntax>() == null) { member = token.GetAncestor<MemberDeclarationSyntax>(); } } // cases: // public | // async | // public async | return member != null && member.Parent is BaseTypeDeclarationSyntax; } return false; } public static bool IsLambdaDeclarationContext( this SyntaxTree syntaxTree, int position, SyntaxKind otherModifier, CancellationToken cancellationToken) { var leftToken = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); var token = leftToken.GetPreviousTokenIfTouchingWord(position); if (syntaxTree.IsExpressionContext(position, leftToken, attributes: false, cancellationToken)) { return true; } var modifierTokens = syntaxTree.GetPrecedingModifiers(position, token, out var beforeModifiersPosition); if (modifierTokens.Count == 1 && modifierTokens.Contains(otherModifier)) { if (token.HasMatchingText(SyntaxKind.AsyncKeyword)) { // second appearance of "async" not followed by modifier: treat as parameter name if (syntaxTree.GetPrecedingModifiers(token.SpanStart, token).Contains(SyntaxKind.AsyncKeyword)) { return false; } } leftToken = syntaxTree.FindTokenOnLeftOfPosition(beforeModifiersPosition, cancellationToken); token = leftToken.GetPreviousTokenIfTouchingWord(beforeModifiersPosition); return syntaxTree.IsExpressionContext(beforeModifiersPosition, token, attributes: false, cancellationToken); } return false; } public static bool IsLocalFunctionDeclarationContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) => syntaxTree.IsLocalFunctionDeclarationContext(position, s_validLocalFunctionModifiers, cancellationToken); public static bool IsLocalFunctionDeclarationContext( this SyntaxTree syntaxTree, int position, ISet<SyntaxKind> validModifiers, CancellationToken cancellationToken) { var leftToken = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); var token = leftToken.GetPreviousTokenIfTouchingWord(position); // Local functions are always valid in a statement context. They are also valid for top-level statements (as // opposed to global functions which are defined in the global statement context of scripts). if (syntaxTree.IsStatementContext(position, leftToken, cancellationToken) || (!syntaxTree.IsScript() && syntaxTree.IsGlobalStatementContext(position, cancellationToken))) { return true; } // Also valid after certain modifiers var modifierTokens = syntaxTree.GetPrecedingModifiers( position, token, out var beforeModifiersPosition); if (modifierTokens.IsSubsetOf(validModifiers)) { if (token.HasMatchingText(SyntaxKind.AsyncKeyword)) { // second appearance of "async" not followed by modifier: treat as type if (syntaxTree.GetPrecedingModifiers(token.SpanStart, token) .Contains(SyntaxKind.AsyncKeyword)) { return false; } } leftToken = syntaxTree.FindTokenOnLeftOfPosition(beforeModifiersPosition, cancellationToken); token = leftToken.GetPreviousTokenIfTouchingWord(beforeModifiersPosition); // If one or more attribute lists are present before the caret, check to see if those attribute lists // were written in a local function declaration context. while (token.IsKind(SyntaxKind.CloseBracketToken) && token.Parent.IsKind(SyntaxKind.AttributeList, out AttributeListSyntax? attributeList)) { beforeModifiersPosition = attributeList.OpenBracketToken.SpanStart; leftToken = syntaxTree.FindTokenOnLeftOfPosition(beforeModifiersPosition, cancellationToken); token = leftToken.GetPreviousTokenIfTouchingWord(beforeModifiersPosition); } return syntaxTree.IsStatementContext(beforeModifiersPosition, token, cancellationToken) || (!syntaxTree.IsScript() && syntaxTree.IsGlobalStatementContext(beforeModifiersPosition, cancellationToken)); } return false; } public static bool IsTypeDeclarationContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { // cases: // root: | // extern alias a; // | // using Goo; // | // using Goo = Bar; // | // namespace N {} // | // namespace N { // | // class C {} // | // class C { // | // class C { // void Goo() { // } // | // class C { // int i; // | // class C { // [Goo] // | // (all the class cases apply to structs, interfaces and records). var originalToken = tokenOnLeftOfPosition; var token = originalToken; // If we're touching the right of an identifier, move back to // previous token. token = token.GetPreviousTokenIfTouchingWord(position); // a type decl can't come before usings/externs var nextToken = originalToken.GetNextToken(includeSkipped: true); if (nextToken.IsUsingOrExternKeyword() || (nextToken.Kind() == SyntaxKind.GlobalKeyword && nextToken.GetAncestor<UsingDirectiveSyntax>()?.GlobalKeyword == nextToken)) { return false; } // root: | if (token.IsKind(SyntaxKind.None)) { // root namespace // a type decl can't come before usings/externs if (syntaxTree.GetRoot(cancellationToken) is CompilationUnitSyntax compilationUnit && (compilationUnit.Externs.Count > 0 || compilationUnit.Usings.Count > 0)) { return false; } return true; } if (token.IsKind(SyntaxKind.OpenBraceToken) && token.Parent is NamespaceDeclarationSyntax or TypeDeclarationSyntax) return true; // extern alias a; // | // using Goo; // | // class C { // int i; // | // namespace NS; // | if (token.IsKind(SyntaxKind.SemicolonToken)) { if (token.Parent.IsKind(SyntaxKind.ExternAliasDirective, SyntaxKind.UsingDirective)) { return true; } else if (token.Parent is MemberDeclarationSyntax) { return true; } } // class C {} // | // namespace N {} // | // class C { // void Goo() { // } // | if (token.IsKind(SyntaxKind.CloseBraceToken)) { if (token.Parent is BaseTypeDeclarationSyntax) { return true; } else if (token.Parent.IsKind(SyntaxKind.NamespaceDeclaration)) { return true; } else if (token.Parent is AccessorListSyntax) { return true; } else if ( token.Parent.IsKind(SyntaxKind.Block) && token.Parent.Parent is MemberDeclarationSyntax) { return true; } } // namespace Goo { // [Bar] // | // namespace NS; // [Attr] // | if (token.IsKind(SyntaxKind.CloseBracketToken) && token.Parent.IsKind(SyntaxKind.AttributeList)) { // assembly attributes belong to the containing compilation unit if (token.Parent.IsParentKind(SyntaxKind.CompilationUnit)) return true; // other attributes belong to a member which itself is in a // container. // the parent is the attribute // the grandparent is the owner of the attribute // the great-grandparent is the container that the owner is in var container = token.Parent?.Parent?.Parent; if (container is CompilationUnitSyntax or BaseNamespaceDeclarationSyntax or TypeDeclarationSyntax) return true; } return false; } public static bool IsTypeDeclarationContext( this SyntaxTree syntaxTree, int position, CSharpSyntaxContext? contextOpt, ISet<SyntaxKind>? validModifiers, ISet<SyntaxKind>? validTypeDeclarations, bool canBePartial, CancellationToken cancellationToken) { // We only allow nested types inside a class, struct, or interface, not inside a // an enum. var typeDecl = contextOpt != null ? contextOpt.ContainingTypeDeclaration : syntaxTree.GetContainingTypeDeclaration(position, cancellationToken); validTypeDeclarations ??= SpecializedCollections.EmptySet<SyntaxKind>(); if (typeDecl != null) { if (!validTypeDeclarations.Contains(typeDecl.Kind())) { return false; } } // Check many of the simple cases first. var leftToken = contextOpt != null ? contextOpt.LeftToken : syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); // If we're touching the right of an identifier, move back to // previous token. var token = contextOpt != null ? contextOpt.TargetToken : leftToken.GetPreviousTokenIfTouchingWord(position); if (token.IsAnyAccessorDeclarationContext(position)) { return false; } if (syntaxTree.IsTypeDeclarationContext(position, leftToken, cancellationToken)) { return true; } // A type can also show up after certain types of modifiers if (canBePartial && token.IsKindOrHasMatchingText(SyntaxKind.PartialKeyword)) { return true; } // using static | is never a type declaration context if (token.IsStaticKeywordInUsingDirective()) { return false; } var modifierTokens = contextOpt != null ? contextOpt.PrecedingModifiers : syntaxTree.GetPrecedingModifiers(position, leftToken); if (modifierTokens.IsEmpty()) { return false; } validModifiers ??= SpecializedCollections.EmptySet<SyntaxKind>(); if (modifierTokens.IsProperSubsetOf(validModifiers)) { // the parent is the member // the grandparent is the container of the member var container = token.Parent?.Parent; // ref $$ // readonly ref $$ if (container.IsKind(SyntaxKind.IncompleteMember, out IncompleteMemberSyntax? incompleteMember)) return incompleteMember.Type.IsKind(SyntaxKind.RefType); if (container is CompilationUnitSyntax or BaseNamespaceDeclarationSyntax or TypeDeclarationSyntax) return true; } return false; } public static bool IsNamespaceContext( this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken, SemanticModel? semanticModelOpt = null) { // first do quick exit check if (syntaxTree.IsInNonUserCode(position, cancellationToken) || syntaxTree.IsRightOfDotOrArrow(position, cancellationToken)) { return false; } var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) .GetPreviousTokenIfTouchingWord(position); // global:: if (token.IsKind(SyntaxKind.ColonColonToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.GlobalKeyword)) { return true; } // using | // but not: // using | = Bar // Note: we take care of the using alias case in the IsTypeContext // call below. if (token.IsKind(SyntaxKind.UsingKeyword)) { var usingDirective = token.GetAncestor<UsingDirectiveSyntax>(); if (usingDirective != null) { if (token.GetNextToken(includeSkipped: true).Kind() != SyntaxKind.EqualsToken && usingDirective.Alias == null) { return true; } } } // using static | if (token.IsStaticKeywordInUsingDirective()) { return true; } // if it is not using directive location, most of places where // type can appear, namespace can appear as well return syntaxTree.IsTypeContext(position, cancellationToken, semanticModelOpt); } public static bool IsNamespaceDeclarationNameContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { if (syntaxTree.IsScript() || syntaxTree.IsInNonUserCode(position, cancellationToken)) return false; var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) .GetPreviousTokenIfTouchingWord(position); if (token == default) return false; var declaration = token.GetAncestor<BaseNamespaceDeclarationSyntax>(); if (declaration?.NamespaceKeyword == token) return true; return declaration?.Name.Span.IntersectsWith(position) == true; } public static bool IsPartialTypeDeclarationNameContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken, [NotNullWhen(true)] out TypeDeclarationSyntax? declarationSyntax) { if (!syntaxTree.IsInNonUserCode(position, cancellationToken)) { var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) .GetPreviousTokenIfTouchingWord(position); if ((token.IsKind(SyntaxKind.ClassKeyword) || token.IsKind(SyntaxKind.StructKeyword) || token.IsKind(SyntaxKind.InterfaceKeyword)) && token.GetPreviousToken().IsKind(SyntaxKind.PartialKeyword)) { declarationSyntax = token.GetAncestor<TypeDeclarationSyntax>(); return declarationSyntax != null && declarationSyntax.Keyword == token; } } declarationSyntax = null; return false; } public static bool IsDefinitelyNotTypeContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { return syntaxTree.IsInNonUserCode(position, cancellationToken) || syntaxTree.IsRightOfDotOrArrow(position, cancellationToken); } public static bool IsTypeContext( this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken, SemanticModel? semanticModelOpt = null) { // first do quick exit check if (syntaxTree.IsDefinitelyNotTypeContext(position, cancellationToken)) { return false; } // okay, now it is a case where we can't use parse tree (valid or error recovery) to // determine whether it is a right place to put type. use lex based one Cyrus created. var tokenOnLeftOfPosition = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); return syntaxTree.IsAfterKeyword(position, SyntaxKind.ConstKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.RefKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.ReadOnlyKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.CaseKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.EventKeyword, cancellationToken) || syntaxTree.IsAfterKeyword(position, SyntaxKind.StackAllocKeyword, cancellationToken) || syntaxTree.IsAttributeNameContext(position, cancellationToken) || syntaxTree.IsBaseClassOrInterfaceContext(position, cancellationToken) || syntaxTree.IsCatchVariableDeclarationContext(position, cancellationToken) || syntaxTree.IsDefiniteCastTypeContext(position, tokenOnLeftOfPosition) || syntaxTree.IsDelegateReturnTypeContext(position, tokenOnLeftOfPosition) || syntaxTree.IsExpressionContext(position, tokenOnLeftOfPosition, attributes: true, cancellationToken: cancellationToken, semanticModelOpt: semanticModelOpt) || syntaxTree.IsPrimaryFunctionExpressionContext(position, tokenOnLeftOfPosition) || syntaxTree.IsGenericTypeArgumentContext(position, tokenOnLeftOfPosition, cancellationToken, semanticModelOpt) || syntaxTree.IsFunctionPointerTypeArgumentContext(position, tokenOnLeftOfPosition, cancellationToken) || syntaxTree.IsFixedVariableDeclarationContext(position, tokenOnLeftOfPosition) || syntaxTree.IsImplicitOrExplicitOperatorTypeContext(position, tokenOnLeftOfPosition) || syntaxTree.IsIsOrAsTypeContext(position, tokenOnLeftOfPosition) || syntaxTree.IsLocalVariableDeclarationContext(position, tokenOnLeftOfPosition, cancellationToken) || syntaxTree.IsObjectCreationTypeContext(position, tokenOnLeftOfPosition, cancellationToken) || syntaxTree.IsParameterTypeContext(position, tokenOnLeftOfPosition) || syntaxTree.IsPossibleLambdaOrAnonymousMethodParameterTypeContext(position, tokenOnLeftOfPosition, cancellationToken) || syntaxTree.IsStatementContext(position, tokenOnLeftOfPosition, cancellationToken) || syntaxTree.IsGlobalStatementContext(position, cancellationToken) || syntaxTree.IsTypeParameterConstraintContext(position, tokenOnLeftOfPosition) || syntaxTree.IsUsingAliasContext(position, cancellationToken) || syntaxTree.IsUsingStaticContext(position, cancellationToken) || syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) || syntaxTree.IsPossibleTupleContext(tokenOnLeftOfPosition, position) || syntaxTree.IsMemberDeclarationContext( position, contextOpt: null, validModifiers: SyntaxKindSet.AllMemberModifiers, validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructRecordTypeDeclarations, canBePartial: false, cancellationToken: cancellationToken) || syntaxTree.IsLocalFunctionDeclarationContext(position, cancellationToken); } public static bool IsBaseClassOrInterfaceContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { // class C : | // class C : Bar, | var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.ColonToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.BaseList)) { return true; } } return false; } public static bool IsUsingAliasContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { // using Goo = | var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.EqualsToken) && token.GetAncestor<UsingDirectiveSyntax>() != null) { return true; } return false; } public static bool IsUsingStaticContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { // using static | var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); return token.IsStaticKeywordInUsingDirective(); } public static bool IsTypeArgumentOfConstraintClause( this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { // cases: // where | // class Goo<T> : Object where | var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.WhereKeyword) && token.Parent.IsKind(SyntaxKind.TypeParameterConstraintClause)) { return true; } if (token.IsKind(SyntaxKind.IdentifierToken) && token.HasMatchingText(SyntaxKind.WhereKeyword) && token.Parent.IsKind(SyntaxKind.IdentifierName) && token.Parent.IsParentKind(SyntaxKind.SimpleBaseType) && token.Parent.Parent.IsParentKind(SyntaxKind.BaseList)) { return true; } return false; } public static bool IsTypeParameterConstraintStartContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { // cases: // where T : | var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.ColonToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.IdentifierToken) && token.GetPreviousToken(includeSkipped: true).GetPreviousToken().IsKind(SyntaxKind.WhereKeyword)) { return true; } return false; } public static bool IsTypeParameterConstraintContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { if (syntaxTree.IsTypeParameterConstraintStartContext(position, tokenOnLeftOfPosition)) { return true; } var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); // Can't come after new() // // where T : | // where T : class, | // where T : struct, | // where T : Goo, | if (token.IsKind(SyntaxKind.CommaToken) && token.Parent.IsKind(SyntaxKind.TypeParameterConstraintClause, out TypeParameterConstraintClauseSyntax? constraintClause)) { // Check if there's a 'new()' constraint. If there isn't, or we're before it, then // this is a type parameter constraint context. var firstConstructorConstraint = constraintClause.Constraints.FirstOrDefault(t => t is ConstructorConstraintSyntax); if (firstConstructorConstraint == null || firstConstructorConstraint.SpanStart > token.Span.End) { return true; } } return false; } public static bool IsTypeOfExpressionContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.TypeOfExpression)) { return true; } return false; } public static bool IsDefaultExpressionContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.DefaultExpression)) { return true; } return false; } public static bool IsSizeOfExpressionContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.SizeOfExpression)) { return true; } return false; } public static bool IsFunctionPointerTypeArgumentContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); switch (token.Kind()) { case SyntaxKind.LessThanToken: case SyntaxKind.CommaToken: return token.Parent.IsKind(SyntaxKind.FunctionPointerParameterList); } return token switch { // ref modifiers { Parent: { RawKind: (int)SyntaxKind.FunctionPointerParameter } } => true, // Regular type specifiers { Parent: TypeSyntax { Parent: { RawKind: (int)SyntaxKind.FunctionPointerParameter } } } => true, _ => false }; } public static bool IsGenericTypeArgumentContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken, SemanticModel? semanticModelOpt = null) { // cases: // Goo<| // Goo<Bar,| // Goo<Bar<Baz<int[],| var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.Kind() != SyntaxKind.LessThanToken && token.Kind() != SyntaxKind.CommaToken) { return false; } if (token.Parent is TypeArgumentListSyntax) { // Easy case, it was known to be a generic name, so this is a type argument context. return true; } if (!syntaxTree.IsInPartiallyWrittenGeneric(position, cancellationToken, out var nameToken)) { return false; } if (!(nameToken.Parent is NameSyntax name)) { return false; } // Looks viable! If they provided a binding, then check if it binds properly to // an actual generic entity. if (semanticModelOpt == null) { // No binding. Just make the decision based on the syntax tree. return true; } // '?' is syntactically ambiguous in incomplete top-level statements: // // T ? goo<| // // Might be an incomplete conditional expression or an incomplete declaration of a method returning a nullable type. // Bind T to see if it is a type. If it is we don't show signature help. if (name.IsParentKind(SyntaxKind.LessThanExpression) && name.Parent.IsParentKind(SyntaxKind.ConditionalExpression, out ConditionalExpressionSyntax? conditional) && conditional.IsParentKind(SyntaxKind.ExpressionStatement) && conditional.Parent.IsParentKind(SyntaxKind.GlobalStatement)) { var conditionOrType = semanticModelOpt.GetSymbolInfo(conditional.Condition, cancellationToken); if (conditionOrType.GetBestOrAllSymbols().FirstOrDefault() is { Kind: SymbolKind.NamedType }) { return false; } } var symbols = semanticModelOpt.LookupName(nameToken, cancellationToken); return symbols.Any(s => { switch (s) { case INamedTypeSymbol nt: return nt.Arity > 0; case IMethodSymbol m: return m.Arity > 0; default: return false; } }); } public static bool IsParameterModifierContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, bool includeOperators, out int parameterIndex, out SyntaxKind previousModifier) { // cases: // Goo(| // Goo(int i, | // Goo([Bar]| var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); parameterIndex = -1; previousModifier = SyntaxKind.None; if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsDelegateOrConstructorOrLocalFunctionOrMethodOrOperatorParameterList(includeOperators)) { parameterIndex = 0; return true; } if (token.IsKind(SyntaxKind.LessThanToken) && token.Parent.IsKind(SyntaxKind.FunctionPointerParameterList)) { parameterIndex = 0; return true; } if (token.IsKind(SyntaxKind.CommaToken) && token.Parent.IsKind(SyntaxKind.ParameterList, out ParameterListSyntax? parameterList) && parameterList.IsDelegateOrConstructorOrLocalFunctionOrMethodOrOperatorParameterList(includeOperators)) { var commaIndex = parameterList.Parameters.GetWithSeparators().IndexOf(token); parameterIndex = commaIndex / 2 + 1; return true; } if (token.IsKind(SyntaxKind.CommaToken) && token.Parent.IsKind(SyntaxKind.FunctionPointerParameterList, out FunctionPointerParameterListSyntax? funcPtrParamList)) { var commaIndex = funcPtrParamList.Parameters.GetWithSeparators().IndexOf(token); parameterIndex = commaIndex / 2 + 1; return true; } if (token.IsKind(SyntaxKind.CloseBracketToken) && token.Parent.IsKind(SyntaxKind.AttributeList) && token.Parent.IsParentKind(SyntaxKind.Parameter, out ParameterSyntax? parameter) && parameter.IsParentKind(SyntaxKind.ParameterList, out parameterList) && parameterList.IsDelegateOrConstructorOrLocalFunctionOrMethodOrOperatorParameterList(includeOperators)) { parameterIndex = parameterList.Parameters.IndexOf(parameter); return true; } if (token.IsKind(SyntaxKind.RefKeyword, SyntaxKind.InKeyword, SyntaxKind.OutKeyword, SyntaxKind.ThisKeyword, SyntaxKind.ParamsKeyword) && token.Parent.IsKind(SyntaxKind.Parameter, out parameter) && parameter.IsParentKind(SyntaxKind.ParameterList, out parameterList) && parameterList.IsDelegateOrConstructorOrLocalFunctionOrMethodOrOperatorParameterList(includeOperators)) { parameterIndex = parameterList.Parameters.IndexOf(parameter); previousModifier = token.Kind(); return true; } return false; } public static bool IsParamsModifierContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { if (syntaxTree.IsParameterModifierContext(position, tokenOnLeftOfPosition, includeOperators: false, out _, out var previousModifier) && previousModifier == SyntaxKind.None) { return true; } var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenBracketToken) || token.IsKind(SyntaxKind.CommaToken)) { return token.Parent.IsKind(SyntaxKind.BracketedParameterList); } return false; } public static bool IsDelegateReturnTypeContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.DelegateKeyword) && token.Parent.IsKind(SyntaxKind.DelegateDeclaration)) { return true; } return false; } public static bool IsImplicitOrExplicitOperatorTypeContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OperatorKeyword)) { if (token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.ImplicitKeyword) || token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.ExplicitKeyword)) { return true; } } return false; } public static bool IsParameterTypeContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (syntaxTree.IsParameterModifierContext(position, tokenOnLeftOfPosition, includeOperators: true, out _, out _)) { return true; } // int this[ | // int this[int i, | if (token.IsKind(SyntaxKind.OpenParenToken) || token.IsKind(SyntaxKind.OpenBracketToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.ParameterList, SyntaxKind.BracketedParameterList)) { return true; } } return false; } public static bool IsPossibleExtensionMethodContext(this SyntaxTree syntaxTree, SyntaxToken tokenOnLeftOfPosition) { var method = tokenOnLeftOfPosition.Parent.GetAncestorOrThis<MethodDeclarationSyntax>(); var typeDecl = method.GetAncestorOrThis<TypeDeclarationSyntax>(); return method != null && typeDecl != null && typeDecl.IsKind(SyntaxKind.ClassDeclaration) && method.Modifiers.Any(SyntaxKind.StaticKeyword) && typeDecl.Modifiers.Any(SyntaxKind.StaticKeyword); } public static bool IsPossibleLambdaParameterModifierContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.ParameterList) && token.Parent.IsParentKind(SyntaxKind.ParenthesizedLambdaExpression)) { return true; } // TODO(cyrusn): Tie into semantic analysis system to only // consider this a lambda if this is a location where the // lambda's type would be inferred because of a delegate // or Expression<T> type. if (token.Parent.IsKind(SyntaxKind.ParenthesizedExpression) || token.Parent.IsKind(SyntaxKind.TupleExpression)) { return true; } } return false; } public static bool IsAnonymousMethodParameterModifierContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.ParameterList) && token.Parent.IsParentKind(SyntaxKind.AnonymousMethodExpression)) { return true; } } return false; } public static bool IsPossibleLambdaOrAnonymousMethodParameterTypeContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.RefKeyword) || token.IsKind(SyntaxKind.InKeyword) || token.IsKind(SyntaxKind.OutKeyword)) { position = token.SpanStart; tokenOnLeftOfPosition = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); } if (IsAnonymousMethodParameterModifierContext(syntaxTree, position, tokenOnLeftOfPosition) || IsPossibleLambdaParameterModifierContext(syntaxTree, position, tokenOnLeftOfPosition)) { return true; } return false; } /// <summary> /// Are you possibly typing a tuple type or expression? /// This is used to suppress colon as a completion trigger (so that you can type element names). /// This is also used to recommend some keywords (like var). /// </summary> public static bool IsPossibleTupleContext(this SyntaxTree syntaxTree, SyntaxToken leftToken, int position) { leftToken = leftToken.GetPreviousTokenIfTouchingWord(position); // ($$ // (a, $$ if (IsPossibleTupleOpenParenOrComma(leftToken)) { return true; } // ((a, b) $$ // (..., (a, b) $$ if (leftToken.IsKind(SyntaxKind.CloseParenToken)) { if (leftToken.Parent.IsKind( SyntaxKind.ParenthesizedExpression, SyntaxKind.TupleExpression, SyntaxKind.TupleType)) { var possibleCommaOrParen = FindTokenOnLeftOfNode(leftToken.Parent); if (IsPossibleTupleOpenParenOrComma(possibleCommaOrParen)) { return true; } } } // (a $$ // (..., b $$ if (leftToken.IsKind(SyntaxKind.IdentifierToken)) { var possibleCommaOrParen = FindTokenOnLeftOfNode(leftToken.Parent!); if (IsPossibleTupleOpenParenOrComma(possibleCommaOrParen)) { return true; } } // (a.b $$ // (..., a.b $$ if (leftToken.IsKind(SyntaxKind.IdentifierToken) && leftToken.Parent.IsKind(SyntaxKind.IdentifierName) && leftToken.Parent.Parent.IsKind(SyntaxKind.QualifiedName, SyntaxKind.SimpleMemberAccessExpression)) { var possibleCommaOrParen = FindTokenOnLeftOfNode(leftToken.Parent.Parent); if (IsPossibleTupleOpenParenOrComma(possibleCommaOrParen)) { return true; } } return false; } public static bool IsAtStartOfPattern(this SyntaxTree syntaxTree, SyntaxToken leftToken, int position) { leftToken = leftToken.GetPreviousTokenIfTouchingWord(position); if (leftToken.IsKind(SyntaxKind.OpenParenToken)) { if (leftToken.Parent.IsKind(SyntaxKind.ParenthesizedExpression, out ParenthesizedExpressionSyntax? parenthesizedExpression)) { // If we're dealing with an expression surrounded by one or more sets of open parentheses, we need to // walk up the parens in order to see if we're actually at the start of a valid pattern or not. return IsAtStartOfPattern(syntaxTree, parenthesizedExpression.GetFirstToken().GetPreviousToken(), parenthesizedExpression.SpanStart); } // e is ((($$ 1 or 2))) if (leftToken.Parent.IsKind(SyntaxKind.ParenthesizedPattern)) { return true; } } // case $$ // is $$ if (leftToken.IsKind(SyntaxKind.CaseKeyword, SyntaxKind.IsKeyword)) { return true; } // e switch { $$ // e switch { ..., $$ if (leftToken.IsKind(SyntaxKind.OpenBraceToken, SyntaxKind.CommaToken) && leftToken.Parent.IsKind(SyntaxKind.SwitchExpression)) { return true; } // e is ($$ // e is (..., $$ if (leftToken.IsKind(SyntaxKind.OpenParenToken, SyntaxKind.CommaToken) && leftToken.Parent.IsKind(SyntaxKind.PositionalPatternClause)) { return true; } // e is { P: $$ // e is { ..., P: $$ // e is { ..., P.P2: $$ if (leftToken.IsKind(SyntaxKind.ColonToken) && leftToken.Parent.IsKind(SyntaxKind.NameColon, SyntaxKind.ExpressionColon) && leftToken.Parent.IsParentKind(SyntaxKind.Subpattern)) { return true; } // e is 1 and $$ // e is 1 or $$ if (leftToken.IsKind(SyntaxKind.AndKeyword) || leftToken.IsKind(SyntaxKind.OrKeyword)) { return leftToken.Parent is BinaryPatternSyntax; } // e is not $$ if (leftToken.IsKind(SyntaxKind.NotKeyword) && leftToken.Parent.IsKind(SyntaxKind.NotPattern)) { return true; } return false; } public static bool IsAtEndOfPattern(this SyntaxTree syntaxTree, SyntaxToken leftToken, int position) { var originalLeftToken = leftToken; leftToken = leftToken.GetPreviousTokenIfTouchingWord(position); // For instance: // e is { A.$$ } if (leftToken.IsKind(SyntaxKind.DotToken)) { return false; } var patternSyntax = leftToken.GetAncestor<PatternSyntax>(); if (patternSyntax != null) { var lastTokenInPattern = patternSyntax.GetLastToken(); // This check should cover the majority of cases, e.g.: // e is 1 $$ // e is >= 0 $$ // e is { P: (1 $$ // e is { P: (1) $$ if (leftToken == lastTokenInPattern) { // Patterns such as 'e is not $$', 'e is 1 or $$', 'e is ($$', and 'e is null or global::$$' should be invalid here // as they are incomplete patterns. return !(leftToken.IsKind(SyntaxKind.OrKeyword) || leftToken.IsKind(SyntaxKind.AndKeyword) || leftToken.IsKind(SyntaxKind.NotKeyword) || leftToken.IsKind(SyntaxKind.OpenParenToken) || leftToken.IsKind(SyntaxKind.ColonColonToken)); } // We want to make sure that IsAtEndOfPattern returns true even when the user is in the middle of typing a keyword // after a pattern. // For example, with the keyword 'and', we want to make sure that 'e is int an$$' is still recognized as valid. if (lastTokenInPattern.Parent is SingleVariableDesignationSyntax variableDesignationSyntax && originalLeftToken.Parent == variableDesignationSyntax) { return patternSyntax is DeclarationPatternSyntax || patternSyntax is RecursivePatternSyntax; } } // e is C.P $$ // e is int $$ if (leftToken.IsLastTokenOfNode<TypeSyntax>(out var typeSyntax)) { // If typeSyntax is part of a qualified name, we want to get the fully-qualified name so that we can // later accurately perform the check comparing the right side of the BinaryExpressionSyntax to // the typeSyntax. while (typeSyntax.Parent is TypeSyntax parentTypeSyntax) { typeSyntax = parentTypeSyntax; } if (typeSyntax.Parent is BinaryExpressionSyntax binaryExpressionSyntax && binaryExpressionSyntax.OperatorToken.IsKind(SyntaxKind.IsKeyword) && binaryExpressionSyntax.Right == typeSyntax && !typeSyntax.IsVar) { return true; } } // We need to include a special case for switch statement cases, as some are not currently parsed as patterns, e.g. case (1 $$ if (IsAtEndOfSwitchStatementPattern(leftToken)) { return true; } return false; static bool IsAtEndOfSwitchStatementPattern(SyntaxToken leftToken) { SyntaxNode? node = leftToken.Parent as ExpressionSyntax; if (node == null) return false; // Walk up the right edge of all complete expressions. while (node is ExpressionSyntax && node.GetLastToken(includeZeroWidth: true) == leftToken) node = node.GetRequiredParent(); // Getting rid of the extra parentheses to deal with cases such as 'case (((1 $$' while (node is ParenthesizedExpressionSyntax) node = node.GetRequiredParent(); // case (1 $$ if (node is CaseSwitchLabelSyntax { Parent: SwitchSectionSyntax }) return true; return false; } } private static SyntaxToken FindTokenOnLeftOfNode(SyntaxNode node) => node.FindTokenOnLeftOfPosition(node.SpanStart); public static bool IsPossibleTupleOpenParenOrComma(this SyntaxToken possibleCommaOrParen) { if (!possibleCommaOrParen.IsKind(SyntaxKind.OpenParenToken, SyntaxKind.CommaToken)) { return false; } if (possibleCommaOrParen.Parent.IsKind( SyntaxKind.ParenthesizedExpression, SyntaxKind.TupleExpression, SyntaxKind.TupleType, SyntaxKind.CastExpression)) { return true; } // in script if (possibleCommaOrParen.Parent.IsKind(SyntaxKind.ParameterList) && possibleCommaOrParen.Parent.IsParentKind(SyntaxKind.ParenthesizedLambdaExpression, out ParenthesizedLambdaExpressionSyntax? parenthesizedLambda)) { if (parenthesizedLambda.ArrowToken.IsMissing) { return true; } } return false; } /// <summary> /// Are you possibly in the designation part of a deconstruction? /// This is used to enter suggestion mode (suggestions become soft-selected). /// </summary> public static bool IsPossibleDeconstructionDesignation(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { var leftToken = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); leftToken = leftToken.GetPreviousTokenIfTouchingWord(position); // The well-formed cases: // var ($$, y) = e; // (var $$, var y) = e; if (leftToken.Parent.IsKind(SyntaxKind.ParenthesizedVariableDesignation) || leftToken.Parent.IsParentKind(SyntaxKind.ParenthesizedVariableDesignation)) { return true; } // (var $$, var y) // (var x, var y) if (syntaxTree.IsPossibleTupleContext(leftToken, position) && !IsPossibleTupleOpenParenOrComma(leftToken)) { return true; } // var ($$) // var (x, $$) if (IsPossibleVarDeconstructionOpenParenOrComma(leftToken)) { return true; } // var (($$), y) if (leftToken.IsKind(SyntaxKind.OpenParenToken) && leftToken.Parent.IsKind(SyntaxKind.ParenthesizedExpression)) { if (IsPossibleVarDeconstructionOpenParenOrComma(FindTokenOnLeftOfNode(leftToken.Parent))) { return true; } } // var ((x, $$), y) // var (($$, x), y) if (leftToken.IsKind(SyntaxKind.OpenParenToken, SyntaxKind.CommaToken) && leftToken.Parent.IsKind(SyntaxKind.TupleExpression)) { if (IsPossibleVarDeconstructionOpenParenOrComma(FindTokenOnLeftOfNode(leftToken.Parent))) { return true; } } // foreach (var ($$ // foreach (var ((x, $$), y) if (leftToken.IsKind(SyntaxKind.OpenParenToken, SyntaxKind.CommaToken)) { var outer = UnwrapPossibleTuple(leftToken.Parent!); if (outer.Parent.IsKind(SyntaxKind.ForEachStatement, out ForEachStatementSyntax? @foreach)) { if (@foreach.Expression == outer && @foreach.Type.IsKind(SyntaxKind.IdentifierName, out IdentifierNameSyntax? identifierName) && identifierName.Identifier.ValueText == "var") { return true; } } } return false; } /// <summary> /// If inside a parenthesized or tuple expression, unwrap the nestings and return the container. /// </summary> private static SyntaxNode UnwrapPossibleTuple(SyntaxNode node) { while (true) { if (node.Parent.IsKind(SyntaxKind.ParenthesizedExpression)) { node = node.Parent; continue; } if (node.Parent.IsKind(SyntaxKind.Argument) && node.Parent.Parent.IsKind(SyntaxKind.TupleExpression)) { node = node.Parent.Parent; continue; } return node; } } private static bool IsPossibleVarDeconstructionOpenParenOrComma(SyntaxToken leftToken) { if (leftToken.IsKind(SyntaxKind.OpenParenToken, SyntaxKind.CommaToken) && leftToken.Parent.IsKind(SyntaxKind.ArgumentList) && leftToken.Parent.IsParentKind(SyntaxKind.InvocationExpression, out InvocationExpressionSyntax? invocation)) { if (invocation.Expression.IsKind(SyntaxKind.IdentifierName, out IdentifierNameSyntax? identifierName) && identifierName.Identifier.ValueText == "var") { return true; } } return false; } public static bool HasNames(this TupleExpressionSyntax tuple) => tuple.Arguments.Any(a => a.NameColon != null); public static bool IsValidContextForFromClause( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken, SemanticModel? semanticModelOpt = null) { if (syntaxTree.IsExpressionContext(position, tokenOnLeftOfPosition, attributes: false, cancellationToken: cancellationToken, semanticModelOpt: semanticModelOpt) && !syntaxTree.IsConstantExpressionContext(position, tokenOnLeftOfPosition)) { return true; } // cases: // var q = | // var q = f| // // var q = from x in y // | // // var q = from x in y // f| // // this list is *not* exhaustive. // the first two are handled by 'IsExpressionContext' var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); // var q = from x in y // | if (!token.IntersectsWith(position) && token.IsLastTokenOfQueryClause()) { return true; } return false; } public static bool IsValidContextForJoinClause( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); // var q = from x in y // | if (!token.IntersectsWith(position) && token.IsLastTokenOfQueryClause()) { return true; } return false; } public static bool IsDeclarationExpressionContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { // cases: // M(out var // var x = var var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.OutKeyword) && token.Parent.IsKind(SyntaxKind.Argument)) { return true; } if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.EqualsToken) && token.Parent.IsKind(SyntaxKind.EqualsValueClause) && token.Parent.IsParentKind(SyntaxKind.VariableDeclarator)) { return true; } return false; } public static bool IsLocalVariableDeclarationContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { // cases: // const var // out var // for (var // foreach (var // await foreach (var // using (var // await using (var // from var // join var var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); // const | if (token.IsKind(SyntaxKind.ConstKeyword) && token.Parent.IsKind(SyntaxKind.LocalDeclarationStatement)) { return true; } // ref | // ref readonly | // for ( ref | // foreach ( ref | x if (token.IsKind(SyntaxKind.RefKeyword, SyntaxKind.ReadOnlyKeyword)) { var parent = token.Parent; if (parent.IsKind(SyntaxKind.RefType, SyntaxKind.RefExpression, SyntaxKind.LocalDeclarationStatement)) { if (parent.IsParentKind(SyntaxKind.VariableDeclaration) && parent.Parent.IsParentKind(SyntaxKind.LocalDeclarationStatement, SyntaxKind.ForStatement, SyntaxKind.ForEachVariableStatement)) { return true; } if (parent.IsParentKind(SyntaxKind.ForEachStatement, SyntaxKind.ForEachVariableStatement)) { return true; } } } // out | if (token.IsKind(SyntaxKind.OutKeyword) && token.Parent.IsKind(SyntaxKind.Argument, out ArgumentSyntax? argument) && argument.RefKindKeyword == token) { return true; } if (token.IsKind(SyntaxKind.OpenParenToken)) { // for ( | // foreach ( | // await foreach ( | // using ( | // await using ( | var previous = token.GetPreviousToken(includeSkipped: true); if (previous.IsKind(SyntaxKind.ForKeyword) || previous.IsKind(SyntaxKind.ForEachKeyword) || previous.IsKind(SyntaxKind.UsingKeyword)) { return true; } } // from | var tokenOnLeftOfStart = syntaxTree.FindTokenOnLeftOfPosition(token.SpanStart, cancellationToken); if (token.IsKindOrHasMatchingText(SyntaxKind.FromKeyword) && syntaxTree.IsValidContextForFromClause(token.SpanStart, tokenOnLeftOfStart, cancellationToken)) { return true; } // join | if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.JoinKeyword) && syntaxTree.IsValidContextForJoinClause(token.SpanStart, tokenOnLeftOfStart)) { return true; } return false; } public static bool IsFixedVariableDeclarationContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { // cases: // fixed (var var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.FixedKeyword)) { return true; } return false; } public static bool IsCatchVariableDeclarationContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { // cases: // catch (var var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.CatchKeyword)) { return true; } return false; } public static bool IsIsOrAsTypeContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.IsKeyword) || token.IsKind(SyntaxKind.AsKeyword)) { return true; } return false; } public static bool IsObjectCreationTypeContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.NewKeyword)) { // we can follow a 'new' if it's the 'new' for an expression. var start = token.SpanStart; var tokenOnLeftOfStart = syntaxTree.FindTokenOnLeftOfPosition(start, cancellationToken); return IsNonConstantExpressionContext(syntaxTree, token.SpanStart, tokenOnLeftOfStart, cancellationToken) || syntaxTree.IsStatementContext(token.SpanStart, tokenOnLeftOfStart, cancellationToken) || syntaxTree.IsGlobalStatementContext(token.SpanStart, cancellationToken); } return false; } private static bool IsNonConstantExpressionContext(SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { return syntaxTree.IsExpressionContext(position, tokenOnLeftOfPosition, attributes: true, cancellationToken: cancellationToken) && !syntaxTree.IsConstantExpressionContext(position, tokenOnLeftOfPosition); } public static bool IsPreProcessorDirectiveContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { var leftToken = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken, includeDirectives: true); return syntaxTree.IsPreProcessorDirectiveContext(position, leftToken, cancellationToken); } public static bool IsPreProcessorKeywordContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { return IsPreProcessorKeywordContext( syntaxTree, position, syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken, includeDirectives: true)); } public static bool IsPreProcessorKeywordContext(this SyntaxTree syntaxTree, int position, SyntaxToken preProcessorTokenOnLeftOfPosition) { // cases: // #| // #d| // # | // # d| // note: comments are not allowed between the # and item. var token = preProcessorTokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.HashToken)) { return true; } return false; } public static bool IsStatementContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { #if false // we're in a statement if the thing that comes before allows for // statements to follow. Or if we're on a just started identifier // in the first position where a statement can go. if (syntaxTree.IsInPreprocessorDirectiveContext(position, cancellationToken)) { return false; } #endif var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); return token.IsBeginningOfStatementContext(); } public static bool IsGlobalStatementContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken) .GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.None)) { // global statements can't come before usings/externs if (syntaxTree.GetRoot(cancellationToken) is CompilationUnitSyntax compilationUnit && (compilationUnit.Externs.Count > 0 || compilationUnit.Usings.Count > 0)) { return false; } return true; } return token.IsBeginningOfGlobalStatementContext(); } public static bool IsInstanceContext(this SyntaxTree syntaxTree, SyntaxToken targetToken, SemanticModel semanticModel, CancellationToken cancellationToken) { #if false if (syntaxTree.IsInPreprocessorDirectiveContext(position, cancellationToken)) { return false; } #endif var enclosingSymbol = semanticModel.GetEnclosingSymbol(targetToken.SpanStart, cancellationToken); while (enclosingSymbol is IMethodSymbol method && (method.MethodKind == MethodKind.LocalFunction || method.MethodKind == MethodKind.AnonymousFunction)) { if (method.IsStatic) { return false; } // It is allowed to reference the instance (`this`) within a local function or anonymous function, as long as the containing method allows it enclosingSymbol = enclosingSymbol.ContainingSymbol; } return enclosingSymbol is { IsStatic: false }; } public static bool IsPossibleCastTypeContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.OpenParenToken) && syntaxTree.IsExpressionContext(token.SpanStart, syntaxTree.FindTokenOnLeftOfPosition(token.SpanStart, cancellationToken), false, cancellationToken)) { return true; } return false; } public static bool IsDefiniteCastTypeContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.CastExpression)) { return true; } return false; } public static bool IsConstantExpressionContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { if (IsAtStartOfPattern(syntaxTree, tokenOnLeftOfPosition, position)) { return true; } var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); // goto case | if (token.IsKind(SyntaxKind.CaseKeyword) && token.Parent.IsKind(SyntaxKind.GotoCaseStatement)) { return true; } if (token.IsKind(SyntaxKind.EqualsToken) && token.Parent.IsKind(SyntaxKind.EqualsValueClause, out EqualsValueClauseSyntax? equalsValue)) { if (equalsValue.IsParentKind(SyntaxKind.VariableDeclarator) && equalsValue.Parent.IsParentKind(SyntaxKind.VariableDeclaration)) { // class C { const int i = | var fieldDeclaration = equalsValue.GetAncestor<FieldDeclarationSyntax>(); if (fieldDeclaration != null) { return fieldDeclaration.Modifiers.Any(SyntaxKind.ConstKeyword); } // void M() { const int i = | var localDeclaration = equalsValue.GetAncestor<LocalDeclarationStatementSyntax>(); if (localDeclaration != null) { return localDeclaration.Modifiers.Any(SyntaxKind.ConstKeyword); } } // enum E { A = | if (equalsValue.IsParentKind(SyntaxKind.EnumMemberDeclaration)) { return true; } // void M(int i = | if (equalsValue.IsParentKind(SyntaxKind.Parameter)) { return true; } } // [Goo( | // [Goo(x, | if (token.Parent.IsKind(SyntaxKind.AttributeArgumentList) && (token.IsKind(SyntaxKind.CommaToken) || token.IsKind(SyntaxKind.OpenParenToken))) { return true; } // [Goo(x: | if (token.IsKind(SyntaxKind.ColonToken) && token.Parent.IsKind(SyntaxKind.NameColon) && token.Parent.IsParentKind(SyntaxKind.AttributeArgument)) { return true; } // [Goo(X = | if (token.IsKind(SyntaxKind.EqualsToken) && token.Parent.IsKind(SyntaxKind.NameEquals) && token.Parent.IsParentKind(SyntaxKind.AttributeArgument)) { return true; } // TODO: Fixed-size buffer declarations return false; } public static bool IsLabelContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) { var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); var gotoStatement = token.GetAncestor<GotoStatementSyntax>(); if (gotoStatement != null) { if (gotoStatement.GotoKeyword == token) { return true; } if (gotoStatement.Expression != null && !gotoStatement.Expression.IsMissing && gotoStatement.Expression is IdentifierNameSyntax && ((IdentifierNameSyntax)gotoStatement.Expression).Identifier == token && token.IntersectsWith(position)) { return true; } } return false; } public static bool IsExpressionContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition, bool attributes, CancellationToken cancellationToken, SemanticModel? semanticModelOpt = null) { // cases: // var q = | // var q = a| // this list is *not* exhaustive. var token = tokenOnLeftOfPosition.GetPreviousTokenIfTouchingWord(position); if (token.GetAncestor<ConditionalDirectiveTriviaSyntax>() != null) { return false; } if (!attributes) { if (token.GetAncestor<AttributeListSyntax>() != null) { return false; } } if (syntaxTree.IsConstantExpressionContext(position, tokenOnLeftOfPosition)) { return true; } // no expressions after . :: -> if (token.IsKind(SyntaxKind.DotToken) || token.IsKind(SyntaxKind.ColonColonToken) || token.IsKind(SyntaxKind.MinusGreaterThanToken)) { return false; } // Normally you can have any sort of expression after an equals. However, this does not // apply to a "using Goo = ..." situation. if (token.IsKind(SyntaxKind.EqualsToken)) { if (token.Parent.IsKind(SyntaxKind.NameEquals) && token.Parent.IsParentKind(SyntaxKind.UsingDirective)) { return false; } } // q = | // q -= | // q *= | // q += | // q /= | // q ^= | // q %= | // q &= | // q |= | // q <<= | // q >>= | // q ??= | if (token.IsKind(SyntaxKind.EqualsToken) || token.IsKind(SyntaxKind.MinusEqualsToken) || token.IsKind(SyntaxKind.AsteriskEqualsToken) || token.IsKind(SyntaxKind.PlusEqualsToken) || token.IsKind(SyntaxKind.SlashEqualsToken) || token.IsKind(SyntaxKind.ExclamationEqualsToken) || token.IsKind(SyntaxKind.CaretEqualsToken) || token.IsKind(SyntaxKind.AmpersandEqualsToken) || token.IsKind(SyntaxKind.BarEqualsToken) || token.IsKind(SyntaxKind.PercentEqualsToken) || token.IsKind(SyntaxKind.LessThanLessThanEqualsToken) || token.IsKind(SyntaxKind.GreaterThanGreaterThanEqualsToken) || token.IsKind(SyntaxKind.QuestionQuestionEqualsToken)) { return true; } // ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.ParenthesizedExpression)) { return true; } // - | // + | // ~ | // ! | if (token.Parent is PrefixUnaryExpressionSyntax prefix) { return prefix.OperatorToken == token; } // not sure about these: // ++ | // -- | #if false token.Kind == SyntaxKind.PlusPlusToken || token.Kind == SyntaxKind.DashDashToken) #endif // await | if (token.Parent is AwaitExpressionSyntax awaitExpression) { return awaitExpression.AwaitKeyword == token; } // Check for binary operators. // Note: // - We handle < specially as it can be ambiguous with generics. // - We handle * specially because it can be ambiguous with pointer types. // a * // a / // a % // a + // a - // a << // a >> // a < // a > // a && // a || // a & // a | // a ^ if (token.Parent is BinaryExpressionSyntax binary) { // If the client provided a binding, then check if this is actually generic. If so, // then this is not an expression context. i.e. if we have "Goo < |" then it could // be an expression context, or it could be a type context if Goo binds to a type or // method. if (semanticModelOpt != null && syntaxTree.IsGenericTypeArgumentContext(position, tokenOnLeftOfPosition, cancellationToken, semanticModelOpt)) { return false; } if (binary.OperatorToken == token) { // If this is a multiplication expression and a semantic model was passed in, // check to see if the expression to the left is a type name. If it is, treat // this as a pointer type. if (token.IsKind(SyntaxKind.AsteriskToken) && semanticModelOpt != null) { if (binary.Left is TypeSyntax type && type.IsPotentialTypeName(semanticModelOpt, cancellationToken)) { return false; } } return true; } } // Special case: // Goo * bar // Goo ? bar // This parses as a local decl called bar of type Goo* or Goo? if (tokenOnLeftOfPosition.IntersectsWith(position) && tokenOnLeftOfPosition.IsKind(SyntaxKind.IdentifierToken)) { var previousToken = tokenOnLeftOfPosition.GetPreviousToken(includeSkipped: true); if (previousToken.IsKind(SyntaxKind.AsteriskToken) || previousToken.IsKind(SyntaxKind.QuestionToken)) { if (previousToken.Parent.IsKind(SyntaxKind.PointerType) || previousToken.Parent.IsKind(SyntaxKind.NullableType)) { var type = previousToken.Parent as TypeSyntax; if (type.IsParentKind(SyntaxKind.VariableDeclaration) && type.Parent.IsParentKind(SyntaxKind.LocalDeclarationStatement, out LocalDeclarationStatementSyntax? declStatement)) { // note, this doesn't apply for cases where we know it // absolutely is not multiplication or a conditional expression. var underlyingType = type is PointerTypeSyntax pointerType ? pointerType.ElementType : ((NullableTypeSyntax)type).ElementType; if (!underlyingType.IsPotentialTypeName(semanticModelOpt, cancellationToken)) { return true; } } } } } // new int[| // new int[expr, | if (token.IsKind(SyntaxKind.OpenBracketToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.ArrayRankSpecifier)) { return true; } } // goo ? | if (token.IsKind(SyntaxKind.QuestionToken) && token.Parent.IsKind(SyntaxKind.ConditionalExpression, out ConditionalExpressionSyntax? conditionalExpression)) { // If the condition is simply a TypeSyntax that binds to a type, treat this as a nullable type. return !(conditionalExpression.Condition is TypeSyntax type) || !type.IsPotentialTypeName(semanticModelOpt, cancellationToken); } // goo ? bar : | if (token.IsKind(SyntaxKind.ColonToken) && token.Parent.IsKind(SyntaxKind.ConditionalExpression)) { return true; } // typeof(| // default(| // sizeof(| if (token.IsKind(SyntaxKind.OpenParenToken)) { if (token.Parent.IsKind(SyntaxKind.TypeOfExpression, SyntaxKind.DefaultExpression, SyntaxKind.SizeOfExpression)) { return false; } } // var(| // var(id, | // Those are more likely to be deconstruction-declarations being typed than invocations a method "var" if (token.IsKind(SyntaxKind.OpenParenToken, SyntaxKind.CommaToken) && token.IsInvocationOfVarExpression()) { return false; } // Goo(| // Goo(expr, | // this[| // var t = (1, | // var t = (| , 2) if (token.IsKind(SyntaxKind.OpenParenToken) || token.IsKind(SyntaxKind.OpenBracketToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.ArgumentList, SyntaxKind.BracketedArgumentList, SyntaxKind.TupleExpression)) { return true; } } // [Goo(| // [Goo(expr, | if (attributes) { if (token.IsKind(SyntaxKind.OpenParenToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.AttributeArgumentList)) { return true; } } } // Goo(ref | // Goo(in | // Goo(out | // ref var x = ref | if (token.IsKind(SyntaxKind.RefKeyword) || token.IsKind(SyntaxKind.InKeyword) || token.IsKind(SyntaxKind.OutKeyword)) { if (token.Parent.IsKind(SyntaxKind.Argument)) { return true; } else if (token.Parent.IsKind(SyntaxKind.RefExpression)) { // ( ref | // parenthesized expressions can't directly contain RefExpression, unless the user is typing an incomplete lambda expression. if (token.Parent.IsParentKind(SyntaxKind.ParenthesizedExpression)) { return false; } return true; } } // Goo(bar: | if (token.IsKind(SyntaxKind.ColonToken) && token.Parent.IsKind(SyntaxKind.NameColon) && token.Parent.IsParentKind(SyntaxKind.Argument)) { return true; } // a => | if (token.IsKind(SyntaxKind.EqualsGreaterThanToken)) { return true; } // new List<int> { | // new List<int> { expr, | if (token.IsKind(SyntaxKind.OpenBraceToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent is InitializerExpressionSyntax) { // The compiler treats the ambiguous case as an object initializer, so we'll say // expressions are legal here if (token.Parent.IsKind(SyntaxKind.ObjectInitializerExpression) && token.IsKind(SyntaxKind.OpenBraceToken)) { // In this position { a$$ =, the user is trying to type an object initializer. if (!token.IntersectsWith(position) && token.GetNextToken().GetNextToken().IsKind(SyntaxKind.EqualsToken)) { return false; } return true; } // Perform a semantic check to determine whether or not the type being created // can support a collection initializer. If not, this must be an object initializer // and can't be an expression context. if (semanticModelOpt != null && token.Parent.IsParentKind(SyntaxKind.ObjectCreationExpression, out ObjectCreationExpressionSyntax? objectCreation)) { var containingSymbol = semanticModelOpt.GetEnclosingNamedTypeOrAssembly(position, cancellationToken); if (semanticModelOpt.GetSymbolInfo(objectCreation.Type, cancellationToken).Symbol is ITypeSymbol type && !type.CanSupportCollectionInitializer(containingSymbol)) { return false; } } return true; } } // for (; | // for (; ; | if (token.IsKind(SyntaxKind.SemicolonToken) && token.Parent.IsKind(SyntaxKind.ForStatement, out ForStatementSyntax? forStatement)) { if (token == forStatement.FirstSemicolonToken || token == forStatement.SecondSemicolonToken) { return true; } } // for ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.ForStatement, out forStatement) && token == forStatement.OpenParenToken) { return true; } // for (; ; Goo(), | // for ( Goo(), | if (token.IsKind(SyntaxKind.CommaToken) && token.Parent.IsKind(SyntaxKind.ForStatement)) { return true; } // foreach (var v in | // await foreach (var v in | // from a in | // join b in | if (token.IsKind(SyntaxKind.InKeyword)) { if (token.Parent.IsKind(SyntaxKind.ForEachStatement, SyntaxKind.ForEachVariableStatement, SyntaxKind.FromClause, SyntaxKind.JoinClause)) { return true; } } // join x in y on | // join x in y on a equals | if (token.IsKind(SyntaxKind.OnKeyword) || token.IsKind(SyntaxKind.EqualsKeyword)) { if (token.Parent.IsKind(SyntaxKind.JoinClause)) { return true; } } // where | if (token.IsKind(SyntaxKind.WhereKeyword) && token.Parent.IsKind(SyntaxKind.WhereClause)) { return true; } // orderby | // orderby a, | if (token.IsKind(SyntaxKind.OrderByKeyword) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.OrderByClause)) { return true; } } // select | if (token.IsKind(SyntaxKind.SelectKeyword) && token.Parent.IsKind(SyntaxKind.SelectClause)) { return true; } // group | // group expr by | if (token.IsKind(SyntaxKind.GroupKeyword) || token.IsKind(SyntaxKind.ByKeyword)) { if (token.Parent.IsKind(SyntaxKind.GroupClause)) { return true; } } // return | // yield return | // but not: [return | if (token.IsKind(SyntaxKind.ReturnKeyword)) { if (token.GetPreviousToken(includeSkipped: true).Kind() != SyntaxKind.OpenBracketToken) { return true; } } // throw | if (token.IsKind(SyntaxKind.ThrowKeyword)) { return true; } // while ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.WhileKeyword)) { return true; } // todo: handle 'for' cases. // using ( | // await using ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.Parent.IsKind(SyntaxKind.UsingStatement)) { return true; } // lock ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.LockKeyword)) { return true; } // lock ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.IfKeyword)) { return true; } // switch ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.SwitchKeyword)) { return true; } // checked ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.CheckedKeyword)) { return true; } // unchecked ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.UncheckedKeyword)) { return true; } // when ( | if (token.IsKind(SyntaxKind.OpenParenToken) && token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.WhenKeyword)) { return true; } // case ... when | if (token.IsKind(SyntaxKind.WhenKeyword) && token.Parent.IsKind(SyntaxKind.WhenClause)) { return true; } // (SomeType) | if (token.IsAfterPossibleCast()) { return true; } // In anonymous type initializer. // // new { | We allow new inside of anonymous object member declarators, so that the user // can dot into a member afterward. For example: // // var a = new { new C().Goo }; if (token.IsKind(SyntaxKind.OpenBraceToken) || token.IsKind(SyntaxKind.CommaToken)) { if (token.Parent.IsKind(SyntaxKind.AnonymousObjectCreationExpression)) { return true; } } // $"{ | // $@"{ | // $"{x} { | // $@"{x} { | if (token.IsKind(SyntaxKind.OpenBraceToken)) { return token.Parent.IsKind(SyntaxKind.Interpolation, out InterpolationSyntax? interpolation) && interpolation.OpenBraceToken == token; } return false; } public static bool IsInvocationOfVarExpression(this SyntaxToken token) => token.Parent.IsParentKind(SyntaxKind.InvocationExpression, out InvocationExpressionSyntax? invocation) && invocation.Expression.ToString() == "var"; public static bool IsNameOfContext(this SyntaxTree syntaxTree, int position, SemanticModel? semanticModelOpt = null, CancellationToken cancellationToken = default) { var token = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken); token = token.GetPreviousTokenIfTouchingWord(position); // nameof(Goo.| // nameof(Goo.Bar.| // Locate the open paren. if (token.IsKind(SyntaxKind.DotToken)) { // Could have been parsed as member access if (token.Parent.IsKind(SyntaxKind.SimpleMemberAccessExpression)) { var parentMemberAccess = token.Parent; while (parentMemberAccess.Parent.IsKind(SyntaxKind.SimpleMemberAccessExpression)) { parentMemberAccess = parentMemberAccess.Parent; } if (parentMemberAccess.Parent.IsKind(SyntaxKind.Argument) && parentMemberAccess.Parent.IsChildNode<ArgumentListSyntax>(a => a.Arguments.FirstOrDefault())) { token = ((ArgumentListSyntax)parentMemberAccess.Parent.Parent!).OpenParenToken; } } // Could have been parsed as a qualified name. if (token.Parent.IsKind(SyntaxKind.QualifiedName)) { var parentQualifiedName = token.Parent; while (parentQualifiedName.Parent.IsKind(SyntaxKind.QualifiedName)) { parentQualifiedName = parentQualifiedName.Parent; } if (parentQualifiedName.Parent.IsKind(SyntaxKind.Argument) && parentQualifiedName.Parent.IsChildNode<ArgumentListSyntax>(a => a.Arguments.FirstOrDefault())) { token = ((ArgumentListSyntax)parentQualifiedName.Parent.Parent!).OpenParenToken; } } } ExpressionSyntax? parentExpression = null; // if the nameof expression has a missing close paren, it is parsed as an invocation expression. if (token.Parent.IsKind(SyntaxKind.ArgumentList) && token.Parent.Parent is InvocationExpressionSyntax invocationExpression && invocationExpression.IsNameOfInvocation()) { parentExpression = invocationExpression; } if (parentExpression != null) { if (semanticModelOpt == null) { return true; } return semanticModelOpt.GetSymbolInfo(parentExpression, cancellationToken).Symbol == null; } return false; } public static bool IsIsOrAsOrSwitchOrWithExpressionContext( this SyntaxTree syntaxTree, SemanticModel semanticModel, int position, SyntaxToken tokenOnLeftOfPosition, CancellationToken cancellationToken) { // cases: // expr | var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); // Not if the position is a numeric literal if (token.IsKind(SyntaxKind.NumericLiteralToken)) { return false; } if (token.GetAncestor<BlockSyntax>() == null && token.GetAncestor<ArrowExpressionClauseSyntax>() == null) { return false; } // is/as/with are valid after expressions. if (token.IsLastTokenOfNode<ExpressionSyntax>(out var expression)) { // 'is/as/with' not allowed after a anonymous-method/lambda/method-group. if (expression.IsAnyLambdaOrAnonymousMethod()) return false; var symbol = semanticModel.GetSymbolInfo(expression, cancellationToken).GetAnySymbol(); if (symbol is IMethodSymbol) return false; // However, many names look like expressions. For example: // foreach (var | // ('var' is a TypeSyntax which is an expression syntax. var type = token.GetAncestors<TypeSyntax>().LastOrDefault(); if (type == null) { return true; } if (type.IsKind(SyntaxKind.GenericName) || type.IsKind(SyntaxKind.AliasQualifiedName) || type.IsKind(SyntaxKind.PredefinedType)) { return false; } ExpressionSyntax nameExpr = type; if (IsRightSideName(nameExpr)) { nameExpr = (ExpressionSyntax)nameExpr.Parent!; } // If this name is the start of a local variable declaration context, we // shouldn't show is or as. For example: for(var | if (syntaxTree.IsLocalVariableDeclarationContext(token.SpanStart, syntaxTree.FindTokenOnLeftOfPosition(token.SpanStart, cancellationToken), cancellationToken)) { return false; } // Not on the left hand side of an object initializer if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.IdentifierToken) && token.Parent.IsKind(SyntaxKind.IdentifierName) && (token.Parent.IsParentKind(SyntaxKind.ObjectInitializerExpression) || token.Parent.IsParentKind(SyntaxKind.CollectionInitializerExpression))) { return false; } // Not after an 'out' declaration expression. For example: M(out var | if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.IdentifierToken) && token.Parent.IsKind(SyntaxKind.IdentifierName)) { if (token.Parent.IsParentKind(SyntaxKind.Argument, out ArgumentSyntax? argument) && argument.RefOrOutKeyword.IsKind(SyntaxKind.OutKeyword)) { return false; } } if (token.Text == SyntaxFacts.GetText(SyntaxKind.AsyncKeyword)) { // async $$ // // 'async' will look like a normal identifier. But we don't want to follow it // with 'is' or 'as' or 'with' if it's actually the start of a lambda. var delegateType = CSharpTypeInferenceService.Instance.InferDelegateType( semanticModel, token.SpanStart, cancellationToken); if (delegateType != null) { return false; } } // Now, make sure the name was actually in a location valid for // an expression. If so, then we know we can follow it. if (syntaxTree.IsExpressionContext(nameExpr.SpanStart, syntaxTree.FindTokenOnLeftOfPosition(nameExpr.SpanStart, cancellationToken), attributes: false, cancellationToken: cancellationToken)) { return true; } return false; } return false; } private static bool IsRightSideName(ExpressionSyntax name) { if (name.Parent != null) { switch (name.Parent.Kind()) { case SyntaxKind.QualifiedName: return ((QualifiedNameSyntax)name.Parent).Right == name; case SyntaxKind.AliasQualifiedName: return ((AliasQualifiedNameSyntax)name.Parent).Name == name; case SyntaxKind.SimpleMemberAccessExpression: return ((MemberAccessExpressionSyntax)name.Parent).Name == name; } } return false; } public static bool IsCatchOrFinallyContext( this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { // cases: // try { // } | // try { // } c| // try { // } catch { // } | // try { // } catch { // } c| var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (token.IsKind(SyntaxKind.CloseBraceToken)) { var block = token.GetAncestor<BlockSyntax>(); if (block != null && token == block.GetLastToken(includeSkipped: true)) { if (block.IsParentKind(SyntaxKind.TryStatement) || block.IsParentKind(SyntaxKind.CatchClause)) { return true; } } } return false; } public static bool IsCatchFilterContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { // cases: // catch | // catch i| // catch (declaration) | // catch (declaration) i| var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.CatchKeyword)) { return true; } if (CodeAnalysis.CSharpExtensions.IsKind(token, SyntaxKind.CloseParenToken) && token.Parent.IsKind(SyntaxKind.CatchDeclaration)) { return true; } return false; } public static bool IsEnumBaseListContext(this SyntaxTree syntaxTree, int position, SyntaxToken tokenOnLeftOfPosition) { var token = tokenOnLeftOfPosition; token = token.GetPreviousTokenIfTouchingWord(position); // Options: // enum E : | // enum E : i| return token.IsKind(SyntaxKind.ColonToken) && token.Parent.IsKind(SyntaxKind.BaseList) && token.Parent.IsParentKind(SyntaxKind.EnumDeclaration); } public static bool IsEnumTypeMemberAccessContext(this SyntaxTree syntaxTree, SemanticModel semanticModel, int position, CancellationToken cancellationToken) { var token = syntaxTree .FindTokenOnLeftOfPosition(position, cancellationToken) .GetPreviousTokenIfTouchingWord(position); if (!token.IsKind(SyntaxKind.DotToken)) { return false; } SymbolInfo leftHandBinding; if (token.Parent.IsKind(SyntaxKind.SimpleMemberAccessExpression)) { var memberAccess = (MemberAccessExpressionSyntax)token.Parent; leftHandBinding = semanticModel.GetSymbolInfo(memberAccess.Expression, cancellationToken); } else if (token.Parent.IsKind(SyntaxKind.QualifiedName, out QualifiedNameSyntax? qualifiedName) && token.Parent.IsParentKind(SyntaxKind.IsExpression, out BinaryExpressionSyntax? binaryExpression) && binaryExpression.Right == qualifiedName) { // The right-hand side of an is expression could be an enum leftHandBinding = semanticModel.GetSymbolInfo(qualifiedName.Left, cancellationToken); } else if (token.Parent.IsKind(SyntaxKind.QualifiedName, out QualifiedNameSyntax? qualifiedName1) && token.Parent.IsParentKind(SyntaxKind.DeclarationPattern, out DeclarationPatternSyntax? declarationExpression) && declarationExpression.Type == qualifiedName1) { // The right-hand side of an is declaration expression could be an enum leftHandBinding = semanticModel.GetSymbolInfo(qualifiedName1.Left, cancellationToken); } else { return false; } var symbol = leftHandBinding.GetBestOrAllSymbols().FirstOrDefault(); if (symbol == null) { return false; } switch (symbol.Kind) { case SymbolKind.NamedType: return ((INamedTypeSymbol)symbol).TypeKind == TypeKind.Enum; case SymbolKind.Alias: var target = ((IAliasSymbol)symbol).Target; return target.IsType && ((ITypeSymbol)target).TypeKind == TypeKind.Enum; } return false; } public static bool IsFunctionPointerCallingConventionContext(this SyntaxTree syntaxTree, SyntaxToken targetToken) { return targetToken.IsKind(SyntaxKind.AsteriskToken) && targetToken.Parent is FunctionPointerTypeSyntax functionPointerType && targetToken == functionPointerType.AsteriskToken; } } }
-1
dotnet/roslyn
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./src/Features/Core/Portable/GenerateType/IGenerateTypeOptionService.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.CodeAnalysis.Host; using Microsoft.CodeAnalysis.LanguageServices; using Microsoft.CodeAnalysis.Notification; using Microsoft.CodeAnalysis.ProjectManagement; namespace Microsoft.CodeAnalysis.GenerateType { internal interface IGenerateTypeOptionsService : IWorkspaceService { GenerateTypeOptionsResult GetGenerateTypeOptions( string className, GenerateTypeDialogOptions generateTypeDialogOptions, Document document, INotificationService notificationService, IProjectManagementService projectManagementService, ISyntaxFactsService syntaxFactsService); } }
// 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.CodeAnalysis.Host; using Microsoft.CodeAnalysis.LanguageServices; using Microsoft.CodeAnalysis.Notification; using Microsoft.CodeAnalysis.ProjectManagement; namespace Microsoft.CodeAnalysis.GenerateType { internal interface IGenerateTypeOptionsService : IWorkspaceService { GenerateTypeOptionsResult GetGenerateTypeOptions( string className, GenerateTypeDialogOptions generateTypeDialogOptions, Document document, INotificationService notificationService, IProjectManagementService projectManagementService, ISyntaxFactsService syntaxFactsService); } }
-1
dotnet/roslyn
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./src/EditorFeatures/Test/ValueTracking/AbstractBaseValueTrackingTests.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 System.Collections.Immutable; using System.Threading.Tasks; using Microsoft.CodeAnalysis.ValueTracking; using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces; using Microsoft.CodeAnalysis.Remote.Testing; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Test.Utilities; using System.Threading; using Microsoft.CodeAnalysis.Text; using Xunit; using System.Collections.Generic; namespace Microsoft.CodeAnalysis.Editor.UnitTests.ValueTracking { public abstract class AbstractBaseValueTrackingTests { protected TestWorkspace CreateWorkspace(string code, TestHost testHost) => CreateWorkspace(code, EditorTestCompositions.EditorFeatures.WithTestHostParts(testHost)); protected abstract TestWorkspace CreateWorkspace(string code, TestComposition composition); internal static async Task<ImmutableArray<ValueTrackedItem>> GetTrackedItemsAsync(TestWorkspace testWorkspace, CancellationToken cancellationToken = default) { var cursorDocument = testWorkspace.DocumentWithCursor; var document = testWorkspace.CurrentSolution.GetRequiredDocument(cursorDocument.Id); var textSpan = new TextSpan(cursorDocument.CursorPosition!.Value, 0); var service = testWorkspace.Services.GetRequiredService<IValueTrackingService>(); return await service.TrackValueSourceAsync(textSpan, document, cancellationToken); } internal static async Task<ImmutableArray<ValueTrackedItem>> GetTrackedItemsAsync(TestWorkspace testWorkspace, ValueTrackedItem item, CancellationToken cancellationToken = default) { var service = testWorkspace.Services.GetRequiredService<IValueTrackingService>(); return await service.TrackValueSourceAsync(testWorkspace.CurrentSolution, item, cancellationToken); } internal static async Task<ImmutableArray<ValueTrackedItem>> ValidateItemsAsync(TestWorkspace testWorkspace, (int line, string text)[] itemInfo, CancellationToken cancellationToken = default) { var items = await GetTrackedItemsAsync(testWorkspace, cancellationToken); Assert.True(itemInfo.Length == items.Length, $"GetTrackedItemsAsync\n\texpected: [{string.Join(",", itemInfo.Select(p => p.text))}]\n\t actual: [{string.Join(",", items)}]"); for (var i = 0; i < items.Length; i++) { ValidateItem(items[i], itemInfo[i].line, itemInfo[i].text); } return items; } internal static async Task<ImmutableArray<ValueTrackedItem>> ValidateChildrenAsync(TestWorkspace testWorkspace, ValueTrackedItem item, (int line, string text)[] childInfo, CancellationToken cancellationToken = default) { var children = await GetTrackedItemsAsync(testWorkspace, item, cancellationToken); Assert.True(childInfo.Length == children.Length, $"GetTrackedItemsAsync on [{item}]\n\texpected: [{string.Join(",", childInfo.Select(p => p.text))}]\n\t actual: [{string.Join(",", children)}]"); for (var i = 0; i < childInfo.Length; i++) { ValidateItem(children[i], childInfo[i].line, childInfo[i].text); } return children; } internal static async Task ValidateChildrenEmptyAsync(TestWorkspace testWorkspace, ValueTrackedItem item, CancellationToken cancellationToken = default) { var children = await GetTrackedItemsAsync(testWorkspace, item, cancellationToken); Assert.Empty(children); } internal static async Task ValidateChildrenEmptyAsync(TestWorkspace testWorkspace, IEnumerable<ValueTrackedItem> items, CancellationToken cancellationToken = default) { foreach (var item in items) { await ValidateChildrenEmptyAsync(testWorkspace, item, cancellationToken); } } internal static void ValidateItem(ValueTrackedItem item, int line, string? text = null) { item.SourceText.GetLineAndOffset(item.Span.Start, out var lineStart, out var _); Assert.Equal(line, lineStart); if (text is not null) { Assert.Equal(text, item.ToString()); } } } }
// 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 System.Collections.Immutable; using System.Threading.Tasks; using Microsoft.CodeAnalysis.ValueTracking; using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces; using Microsoft.CodeAnalysis.Remote.Testing; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Test.Utilities; using System.Threading; using Microsoft.CodeAnalysis.Text; using Xunit; using System.Collections.Generic; namespace Microsoft.CodeAnalysis.Editor.UnitTests.ValueTracking { public abstract class AbstractBaseValueTrackingTests { protected TestWorkspace CreateWorkspace(string code, TestHost testHost) => CreateWorkspace(code, EditorTestCompositions.EditorFeatures.WithTestHostParts(testHost)); protected abstract TestWorkspace CreateWorkspace(string code, TestComposition composition); internal static async Task<ImmutableArray<ValueTrackedItem>> GetTrackedItemsAsync(TestWorkspace testWorkspace, CancellationToken cancellationToken = default) { var cursorDocument = testWorkspace.DocumentWithCursor; var document = testWorkspace.CurrentSolution.GetRequiredDocument(cursorDocument.Id); var textSpan = new TextSpan(cursorDocument.CursorPosition!.Value, 0); var service = testWorkspace.Services.GetRequiredService<IValueTrackingService>(); return await service.TrackValueSourceAsync(textSpan, document, cancellationToken); } internal static async Task<ImmutableArray<ValueTrackedItem>> GetTrackedItemsAsync(TestWorkspace testWorkspace, ValueTrackedItem item, CancellationToken cancellationToken = default) { var service = testWorkspace.Services.GetRequiredService<IValueTrackingService>(); return await service.TrackValueSourceAsync(testWorkspace.CurrentSolution, item, cancellationToken); } internal static async Task<ImmutableArray<ValueTrackedItem>> ValidateItemsAsync(TestWorkspace testWorkspace, (int line, string text)[] itemInfo, CancellationToken cancellationToken = default) { var items = await GetTrackedItemsAsync(testWorkspace, cancellationToken); Assert.True(itemInfo.Length == items.Length, $"GetTrackedItemsAsync\n\texpected: [{string.Join(",", itemInfo.Select(p => p.text))}]\n\t actual: [{string.Join(",", items)}]"); for (var i = 0; i < items.Length; i++) { ValidateItem(items[i], itemInfo[i].line, itemInfo[i].text); } return items; } internal static async Task<ImmutableArray<ValueTrackedItem>> ValidateChildrenAsync(TestWorkspace testWorkspace, ValueTrackedItem item, (int line, string text)[] childInfo, CancellationToken cancellationToken = default) { var children = await GetTrackedItemsAsync(testWorkspace, item, cancellationToken); Assert.True(childInfo.Length == children.Length, $"GetTrackedItemsAsync on [{item}]\n\texpected: [{string.Join(",", childInfo.Select(p => p.text))}]\n\t actual: [{string.Join(",", children)}]"); for (var i = 0; i < childInfo.Length; i++) { ValidateItem(children[i], childInfo[i].line, childInfo[i].text); } return children; } internal static async Task ValidateChildrenEmptyAsync(TestWorkspace testWorkspace, ValueTrackedItem item, CancellationToken cancellationToken = default) { var children = await GetTrackedItemsAsync(testWorkspace, item, cancellationToken); Assert.Empty(children); } internal static async Task ValidateChildrenEmptyAsync(TestWorkspace testWorkspace, IEnumerable<ValueTrackedItem> items, CancellationToken cancellationToken = default) { foreach (var item in items) { await ValidateChildrenEmptyAsync(testWorkspace, item, cancellationToken); } } internal static void ValidateItem(ValueTrackedItem item, int line, string? text = null) { item.SourceText.GetLineAndOffset(item.Span.Start, out var lineStart, out var _); Assert.Equal(line, lineStart); if (text is not null) { Assert.Equal(text, item.ToString()); } } } }
-1
dotnet/roslyn
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./src/VisualStudio/CSharp/Impl/LanguageService/CSharpCreateServicesOnTextViewConnection.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.ComponentModel.Composition; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Completion; using Microsoft.CodeAnalysis.Completion.Providers; using Microsoft.CodeAnalysis.Completion.Providers.ImportCompletion; using Microsoft.CodeAnalysis.Editor; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Shared.TestHooks; using Microsoft.VisualStudio.LanguageServices.Implementation.LanguageService; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Utilities; namespace Microsoft.VisualStudio.LanguageServices.CSharp.Snippets { [Export(typeof(IWpfTextViewConnectionListener))] [ContentType(ContentTypeNames.CSharpContentType)] [TextViewRole(PredefinedTextViewRoles.Interactive)] internal class CSharpCreateServicesOnTextViewConnection : AbstractCreateServicesOnTextViewConnection { private readonly object _gate = new(); private readonly HashSet<ProjectId> _processedProjects = new(); private Task _typeTask = Task.CompletedTask; private Task _extensionMethodTask = Task.CompletedTask; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public CSharpCreateServicesOnTextViewConnection( VisualStudioWorkspace workspace, IAsynchronousOperationListenerProvider listenerProvider, IThreadingContext threadingContext) : base(workspace, listenerProvider, threadingContext, LanguageNames.CSharp) { } protected override void OnSolutionRemoved() { lock (_gate) { _processedProjects.Clear(); } } protected override Task InitializeServiceForOpenedDocumentAsync(Document document) { // Only pre-populate cache if import completion is enabled if (this.Workspace.Options.GetOption(CompletionOptions.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp) != true) return Task.CompletedTask; lock (_gate) { if (!_processedProjects.Contains(document.Project.Id)) { // Make sure we don't capture the entire snapshot var documentId = document.Id; _typeTask = _typeTask.ContinueWith(_ => PopulateTypeImportCompletionCacheAsync(this.Workspace, documentId), TaskScheduler.Default); _extensionMethodTask = _extensionMethodTask.ContinueWith(_ => PopulateExtensionMethodImportCompletionCacheAsync(this.Workspace, documentId), TaskScheduler.Default); } return Task.WhenAll(_typeTask, _extensionMethodTask); } static async Task PopulateTypeImportCompletionCacheAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken = default) { var document = workspace.CurrentSolution.GetDocument(documentId); if (document is null) return; var service = document.GetRequiredLanguageService<ITypeImportCompletionService>(); // First use partial semantic to build mostly correct cache fast var partialDocument = document.WithFrozenPartialSemantics(cancellationToken); await service.WarmUpCacheAsync(partialDocument.Project, CancellationToken.None).ConfigureAwait(false); // Then try to update the cache with full semantic await service.WarmUpCacheAsync(document.Project, CancellationToken.None).ConfigureAwait(false); } static async Task PopulateExtensionMethodImportCompletionCacheAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken = default) { var document = workspace.CurrentSolution.GetDocument(documentId); if (document is null) return; // First use partial semantic to build mostly correct cache fast var partialDocument = document.WithFrozenPartialSemantics(cancellationToken); await ExtensionMethodImportCompletionHelper.WarmUpCacheAsync(partialDocument, cancellationToken).ConfigureAwait(false); // Then try to update the cache with full semantic await ExtensionMethodImportCompletionHelper.WarmUpCacheAsync(document, cancellationToken).ConfigureAwait(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. using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Completion; using Microsoft.CodeAnalysis.Completion.Providers; using Microsoft.CodeAnalysis.Completion.Providers.ImportCompletion; using Microsoft.CodeAnalysis.Editor; using Microsoft.CodeAnalysis.Editor.Shared.Utilities; using Microsoft.CodeAnalysis.Host.Mef; using Microsoft.CodeAnalysis.Shared.Extensions; using Microsoft.CodeAnalysis.Shared.TestHooks; using Microsoft.VisualStudio.LanguageServices.Implementation.LanguageService; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Utilities; namespace Microsoft.VisualStudio.LanguageServices.CSharp.Snippets { [Export(typeof(IWpfTextViewConnectionListener))] [ContentType(ContentTypeNames.CSharpContentType)] [TextViewRole(PredefinedTextViewRoles.Interactive)] internal class CSharpCreateServicesOnTextViewConnection : AbstractCreateServicesOnTextViewConnection { private readonly object _gate = new(); private readonly HashSet<ProjectId> _processedProjects = new(); private Task _typeTask = Task.CompletedTask; private Task _extensionMethodTask = Task.CompletedTask; [ImportingConstructor] [Obsolete(MefConstruction.ImportingConstructorMessage, error: true)] public CSharpCreateServicesOnTextViewConnection( VisualStudioWorkspace workspace, IAsynchronousOperationListenerProvider listenerProvider, IThreadingContext threadingContext) : base(workspace, listenerProvider, threadingContext, LanguageNames.CSharp) { } protected override void OnSolutionRemoved() { lock (_gate) { _processedProjects.Clear(); } } protected override Task InitializeServiceForOpenedDocumentAsync(Document document) { // Only pre-populate cache if import completion is enabled if (this.Workspace.Options.GetOption(CompletionOptions.ShowItemsFromUnimportedNamespaces, LanguageNames.CSharp) != true) return Task.CompletedTask; lock (_gate) { if (!_processedProjects.Contains(document.Project.Id)) { // Make sure we don't capture the entire snapshot var documentId = document.Id; _typeTask = _typeTask.ContinueWith(_ => PopulateTypeImportCompletionCacheAsync(this.Workspace, documentId), TaskScheduler.Default); _extensionMethodTask = _extensionMethodTask.ContinueWith(_ => PopulateExtensionMethodImportCompletionCacheAsync(this.Workspace, documentId), TaskScheduler.Default); } return Task.WhenAll(_typeTask, _extensionMethodTask); } static async Task PopulateTypeImportCompletionCacheAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken = default) { var document = workspace.CurrentSolution.GetDocument(documentId); if (document is null) return; var service = document.GetRequiredLanguageService<ITypeImportCompletionService>(); // First use partial semantic to build mostly correct cache fast var partialDocument = document.WithFrozenPartialSemantics(cancellationToken); await service.WarmUpCacheAsync(partialDocument.Project, CancellationToken.None).ConfigureAwait(false); // Then try to update the cache with full semantic await service.WarmUpCacheAsync(document.Project, CancellationToken.None).ConfigureAwait(false); } static async Task PopulateExtensionMethodImportCompletionCacheAsync(Workspace workspace, DocumentId documentId, CancellationToken cancellationToken = default) { var document = workspace.CurrentSolution.GetDocument(documentId); if (document is null) return; // First use partial semantic to build mostly correct cache fast var partialDocument = document.WithFrozenPartialSemantics(cancellationToken); await ExtensionMethodImportCompletionHelper.WarmUpCacheAsync(partialDocument, cancellationToken).ConfigureAwait(false); // Then try to update the cache with full semantic await ExtensionMethodImportCompletionHelper.WarmUpCacheAsync(document, cancellationToken).ConfigureAwait(false); } } } }
-1
dotnet/roslyn
56,135
Merge release/dev17.0 to main
This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
dotnet-bot
"2021-09-02T21:01:14Z"
"2021-09-02T21:01:27Z"
99014d0615bf706b51c9e0aa325fc431a7d68711
7d328caf396488de8fc8a0ea4e39ae2e5824a48a
Merge release/dev17.0 to main. This is an automatically generated pull request from release/dev17.0 into main. Once all conflicts are resolved and all the tests pass, you are free to merge the pull request. 🐯 ## Troubleshooting conflicts ### Identify authors of changes which introduced merge conflicts Scroll to the bottom, then for each file containing conflicts copy its path into the following searches: - https://github.com/dotnet/roslyn/find/release/dev17.0 - https://github.com/dotnet/roslyn/find/main Usually the most recent change to a file between the two branches is considered to have introduced the conflicts, but sometimes it will be necessary to look for the conflicting lines and check the blame in each branch. Generally the author whose change introduced the conflicts should pull down this PR, fix the conflicts locally, then push up a commit resolving the conflicts. ### Resolve merge conflicts using your local repo Sometimes merge conflicts may be present on GitHub but merging locally will work without conflicts. This is due to differences between the merge algorithm used in local git versus the one used by GitHub. ``` bash git fetch --all git checkout merges/release/dev17.0-to-main git reset --hard upstream/main git merge upstream/release/dev17.0 # Fix merge conflicts git commit git push upstream merges/release/dev17.0-to-main --force ```
./src/EditorFeatures/TestUtilities/Workspaces/TestHostProject.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.IO; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Host; using Roslyn.Test.Utilities; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces { public class TestHostProject { private readonly HostLanguageServices _languageServices; private readonly ProjectId _id; private readonly string _name; private readonly IEnumerable<MetadataReference> _metadataReferences; private readonly IEnumerable<AnalyzerReference> _analyzerReferences; private readonly CompilationOptions _compilationOptions; private readonly ParseOptions _parseOptions; private readonly bool _isSubmission; private readonly string _assemblyName; private readonly Type _hostObjectType; private readonly VersionStamp _version; private readonly string _outputFilePath; private readonly string _defaultNamespace; public IEnumerable<TestHostDocument> Documents; public IEnumerable<TestHostDocument> AdditionalDocuments; public IEnumerable<TestHostDocument> AnalyzerConfigDocuments; public IEnumerable<ProjectReference> ProjectReferences; private string _filePath; public string Name { get { return _name; } } public IEnumerable<MetadataReference> MetadataReferences { get { return _metadataReferences; } } public IEnumerable<AnalyzerReference> AnalyzerReferences { get { return _analyzerReferences; } } public CompilationOptions CompilationOptions { get { return _compilationOptions; } } public ParseOptions ParseOptions { get { return _parseOptions; } } public ProjectId Id { get { return _id; } } public bool IsSubmission { get { return _isSubmission; } } public string AssemblyName { get { return _assemblyName; } } public Type HostObjectType { get { return _hostObjectType; } } public VersionStamp Version { get { return _version; } } public string FilePath { get { return _filePath; } } internal void OnProjectFilePathChanged(string filePath) => _filePath = filePath; public string OutputFilePath { get { return _outputFilePath; } } public string DefaultNamespace { get { return _defaultNamespace; } } internal TestHostProject( HostLanguageServices languageServices, CompilationOptions compilationOptions, ParseOptions parseOptions, params MetadataReference[] references) : this(languageServices, compilationOptions, parseOptions, "Test", references) { } internal TestHostProject( HostLanguageServices languageServices, CompilationOptions compilationOptions, ParseOptions parseOptions, string assemblyName, params MetadataReference[] references) : this(languageServices, compilationOptions, parseOptions, assemblyName: assemblyName, projectName: assemblyName, references: references, documents: Array.Empty<TestHostDocument>()) { } internal TestHostProject( HostLanguageServices languageServices, CompilationOptions compilationOptions, ParseOptions parseOptions, string assemblyName, string projectName, IList<MetadataReference> references, IList<TestHostDocument> documents, IList<TestHostDocument> additionalDocuments = null, IList<TestHostDocument> analyzerConfigDocuments = null, Type hostObjectType = null, bool isSubmission = false, string filePath = null, IList<AnalyzerReference> analyzerReferences = null, string defaultNamespace = null) { _assemblyName = assemblyName; _name = projectName; _id = ProjectId.CreateNewId(debugName: this.AssemblyName); _languageServices = languageServices; _compilationOptions = compilationOptions; _parseOptions = parseOptions; _metadataReferences = references; _analyzerReferences = analyzerReferences ?? SpecializedCollections.EmptyEnumerable<AnalyzerReference>(); this.Documents = documents; this.AdditionalDocuments = additionalDocuments ?? SpecializedCollections.EmptyEnumerable<TestHostDocument>(); this.AnalyzerConfigDocuments = analyzerConfigDocuments ?? SpecializedCollections.EmptyEnumerable<TestHostDocument>(); ProjectReferences = SpecializedCollections.EmptyEnumerable<ProjectReference>(); _isSubmission = isSubmission; _hostObjectType = hostObjectType; _version = VersionStamp.Create(); _filePath = filePath; _outputFilePath = GetTestOutputFilePath(filePath); _defaultNamespace = defaultNamespace; } public TestHostProject( TestWorkspace workspace, TestHostDocument document, string name = null, string language = null, CompilationOptions compilationOptions = null, ParseOptions parseOptions = null, IEnumerable<TestHostProject> projectReferences = null, IEnumerable<MetadataReference> metadataReferences = null, IEnumerable<AnalyzerReference> analyzerReferences = null, string assemblyName = null, string defaultNamespace = null) : this(workspace, name, language, compilationOptions, parseOptions, SpecializedCollections.SingletonEnumerable(document), SpecializedCollections.EmptyEnumerable<TestHostDocument>(), SpecializedCollections.EmptyEnumerable<TestHostDocument>(), projectReferences, metadataReferences, analyzerReferences, assemblyName, defaultNamespace) { } public TestHostProject( TestWorkspace workspace, string name = null, string language = null, CompilationOptions compilationOptions = null, ParseOptions parseOptions = null, IEnumerable<TestHostDocument> documents = null, IEnumerable<TestHostDocument> additionalDocuments = null, IEnumerable<TestHostDocument> analyzerConfigDocuments = null, IEnumerable<TestHostProject> projectReferences = null, IEnumerable<MetadataReference> metadataReferences = null, IEnumerable<AnalyzerReference> analyzerReferences = null, string assemblyName = null, string defaultNamespace = null) { _name = name ?? "TestProject"; _id = ProjectId.CreateNewId(debugName: this.Name); language = language ?? LanguageNames.CSharp; _languageServices = workspace.Services.GetLanguageServices(language); _compilationOptions = compilationOptions ?? this.LanguageServiceProvider.GetService<ICompilationFactoryService>().GetDefaultCompilationOptions(); _parseOptions = parseOptions ?? this.LanguageServiceProvider.GetService<ISyntaxTreeFactoryService>().GetDefaultParseOptions(); this.Documents = documents ?? SpecializedCollections.EmptyEnumerable<TestHostDocument>(); this.AdditionalDocuments = additionalDocuments ?? SpecializedCollections.EmptyEnumerable<TestHostDocument>(); this.AnalyzerConfigDocuments = analyzerConfigDocuments ?? SpecializedCollections.EmptyEnumerable<TestHostDocument>(); ProjectReferences = projectReferences != null ? projectReferences.Select(p => new ProjectReference(p.Id)) : SpecializedCollections.EmptyEnumerable<ProjectReference>(); _metadataReferences = metadataReferences ?? new MetadataReference[] { TestMetadata.Net451.mscorlib }; _analyzerReferences = analyzerReferences ?? SpecializedCollections.EmptyEnumerable<AnalyzerReference>(); _assemblyName = assemblyName ?? "TestProject"; _version = VersionStamp.Create(); _outputFilePath = GetTestOutputFilePath(_filePath); _defaultNamespace = defaultNamespace; if (documents != null) { foreach (var doc in documents) { doc.SetProject(this); } } if (additionalDocuments != null) { foreach (var doc in additionalDocuments) { doc.SetProject(this); } } if (analyzerConfigDocuments != null) { foreach (var doc in analyzerConfigDocuments) { doc.SetProject(this); } } } internal void SetSolution(TestHostSolution _) { // set up back pointer to this project. if (this.Documents != null) { foreach (var doc in this.Documents) { doc.SetProject(this); } foreach (var doc in this.AdditionalDocuments) { doc.SetProject(this); } foreach (var doc in this.AnalyzerConfigDocuments) { doc.SetProject(this); } } } internal void AddDocument(TestHostDocument document) { this.Documents = this.Documents.Concat(new TestHostDocument[] { document }); document.SetProject(this); } internal void RemoveDocument(TestHostDocument document) => this.Documents = this.Documents.Where(d => d != document); internal void AddAdditionalDocument(TestHostDocument document) { this.AdditionalDocuments = this.AdditionalDocuments.Concat(new TestHostDocument[] { document }); document.SetProject(this); } internal void RemoveAdditionalDocument(TestHostDocument document) => this.AdditionalDocuments = this.AdditionalDocuments.Where(d => d != document); internal void AddAnalyzerConfigDocument(TestHostDocument document) { this.AnalyzerConfigDocuments = this.AnalyzerConfigDocuments.Concat(new TestHostDocument[] { document }); document.SetProject(this); } internal void RemoveAnalyzerConfigDocument(TestHostDocument document) => this.AnalyzerConfigDocuments = this.AnalyzerConfigDocuments.Where(d => d != document); public string Language { get { return _languageServices.Language; } } internal HostLanguageServices LanguageServiceProvider { get { return _languageServices; } } public ProjectInfo ToProjectInfo() { return ProjectInfo.Create( Id, Version, Name, AssemblyName, Language, FilePath, OutputFilePath, CompilationOptions, ParseOptions, Documents.Where(d => !d.IsSourceGenerated).Select(d => d.ToDocumentInfo()), ProjectReferences, MetadataReferences, AnalyzerReferences, AdditionalDocuments.Select(d => d.ToDocumentInfo()), IsSubmission, HostObjectType) .WithAnalyzerConfigDocuments(AnalyzerConfigDocuments.Select(d => d.ToDocumentInfo())) .WithDefaultNamespace(DefaultNamespace); } // It is identical with the internal extension method 'GetDefaultExtension' defined in OutputKind.cs. // However, we could not apply for InternalVisibleToTest due to other parts of this assembly // complaining about CS0507: "cannot change access modifiers when overriding 'access' inherited member". private static string GetDefaultExtension(OutputKind kind) { switch (kind) { case OutputKind.ConsoleApplication: case OutputKind.WindowsApplication: case OutputKind.WindowsRuntimeApplication: return ".exe"; case OutputKind.DynamicallyLinkedLibrary: return ".dll"; case OutputKind.NetModule: return ".netmodule"; case OutputKind.WindowsRuntimeMetadata: return ".winmdobj"; default: return ".dll"; } } private string GetTestOutputFilePath(string filepath) { var outputFilePath = @"Z:\"; try { outputFilePath = Path.GetDirectoryName(filepath); } catch (ArgumentException) { } if (string.IsNullOrEmpty(outputFilePath)) { outputFilePath = @"Z:\"; } return this.CompilationOptions == null ? "" : Path.Combine(outputFilePath, this.AssemblyName + GetDefaultExtension(this.CompilationOptions.OutputKind)); } } }
// 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.IO; using System.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Host; using Roslyn.Test.Utilities; using Roslyn.Utilities; namespace Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces { public class TestHostProject { private readonly HostLanguageServices _languageServices; private readonly ProjectId _id; private readonly string _name; private readonly IEnumerable<MetadataReference> _metadataReferences; private readonly IEnumerable<AnalyzerReference> _analyzerReferences; private readonly CompilationOptions _compilationOptions; private readonly ParseOptions _parseOptions; private readonly bool _isSubmission; private readonly string _assemblyName; private readonly Type _hostObjectType; private readonly VersionStamp _version; private readonly string _outputFilePath; private readonly string _defaultNamespace; public IEnumerable<TestHostDocument> Documents; public IEnumerable<TestHostDocument> AdditionalDocuments; public IEnumerable<TestHostDocument> AnalyzerConfigDocuments; public IEnumerable<ProjectReference> ProjectReferences; private string _filePath; public string Name { get { return _name; } } public IEnumerable<MetadataReference> MetadataReferences { get { return _metadataReferences; } } public IEnumerable<AnalyzerReference> AnalyzerReferences { get { return _analyzerReferences; } } public CompilationOptions CompilationOptions { get { return _compilationOptions; } } public ParseOptions ParseOptions { get { return _parseOptions; } } public ProjectId Id { get { return _id; } } public bool IsSubmission { get { return _isSubmission; } } public string AssemblyName { get { return _assemblyName; } } public Type HostObjectType { get { return _hostObjectType; } } public VersionStamp Version { get { return _version; } } public string FilePath { get { return _filePath; } } internal void OnProjectFilePathChanged(string filePath) => _filePath = filePath; public string OutputFilePath { get { return _outputFilePath; } } public string DefaultNamespace { get { return _defaultNamespace; } } internal TestHostProject( HostLanguageServices languageServices, CompilationOptions compilationOptions, ParseOptions parseOptions, params MetadataReference[] references) : this(languageServices, compilationOptions, parseOptions, "Test", references) { } internal TestHostProject( HostLanguageServices languageServices, CompilationOptions compilationOptions, ParseOptions parseOptions, string assemblyName, params MetadataReference[] references) : this(languageServices, compilationOptions, parseOptions, assemblyName: assemblyName, projectName: assemblyName, references: references, documents: Array.Empty<TestHostDocument>()) { } internal TestHostProject( HostLanguageServices languageServices, CompilationOptions compilationOptions, ParseOptions parseOptions, string assemblyName, string projectName, IList<MetadataReference> references, IList<TestHostDocument> documents, IList<TestHostDocument> additionalDocuments = null, IList<TestHostDocument> analyzerConfigDocuments = null, Type hostObjectType = null, bool isSubmission = false, string filePath = null, IList<AnalyzerReference> analyzerReferences = null, string defaultNamespace = null) { _assemblyName = assemblyName; _name = projectName; _id = ProjectId.CreateNewId(debugName: this.AssemblyName); _languageServices = languageServices; _compilationOptions = compilationOptions; _parseOptions = parseOptions; _metadataReferences = references; _analyzerReferences = analyzerReferences ?? SpecializedCollections.EmptyEnumerable<AnalyzerReference>(); this.Documents = documents; this.AdditionalDocuments = additionalDocuments ?? SpecializedCollections.EmptyEnumerable<TestHostDocument>(); this.AnalyzerConfigDocuments = analyzerConfigDocuments ?? SpecializedCollections.EmptyEnumerable<TestHostDocument>(); ProjectReferences = SpecializedCollections.EmptyEnumerable<ProjectReference>(); _isSubmission = isSubmission; _hostObjectType = hostObjectType; _version = VersionStamp.Create(); _filePath = filePath; _outputFilePath = GetTestOutputFilePath(filePath); _defaultNamespace = defaultNamespace; } public TestHostProject( TestWorkspace workspace, TestHostDocument document, string name = null, string language = null, CompilationOptions compilationOptions = null, ParseOptions parseOptions = null, IEnumerable<TestHostProject> projectReferences = null, IEnumerable<MetadataReference> metadataReferences = null, IEnumerable<AnalyzerReference> analyzerReferences = null, string assemblyName = null, string defaultNamespace = null) : this(workspace, name, language, compilationOptions, parseOptions, SpecializedCollections.SingletonEnumerable(document), SpecializedCollections.EmptyEnumerable<TestHostDocument>(), SpecializedCollections.EmptyEnumerable<TestHostDocument>(), projectReferences, metadataReferences, analyzerReferences, assemblyName, defaultNamespace) { } public TestHostProject( TestWorkspace workspace, string name = null, string language = null, CompilationOptions compilationOptions = null, ParseOptions parseOptions = null, IEnumerable<TestHostDocument> documents = null, IEnumerable<TestHostDocument> additionalDocuments = null, IEnumerable<TestHostDocument> analyzerConfigDocuments = null, IEnumerable<TestHostProject> projectReferences = null, IEnumerable<MetadataReference> metadataReferences = null, IEnumerable<AnalyzerReference> analyzerReferences = null, string assemblyName = null, string defaultNamespace = null) { _name = name ?? "TestProject"; _id = ProjectId.CreateNewId(debugName: this.Name); language = language ?? LanguageNames.CSharp; _languageServices = workspace.Services.GetLanguageServices(language); _compilationOptions = compilationOptions ?? this.LanguageServiceProvider.GetService<ICompilationFactoryService>().GetDefaultCompilationOptions(); _parseOptions = parseOptions ?? this.LanguageServiceProvider.GetService<ISyntaxTreeFactoryService>().GetDefaultParseOptions(); this.Documents = documents ?? SpecializedCollections.EmptyEnumerable<TestHostDocument>(); this.AdditionalDocuments = additionalDocuments ?? SpecializedCollections.EmptyEnumerable<TestHostDocument>(); this.AnalyzerConfigDocuments = analyzerConfigDocuments ?? SpecializedCollections.EmptyEnumerable<TestHostDocument>(); ProjectReferences = projectReferences != null ? projectReferences.Select(p => new ProjectReference(p.Id)) : SpecializedCollections.EmptyEnumerable<ProjectReference>(); _metadataReferences = metadataReferences ?? new MetadataReference[] { TestMetadata.Net451.mscorlib }; _analyzerReferences = analyzerReferences ?? SpecializedCollections.EmptyEnumerable<AnalyzerReference>(); _assemblyName = assemblyName ?? "TestProject"; _version = VersionStamp.Create(); _outputFilePath = GetTestOutputFilePath(_filePath); _defaultNamespace = defaultNamespace; if (documents != null) { foreach (var doc in documents) { doc.SetProject(this); } } if (additionalDocuments != null) { foreach (var doc in additionalDocuments) { doc.SetProject(this); } } if (analyzerConfigDocuments != null) { foreach (var doc in analyzerConfigDocuments) { doc.SetProject(this); } } } internal void SetSolution(TestHostSolution _) { // set up back pointer to this project. if (this.Documents != null) { foreach (var doc in this.Documents) { doc.SetProject(this); } foreach (var doc in this.AdditionalDocuments) { doc.SetProject(this); } foreach (var doc in this.AnalyzerConfigDocuments) { doc.SetProject(this); } } } internal void AddDocument(TestHostDocument document) { this.Documents = this.Documents.Concat(new TestHostDocument[] { document }); document.SetProject(this); } internal void RemoveDocument(TestHostDocument document) => this.Documents = this.Documents.Where(d => d != document); internal void AddAdditionalDocument(TestHostDocument document) { this.AdditionalDocuments = this.AdditionalDocuments.Concat(new TestHostDocument[] { document }); document.SetProject(this); } internal void RemoveAdditionalDocument(TestHostDocument document) => this.AdditionalDocuments = this.AdditionalDocuments.Where(d => d != document); internal void AddAnalyzerConfigDocument(TestHostDocument document) { this.AnalyzerConfigDocuments = this.AnalyzerConfigDocuments.Concat(new TestHostDocument[] { document }); document.SetProject(this); } internal void RemoveAnalyzerConfigDocument(TestHostDocument document) => this.AnalyzerConfigDocuments = this.AnalyzerConfigDocuments.Where(d => d != document); public string Language { get { return _languageServices.Language; } } internal HostLanguageServices LanguageServiceProvider { get { return _languageServices; } } public ProjectInfo ToProjectInfo() { return ProjectInfo.Create( Id, Version, Name, AssemblyName, Language, FilePath, OutputFilePath, CompilationOptions, ParseOptions, Documents.Where(d => !d.IsSourceGenerated).Select(d => d.ToDocumentInfo()), ProjectReferences, MetadataReferences, AnalyzerReferences, AdditionalDocuments.Select(d => d.ToDocumentInfo()), IsSubmission, HostObjectType) .WithAnalyzerConfigDocuments(AnalyzerConfigDocuments.Select(d => d.ToDocumentInfo())) .WithDefaultNamespace(DefaultNamespace); } // It is identical with the internal extension method 'GetDefaultExtension' defined in OutputKind.cs. // However, we could not apply for InternalVisibleToTest due to other parts of this assembly // complaining about CS0507: "cannot change access modifiers when overriding 'access' inherited member". private static string GetDefaultExtension(OutputKind kind) { switch (kind) { case OutputKind.ConsoleApplication: case OutputKind.WindowsApplication: case OutputKind.WindowsRuntimeApplication: return ".exe"; case OutputKind.DynamicallyLinkedLibrary: return ".dll"; case OutputKind.NetModule: return ".netmodule"; case OutputKind.WindowsRuntimeMetadata: return ".winmdobj"; default: return ".dll"; } } private string GetTestOutputFilePath(string filepath) { var outputFilePath = @"Z:\"; try { outputFilePath = Path.GetDirectoryName(filepath); } catch (ArgumentException) { } if (string.IsNullOrEmpty(outputFilePath)) { outputFilePath = @"Z:\"; } return this.CompilationOptions == null ? "" : Path.Combine(outputFilePath, this.AssemblyName + GetDefaultExtension(this.CompilationOptions.OutputKind)); } } }
-1